tests: Import HLSL swizzle tests from Wine.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2020-09-30 21:01:19 -05:00
committed by Alexandre Julliard
parent 68ef1de6ec
commit e26a0f95d6
9 changed files with 117 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
[pixel shader]
uniform float4 color;
float4 main() : sv_target
{
float4 ret = color;
ret.gb = ret.ra;
ret.ra = float2(0.0101, 0.0404);
return ret;
}
[test]
uniform 0 float4 0.0303 0.08 0.07 0.0202
draw quad
probe all rgba (0.0101, 0.0303, 0.0202, 0.0404)