blob: 5bc78c6409be7dae9e34411b932e98a77a5ee640 [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 320
OpName %main "main"
OpName %loop_count "loop_count"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpName %gl_FragCoord "gl_FragCoord"
OpName %_GLF_color "_GLF_color"
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%_ptr_Input_float = OpTypePointer Input %float
%float_0 = OpConstant %float 0
%int_100 = OpConstant %int 100
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%28 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%29 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%int_1 = OpConstant %int 1
%main = OpFunction %void None %9
%31 = OpLabel
%loop_count = OpVariable %_ptr_Function_int Function
OpStore %loop_count %int_0
%32 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0
%33 = OpLoad %float %32
%34 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1
%35 = OpLoad %float %34
%36 = OpFOrdGreaterThan %bool %33 %35
OpSelectionMerge %37 None
OpBranchConditional %36 %38 %37
%38 = OpLabel
OpReturn
%37 = OpLabel
%39 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
%40 = OpLoad %float %39
%41 = OpFOrdLessThan %bool %40 %float_0
OpBranch %42
%42 = OpLabel
%43 = OpLoad %int %loop_count
%44 = OpSLessThan %bool %43 %int_100
OpLoopMerge %45 %46 None
OpBranchConditional %44 %47 %45
%47 = OpLabel
OpSelectionMerge %48 None
OpBranchConditional %36 %49 %48
%49 = OpLabel
OpBranch %45
%48 = OpLabel
OpSelectionMerge %50 None
OpBranchConditional %36 %51 %52
%51 = OpLabel
OpStore %_GLF_color %28
OpBranch %50
%52 = OpLabel
OpSelectionMerge %53 None
OpBranchConditional %41 %54 %53
%54 = OpLabel
OpReturn
%53 = OpLabel
OpBranch %50
%50 = OpLabel
OpSelectionMerge %55 None
OpBranchConditional %36 %56 %57
%56 = OpLabel
OpStore %_GLF_color %28
OpBranch %55
%57 = OpLabel
OpStore %_GLF_color %29
OpBranch %55
%55 = OpLabel
OpSelectionMerge %58 None
OpBranchConditional %36 %59 %58
%59 = OpLabel
OpReturn
%58 = OpLabel
OpSelectionMerge %60 None
OpBranchConditional %41 %61 %60
%61 = OpLabel
OpBranch %62
%62 = OpLabel
%63 = OpLoad %int %loop_count
%64 = OpSLessThan %bool %63 %int_100
OpLoopMerge %65 %66 None
OpBranchConditional %64 %66 %65
%66 = OpLabel
%67 = OpLoad %int %loop_count
%68 = OpIAdd %int %67 %int_1
OpStore %loop_count %68
OpBranch %62
%65 = OpLabel
OpBranch %60
%60 = OpLabel
OpBranch %46
%46 = OpLabel
%69 = OpLoad %int %loop_count
%70 = OpIAdd %int %69 %int_1
OpStore %loop_count %70
OpBranch %42
%45 = OpLabel
%71 = OpLoad %int %loop_count
%72 = OpSGreaterThanEqual %bool %71 %int_100
OpSelectionMerge %73 None
OpBranchConditional %72 %74 %75
%74 = OpLabel
OpStore %_GLF_color %29
OpBranch %73
%75 = OpLabel
OpStore %_GLF_color %28
OpBranch %73
%73 = OpLabel
OpReturn
OpFunctionEnd