SPIRV-Cross/reference/shaders/asm/vert/invariant.asm.vert
Hans-Kristian Arntzen 816c1167ce Handle invariant decoration more robustly.
Avoids certain cases of variance between translation units by forcing
every dependent expression of a store to be temporary.
Should avoid the major failure cases where invariance matters.
2018-11-22 11:55:57 +01:00

16 lines
142 B
GLSL

#version 450
invariant gl_Position;
vec4 _main()
{
return vec4(1.0);
}
void main()
{
vec4 _14 = _main();
gl_Position = _14;
}