mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
de33d89074
Needed for newer glslang. With Vulkan semantics for SPIR-V, all locations must be explicitly defined.
18 lines
365 B
GLSL
18 lines
365 B
GLSL
#version 310 es
|
|
#extension GL_EXT_tessellation_shader : require
|
|
|
|
layout(location = 0) patch out vec3 vFoo;
|
|
|
|
layout(vertices = 1) out;
|
|
|
|
void main()
|
|
{
|
|
gl_TessLevelInner[0] = 8.9;
|
|
gl_TessLevelInner[1] = 6.9;
|
|
gl_TessLevelOuter[0] = 8.9;
|
|
gl_TessLevelOuter[1] = 6.9;
|
|
gl_TessLevelOuter[2] = 3.9;
|
|
gl_TessLevelOuter[3] = 4.9;
|
|
vFoo = vec3(1.0);
|
|
}
|