mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader: Avoid using the term "varying" for all semantics.
It's not particularly accurate; "varying" only refers to the interface between two consecutive shader stages. Replace it with "semantic" in most cases. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
445165823e
commit
0c3b1d1d89
29
tests/hlsl-struct-semantics.shader_test
Normal file
29
tests/hlsl-struct-semantics.shader_test
Normal file
@ -0,0 +1,29 @@
|
||||
[pixel shader]
|
||||
struct input
|
||||
{
|
||||
struct
|
||||
{
|
||||
float4 pos : sv_position;
|
||||
} m;
|
||||
};
|
||||
|
||||
struct output
|
||||
{
|
||||
struct
|
||||
{
|
||||
float4 color : sv_target;
|
||||
} m;
|
||||
};
|
||||
|
||||
struct output main(struct input i)
|
||||
{
|
||||
struct output o;
|
||||
o.m.color = i.m.pos;
|
||||
return o;
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe rgba (0, 1) (0.5, 1.5, 0.0, 1.0)
|
||||
probe rgba (1, 0) (1.5, 0.5, 0.0, 1.0)
|
||||
probe rgba (3, 5) (3.5, 5.5, 0.0, 1.0)
|
Reference in New Issue
Block a user