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-03-19 04:36:23 -07:00
|
|
|
todo(glsl) 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-03-19 04:36:23 -07:00
|
|
|
todo(glsl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (4.0, 5.0, 4.0, 5.0)
|