SPIRV-Cross/reference/opt/shaders/legacy/vert/switch-nested.legacy.vert
Hans-Kristian Arntzen 6a614cc7f7 Normalize all internal workaround methods to use spv prefix.
We have been interchanging spv and SPIRV_Cross_ for a while, which
causes weirdness since we don't explicitly ban SPIRV_Cross identifiers,
as these identifiers are generally used for interface variable
workarounds.
2020-11-23 15:42:27 +01:00

44 lines
781 B
GLSL

#version 100
struct UBO
{
int func_arg;
int inner_func_arg;
};
uniform UBO _34;
void main()
{
vec4 _102;
for (int spvDummy30 = 0; spvDummy30 < 1; spvDummy30++)
{
if (_34.func_arg != 0)
{
vec4 _101;
for (int spvDummy45 = 0; spvDummy45 < 1; spvDummy45++)
{
if (_34.inner_func_arg != 0)
{
_101 = vec4(1.0);
break;
}
else
{
_101 = vec4(0.0);
break;
}
}
_102 = _101;
break;
}
else
{
_102 = vec4(0.0);
break;
}
}
gl_Position = _102;
}