vkd3d: Support multiple descriptions in GetResourceAllocationInfo().

This commit is contained in:
Conor McCarthy
2024-01-31 00:27:54 +10:00
committed by Alexandre Julliard
parent 8d0331df6c
commit 7e84421b9c
Notes: Alexandre Julliard 2024-02-01 23:07:43 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/617
4 changed files with 89 additions and 70 deletions

View File

@@ -32284,11 +32284,9 @@ static void test_resource_allocation_info(void)
: D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT;
}
info = ID3D12Device_GetResourceAllocationInfo(device, 0, ARRAY_SIZE(desc_array), desc_array);
todo
ok(info.Alignment >= D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT,
"Got unexpected alignment %"PRIu64".\n", info.Alignment);
check_alignment(info.SizeInBytes, info.Alignment);
todo
ok(info.SizeInBytes >= total, "Got unexpected size %"PRIu64".\n", info.SizeInBytes);
refcount = ID3D12Device_Release(device);