• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2
3#extension GL_EXT_buffer_reference : enable
4
5layout(buffer_reference, std430) buffer t3 {
6    int h;
7};
8
9layout(set = 1, binding = 2, buffer_reference, std430) buffer t4 {
10    layout(offset = 0)  int j;
11    t3 k;
12} x;
13
14layout(std430) buffer t5 {
15    t4 m;
16} s5;
17
18flat in t4 k;
19
20t4 foo(t4 y) { return y; }
21
22void main() {
23    foo(s5.m).j = s5.m.k.h;
24    x.j = k.k.h;
25}
26