From 565698711bd911aea70d5609f54f7c29c4d293ae Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Thu, 3 Oct 2024 19:55:06 +0200 Subject: [PATCH] tests: Add a test for uniform array indexing. --- tests/hlsl/non-const-indexing.shader_test | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hlsl/non-const-indexing.shader_test b/tests/hlsl/non-const-indexing.shader_test index 63a89452..66b902bd 100644 --- a/tests/hlsl/non-const-indexing.shader_test +++ b/tests/hlsl/non-const-indexing.shader_test @@ -336,3 +336,14 @@ todo(glsl) draw quad if(sm<4) probe (0,0) rgba (1.0, 1.0, 1.0, 1.0) if(sm>=4 & sm<6) todo probe (0,0) rgba (4.0, 4.0, 4.0, 4.0) if(sm>=6) probe (0,0) rgba (4.0, 3.0, 2.0, 1.0) + +[require] +shader model >= 4.0 + +[pixel shader] +float4 f[2]; + +float4 main(uint index : INDEX) : sv_target +{ + return f[index]; +}