2023-06-08 03:47:40 -07:00
|
|
|
[pixel shader]
|
2023-06-08 03:35:02 -07:00
|
|
|
uniform float4 x;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
clip(x);
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 1 2 3 4
|
2023-06-08 03:47:40 -07:00
|
|
|
draw quad
|
|
|
|
probe all rgba (1, 2, 3, 4)
|
2023-06-08 03:35:02 -07:00
|
|
|
uniform 0 float4 9 8 7 6
|
2023-06-08 03:47:40 -07:00
|
|
|
draw quad
|
|
|
|
probe all rgba (9, 8, 7, 6)
|
2023-06-08 03:35:02 -07:00
|
|
|
uniform 0 float4 -1 8 7 6
|
2023-06-08 03:47:40 -07:00
|
|
|
draw quad
|
|
|
|
probe all rgba (9, 8, 7, 6)
|
2023-06-08 03:35:02 -07:00
|
|
|
uniform 0 float4 9 0 7 6
|
2023-06-08 03:47:40 -07:00
|
|
|
draw quad
|
|
|
|
probe all rgba (9, 0, 7, 6)
|