| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 32 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %S "S" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %func "func" |
| OpName %main_inner "main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %r "r" |
| OpName %main "main" |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Workgroup_v4float = OpTypePointer Workgroup %v4float |
| %S = OpVariable %_ptr_Workgroup_v4float Workgroup |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %9 = OpTypeFunction %v4float |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void %uint |
| %uint_0 = OpConstant %uint 0 |
| %bool = OpTypeBool |
| %22 = OpConstantNull %v4float |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %28 = OpTypeFunction %void |
| %func = OpFunction %v4float None %9 |
| %10 = OpLabel |
| %11 = OpLoad %v4float %S None |
| OpReturnValue %11 |
| OpFunctionEnd |
| %main_inner = OpFunction %void None %15 |
| %tint_local_index = OpFunctionParameter %uint |
| %16 = OpLabel |
| %17 = OpIEqual %bool %tint_local_index %uint_0 |
| OpSelectionMerge %20 None |
| OpBranchConditional %17 %21 %20 |
| %21 = OpLabel |
| OpStore %S %22 None |
| OpBranch %20 |
| %20 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %r = OpFunctionCall %v4float %func |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %28 |
| %29 = OpLabel |
| %30 = OpLoad %uint %main_local_invocation_index_Input None |
| %31 = OpFunctionCall %void %main_inner %30 |
| OpReturn |
| OpFunctionEnd |