From d8d2414132f5a84c44ee3492dd59fa5f00c6c8a5 Mon Sep 17 00:00:00 2001 From: Victor Chiletto Date: Mon, 20 May 2024 13:45:41 -0300 Subject: [PATCH] tests/hlsl: Add a test for the XOR assign operator. --- tests/hlsl/bitwise.shader_test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/hlsl/bitwise.shader_test b/tests/hlsl/bitwise.shader_test index 03b4282c..008ddce3 100644 --- a/tests/hlsl/bitwise.shader_test +++ b/tests/hlsl/bitwise.shader_test @@ -96,6 +96,26 @@ float4 main() : SV_TARGET todo(glsl) draw quad probe all rgba (0.0, 1.0, 1.0, 0.0) +[pixel shader todo(sm<6)] +float4 main() : SV_TARGET +{ + int a = 0; + int b = 0; + int c = 1; + int d = 1; + + a ^= 0; + b ^= 1; + c ^= 0; + d ^= 1; + + return float4(a, b, c, d); +} + +[test] +todo(glsl|sm<6) draw quad +probe all rgba (0.0, 1.0, 1.0, 0.0) + [pixel shader] float4 main() : SV_TARGET {