blob: 3e841df953b339c3e3e234297ea5b33ab1b9a7d5 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 72
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %GLF_live6tree "GLF_live6tree"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %x_9 "x_9"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %GLF_live6search_ "GLF_live6search_"
OpName %GLF_live6index "GLF_live6index"
OpName %GLF_live6currentNode "GLF_live6currentNode"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %_arr_int_uint_10 ArrayStride 4
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_9 NonWritable
OpDecorate %x_9 DescriptorSet 0
OpDecorate %x_9 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%int = OpTypeInt 32 1
%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
%7 = OpConstantNull %_arr_int_uint_10
%GLF_live6tree = OpVariable %_ptr_Private__arr_int_uint_10 Private %7
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_9 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%16 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %16
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %16
%19 = OpTypeFunction %int
%_ptr_Function_int = OpTypePointer Function %int
%24 = OpConstantNull %int
%int_0 = OpConstant %int 0
%bool = OpTypeBool
%true = OpConstantTrue %bool
%_ptr_Private_int = OpTypePointer Private %int
%int_1 = OpConstant %int 1
%void = OpTypeVoid
%45 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%59 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main_out = OpTypeStruct %v4float
%60 = OpTypeFunction %void %main_out
%GLF_live6search_ = OpFunction %int None %19
%21 = OpLabel
%GLF_live6index = OpVariable %_ptr_Function_int Function %24
%GLF_live6currentNode = OpVariable %_ptr_Function_int Function %24
OpStore %GLF_live6index %int_0
OpBranch %27
%27 = OpLabel
OpLoopMerge %28 %29 None
OpBranch %30
%30 = OpLabel
OpSelectionMerge %33 None
OpBranchConditional %true %34 %35
%34 = OpLabel
OpBranch %33
%35 = OpLabel
OpBranch %28
%33 = OpLabel
%36 = OpLoad %int %GLF_live6index
%38 = OpAccessChain %_ptr_Private_int %GLF_live6tree %36
%39 = OpLoad %int %38
OpStore %GLF_live6currentNode %39
%40 = OpLoad %int %GLF_live6currentNode
%42 = OpINotEqual %bool %40 %int_1
OpSelectionMerge %43 None
OpBranchConditional %42 %44 %43
%44 = OpLabel
OpReturnValue %int_1
%43 = OpLabel
OpStore %GLF_live6index %int_1
OpBranch %29
%29 = OpLabel
OpBranch %27
%28 = OpLabel
OpReturnValue %int_1
OpFunctionEnd
%main_1 = OpFunction %void None %45
%48 = OpLabel
%51 = OpAccessChain %_ptr_Uniform_float %x_9 %uint_0 %uint_0
%52 = OpLoad %float %51
%54 = OpFOrdGreaterThan %bool %52 %float_1
OpSelectionMerge %55 None
OpBranchConditional %54 %56 %55
%56 = OpLabel
%57 = OpFunctionCall %int %GLF_live6search_
OpBranch %55
%55 = OpLabel
OpStore %x_GLF_color %59
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %60
%tint_symbol = OpFunctionParameter %main_out
%64 = OpLabel
%65 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %65
OpReturn
OpFunctionEnd
%main = OpFunction %void None %45
%67 = OpLabel
%68 = OpFunctionCall %void %main_1
%70 = OpLoad %v4float %x_GLF_color
%71 = OpCompositeConstruct %main_out %70
%69 = OpFunctionCall %void %tint_symbol_2 %71
OpReturn
OpFunctionEnd