SPIRV-Cross/reference/opt/shaders/desktop-only/tesc/basic.desktop.sso.tesc
Hans-Kristian Arntzen 7c1e34f3b9 GLSL: Fix array of input patch variables.
Hoist out the hack to make array sizes unsized to a place where we can
differentiate patch variables from control point variables.
2019-12-10 12:02:12 +01:00

28 lines
624 B
GLSL

#version 450
layout(vertices = 1) out;
in gl_PerVertex
{
vec4 gl_Position;
} gl_in[];
out gl_PerVertex
{
vec4 gl_Position;
} gl_out[1];
layout(location = 0) patch out vec3 vFoo;
void main()
{
gl_TessLevelInner[0] = 8.8999996185302734375;
gl_TessLevelInner[1] = 6.900000095367431640625;
gl_TessLevelOuter[0] = 8.8999996185302734375;
gl_TessLevelOuter[1] = 6.900000095367431640625;
gl_TessLevelOuter[2] = 3.900000095367431640625;
gl_TessLevelOuter[3] = 4.900000095367431640625;
vFoo = vec3(1.0);
gl_out[gl_InvocationID].gl_Position = gl_in[0].gl_Position + gl_in[1].gl_Position;
}