blob: 864cc6dc154016e611c1e9ae76e64ddf4bd7d659 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 62
; Schema: 0
OpCapability Shader
%33 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %height "height"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%9 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %9
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %9
%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 %void %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
%tint_symbol_2 = OpFunction %void None %50
%tint_symbol = OpFunctionParameter %main_out
%54 = OpLabel
%55 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %55
OpReturn
OpFunctionEnd
%main = OpFunction %void None %12
%57 = OpLabel
%58 = OpFunctionCall %void %main_1
%60 = OpLoad %v4float %x_GLF_color
%61 = OpCompositeConstruct %main_out %60
%59 = OpFunctionCall %void %tint_symbol_2 %61
OpReturn
OpFunctionEnd