SPIRV-Cross-Vulnerable/shaders-msl-no-opt/frag/volatile-helper-invocation.msl23.spv16.frag

17 lines
246 B
GLSL

#version 450
#extension GL_EXT_demote_to_helper_invocation : require
layout(location = 0) out float FragColor;
void func()
{
FragColor = float(gl_HelperInvocation);
demote;
FragColor = float(gl_HelperInvocation);
}
void main()
{
func();
}