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.
25 lines
367 B
GLSL
25 lines
367 B
GLSL
cbuffer registers
|
|
{
|
|
float registers_foo : packoffset(c0);
|
|
};
|
|
|
|
static float FragColor;
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
float FragColor : SV_Target0;
|
|
};
|
|
|
|
void frag_main()
|
|
{
|
|
FragColor = 10.0f + registers_foo;
|
|
}
|
|
|
|
SPIRV_Cross_Output main()
|
|
{
|
|
frag_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.FragColor = FragColor;
|
|
return stage_output;
|
|
}
|