| OpCapability Shader | |
| %1 = OpExtInstImport "GLSL.std.450" | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %main "main" %_GLF_color | |
| OpExecutionMode %main OriginUpperLeft | |
| OpSource ESSL 310 | |
| OpName %main "main" | |
| OpName %_GLF_color "_GLF_color" | |
| OpName %j "j" | |
| OpName %buf0 "buf0" | |
| OpMemberName %buf0 0 "injectionSwitch" | |
| OpName %_ "" | |
| OpDecorate %_GLF_color Location 0 | |
| OpDecorate %j RelaxedPrecision | |
| OpMemberDecorate %buf0 0 Offset 0 | |
| OpDecorate %buf0 Block | |
| OpDecorate %_ DescriptorSet 0 | |
| OpDecorate %_ Binding 0 | |
| OpDecorate %7 RelaxedPrecision | |
| OpDecorate %8 RelaxedPrecision | |
| %void = OpTypeVoid | |
| %10 = OpTypeFunction %void | |
| %float = OpTypeFloat 32 | |
| %v4float = OpTypeVector %float 4 | |
| %_ptr_Output_v4float = OpTypePointer Output %v4float | |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output | |
| %float_1 = OpConstant %float 1 | |
| %float_0 = OpConstant %float 0 | |
| %16 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 | |
| %int = OpTypeInt 32 1 | |
| %_ptr_Function_int = OpTypePointer Function %int | |
| %v2float = OpTypeVector %float 2 | |
| %buf0 = OpTypeStruct %v2float | |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 | |
| %_ = OpVariable %_ptr_Uniform_buf0 Uniform | |
| %int_0 = OpConstant %int 0 | |
| %uint = OpTypeInt 32 0 | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_Uniform_float = OpTypePointer Uniform %float | |
| %int_2 = OpConstant %int 2 | |
| %bool = OpTypeBool | |
| %int_1 = OpConstant %int 1 | |
| %uint_1 = OpConstant %uint 1 | |
| %main = OpFunction %void None %10 | |
| %29 = OpLabel | |
| %j = OpVariable %_ptr_Function_int Function | |
| OpStore %_GLF_color %16 | |
| OpBranch %30 | |
| %30 = OpLabel | |
| %31 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0 | |
| %32 = OpLoad %float %31 | |
| %7 = OpConvertFToS %int %32 | |
| OpStore %j %7 | |
| OpLoopMerge %33 %34 None | |
| OpBranch %35 | |
| %35 = OpLabel | |
| %8 = OpLoad %int %j | |
| %36 = OpSLessThan %bool %8 %int_2 | |
| OpLoopMerge %37 %38 None | |
| OpBranchConditional %36 %39 %37 | |
| %39 = OpLabel | |
| OpReturn | |
| %38 = OpLabel | |
| OpBranch %35 | |
| %37 = OpLabel | |
| OpBranch %34 | |
| %34 = OpLabel | |
| %40 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1 | |
| %41 = OpLoad %float %40 | |
| %42 = OpFOrdGreaterThan %bool %float_0 %41 | |
| OpBranchConditional %42 %30 %33 | |
| %33 = OpLabel | |
| %43 = OpConvertFToS %int %41 | |
| OpReturn | |
| OpFunctionEnd |