Module: vkd3d Branch: master Commit: d8d2414132f5a84c44ee3492dd59fa5f00c6c8a5 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/d8d2414132f5a84c44ee3492dd59fa...
Author: Victor Chiletto vchiletto@codeweavers.com Date: Mon May 20 13:45:41 2024 -0300
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 {