2021-11-19 06:38:41 -08:00
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2021-11-19 06:38:41 -08:00
|
|
|
{
|
|
|
|
return round(u);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-03-07 17:55:41 -08:00
|
|
|
uniform 0 float4 -0.4 -6.6 7.6 3.4
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (0.0, -7.0, 8.0, 3.0) 4
|
2021-11-19 06:38:41 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-20 19:23:46 -07:00
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2021-11-19 06:38:41 -08:00
|
|
|
{
|
|
|
|
float a = round(u.r);
|
|
|
|
int2 b = round(u.gb);
|
|
|
|
float4 res = float4(b, a, u.a);
|
|
|
|
return round(res);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-03-07 17:55:41 -08:00
|
|
|
uniform 0 float4 -0.4 -6.6 7.6 3.4
|
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.0, 8.0, 0.0, 3.0) 4
|
2022-02-02 04:46:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-20 19:23:46 -07:00
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2022-02-02 04:46:13 -08:00
|
|
|
{
|
2022-03-07 17:55:43 -08:00
|
|
|
int4 i = u;
|
|
|
|
return round(i);
|
2022-02-02 04:46:13 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-03-07 17:55:43 -08:00
|
|
|
uniform 0 float4 -1 0 2 10
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (-1.0, 0.0, 2.0, 10.0) 4
|