; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 ; Bound: 58 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1_param_1 OpExecutionMode %compute_main LocalSize 1 1 1 OpName %local_invocation_index_1_param_1 "local_invocation_index_1_param_1" OpName %local_invocation_index_1 "local_invocation_index_1" OpName %S_atomic "S_atomic" OpMemberName %S_atomic 0 "x" OpMemberName %S_atomic 1 "a" OpMemberName %S_atomic 2 "b" OpName %wg "wg" OpName %compute_main_inner "compute_main_inner" OpName %local_invocation_index_2 "local_invocation_index_2" OpName %compute_main_1 "compute_main_1" OpName %compute_main_inner_1 "compute_main_inner_1" OpName %local_invocation_index_1_param "local_invocation_index_1_param" OpName %compute_main "compute_main" OpDecorate %local_invocation_index_1_param_1 BuiltIn LocalInvocationIndex OpMemberDecorate %S_atomic 0 Offset 0 OpMemberDecorate %S_atomic 1 Offset 4 OpMemberDecorate %S_atomic 2 Offset 8 %uint = OpTypeInt 32 0 %_ptr_Input_uint = OpTypePointer Input %uint %local_invocation_index_1_param_1 = OpVariable %_ptr_Input_uint Input %_ptr_Private_uint = OpTypePointer Private %uint %6 = OpConstantNull %uint %local_invocation_index_1 = OpVariable %_ptr_Private_uint Private %6 %int = OpTypeInt 32 1 %S_atomic = OpTypeStruct %int %uint %uint %_ptr_Workgroup_S_atomic = OpTypePointer Workgroup %S_atomic %wg = OpVariable %_ptr_Workgroup_S_atomic Workgroup %void = OpTypeVoid %11 = OpTypeFunction %void %uint %uint_0 = OpConstant %uint 0 %_ptr_Workgroup_int = OpTypePointer Workgroup %int %19 = OpConstantNull %int %uint_2 = OpConstant %uint 2 %uint_1 = OpConstant %uint 1 %_ptr_Workgroup_uint = OpTypePointer Workgroup %uint %uint_264 = OpConstant %uint 264 %37 = OpTypeFunction %void %compute_main_inner = OpFunction %void None %11 %local_invocation_index_2 = OpFunctionParameter %uint %15 = OpLabel %18 = OpAccessChain %_ptr_Workgroup_int %wg %uint_0 OpStore %18 %19 %25 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_1 OpAtomicStore %25 %uint_2 %uint_0 %6 %28 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_2 OpAtomicStore %28 %uint_2 %uint_0 %6 OpControlBarrier %uint_2 %uint_2 %uint_264 %33 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_1 OpAtomicStore %33 %uint_2 %uint_0 %uint_1 %36 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_2 OpAtomicStore %36 %uint_2 %uint_0 %uint_2 OpReturn OpFunctionEnd %compute_main_1 = OpFunction %void None %37 %39 = OpLabel %40 = OpLoad %uint %local_invocation_index_1 %41 = OpFunctionCall %void %compute_main_inner %40 OpReturn OpFunctionEnd %compute_main_inner_1 = OpFunction %void None %11 %local_invocation_index_1_param = OpFunctionParameter %uint %44 = OpLabel %45 = OpAccessChain %_ptr_Workgroup_int %wg %uint_0 OpStore %45 %19 %48 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_1 OpAtomicStore %48 %uint_2 %uint_0 %6 %51 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_2 OpAtomicStore %51 %uint_2 %uint_0 %6 OpControlBarrier %uint_2 %uint_2 %uint_264 OpStore %local_invocation_index_1 %local_invocation_index_1_param %53 = OpFunctionCall %void %compute_main_1 OpReturn OpFunctionEnd %compute_main = OpFunction %void None %37 %55 = OpLabel %57 = OpLoad %uint %local_invocation_index_1_param_1 %56 = OpFunctionCall %void %compute_main_inner_1 %57 OpReturn OpFunctionEnd