23 lines
441 B
GLSL
23 lines
441 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(xfb_buffer = 1, xfb_stride = 20) out gl_PerVertex
|
||
|
{
|
||
|
layout(xfb_offset = 4) vec4 gl_Position;
|
||
|
float gl_PointSize;
|
||
|
};
|
||
|
|
||
|
layout(location = 0, xfb_buffer = 2, xfb_stride = 32, xfb_offset = 16) out vec4 vFoo;
|
||
|
layout(xfb_buffer = 3, xfb_stride = 16) out VertOut
|
||
|
{
|
||
|
layout(location = 1, xfb_offset = 0) vec4 vBar;
|
||
|
} _22;
|
||
|
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = vec4(1.0);
|
||
|
vFoo = vec4(3.0);
|
||
|
_22.vBar = vec4(5.0);
|
||
|
}
|
||
|
|