tests/hlsl: Add a test for the XOR assign operator.

This commit is contained in:
Victor Chiletto 2024-05-20 13:45:41 -03:00 committed by Alexandre Julliard
parent 7d3c286e9b
commit d8d2414132
Notes: Alexandre Julliard 2024-05-22 23:00:28 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/872

View File

@ -96,6 +96,26 @@ float4 main() : SV_TARGET
todo(glsl) draw quad todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 0.0) 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] [pixel shader]
float4 main() : SV_TARGET float4 main() : SV_TARGET
{ {