From 987dbe31e3c1c2c42df4a9ad93aacd9701b51ef7 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 18 Oct 2024 23:41:39 +0200 Subject: [PATCH] tests: Use appropriate RTV formats in max-min.shader_test. --- tests/d3d12_test_utils.h | 1 + tests/hlsl/max-min.shader_test | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/tests/d3d12_test_utils.h b/tests/d3d12_test_utils.h index 86b5ab75..e48bcbf3 100644 --- a/tests/d3d12_test_utils.h +++ b/tests/d3d12_test_utils.h @@ -419,6 +419,7 @@ static unsigned int format_size(DXGI_FORMAT format) { case DXGI_FORMAT_R32G32B32A32_FLOAT: case DXGI_FORMAT_R32G32B32A32_UINT: + case DXGI_FORMAT_R32G32B32A32_SINT: case DXGI_FORMAT_R8G8_UNORM: return 16; case DXGI_FORMAT_R16G16B16A16_TYPELESS: diff --git a/tests/hlsl/max-min.shader_test b/tests/hlsl/max-min.shader_test index e4ba2e40..3022a8e0 100644 --- a/tests/hlsl/max-min.shader_test +++ b/tests/hlsl/max-min.shader_test @@ -87,6 +87,10 @@ probe (0, 0) rgba (0.4, -0.1, -0.2, -0.1) [require] shader model >= 4.0 +[rtv 0] +format r32g32b32a32-uint +size (2d, 640, 480) + [pixel shader] uniform uint2 u; @@ -100,6 +104,9 @@ uniform 0 uint4 1 2 0 0 todo(glsl) draw quad probe (0, 0) rgbaui (2, 1, 2, 1) +[rtv 0] +format r32g32b32a32-sint +size (2d, 640, 480) [pixel shader todo] uniform int2 u;