SPIRV-Cross/reference/shaders-no-opt/asm/frag/reserved-identifiers.asm.frag
Hans-Kristian Arntzen a07441568e Overhaul how we deal with reserved identifiers.
- Do not silently drop reserved identifiers in the parser. This makes it
  possible to reflect identifiers which are reserved by the
  cross-compiler module.
- Instead of dropping the name, emit _RESERVED_IDENTIFIER_FIXUP in the
  source to make it clear that a name has been rewritten.
- Document what is reserved and not.
2020-08-21 16:33:27 +02:00

18 lines
450 B
GLSL

#version 450
layout(location = 0) out vec4 _RESERVED_IDENTIFIER_FIXUP_spvFoo;
layout(location = 1) out vec4 SPIRV_Cross_blah;
layout(location = 2) out vec4 _40Bar;
layout(location = 3) out vec4 _m40;
layout(location = 4) out vec4 _underscore_foo_bar_meep_;
void main()
{
_RESERVED_IDENTIFIER_FIXUP_spvFoo = vec4(0.0);
SPIRV_Cross_blah = vec4(1.0);
_40Bar = vec4(2.0);
_m40 = vec4(3.0);
_underscore_foo_bar_meep_ = vec4(4.0);
}