mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
6f723ebbe3
when using multiple compilation units, input/output layouts don't need to be declared in every unit.
14 lines
191 B
GLSL
Executable File
14 lines
191 B
GLSL
Executable File
#version 330
|
|
|
|
layout(points) in;
|
|
layout(triangle_strip, max_vertices = 4) out;
|
|
|
|
float getV();
|
|
|
|
void main (void)
|
|
{
|
|
float v = getV();
|
|
EndPrimitive();
|
|
EndPrimitive();
|
|
}
|