mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test GetGPUDescriptorHandleForHeapStart() on a non-shader-visible heap.
This commit is contained in:
parent
0a98d09145
commit
981034e6e4
Notes:
Alexandre Julliard
2023-07-20 22:58:27 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/272
@ -2351,6 +2351,7 @@ done:
|
|||||||
|
|
||||||
static void test_create_descriptor_heap(void)
|
static void test_create_descriptor_heap(void)
|
||||||
{
|
{
|
||||||
|
D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle;
|
||||||
D3D12_DESCRIPTOR_HEAP_DESC heap_desc;
|
D3D12_DESCRIPTOR_HEAP_DESC heap_desc;
|
||||||
ID3D12Device *device, *tmp_device;
|
ID3D12Device *device, *tmp_device;
|
||||||
ID3D12DescriptorHeap *heap;
|
ID3D12DescriptorHeap *heap;
|
||||||
@ -2370,6 +2371,10 @@ static void test_create_descriptor_heap(void)
|
|||||||
hr = ID3D12Device_CreateDescriptorHeap(device, &heap_desc, &IID_ID3D12DescriptorHeap, (void **)&heap);
|
hr = ID3D12Device_CreateDescriptorHeap(device, &heap_desc, &IID_ID3D12DescriptorHeap, (void **)&heap);
|
||||||
ok(hr == S_OK, "Failed to create descriptor heap, hr %#x.\n", hr);
|
ok(hr == S_OK, "Failed to create descriptor heap, hr %#x.\n", hr);
|
||||||
|
|
||||||
|
gpu_handle = ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(heap);
|
||||||
|
todo
|
||||||
|
ok(!gpu_handle.ptr, "Got unexpected ptr %"PRIx64".\n", gpu_handle.ptr);
|
||||||
|
|
||||||
refcount = get_refcount(device);
|
refcount = get_refcount(device);
|
||||||
ok(refcount == 2, "Got unexpected refcount %u.\n", (unsigned int)refcount);
|
ok(refcount == 2, "Got unexpected refcount %u.\n", (unsigned int)refcount);
|
||||||
hr = ID3D12DescriptorHeap_GetDevice(heap, &IID_ID3D12Device, (void **)&tmp_device);
|
hr = ID3D12DescriptorHeap_GetDevice(heap, &IID_ID3D12Device, (void **)&tmp_device);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user