mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
d3ba810c98
This is simply unnecessary and wastes time. As part of this, simply remove the "all" directive. Only for a couple of tests is it even potentially interesting to validate all pixels (e.g. nointerpolation.shader_test), and for those "all" is replaced with an explicit (0, 0, 640, 480) rect. In all other cases we just probe (0, 0).
53 lines
855 B
Plaintext
53 lines
855 B
Plaintext
[pixel shader]
|
|
float4 main() : sv_target
|
|
{
|
|
float a = 2.0, b = a + 1.0, c = b;
|
|
|
|
return float4(a, b, c, 0);
|
|
}
|
|
|
|
[test]
|
|
todo(glsl) draw quad
|
|
probe (0, 0) rgba (2, 3, 3, 0)
|
|
|
|
|
|
[pixel shader fail]
|
|
float4 main() : sv_target
|
|
{
|
|
float a = 2.0, b = c + 1.0, c = b;
|
|
|
|
return float4(0);
|
|
}
|
|
|
|
|
|
[pixel shader]
|
|
float4 main() : sv_target
|
|
{
|
|
struct apple {
|
|
float a;
|
|
int b;
|
|
} apple1 = {7.2, 8.1}, apple2 = apple1;
|
|
|
|
return float4(apple1.a, apple1.b, apple2.a, apple2.b);
|
|
}
|
|
|
|
[test]
|
|
todo(glsl) draw quad
|
|
probe (0, 0) rgba (7.2, 8.0, 7.2, 8.0)
|
|
|
|
|
|
[pixel shader]
|
|
float4 main() : sv_target
|
|
{
|
|
struct apple {
|
|
float a;
|
|
int b;
|
|
} apple1 = {5.2, 9.1}, apples[2] = {apple1, apple1};
|
|
|
|
return float4(apples[0].a, apples[0].b, apples[1].a, apples[1].b);
|
|
}
|
|
|
|
[test]
|
|
todo(glsl) draw quad
|
|
probe (0, 0) rgba (5.2, 9.0, 5.2, 9.0)
|