You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
808 B
33 lines
808 B
4 months ago
|
#version 450
|
||
|
|
||
|
#define MAX_VER 81
|
||
|
#define MAX_PRIM 32
|
||
|
#define MAX_VIEWS gl_MaxMeshViewCountNV
|
||
|
|
||
|
#extension GL_NV_mesh_shader : enable
|
||
|
|
||
|
layout(local_size_x = 32) in;
|
||
|
|
||
|
layout(max_vertices=MAX_VER) out;
|
||
|
layout(max_primitives=MAX_PRIM) out;
|
||
|
layout(triangles) out;
|
||
|
|
||
|
// test error checks for use of incorrect per-view attributes
|
||
|
|
||
|
// per-view block attributes
|
||
|
perviewNV layout(location=0) out perviewBlock {
|
||
|
vec4 missingInnermostDimSize1[][];
|
||
|
vec4 incorrectViewDimSize1[MAX_VIEWS+1];
|
||
|
vec4 missingViewDim1;
|
||
|
} b2[];
|
||
|
|
||
|
// per-view non-block attributes
|
||
|
perviewNV layout(location=10) out vec4 missingInnermostDimSize2[][][];
|
||
|
perviewNV layout(location=11) out vec4 incorrectViewDimSize2[][MAX_VIEWS-1];
|
||
|
perviewNV layout(location=12) out vec4 missingViewDim2[];
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
}
|
||
|
|