1; SPIR-V
2; Version: 1.0
3; Generator: Khronos Glslang Reference Front End; 6
4; Bound: 26
5; Schema: 0
6               OpCapability Shader
7          %1 = OpExtInstImport "GLSL.std.450"
8               OpMemoryModel Logical GLSL450
9               OpEntryPoint GLCompute %main "main" %gl_WorkGroupID %gl_GlobalInvocationID
10               OpExecutionMode %main LocalSize 1 1 1
11               OpSource GLSL 450
12               OpName %main "main"
13               OpName %BUF "BUF"
14               OpMemberName %BUF 0 "values"
15               OpName %_ ""
16               OpName %gl_WorkGroupID "gl_WorkGroupID"
17               OpName %gl_GlobalInvocationID "gl_GlobalInvocationID"
18               OpDecorate %_runtimearr_int ArrayStride 4
19               OpMemberDecorate %BUF 0 Offset 0
20               OpDecorate %BUF BufferBlock
21               OpDecorate %_ DescriptorSet 0
22               OpDecorate %_ Binding 0
23               OpDecorate %gl_WorkGroupID BuiltIn WorkgroupId
24               OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
25       %void = OpTypeVoid
26        %int = OpTypeInt 32 1
27%_runtimearr_int = OpTypeRuntimeArray %int
28          %3 = OpTypeFunction %void
29        %BUF = OpTypeStruct %_runtimearr_int
30%_ptr_Uniform_BUF = OpTypePointer Uniform %BUF
31          %_ = OpVariable %_ptr_Uniform_BUF Uniform
32      %int_0 = OpConstant %int 0
33     %v3int = OpTypeVector %int 3
34%_ptr_Input_v3int = OpTypePointer Input %v3int
35%gl_WorkGroupID = OpVariable %_ptr_Input_v3int Input
36     %int_1 = OpConstant %int 1
37%_ptr_Input_int = OpTypePointer Input %int
38%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3int Input
39     %int_2 = OpConstant %int 2
40%_ptr_Uniform_int = OpTypePointer Uniform %int
41       %main = OpFunction %void None %3
42          %5 = OpLabel
43         %18 = OpAccessChain %_ptr_Input_int %gl_WorkGroupID %int_1
44         %19 = OpLoad %int %18
45         %22 = OpAccessChain %_ptr_Input_int %gl_GlobalInvocationID %int_2
46         %23 = OpLoad %int %22
47         %25 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %19
48               OpStore %25 %23
49               OpReturn
50               OpFunctionEnd
51