glslang/Test/link.tesselation.tesc
2021-07-09 09:51:16 -07:00

22 lines
392 B
GLSL

#version 440
layout(location = 0) in Primitive
{
vec2 texCoord;
} IN[];
layout(location = 0) out Primitive
{
vec2 texCoord;
} OUT[];
layout(vertices = 3) out;
void main()
{
OUT[gl_InvocationID].texCoord = IN[gl_InvocationID].texCoord;
float tessLevel = 10.0;
gl_TessLevelOuter[gl_InvocationID] = tessLevel;
gl_TessLevelInner[0] = tessLevel;
}