blob: 7a18a0579e22aa5628e805128ed73275271ebcf1 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color %gl_FragCoord
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %_GLF_color "_GLF_color"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpName %gl_FragCoord "gl_FragCoord"
OpDecorate %_GLF_color Location 0
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %gl_FragCoord BuiltIn FragCoord
%void = OpTypeVoid
%8 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_0 = OpConstant %float 0
%float_1 = OpConstant %float 1
%14 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %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 = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%int_1 = OpConstant %int 1
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%uint_1 = OpConstant %uint 1
%_ptr_Input_float = OpTypePointer Input %float
%bool = OpTypeBool
%27 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main = OpFunction %void None %8
%28 = OpLabel
OpStore %_GLF_color %14
%29 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0
%30 = OpLoad %float %29
%31 = OpConvertFToS %int %30
OpSelectionMerge %32 None
OpSwitch %31 %32 0 %33 42 %34
%33 = OpLabel
OpSelectionMerge %35 None
OpSwitch %int_1 %35 1 %36
%36 = OpLabel
%37 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1
%38 = OpLoad %float %37
%39 = OpFOrdGreaterThanEqual %bool %38 %float_0
OpSelectionMerge %40 None
OpBranchConditional %39 %41 %40
%41 = OpLabel
OpStore %_GLF_color %27
OpBranch %35
%40 = OpLabel
OpKill
%35 = OpLabel
OpBranch %34
%34 = OpLabel
OpBranch %32
%32 = OpLabel
OpReturn
OpFunctionEnd