blob: 66d7a312403807620f7a8feb8dbf7b301688f815 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %_GLF_color "_GLF_color"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injected"
OpName %_ ""
OpName %m "m"
OpDecorate %_GLF_color Location 0
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %m RelaxedPrecision
%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_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%14 = OpConstantComposite %v4float %float_1 %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
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%false = OpConstantFalse %bool
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%true = OpConstantTrue %bool
%main = OpFunction %void None %8
%28 = OpLabel
%m = OpVariable %_ptr_Function_int Function
OpStore %_GLF_color %14
%29 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0
%30 = OpLoad %float %29
%31 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1
%32 = OpLoad %float %31
%33 = OpFOrdGreaterThan %bool %30 %32
OpSelectionMerge %34 None
OpBranchConditional %33 %35 %34
%35 = OpLabel
OpBranch %36
%36 = OpLabel
OpLoopMerge %37 %38 None
OpBranch %39
%39 = OpLabel
OpBranch %38
%38 = OpLabel
OpBranchConditional %false %36 %37
%37 = OpLabel
OpStore %m %int_1
OpBranch %40
%40 = OpLabel
OpLoopMerge %41 %42 None
OpBranch %43
%43 = OpLabel
OpBranchConditional %true %44 %41
%44 = OpLabel
OpStore %_GLF_color %14
OpBranch %42
%42 = OpLabel
OpBranch %40
%41 = OpLabel
OpBranch %34
%34 = OpLabel
OpReturn
OpFunctionEnd