mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
20 lines
324 B
Plaintext
20 lines
324 B
Plaintext
|
#version 440
|
||
|
|
||
|
layout(triangles) in;
|
||
|
layout(triangle_strip, max_vertices=3) out;
|
||
|
|
||
|
layout(location = 0) in Inputs {
|
||
|
vec4 a1;
|
||
|
vec2 a2;
|
||
|
} gin[3];
|
||
|
|
||
|
layout(location = 0) out vec4 a1;
|
||
|
layout(location = 1) out vec2 a2;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
a1 = vec4(1.0);
|
||
|
a2 = vec2(0.5);
|
||
|
gl_Position = vec4(1.0);
|
||
|
}
|