Skip to content
Snippets Groups Projects
Commit d8d24141 authored by Victor Chiletto's avatar Victor Chiletto Committed by Alexandre Julliard
Browse files

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

parent 7d3c286e
Branches
Tags
1 merge request!872vkd3d-shader/hlsl: Fix XOR assign operator lexing.
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment