| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 44 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %x_2_param_1 |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %x_2_param_1 "x_2_param_1" |
| OpName %x_2 "x_2" |
| OpName %S "S" |
| OpMemberName %S 0 "field0" |
| OpName %x_5 "x_5" |
| OpName %x_6 "x_6" |
| OpName %x_7 "x_7" |
| OpName %main_1 "main_1" |
| OpName %main_inner "main_inner" |
| OpName %x_2_param "x_2_param" |
| OpName %main "main" |
| OpDecorate %x_2_param_1 BuiltIn GlobalInvocationId |
| OpDecorate %S Block |
| OpMemberDecorate %S 0 Offset 0 |
| OpDecorate %_runtimearr_uint ArrayStride 4 |
| OpDecorate %x_5 DescriptorSet 0 |
| OpDecorate %x_5 Binding 0 |
| OpDecorate %x_6 DescriptorSet 0 |
| OpDecorate %x_6 Binding 1 |
| OpDecorate %x_7 DescriptorSet 0 |
| OpDecorate %x_7 Binding 2 |
| %uint = OpTypeInt 32 0 |
| %v3uint = OpTypeVector %uint 3 |
| %_ptr_Input_v3uint = OpTypePointer Input %v3uint |
| %x_2_param_1 = OpVariable %_ptr_Input_v3uint Input |
| %_ptr_Private_v3uint = OpTypePointer Private %v3uint |
| %7 = OpConstantNull %v3uint |
| %x_2 = OpVariable %_ptr_Private_v3uint Private %7 |
| %_runtimearr_uint = OpTypeRuntimeArray %uint |
| %S = OpTypeStruct %_runtimearr_uint |
| %_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S |
| %x_5 = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
| %x_6 = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
| %x_7 = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
| %void = OpTypeVoid |
| %14 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Private_uint = OpTypePointer Private %uint |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %int = OpTypeInt 32 1 |
| %bool = OpTypeBool |
| %uint_1 = OpConstant %uint 1 |
| %35 = OpTypeFunction %void %v3uint |
| %main_1 = OpFunction %void None %14 |
| %17 = OpLabel |
| %20 = OpAccessChain %_ptr_Private_uint %x_2 %uint_0 |
| %21 = OpLoad %uint %20 |
| %23 = OpAccessChain %_ptr_StorageBuffer_uint %x_5 %uint_0 %21 |
| %24 = OpLoad %uint %23 |
| %25 = OpAccessChain %_ptr_StorageBuffer_uint %x_6 %uint_0 %21 |
| %26 = OpLoad %uint %25 |
| %27 = OpAccessChain %_ptr_StorageBuffer_uint %x_7 %uint_0 %21 |
| %29 = OpBitcast %int %24 |
| %31 = OpBitcast %int %26 |
| %32 = OpSGreaterThanEqual %bool %29 %31 |
| %28 = OpSelect %uint %32 %uint_1 %uint_0 |
| OpStore %27 %28 |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %void None %35 |
| %x_2_param = OpFunctionParameter %v3uint |
| %38 = OpLabel |
| OpStore %x_2 %x_2_param |
| %39 = OpFunctionCall %void %main_1 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %14 |
| %41 = OpLabel |
| %43 = OpLoad %v3uint %x_2_param_1 |
| %42 = OpFunctionCall %void %main_inner %43 |
| OpReturn |
| OpFunctionEnd |