xref: /third_party/glslang/Test/spv.bufferhandle3.frag
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/glslang/Test/
1617a3babSopenharmony_ci#version 450
2617a3babSopenharmony_ci
3617a3babSopenharmony_ci#extension GL_EXT_buffer_reference : enable
4617a3babSopenharmony_ci
5617a3babSopenharmony_cilayout(buffer_reference, std430) buffer t3 {
6617a3babSopenharmony_ci    int h;
7617a3babSopenharmony_ci};
8617a3babSopenharmony_ci
9617a3babSopenharmony_cilayout(set = 1, binding = 2, buffer_reference, std430) buffer t4 {
10617a3babSopenharmony_ci    layout(offset = 0)  int j;
11617a3babSopenharmony_ci    t3 k;
12617a3babSopenharmony_ci} x;
13617a3babSopenharmony_ci
14617a3babSopenharmony_cilayout(std430) buffer t5 {
15617a3babSopenharmony_ci    t4 m;
16617a3babSopenharmony_ci} s5;
17617a3babSopenharmony_ci
18617a3babSopenharmony_ciflat in t4 k;
19617a3babSopenharmony_ci
20617a3babSopenharmony_cit4 foo(t4 y) { return y; }
21617a3babSopenharmony_ci
22617a3babSopenharmony_civoid main() {
23617a3babSopenharmony_ci    foo(s5.m).j = s5.m.k.h;
24617a3babSopenharmony_ci    x.j = k.k.h;
25617a3babSopenharmony_ci}
26

Indexes created Thu Nov 07 10:32:03 CST 2024