mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests/hlsl: Add a test for the XOR assign operator.
This commit is contained in:
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
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user