SPIRV-Cross/reference/shaders-no-opt/asm/frag/reserved-function-identifier.asm.frag
Hans-Kristian Arntzen ddb3c65648 Handle reserved identifiers for functions.
gl_ identifiers are already handled by fixups, so remove redundant code.
2021-01-04 10:00:12 +01:00

22 lines
318 B
GLSL

#version 450
layout(location = 0) out float FragColor;
float _mat3(float a)
{
return a + 1.0;
}
float _RESERVED_IDENTIFIER_FIXUP_gl_Foo(int a)
{
return float(a) + 1.0;
}
void main()
{
float param = 2.0;
int param_1 = 4;
FragColor = _mat3(param) + _RESERVED_IDENTIFIER_FIXUP_gl_Foo(param_1);
}