blob: dbc9b2f175b76eff8fd9b63b63c8c20871d0b4d0 [file] [log] [blame]
Jeff Bolz9f2aec42019-01-06 17:58:04 -06001#version 450
2
3#extension GL_EXT_buffer_reference : enable
4
5layout(buffer_reference, std430) buffer blockType {
6 layout(offset = 0) int a;
7 layout(offset = 4) int b;
8 layout(offset = 8) int c;
9 layout(offset = 12) int d;
10 layout(offset = 16) int e;
11};
12
13layout(std430, buffer_reference) buffer t2 {
14 blockType f;
15 blockType g;
16} t;
17
18layout(std430) buffer t3 {
19 t2 f;
20} u;
21
22void main() {
23 t.f = blockType(u.f);
24}