mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
30 lines
521 B
Plaintext
30 lines
521 B
Plaintext
[require]
|
|
shader model < 3.0
|
|
|
|
[vertex shader fail]
|
|
void main(float4 pos : position, out float2 fog : fog, out float4 out_pos : sv_position)
|
|
{
|
|
fog = 0.5;
|
|
out_pos = pos;
|
|
}
|
|
|
|
[require]
|
|
shader model >= 3.0
|
|
|
|
[vertex shader]
|
|
void main(float4 pos : position, out float2 fog : fog, out float4 out_pos : sv_position)
|
|
{
|
|
fog = float2(0.1, 0.2);
|
|
out_pos = pos;
|
|
}
|
|
|
|
[pixel shader]
|
|
float4 main(float2 fog : fog) : sv_target
|
|
{
|
|
return float4(fog, 0, 1);
|
|
}
|
|
|
|
[test]
|
|
todo(msl) draw quad
|
|
probe (0, 0) rgba (0.1, 0.2, 0, 1)
|