From af7c4010f4dbd1b5f305fef6fd7e02fa00429ba3 Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Thu, 6 Jun 2024 18:08:34 -0400 Subject: [PATCH] tests: Test whether valid state block function names are case-sensitive. --- tests/hlsl/state-block-function-syntax.shader_test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/hlsl/state-block-function-syntax.shader_test b/tests/hlsl/state-block-function-syntax.shader_test index a615ca8e..da9387b0 100644 --- a/tests/hlsl/state-block-function-syntax.shader_test +++ b/tests/hlsl/state-block-function-syntax.shader_test @@ -36,6 +36,15 @@ sampler sam float4 main() : sv_target { return 0; } +[pixel shader fail(sm<6) todo] +sampler sam +{ + Setblendstate(1, 2, 3); // Test case-sensitivity. +}; + +float4 main() : sv_target { return 0; } + + % It is allowed to use functions together with assignment syntax. [pixel shader] sampler sam