| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 47 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpName %zero "zero" | |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" | |
| OpName %main_inner "main_inner" | |
| OpName %tint_local_index "tint_local_index" | |
| OpName %v "v" | |
| OpName %idx "idx" | |
| OpName %main "main" | |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex | |
| %int = OpTypeInt 32 1 | |
| %uint = OpTypeInt 32 0 | |
| %uint_3 = OpConstant %uint 3 | |
| %_arr_int_uint_3 = OpTypeArray %int %uint_3 | |
| %uint_2 = OpConstant %uint 2 | |
| %_arr__arr_int_uint_3_uint_2 = OpTypeArray %_arr_int_uint_3 %uint_2 | |
| %_ptr_Workgroup__arr__arr_int_uint_3_uint_2 = OpTypePointer Workgroup %_arr__arr_int_uint_3_uint_2 | |
| %zero = OpVariable %_ptr_Workgroup__arr__arr_int_uint_3_uint_2 Workgroup | |
| %_ptr_Input_uint = OpTypePointer Input %uint | |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input | |
| %void = OpTypeVoid | |
| %14 = OpTypeFunction %void %uint | |
| %uint_264 = OpConstant %uint 264 | |
| %_ptr_Function__arr__arr_int_uint_3_uint_2 = OpTypePointer Function %_arr__arr_int_uint_3_uint_2 | |
| %_ptr_Function_uint = OpTypePointer Function %uint | |
| %uint_6 = OpConstant %uint 6 | |
| %bool = OpTypeBool | |
| %_ptr_Workgroup_int = OpTypePointer Workgroup %int | |
| %int_0 = OpConstant %int 0 | |
| %uint_1 = OpConstant %uint 1 | |
| %43 = OpTypeFunction %void | |
| %main_inner = OpFunction %void None %14 | |
| %tint_local_index = OpFunctionParameter %uint | |
| %15 = OpLabel | |
| %v = OpVariable %_ptr_Function__arr__arr_int_uint_3_uint_2 Function | |
| %idx = OpVariable %_ptr_Function_uint Function | |
| OpBranch %16 | |
| %16 = OpLabel | |
| OpStore %idx %tint_local_index | |
| OpBranch %19 | |
| %19 = OpLabel | |
| OpLoopMerge %20 %18 None | |
| OpBranch %17 | |
| %17 = OpLabel | |
| %28 = OpLoad %uint %idx None | |
| %29 = OpUGreaterThanEqual %bool %28 %uint_6 | |
| OpSelectionMerge %32 None | |
| OpBranchConditional %29 %33 %32 | |
| %33 = OpLabel | |
| OpBranch %20 | |
| %32 = OpLabel | |
| %34 = OpUMod %uint %28 %uint_3 | |
| %35 = OpUDiv %uint %28 %uint_3 | |
| %36 = OpAccessChain %_ptr_Workgroup_int %zero %35 %34 | |
| OpStore %36 %int_0 None | |
| OpBranch %18 | |
| %18 = OpLabel | |
| %39 = OpLoad %uint %idx None | |
| %40 = OpIAdd %uint %39 %uint_1 | |
| OpStore %idx %40 None | |
| OpBranch %19 | |
| %20 = OpLabel | |
| OpControlBarrier %uint_2 %uint_2 %uint_264 | |
| %23 = OpLoad %_arr__arr_int_uint_3_uint_2 %zero None | |
| OpStore %v %23 | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %43 | |
| %44 = OpLabel | |
| %45 = OpLoad %uint %main_local_invocation_index_Input None | |
| %46 = OpFunctionCall %void %main_inner %45 | |
| OpReturn | |
| OpFunctionEnd |