xref: /third_party/glslang/Test/spv.bufferhandle1.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#pragma use_vulkan_memory_model
5617a3babSopenharmony_ci
6617a3babSopenharmony_cilayout(buffer_reference, std430) buffer blockType {
7617a3babSopenharmony_ci    layout(offset = 0)  int a;
8617a3babSopenharmony_ci    layout(offset = 4)  int b;
9617a3babSopenharmony_ci    layout(offset = 8)  int c;
10617a3babSopenharmony_ci    layout(offset = 12) int d;
11617a3babSopenharmony_ci    layout(offset = 16) int e;
12617a3babSopenharmony_ci    layout(offset = 32) int f[2];
13617a3babSopenharmony_ci    coherent layout(offset = 48) ivec4 g;
14617a3babSopenharmony_ci};
15617a3babSopenharmony_ci
16617a3babSopenharmony_cilayout(std430) buffer t2 {
17617a3babSopenharmony_ci    blockType f;
18617a3babSopenharmony_ci    blockType g;
19617a3babSopenharmony_ci} t;
20617a3babSopenharmony_ci
21617a3babSopenharmony_civoid main() {
22617a3babSopenharmony_ci    t.f.b = t.g.a;
23617a3babSopenharmony_ci
24617a3babSopenharmony_ci    blockType j = t.f;
25617a3babSopenharmony_ci    j.d = j.c;
26617a3babSopenharmony_ci    j.d = j.f[1];
27617a3babSopenharmony_ci    j.d = j.g.y;
28617a3babSopenharmony_ci}
29

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