vkd3d/tests/hlsl-struct-semantics.shader_test
Zebediah Figura 90b4cbc1f2 tests: Try to avoid using SV_Position from shaders which can be tested with SM1.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-08 11:49:31 +02:00

53 lines
721 B
Plaintext

[input layout]
0 r32g32b32a32 float texcoord
0 r32g32 float sv_position
[vertex buffer 0]
0.0 1.0 0.0 1.0 -2.0 -2.0
0.0 1.0 0.0 1.0 -2.0 2.0
0.0 1.0 0.0 1.0 2.0 -2.0
0.0 1.0 0.0 1.0 2.0 2.0
[vertex shader]
struct vertex
{
struct
{
float4 texcoord : texcoord;
float4 pos : sv_position;
} m;
};
void main(inout struct vertex v)
{
}
[pixel shader]
struct input
{
struct
{
float4 texcoord : texcoord;
} m;
};
struct output
{
struct
{
float4 color : sv_target;
} m;
};
struct output main(struct input i)
{
struct output o;
o.m.color = i.m.texcoord;
return o;
}
[test]
draw triangle strip 4
probe all rgba (0.0, 1.0, 0.0, 1.0)