File: copy_struct_0.glsl

package info (click to toggle)
spirv-reflect 1.4.328.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,260 kB
  • sloc: ansic: 13,975; cpp: 5,963; python: 140; sh: 76; makefile: 12
file content (23 lines) | stat: -rw-r--r-- 275 bytes parent folder | download
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

struct Bar {
   uint x;
   uint y;
   uint z[2];
};

layout(set = 0, binding = 0, std430) buffer foo1 {
    uvec4 a;
    Bar b;
    uint c;
};

layout(set = 0, binding = 1, std430) buffer foo2 {
    uvec4 d;
    Bar e;
    uint f;
};

void main() {
    b = e;
}