| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 48 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %compute_main "compute_main" %compute_main_local_invocation_index_Input |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpName %wg "wg" |
| OpName %compute_main_local_invocation_index_Input "compute_main_local_invocation_index_Input" |
| OpName %compute_main_inner "compute_main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| OpDecorate %_arr__arr_uint_uint_1_uint_2 ArrayStride 4 |
| OpDecorate %_arr__arr__arr_uint_uint_1_uint_2_uint_3 ArrayStride 8 |
| OpDecorate %compute_main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %uint = OpTypeInt 32 0 |
| %uint_1 = OpConstant %uint 1 |
| %_arr_uint_uint_1 = OpTypeArray %uint %uint_1 |
| %uint_2 = OpConstant %uint 2 |
| %_arr__arr_uint_uint_1_uint_2 = OpTypeArray %_arr_uint_uint_1 %uint_2 |
| %uint_3 = OpConstant %uint 3 |
| %_arr__arr__arr_uint_uint_1_uint_2_uint_3 = OpTypeArray %_arr__arr_uint_uint_1_uint_2 %uint_3 |
| %_ptr_Workgroup__arr__arr__arr_uint_uint_1_uint_2_uint_3 = OpTypePointer Workgroup %_arr__arr__arr_uint_uint_1_uint_2_uint_3 |
| %wg = OpVariable %_ptr_Workgroup__arr__arr__arr_uint_uint_1_uint_2_uint_3 Workgroup |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %compute_main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void %uint |
| %uint_6 = OpConstant %uint 6 |
| %bool = OpTypeBool |
| %_ptr_Workgroup_uint = OpTypePointer Workgroup %uint |
| %uint_0 = OpConstant %uint 0 |
| %uint_264 = OpConstant %uint 264 |
| %int = OpTypeInt 32 1 |
| %int_2 = OpConstant %int 2 |
| %int_1 = OpConstant %int 1 |
| %int_0 = OpConstant %int 0 |
| %44 = OpTypeFunction %void |
| %compute_main_inner = OpFunction %void None %15 |
| %tint_local_index = OpFunctionParameter %uint |
| %16 = OpLabel |
| OpBranch %17 |
| %17 = OpLabel |
| OpBranch %20 |
| %20 = OpLabel |
| %22 = OpPhi %uint %tint_local_index %17 %23 %19 |
| OpLoopMerge %21 %19 None |
| OpBranch %18 |
| %18 = OpLabel |
| %24 = OpUGreaterThanEqual %bool %22 %uint_6 |
| OpSelectionMerge %27 None |
| OpBranchConditional %24 %28 %27 |
| %28 = OpLabel |
| OpBranch %21 |
| %27 = OpLabel |
| %29 = OpUMod %uint %22 %uint_2 |
| %30 = OpUDiv %uint %22 %uint_2 |
| %31 = OpAccessChain %_ptr_Workgroup_uint %wg %30 %29 %uint_0 |
| OpAtomicStore %31 %uint_2 %uint_0 %uint_0 |
| OpBranch %19 |
| %19 = OpLabel |
| %23 = OpIAdd %uint %22 %uint_1 |
| OpBranch %20 |
| %21 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %37 = OpAccessChain %_ptr_Workgroup_uint %wg %int_2 %int_1 %int_0 |
| OpAtomicStore %37 %uint_2 %uint_0 %uint_1 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %44 |
| %45 = OpLabel |
| %46 = OpLoad %uint %compute_main_local_invocation_index_Input None |
| %47 = OpFunctionCall %void %compute_main_inner %46 |
| OpReturn |
| OpFunctionEnd |