2021-09-16 11:55:56 -07:00
|
|
|
[pixel shader]
|
|
|
|
float4 main(uniform float2 u) : sv_target
|
|
|
|
{
|
|
|
|
return float4(saturate(u), saturate(u.x + 0.5), saturate(-1.2));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 0.7 -0.1 0.0 0.0
|
|
|
|
draw quad
|
|
|
|
probe all rgba (0.7, 0.0, 1.0, 0.0)
|
2022-02-02 04:46:14 -08:00
|
|
|
|
|
|
|
[pixel shader]
|
2022-03-07 17:55:43 -08:00
|
|
|
float4 main(uniform float4 u) : sv_target
|
2022-02-02 04:46:14 -08:00
|
|
|
{
|
2022-03-07 17:55:43 -08:00
|
|
|
int4 i = u;
|
|
|
|
return saturate(i);
|
2022-02-02 04:46:14 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-03-07 17:55:43 -08:00
|
|
|
uniform 0 float4 -2 0 2 -1
|
2022-02-02 04:46:14 -08:00
|
|
|
draw quad
|
|
|
|
probe all rgba (0.0, 0.0, 1.0, 0.0)
|