SPIRV-Cross/shaders-msl/masking/copy-arrays.mask-location-0.msl2.tesc
Hans-Kristian Arntzen ae9ca7d73c MSL: Fix copy of arrays to/from stage IO variables.
Need to take into account effective storage classes and whether or not
we target stage IO blocks since native arrays are conditionally enabled.
2021-04-19 12:10:49 +02:00

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]);
}
}