blob: 0891e97cc0fc48103220432554cb83c31bef4e05 [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 %gl_FragCoord "gl_FragCoord"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
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
%8 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Input_float = OpTypePointer Input %float
%float_0 = OpConstant %float 0
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%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
%uint_1 = OpConstant %uint 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%false = OpConstantFalse %bool
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%26 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%true = OpConstantTrue %bool
%main = OpFunction %void None %8
%28 = OpLabel
OpBranch %29
%29 = OpLabel
OpLoopMerge %30 %31 None
OpBranch %32
%32 = OpLabel
OpLoopMerge %33 %34 None
OpBranch %35
%35 = OpLabel
%36 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
%37 = OpLoad %float %36
%38 = OpFOrdLessThan %bool %37 %float_0
OpSelectionMerge %39 None
OpBranchConditional %38 %40 %39
%40 = OpLabel
%41 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1
%42 = OpLoad %float %41
%43 = OpFOrdGreaterThan %bool %float_1 %42
OpSelectionMerge %44 None
OpBranchConditional %43 %45 %34
%45 = OpLabel
OpKill
%44 = OpLabel
OpBranch %34
%34 = OpLabel
OpBranchConditional %false %32 %33
%39 = OpLabel
OpBranch %33
%33 = OpLabel
%46 = OpPhi %bool %true %39 %false %34
OpSelectionMerge %47 None
OpBranchConditional %46 %30 %47
%47 = OpLabel
OpBranch %30
%31 = OpLabel
OpBranch %29
%30 = OpLabel
OpStore %_GLF_color %26
OpReturn
OpFunctionEnd