361fe52c9d
MSL would force thread const& which would not work if the input argument came from a different storage class. Emit proper non-reference arguments for such values.
17 lines
180 B
GLSL
17 lines
180 B
GLSL
#version 450
|
|
|
|
struct Registers
|
|
{
|
|
float foo;
|
|
};
|
|
|
|
uniform Registers registers;
|
|
|
|
layout(location = 0) out float FragColor;
|
|
|
|
void main()
|
|
{
|
|
FragColor = 10.0 + registers.foo;
|
|
}
|
|
|