| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 61 |
| ; Schema: 0 |
| OpCapability Shader |
| %33 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %x_GLF_color_1_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %x_GLF_color_1_1 "x_GLF_color_1_1" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "injectionSwitch" |
| OpName %x_6 "x_6" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %main_1 "main_1" |
| OpName %height "height" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %main_inner "main_inner" |
| OpName %main "main" |
| OpDecorate %x_GLF_color_1_1 Location 0 |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %x_6 NonWritable |
| OpDecorate %x_6 DescriptorSet 0 |
| OpDecorate %x_6 Binding 0 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %5 = OpConstantNull %v4float |
| %x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5 |
| %v2float = OpTypeVector %float 2 |
| %buf0 = OpTypeStruct %v2float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_6 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %5 |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void |
| %_ptr_Function_float = OpTypePointer Function %float |
| %18 = OpConstantNull %float |
| %float_256 = OpConstant %float 256 |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %float_0 = OpConstant %float 0 |
| %bool = OpTypeBool |
| %float_30_1800003 = OpConstant %float 30.1800003 |
| %float_8840 = OpConstant %float 8840 |
| %float_469_970001 = OpConstant %float 469.970001 |
| %float_18_2399998 = OpConstant %float 18.2399998 |
| %38 = OpConstantComposite %v4float %float_30_1800003 %float_8840 %float_469_970001 %float_18_2399998 |
| %float_9_89999962 = OpConstant %float 9.89999962 |
| %float_0_100000001 = OpConstant %float 0.100000001 |
| %float_1169_5387 = OpConstant %float 1169.5387 |
| %float_55_7900009 = OpConstant %float 55.7900009 |
| %43 = OpConstantComposite %v4float %float_9_89999962 %float_0_100000001 %float_1169_5387 %float_55_7900009 |
| %float_7612_94531 = OpConstant %float 7612.94531 |
| %float_797_010986 = OpConstant %float 797.010986 |
| %float_9 = OpConstant %float 9 |
| %float_1 = OpConstant %float 1 |
| %49 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %main_out = OpTypeStruct %v4float |
| %50 = OpTypeFunction %main_out |
| %main_1 = OpFunction %void None %12 |
| %15 = OpLabel |
| %height = OpVariable %_ptr_Function_float Function %18 |
| OpStore %height %float_256 |
| %24 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %uint_1 |
| %25 = OpLoad %float %24 |
| %27 = OpFOrdLessThan %bool %25 %float_0 |
| OpSelectionMerge %29 None |
| OpBranchConditional %27 %30 %29 |
| %30 = OpLabel |
| %31 = OpLoad %float %height |
| %47 = OpCompositeConstruct %v4float %float_7612_94531 %float_797_010986 %31 %float_9 |
| %32 = OpExtInst %v4float %33 FMix %38 %43 %47 |
| OpStore %x_GLF_color %32 |
| OpBranch %29 |
| %29 = OpLabel |
| OpStore %x_GLF_color %49 |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %main_out None %50 |
| %53 = OpLabel |
| %54 = OpFunctionCall %void %main_1 |
| %55 = OpLoad %v4float %x_GLF_color |
| %56 = OpCompositeConstruct %main_out %55 |
| OpReturnValue %56 |
| OpFunctionEnd |
| %main = OpFunction %void None %12 |
| %58 = OpLabel |
| %59 = OpFunctionCall %main_out %main_inner |
| %60 = OpCompositeExtract %v4float %59 0 |
| OpStore %x_GLF_color_1_1 %60 |
| OpReturn |
| OpFunctionEnd |