2022-02-03 14:44:20 -08:00
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
int4 aa = {1, 2, 3, 4};
|
|
|
|
return aa;
|
|
|
|
}
|
|
|
|
|
|
|
|
[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 (1.0, 2.0, 3.0, 4.0) 4
|
2022-02-03 14:44:20 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 aa = {1, 2, 3, 4};
|
|
|
|
return aa;
|
|
|
|
}
|
|
|
|
|
|
|
|
[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 (1.0, 2.0, 3.0, 4.0) 4
|
2022-02-03 14:44:20 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float3 aa = {1, 2, 3};
|
|
|
|
float4 bb = {aa.x, aa.y, aa.z, 4.0};
|
|
|
|
return bb;
|
|
|
|
}
|
|
|
|
|
|
|
|
[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 (1.0, 2.0, 3.0, 4.0) 4
|
2022-02-07 22:52:15 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 aa = { 1e1, 1e-1, 1., 2.f };
|
|
|
|
float4 bb = { .1, .1e1, .2f, 1.e-1f };
|
|
|
|
return aa + bb;
|
|
|
|
}
|
|
|
|
|
|
|
|
[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 (10.1, 1.1, 1.2, 2.1) 4
|
2023-11-16 07:30:52 -08:00
|
|
|
|
|
|
|
|
2023-11-16 07:06:40 -08:00
|
|
|
[pixel shader]
|
2023-11-16 07:30:52 -08:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 aa = { 3U, 0xfau, 020u, -1u};
|
|
|
|
return aa;
|
|
|
|
}
|
|
|
|
|
|
|
|
[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 (3.0, 250.0, 16.0, 4.2949673e+009) 4
|
2023-11-16 07:30:52 -08:00
|
|
|
|
|
|
|
|
2023-11-16 07:06:40 -08:00
|
|
|
[pixel shader]
|
2023-11-16 07:30:52 -08:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
// 3000000000 is -1294967296 when it doesn't have the 'u' suffix, except in SM6.
|
|
|
|
float2 aa = {3000000000, 3000000000U};
|
|
|
|
return float4(aa, 0.0, 0.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
if(sm<6) probe (0,0) rgba (-1294967296.0, 3000000000.0, 0.0, 0.0) 4
|
|
|
|
if(sm>=6) probe (0,0) rgba (3000000000.0, 3000000000.0, 0.0, 0.0) 4
|