From ae9d29a37745b2e68af9d14fbbe75ae82094d507 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 18 Oct 2023 23:00:43 +0200 Subject: [PATCH] tests: Add basic RWTexture1DArray tests. --- tests/hlsl/uav-rwtexture.shader_test | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tests/hlsl/uav-rwtexture.shader_test b/tests/hlsl/uav-rwtexture.shader_test index bfa2b441..79cb47de 100644 --- a/tests/hlsl/uav-rwtexture.shader_test +++ b/tests/hlsl/uav-rwtexture.shader_test @@ -180,6 +180,24 @@ float4 main() : sv_target1 return 0; } +% RWTexture1DArray types +[pixel shader fail(sm>=6) todo] +struct s +{ + float3 a; +}; + +RWTexture1DArray u : register(u2); +RWTexture1DArray u1; +RWTexture1DArray u2; +RWTexture1DArray u3; + +float4 main() : sv_target1 +{ + u[int2(0, 0)] = float4(11.1, 12.2, 13.3, 14.4); + return 0; +} + % RWTexture2D types [pixel shader fail(sm>=6)] struct s @@ -275,6 +293,14 @@ float4 main() : sv_target1 return 0; } +[pixel shader fail] +RWTexture1DArray u; + +float4 main() : sv_target1 +{ + return 0; +} + [pixel shader fail] RWTexture2D u; @@ -310,6 +336,19 @@ struct s Texture2D t; }; +RWTexture1DArray u; + +float4 main() : sv_target1 +{ + return 0; +} + +[pixel shader fail] +struct s +{ + Texture2D t; +}; + RWTexture2D u; float4 main() : sv_target1