From d660a0d2ae449ff5df3a8cb2b0f25b8f79b50c64 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 6 May 2025 00:32:35 +0200 Subject: [PATCH] tests: Add a fx_4_1 compilation test for the BlendState states. Signed-off-by: Nikolay Sivov --- Makefile.am | 1 + .../hlsl/effect-variables-fx_4_1.shader_test | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/hlsl/effect-variables-fx_4_1.shader_test diff --git a/Makefile.am b/Makefile.am index 1cfd16198..718d2850b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,6 +124,7 @@ vkd3d_shader_tests = \ tests/hlsl/effect-technique-fx_5.shader_test \ tests/hlsl/effect-variables-fx_2.shader_test \ tests/hlsl/effect-variables-fx_4.shader_test \ + tests/hlsl/effect-variables-fx_4_1.shader_test \ tests/hlsl/effect-variables-fx_5.shader_test \ tests/hlsl/entry-point-semantics.shader_test \ tests/hlsl/eval-attrib.shader_test \ diff --git a/tests/hlsl/effect-variables-fx_4_1.shader_test b/tests/hlsl/effect-variables-fx_4_1.shader_test new file mode 100644 index 000000000..462eee0d8 --- /dev/null +++ b/tests/hlsl/effect-variables-fx_4_1.shader_test @@ -0,0 +1,25 @@ +[require] +shader model >= 4.1 +shader model < 6.0 + +[effect todo] +BlendState bs +{ + SrcBlend[0] = one; + DestBlend[1] = zero; + BlendOp[2] = min; + SrcBlendAlpha[3] = dest_color; + DestBlendAlpha[4] = src1_alpha; + BlendOpAlpha[5] = add; +}; + +[effect todo] +BlendState bs +{ + SrcBlend = one; + DestBlend = zero; + BlendOp = min; + SrcBlendAlpha = dest_color; + DestBlendAlpha = src1_alpha; + BlendOpAlpha = add; +};