File: spv.xfbOffsetOnStructMembersAssignment.vert

package info (click to toggle)
glslang 16.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,084 kB
  • sloc: cpp: 90,714; yacc: 4,243; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (23 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#version 450

layout(xfb_buffer=2) out;

struct S {
   float x1_out;
   float x2_out;
};

layout(location=0, xfb_offset = 16) out S s1;

layout(location=5, xfb_buffer=1, xfb_offset=8) out struct S2 {
   float y1_out;
   vec4 y2_out;
}s2;

void main() {
   s1.x1_out = 5.0;
   s1.x2_out = 6.0;
   s2.y1_out = 7.0;
   s2.y2_out = vec4(1.0, 0.0, 0.0, 1.0);
   gl_Position = vec4(0.0);
}