mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
20 lines
234 B
GLSL
20 lines
234 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(location =0 ) in int c;
|
||
|
layout(location =0 ) out int o;
|
||
|
|
||
|
void main() {
|
||
|
int i;
|
||
|
o = 1;
|
||
|
for (i=0; i < 5; i++) {
|
||
|
o = 2;
|
||
|
if (i==c) {
|
||
|
o = 3;
|
||
|
break;
|
||
|
o = 4;
|
||
|
}
|
||
|
o = 5;
|
||
|
}
|
||
|
o = 6;
|
||
|
}
|