tests: Move HLSL tests to a subdirectory.

This commit is contained in:
Zebediah Figura
2023-06-23 18:04:52 -05:00
committed by Alexandre Julliard
parent 69f32796b0
commit 0d2f2e1860
Notes: Alexandre Julliard 2023-06-28 23:04:19 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/248
139 changed files with 140 additions and 140 deletions

View File

@@ -0,0 +1,27 @@
[require]
shader model >= 4.0
[input layout]
0 r32g32b32a32 float texcoord
[vertex buffer 0]
0.0 1.0 0.0 1.0
1.0 0.0 0.0 1.0
0.0 0.0 1.0 1.0
[vertex shader]
void main(uint id : sv_vertexid, nointerpolation inout float4 t : texcoord, out float4 pos : sv_position)
{
float2 coords = float2((id << 1) & 2, id & 2);
pos = float4(coords * float2(2, -2) + float2(-1, 1), 0, 1);
}
[pixel shader]
float4 main(nointerpolation float4 t : texcoord) : sv_target
{
return t;
}
[test]
draw triangle list 3
probe all rgba (0.0, 1.0, 0.0, 1.0)