blob: c9c5d6f4e96f4a8ae8170550febecc1e89aeb5f5 [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_live6search_ "GLF_live6search("
OpName %GLF_live6index "GLF_live6index"
OpName %GLF_live6currentNode "GLF_live6currentNode"
OpName %GLF_live6tree "GLF_live6tree"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %GLF_live6search_ RelaxedPrecision
OpDecorate %GLF_live6index RelaxedPrecision
OpDecorate %GLF_live6currentNode RelaxedPrecision
OpDecorate %GLF_live6tree RelaxedPrecision
OpDecorate %10 RelaxedPrecision
OpDecorate %11 RelaxedPrecision
OpDecorate %12 RelaxedPrecision
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %13 RelaxedPrecision
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%15 = OpTypeFunction %void
%int = OpTypeInt 32 1
%17 = OpTypeFunction %int
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%bool = OpTypeBool
%true = OpConstantTrue %bool
%uint = OpTypeInt 32 0
%uint_10 = OpConstant %uint 10
%_arr_int_uint_10 = OpTypeArray %int %uint_10
%_ptr_Private__arr_int_uint_10 = OpTypePointer Private %_arr_int_uint_10
%GLF_live6tree = OpVariable %_ptr_Private__arr_int_uint_10 Private
%_ptr_Private_int = OpTypePointer Private %int
%int_1 = OpConstant %int 1
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_1 = OpConstant %float 1
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_0 = OpConstant %float 0
%37 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main = OpFunction %void None %15
%38 = OpLabel
%39 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0
%40 = OpLoad %float %39
%41 = OpFOrdGreaterThan %bool %40 %float_1
OpSelectionMerge %42 None
OpBranchConditional %41 %43 %42
%43 = OpLabel
%13 = OpFunctionCall %int %GLF_live6search_
OpBranch %42
%42 = OpLabel
OpStore %_GLF_color %37
OpReturn
OpFunctionEnd
%GLF_live6search_ = OpFunction %int None %17
%44 = OpLabel
%GLF_live6index = OpVariable %_ptr_Function_int Function
%GLF_live6currentNode = OpVariable %_ptr_Function_int Function
OpStore %GLF_live6index %int_0
OpBranch %45
%45 = OpLabel
OpLoopMerge %46 %47 None
OpBranch %48
%48 = OpLabel
OpBranchConditional %true %49 %46
%49 = OpLabel
%10 = OpLoad %int %GLF_live6index
%50 = OpAccessChain %_ptr_Private_int %GLF_live6tree %10
%11 = OpLoad %int %50
OpStore %GLF_live6currentNode %11
%12 = OpLoad %int %GLF_live6currentNode
%51 = OpINotEqual %bool %12 %int_1
OpSelectionMerge %52 None
OpBranchConditional %51 %53 %52
%53 = OpLabel
OpReturnValue %int_1
%52 = OpLabel
OpStore %GLF_live6index %int_1
OpBranch %47
%47 = OpLabel
OpBranch %45
%46 = OpLabel
OpReturnValue %int_1
OpFunctionEnd