| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 27 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability GroupNonUniform |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_subgroup_invocation_id_Input %main_subgroup_size_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %tint_symbol_1 0 "tint_symbol" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main_subgroup_invocation_id_Input "main_subgroup_invocation_id_Input" |
| OpName %main_subgroup_size_Input "main_subgroup_size_Input" |
| OpName %main_inner "main_inner" |
| OpMemberName %ComputeInputs 0 "subgroup_invocation_id" |
| OpMemberName %ComputeInputs 1 "subgroup_size" |
| OpName %ComputeInputs "ComputeInputs" |
| OpName %inputs "inputs" |
| OpName %main "main" |
| OpDecorate %_runtimearr_uint ArrayStride 4 |
| OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| OpDecorate %tint_symbol_1 Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| OpDecorate %main_subgroup_invocation_id_Input BuiltIn SubgroupLocalInvocationId |
| OpDecorate %main_subgroup_size_Input BuiltIn SubgroupSize |
| OpMemberDecorate %ComputeInputs 0 Offset 0 |
| OpMemberDecorate %ComputeInputs 1 Offset 4 |
| %uint = OpTypeInt 32 0 |
| %_runtimearr_uint = OpTypeRuntimeArray %uint |
| %tint_symbol_1 = OpTypeStruct %_runtimearr_uint |
| %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_subgroup_invocation_id_Input = OpVariable %_ptr_Input_uint Input |
| %main_subgroup_size_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %ComputeInputs = OpTypeStruct %uint %uint |
| %13 = OpTypeFunction %void %ComputeInputs |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %uint_0 = OpConstant %uint 0 |
| %21 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %13 |
| %inputs = OpFunctionParameter %ComputeInputs |
| %14 = OpLabel |
| %15 = OpCompositeExtract %uint %inputs 0 |
| %16 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %15 |
| %19 = OpCompositeExtract %uint %inputs 1 |
| OpStore %16 %19 None |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %21 |
| %22 = OpLabel |
| %23 = OpLoad %uint %main_subgroup_invocation_id_Input None |
| %24 = OpLoad %uint %main_subgroup_size_Input None |
| %25 = OpCompositeConstruct %ComputeInputs %23 %24 |
| %26 = OpFunctionCall %void %main_inner %25 |
| OpReturn |
| OpFunctionEnd |