mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
53 lines
800 B
Plaintext
53 lines
800 B
Plaintext
% Test how semantics are determined when spread across the entry point's
|
|
% definition and its declarations.
|
|
|
|
[vertex shader]
|
|
void main(out float tex : texcoord, inout float4 pos : sv_position)
|
|
{
|
|
tex = 0.2;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
|
|
float4 main(float tex : texcoord) : sv_target;
|
|
|
|
float4 main(float tex)
|
|
{
|
|
return tex;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
|
|
float4 main(float tex)
|
|
{
|
|
return tex;
|
|
}
|
|
|
|
float4 main(float tex : texcoord) : sv_target;
|
|
|
|
[pixel shader]
|
|
|
|
float4 main(float tex : bogus) : bogus;
|
|
|
|
float4 main(float tex : texcoord) : sv_target
|
|
{
|
|
return tex;
|
|
}
|
|
|
|
[test]
|
|
draw quad
|
|
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2)
|
|
|
|
[pixel shader]
|
|
|
|
float4 main(float tex : texcoord) : sv_target
|
|
{
|
|
return tex;
|
|
}
|
|
|
|
float4 main(float tex : bogus) : bogus;
|
|
|
|
[test]
|
|
draw quad
|
|
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2)
|