| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 34 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %v "v" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %foo "foo" |
| OpName %main_inner "main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %main "main" |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Workgroup_v4float = OpTypePointer Workgroup %v4float |
| %v = 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 |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %19 = OpTypeFunction %void %uint |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %28 = OpConstantNull %v4float |
| %30 = OpTypeFunction %void |
| %foo = OpFunction %v4float None %9 |
| %10 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %15 = OpLoad %v4float %v None |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| OpReturnValue %15 |
| OpFunctionEnd |
| %main_inner = OpFunction %void None %19 |
| %tint_local_index = OpFunctionParameter %uint |
| %20 = OpLabel |
| %21 = OpULessThan %bool %tint_local_index %uint_1 |
| OpSelectionMerge %24 None |
| OpBranchConditional %21 %25 %24 |
| %25 = OpLabel |
| OpStore %v %28 None |
| OpBranch %24 |
| %24 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %27 = OpFunctionCall %v4float %foo |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %30 |
| %31 = OpLabel |
| %32 = OpLoad %uint %main_local_invocation_index_Input None |
| %33 = OpFunctionCall %void %main_inner %32 |
| OpReturn |
| OpFunctionEnd |