ae9ca7d73c
Need to take into account effective storage classes and whether or not we target stage IO blocks since native arrays are conditionally enabled.
18 lines
387 B
GLSL
18 lines
387 B
GLSL
#version 450
|
|
|
|
layout(vertices = 4) out;
|
|
layout(location = 0) out vec4 Foo[][2];
|
|
layout(location = 0) in vec4 iFoo[][2];
|
|
layout(location = 2) patch out vec4 pFoo[2];
|
|
layout(location = 2) in vec4 ipFoo[];
|
|
|
|
void main()
|
|
{
|
|
gl_out[gl_InvocationID].gl_Position = vec4(1.0);
|
|
Foo[gl_InvocationID] = iFoo[gl_InvocationID];
|
|
if (gl_InvocationID == 0)
|
|
{
|
|
pFoo = vec4[](ipFoo[0], ipFoo[1]);
|
|
}
|
|
}
|