blob: 59f0b30d22c871fe9f65da8128f47f18a3915a43 [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 %i "i"
OpName %gl_FragCoord "gl_FragCoord"
OpDecorate %_GLF_color Location 0
OpDecorate %i RelaxedPrecision
OpDecorate %6 RelaxedPrecision
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpDecorate %7 RelaxedPrecision
OpDecorate %8 RelaxedPrecision
%void = OpTypeVoid
%10 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%16 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%bool = OpTypeBool
%_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
%uint_0 = OpConstant %uint 0
%float_226_695999 = OpConstant %float 226.695999
%28 = OpConstantComposite %v4float %float_226_695999 %float_1 %float_1 %float_1
%main = OpFunction %void None %10
%29 = OpLabel
%i = OpVariable %_ptr_Function_int Function
OpStore %_GLF_color %16
OpStore %i %int_1
OpBranch %30
%30 = OpLabel
OpLoopMerge %31 %32 None
OpBranch %33
%33 = OpLabel
%6 = OpLoad %int %i
%34 = OpSLessThan %bool %6 %int_2
OpBranchConditional %34 %35 %31
%35 = OpLabel
%36 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1
%37 = OpLoad %float %36
%38 = OpFOrdLessThan %bool %37 %float_0
OpSelectionMerge %39 None
OpBranchConditional %38 %40 %39
%40 = OpLabel
%41 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
%42 = OpLoad %float %41
%43 = OpFOrdLessThan %bool %42 %float_0
OpSelectionMerge %44 None
OpBranchConditional %43 %45 %44
%45 = OpLabel
OpStore %_GLF_color %28
OpBranch %44
%44 = OpLabel
OpBranch %32
%39 = OpLabel
OpReturn
%32 = OpLabel
%7 = OpLoad %int %i
%8 = OpIAdd %int %7 %int_1
OpStore %i %8
OpBranch %30
%31 = OpLabel
OpReturn
OpFunctionEnd