| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos Glslang Reference Front End; 7 |
| ; Bound: 35 |
| ; Schema: 0 |
| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %gl_GlobalInvocationID |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpSource GLSL 450 |
| OpName %main "main" |
| OpName %SSBO0 "SSBO0" |
| OpMemberName %SSBO0 0 "a" |
| OpName %_ "" |
| OpName %gl_GlobalInvocationID "gl_GlobalInvocationID" |
| OpName %SSBO1 "SSBO1" |
| OpMemberName %SSBO1 0 "b" |
| OpName %__0 "" |
| OpDecorate %_runtimearr_v4float ArrayStride 16 |
| OpMemberDecorate %SSBO0 0 Offset 0 |
| OpDecorate %SSBO0 BufferBlock |
| OpDecorate %_ DescriptorSet 0 |
| OpDecorate %_ Binding 0 |
| OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId |
| OpDecorate %_runtimearr_v4float_0 ArrayStride 16 |
| OpMemberDecorate %SSBO1 0 Offset 0 |
| OpDecorate %SSBO1 BufferBlock |
| OpDecorate %__0 DescriptorSet 0 |
| OpDecorate %__0 Binding 1 |
| %void = OpTypeVoid |
| %3 = OpTypeFunction %void |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_runtimearr_v4float = OpTypeRuntimeArray %v4float |
| %SSBO0 = OpTypeStruct %_runtimearr_v4float |
| %_ptr_Uniform_SSBO0 = OpTypePointer Uniform %SSBO0 |
| %_ = OpVariable %_ptr_Uniform_SSBO0 Uniform |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %uint = OpTypeInt 32 0 |
| %v3uint = OpTypeVector %uint 3 |
| %_ptr_Input_v3uint = OpTypePointer Input %v3uint |
| %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %float_1 = OpConstant %float 1 |
| %23 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %_runtimearr_v4float_0 = OpTypeRuntimeArray %v4float |
| %SSBO1 = OpTypeStruct %_runtimearr_v4float_0 |
| %_ptr_Uniform_SSBO1 = OpTypePointer Uniform %SSBO1 |
| %__0 = OpVariable %_ptr_Uniform_SSBO1 Uniform |
| %float_2 = OpConstant %float 2 |
| %33 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2 |
| %main = OpFunction %void None %3 |
| %5 = OpLabel |
| %20 = OpAccessChain %_ptr_Input_uint %gl_GlobalInvocationID %uint_0 |
| %21 = OpLoad %uint %20 |
| %25 = OpAccessChain %_ptr_Uniform_v4float %_ %int_0 %21 |
| OpStore %25 %23 |
| %34 = OpAccessChain %_ptr_Uniform_v4float %__0 %int_0 %21 |
| OpStore %34 %33 |
| OpReturn |
| OpFunctionEnd |