2023-06-28 12:50:59 -07:00
|
|
|
% Semantics can be used in uniforms even though they are ignored.
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float a : SEMANTIC;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float 3.5
|
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.5, 3.5, 3.5, 3.5)
|
2023-06-28 12:50:59 -07:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float2 a : sv_position;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(a, a);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 4.0 5.0 6.0 7.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (4.0, 5.0, 4.0, 5.0)
|
2024-10-27 06:31:20 -07:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float a : SEMANTIC : ANOTHER_SEMANTIC;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float 3.5
|
|
|
|
todo(msl) draw quad
|
|
|
|
probe (0, 0) rgba (3.5, 3.5, 3.5, 3.5)
|