From 3c6174cafcfba84e73a2229e5323ba5948d38458 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Wed, 9 Jun 2021 20:05:57 +0200 Subject: [PATCH] tests: Fix type mismatch in test_draw_uav_only. Signed-off-by: Hans-Kristian Arntzen --- tests/d3d12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/d3d12.c b/tests/d3d12.c index c2095a3d..210b857a 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -7624,7 +7624,7 @@ static void test_draw_uav_only(void) 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00004001, 0x00000001, 0x0100003e, }; static const D3D12_SHADER_BYTECODE ps = {ps_code, sizeof(ps_code)}; - static const float zero[4] = {0}; + static const UINT zero[4] = {0}; memset(&desc, 0, sizeof(desc)); desc.no_render_target = true; @@ -7663,7 +7663,7 @@ static void test_draw_uav_only(void) cpu_handle = ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(cpu_descriptor_heap); ID3D12Device_CreateUnorderedAccessView(context.device, resource, NULL, NULL, cpu_handle); - ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(command_list, + ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(command_list, gpu_handle, cpu_handle, resource, zero, 0, NULL); barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_UAV;