| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 26 |
| ; 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 %p "p" |
| OpName %w "w" |
| 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 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %7 = OpConstantNull %float |
| %p = OpVariable %_ptr_Private_float Private %7 |
| %_ptr_Workgroup_float = OpTypePointer Workgroup %float |
| %w = OpVariable %_ptr_Workgroup_float Workgroup |
| %void = OpTypeVoid |
| %10 = OpTypeFunction %void %uint |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %21 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %10 |
| %local_invocation_index = OpFunctionParameter %uint |
| %14 = OpLabel |
| OpStore %w %7 |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %18 = OpLoad %float %p |
| %19 = OpLoad %float %w |
| %20 = OpFAdd %float %18 %19 |
| OpStore %p %20 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %21 |
| %23 = OpLabel |
| %25 = OpLoad %uint %local_invocation_index_1 |
| %24 = OpFunctionCall %void %main_inner %25 |
| OpReturn |
| OpFunctionEnd |