tests/d3d12: Add a test for zero description count in test_resource_allocation_info().

This commit is contained in:
Conor McCarthy 2024-02-06 10:39:22 +10:00 committed by Alexandre Julliard
parent 4668271872
commit 99947deeb7
Notes: Alexandre Julliard 2024-02-15 23:58:28 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/627

View File

@ -32214,6 +32214,10 @@ static void test_resource_allocation_info(void)
return;
}
info = ID3D12Device_GetResourceAllocationInfo(device, 0, 0, &desc);
ok(info.SizeInBytes == 0, "Got unexpected size %"PRIu64".\n", info.SizeInBytes);
/* Alignment on AMD Windows is 1, but this doesn't seem important to check. */
desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER;
desc.Alignment = 0;
desc.Width = 32;