| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 27 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %local_invocation_index_1 |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %local_invocation_index_1 "local_invocation_index_1" |
| OpName %S "S" |
| OpName %func_S "func_S" |
| OpName %main_inner "main_inner" |
| OpName %local_invocation_index "local_invocation_index" |
| OpName %main "main" |
| OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %local_invocation_index_1 = OpVariable %_ptr_Input_uint Input |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Workgroup_v4float = OpTypePointer Workgroup %v4float |
| %S = OpVariable %_ptr_Workgroup_v4float Workgroup |
| %8 = OpTypeFunction %v4float |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void %uint |
| %17 = OpConstantNull %v4float |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %22 = OpTypeFunction %void |
| %func_S = OpFunction %v4float None %8 |
| %10 = OpLabel |
| %11 = OpLoad %v4float %S |
| OpReturnValue %11 |
| OpFunctionEnd |
| %main_inner = OpFunction %void None %12 |
| %local_invocation_index = OpFunctionParameter %uint |
| %16 = OpLabel |
| OpStore %S %17 |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %21 = OpFunctionCall %v4float %func_S |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %22 |
| %24 = OpLabel |
| %26 = OpLoad %uint %local_invocation_index_1 |
| %25 = OpFunctionCall %void %main_inner %26 |
| OpReturn |
| OpFunctionEnd |