2023-06-26 12:38:10 -07:00
|
|
|
[pixel shader]
|
2023-06-22 09:49:47 -07:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float a = 2.0, b = a + 1.0, c = b;
|
|
|
|
|
|
|
|
return float4(a, b, c, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (2, 3, 3, 0)
|
2023-06-22 09:49:47 -07:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader fail]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float a = 2.0, b = c + 1.0, c = b;
|
|
|
|
|
|
|
|
return float4(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-06-26 12:47:56 -07:00
|
|
|
[pixel shader]
|
2023-06-22 09:49:47 -07:00
|
|
|
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]
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (7.2, 8.0, 7.2, 8.0)
|
2023-06-22 09:49:47 -07:00
|
|
|
|
|
|
|
|
2023-06-26 12:47:56 -07:00
|
|
|
[pixel shader]
|
2023-06-22 09:49:47 -07:00
|
|
|
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]
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (5.2, 9.0, 5.2, 9.0)
|