Debian Codegraph @

third_party/spirv-cross/shaders/geom/geometry-passthrough.geom

raw
1 #version 450
2 #extension GL_NV_geometry_shader_passthrough : require
3
4 layout(triangles) in;
5
6 layout(passthrough) in gl_PerVertex
7 {
8 vec4 gl_Position;
9 } gl_in[];
10
11 layout(passthrough, location = 0) in VertexBlock
12 {
13 int a;
14 int b;
15 } v1[];
16
17 layout(location = 2) in VertexBlock2
18 {
19 int a;
20 layout(passthrough) int b;
21 } v2[];
22
23 layout(passthrough, location = 4) in vec4 vPoint[];
24
25 void main()
26 {
27 gl_Layer = gl_InvocationID + v1[0].a + v2[1].b;
28 }