glslang/Test/spv.branch-return.vert
2016-01-19 10:11:34 -05:00

11 lines
193 B
GLSL

#version 300 es
void main() {
switch (gl_InstanceID) {
case 0: return;
case 1: gl_Position = vec4(0.0); break;
case 2: return;
case 3: return;
}
gl_Position.x += 0.123;
}