blob: f77dde32e280324f9c07668114b140ef124315c9 [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 %i "i"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpDecorate %_GLF_color Location 0
OpDecorate %i RelaxedPrecision
OpDecorate %7 RelaxedPrecision
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %8 RelaxedPrecision
OpDecorate %9 RelaxedPrecision
%void = OpTypeVoid
%11 = 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
%17 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%int_10 = OpConstant %int 10
%bool = OpTypeBool
%23 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%true = OpConstantTrue %bool
%int_1 = OpConstant %int 1
%main = OpFunction %void None %11
%31 = OpLabel
%i = OpVariable %_ptr_Function_int Function
OpStore %_GLF_color %17
OpStore %i %int_0
OpBranch %32
%32 = OpLabel
OpLoopMerge %33 %34 None
OpBranch %35
%35 = OpLabel
%7 = OpLoad %int %i
%36 = OpSLessThan %bool %7 %int_10
OpBranchConditional %36 %37 %33
%37 = OpLabel
OpStore %_GLF_color %23
%38 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1
%39 = OpLoad %float %38
%40 = OpFOrdGreaterThan %bool %float_1 %39
OpSelectionMerge %41 None
OpBranchConditional %40 %42 %41
%42 = OpLabel
OpStore %_GLF_color %17
OpSelectionMerge %43 None
OpBranchConditional %true %44 %43
%44 = OpLabel
OpReturn
%43 = OpLabel
OpBranch %41
%41 = OpLabel
OpBranch %34
%34 = OpLabel
%8 = OpLoad %int %i
%9 = OpIAdd %int %8 %int_1
OpStore %i %9
OpBranch %32
%33 = OpLabel
OpReturn
OpFunctionEnd