SPIRV-Cross/shaders-msl-no-opt/tesc/passthrough-clip-cull.multi-patch.tesc
Hans-Kristian Arntzen a159334895 MSL: Correctly analyze if builtin block is active.
Need to consider all members, bi_type is invalid for Blocks, need to
look at member decorations.
2021-04-19 12:10:49 +02:00

23 lines
494 B
GLSL

#version 450
layout(vertices = 4) out;
in gl_PerVertex
{
float gl_ClipDistance[2];
float gl_CullDistance[1];
} gl_in[];
out gl_PerVertex
{
float gl_ClipDistance[2];
float gl_CullDistance[1];
} gl_out[];
void main()
{
gl_out[gl_InvocationID].gl_ClipDistance[0] = gl_in[gl_InvocationID].gl_ClipDistance[0];
gl_out[gl_InvocationID].gl_ClipDistance[1] = gl_in[gl_InvocationID].gl_ClipDistance[1];
gl_out[gl_InvocationID].gl_CullDistance[0] = gl_in[gl_InvocationID].gl_CullDistance[0];
}