5 #define MAX_VIEWS gl_MaxMeshViewCountNV
\r
7 #extension GL_NV_mesh_shader : enable
\r
9 layout(local_size_x = 32) in;
\r
11 layout(max_vertices=MAX_VER) out;
\r
12 layout(max_primitives=MAX_PRIM) out;
\r
13 layout(triangles) out;
\r
15 // test error checks for use of incorrect per-view attributes
\r
17 // per-view block attributes
\r
18 perviewNV layout(location=0) out perviewBlock {
\r
19 vec4 missingInnermostDimSize1[][];
\r
20 vec4 incorrectViewDimSize1[MAX_VIEWS+1];
\r
21 vec4 missingViewDim1;
\r
24 // per-view non-block attributes
\r
25 perviewNV layout(location=10) out vec4 missingInnermostDimSize2[][][];
\r
26 perviewNV layout(location=11) out vec4 incorrectViewDimSize2[][MAX_VIEWS-1];
\r
27 perviewNV layout(location=12) out vec4 missingViewDim2[];
\r