| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 29 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %S 0 "a" |
| OpMemberName %S 1 "b" |
| OpName %S "S" |
| OpName %v "v" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %main_inner "main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %main "main" |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 4 |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %int = OpTypeInt 32 1 |
| %float = OpTypeFloat 32 |
| %S = OpTypeStruct %int %float |
| %_ptr_Workgroup_S = OpTypePointer Workgroup %S |
| %v = OpVariable %_ptr_Workgroup_S Workgroup |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void %uint |
| %uint_0 = OpConstant %uint 0 |
| %bool = OpTypeBool |
| %19 = OpConstantNull %S |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %25 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %12 |
| %tint_local_index = OpFunctionParameter %uint |
| %13 = OpLabel |
| %14 = OpIEqual %bool %tint_local_index %uint_0 |
| OpSelectionMerge %17 None |
| OpBranchConditional %14 %18 %17 |
| %18 = OpLabel |
| OpStore %v %19 None |
| OpBranch %17 |
| %17 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %23 = OpLoad %S %v None |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %25 |
| %26 = OpLabel |
| %27 = OpLoad %uint %main_local_invocation_index_Input None |
| %28 = OpFunctionCall %void %main_inner %27 |
| OpReturn |
| OpFunctionEnd |