• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2
3layout(xfb_buffer=2) out;
4
5struct S {
6   float x1_out;
7   float x2_out;
8};
9
10layout(location=0, xfb_offset = 16) out S s1;
11
12layout(location=5, xfb_buffer=1, xfb_offset=8) out struct S2 {
13   float y1_out;
14   vec4 y2_out;
15}s2;
16
17void main() {
18   s1.x1_out = 5.0;
19   s1.x2_out = 6.0;
20   s2.y1_out = 7.0;
21   s2.y2_out = vec4(1.0, 0.0, 0.0, 1.0);
22   gl_Position = vec4(0.0);
23}
24