mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
30 lines
408 B
Plaintext
30 lines
408 B
Plaintext
|
[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)
|