mirror of
https://github.com/RPCS3/glslang.git
synced 2025-04-01 12:51:34 +00:00

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();
|
|
}
|