Debian Codegraph @

third_party/spirv-cross/shaders/frag/selection-block-dominator.frag

raw
1 #version 450
2 layout(location = 0) out vec4 FragColor;
3 layout(location = 0) flat in int vIndex;
4
5 void main()
6 {
7 int v;
8 if (vIndex != 1)
9 {
10 FragColor = vec4(1.0);
11 return;
12 }
13 else
14 {
15 v = 10;
16 }
17 FragColor = vec4(v);
18 }