mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Pad the constant buffer in test_update_compute_descriptor_tables() to 256 bytes.
The D3D12 debug layer signals an error otherwise.
This commit is contained in:
parent
a876e0b192
commit
e4e7368c1c
Notes:
Henri Verbeet
2024-07-17 16:00:27 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/947
@ -17720,6 +17720,8 @@ static void test_update_compute_descriptor_tables(void)
|
|||||||
{
|
{
|
||||||
struct uvec4 srv_size[2];
|
struct uvec4 srv_size[2];
|
||||||
struct uvec4 uav_size[2];
|
struct uvec4 uav_size[2];
|
||||||
|
/* Constant buffers need to be padded to 256 bytes. */
|
||||||
|
char pad[D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT - 2 * sizeof(struct uvec4[2])];
|
||||||
};
|
};
|
||||||
|
|
||||||
D3D12_ROOT_SIGNATURE_DESC root_signature_desc;
|
D3D12_ROOT_SIGNATURE_DESC root_signature_desc;
|
||||||
|
Loading…
Reference in New Issue
Block a user