2021-09-16 11:55:56 -07:00
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float2 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2021-09-16 11:55:56 -07:00
|
|
|
{
|
|
|
|
return float4(saturate(u), saturate(u.x + 0.5), saturate(-1.2));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 0.7 -0.1 0.0 0.0
|
2023-09-14 02:29:24 -07:00
|
|
|
todo(sm>=6) draw quad
|
2021-09-16 11:55:56 -07:00
|
|
|
probe all rgba (0.7, 0.0, 1.0, 0.0)
|
2022-02-02 04:46:14 -08:00
|
|
|
|
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : 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
|
2023-09-14 02:29:24 -07:00
|
|
|
todo(sm>=6) draw quad
|
2022-02-02 04:46:14 -08:00
|
|
|
probe all rgba (0.0, 0.0, 1.0, 0.0)
|