| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 24 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability GroupNonUniform |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %subgroup_invocation_id_1 %subgroup_size_1 |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %subgroup_invocation_id_1 "subgroup_invocation_id_1" |
| OpName %subgroup_size_1 "subgroup_size_1" |
| OpName %output_block "output_block" |
| OpMemberName %output_block 0 "inner" |
| OpName %output "output" |
| OpName %main_inner "main_inner" |
| OpName %subgroup_invocation_id "subgroup_invocation_id" |
| OpName %subgroup_size "subgroup_size" |
| OpName %main "main" |
| OpDecorate %subgroup_invocation_id_1 BuiltIn SubgroupLocalInvocationId |
| OpDecorate %subgroup_size_1 BuiltIn SubgroupSize |
| OpDecorate %output_block Block |
| OpMemberDecorate %output_block 0 Offset 0 |
| OpDecorate %_runtimearr_uint ArrayStride 4 |
| OpDecorate %output DescriptorSet 0 |
| OpDecorate %output Binding 0 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %subgroup_invocation_id_1 = OpVariable %_ptr_Input_uint Input |
| %subgroup_size_1 = OpVariable %_ptr_Input_uint Input |
| %_runtimearr_uint = OpTypeRuntimeArray %uint |
| %output_block = OpTypeStruct %_runtimearr_uint |
| %_ptr_StorageBuffer_output_block = OpTypePointer StorageBuffer %output_block |
| %output = OpVariable %_ptr_StorageBuffer_output_block StorageBuffer |
| %void = OpTypeVoid |
| %9 = OpTypeFunction %void %uint %uint |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %18 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %9 |
| %subgroup_invocation_id = OpFunctionParameter %uint |
| %subgroup_size = OpFunctionParameter %uint |
| %14 = OpLabel |
| %17 = OpAccessChain %_ptr_StorageBuffer_uint %output %uint_0 %subgroup_invocation_id |
| OpStore %17 %subgroup_size |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %18 |
| %20 = OpLabel |
| %22 = OpLoad %uint %subgroup_invocation_id_1 |
| %23 = OpLoad %uint %subgroup_size_1 |
| %21 = OpFunctionCall %void %main_inner %22 %23 |
| OpReturn |
| OpFunctionEnd |