blob: 496c8d3243a57c76792960e65078f219d03f7e50 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %fx_ "fx("
OpName %gl_FragCoord "gl_FragCoord"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpName %x2 "x2"
OpName %B "B"
OpName %k0 "k0"
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%12 = OpTypeFunction %void
%float = OpTypeFloat 32
%14 = OpTypeFunction %float
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%_ptr_Input_float = OpTypePointer Input %float
%float_0 = OpConstant %float 0
%bool = OpTypeBool
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%true = OpConstantTrue %bool
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%30 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%_ptr_Function_float = OpTypePointer Function %float
%float_2 = OpConstant %float 2
%main = OpFunction %void None %12
%33 = OpLabel
%x2 = OpVariable %_ptr_Function_float Function
%B = OpVariable %_ptr_Function_float Function
%k0 = OpVariable %_ptr_Function_float Function
OpStore %x2 %float_1
OpStore %B %float_1
%34 = OpFunctionCall %float %fx_
%35 = OpCompositeConstruct %v4float %34 %float_0 %float_0 %float_1
OpStore %_GLF_color %35
OpBranch %36
%36 = OpLabel
OpLoopMerge %37 %38 None
OpBranch %39
%39 = OpLabel
%40 = OpLoad %float %x2
%41 = OpFOrdGreaterThan %bool %40 %float_2
OpBranchConditional %41 %42 %37
%42 = OpLabel
%43 = OpFunctionCall %float %fx_
%44 = OpFunctionCall %float %fx_
%45 = OpFSub %float %43 %44
OpStore %k0 %45
%46 = OpLoad %float %k0
OpStore %B %46
%47 = OpLoad %float %B
OpStore %x2 %47
OpBranch %38
%38 = OpLabel
OpBranch %36
%37 = OpLabel
OpReturn
OpFunctionEnd
%fx_ = OpFunction %float None %14
%48 = OpLabel
%49 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1
%50 = OpLoad %float %49
%51 = OpFOrdGreaterThanEqual %bool %50 %float_0
OpSelectionMerge %52 None
OpBranchConditional %51 %53 %52
%53 = OpLabel
%54 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1
%55 = OpLoad %float %54
OpReturnValue %55
%52 = OpLabel
OpBranch %56
%56 = OpLabel
OpLoopMerge %57 %58 None
OpBranch %59
%59 = OpLabel
OpBranchConditional %true %60 %57
%60 = OpLabel
OpStore %_GLF_color %30
OpBranch %58
%58 = OpLabel
OpBranch %56
%57 = OpLabel
%61 = OpUndef %float
OpReturnValue %61
OpFunctionEnd