File: spv.noexplicitlayout.comp

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

layout (local_size_x = 64, local_size_y = 1, local_size_z = 1) in;

layout(set = 0, binding = 0, std430) buffer foo {
    int x[4];
} f;

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

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

void main() {
    f.x;
    int x[4] = {0,0,0,0};
    Bar new_bar;
    b = new_bar;
}