Debian Codegraph @

tests/playground/tessellation/per_patch_output.tesc

raw
1 #version 440
2
3 layout(vertices = 3) out;
4
5 layout(location = 0) in vec3 inColor[];
6
7 layout(location = 0) patch out vec3 stuff;
8 layout(location = 1) patch out float more_stuff;
9
10 void main()
11 {
12 if (gl_InvocationID == 0) {
13 gl_TessLevelOuter[0] = 4.0;
14 gl_TessLevelOuter[1] = 4.0;
15 gl_TessLevelOuter[2] = 4.0;
16
17 gl_TessLevelInner[0] = 4.0;
18 }
19
20 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
21 stuff = vec3(1.0);
22 more_stuff = stuff.x + 0.5;
23 }