blob: 894685dc3dcd2979d7befa0bd7e82f128256221c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 114
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
OpExecutionMode %main OriginUpperLeft
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
OpName %x_GLF_color "x_GLF_color"
OpName %main_1 "main_1"
OpName %x_36 "x_36"
OpName %x_37 "x_37"
OpName %x_6 "x_6"
OpName %x_38 "x_38"
OpName %x_51 "x_51"
OpName %x_54 "x_54"
OpName %x_40_phi "x_40_phi"
OpName %x_55_phi "x_55_phi"
OpName %x_45 "x_45"
OpName %x_45_phi "x_45_phi"
OpName %x_7_phi "x_7_phi"
OpName %x_51_phi "x_51_phi"
OpName %x_52_phi "x_52_phi"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %main_inner "main_inner"
OpName %main "main"
OpName %GLF_live4drawShape_ "GLF_live4drawShape_"
OpName %x_57 "x_57"
OpName %x_58 "x_58"
OpName %i "i"
OpName %x_71 "x_71"
OpName %x_74 "x_74"
OpName %x_60_phi "x_60_phi"
OpName %x_75_phi "x_75_phi"
OpName %x_65 "x_65"
OpName %x_65_phi "x_65_phi"
OpName %x_8_phi "x_8_phi"
OpName %x_71_phi "x_71_phi"
OpName %x_72_phi "x_72_phi"
OpDecorate %x_GLF_color_1_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Private_v4float = OpTypePointer Private %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%void = OpTypeVoid
%8 = OpTypeFunction %void
%bool = OpTypeBool
%false = OpConstantFalse %bool
%_ptr_Function_bool = OpTypePointer Function %bool
%16 = OpConstantNull %bool
%v3float = OpTypeVector %float 3
%_ptr_Function_v3float = OpTypePointer Function %v3float
%20 = OpConstantNull %v3float
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%24 = OpConstantNull %int
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%32 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%int_0 = OpConstant %int 0
%50 = OpConstantComposite %v3float %float_0 %float_0 %float_0
%true = OpConstantTrue %bool
%57 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%main_out = OpTypeStruct %v4float
%65 = OpTypeFunction %main_out
%76 = OpTypeFunction %v3float
%main_1 = OpFunction %void None %8
%11 = OpLabel
%x_36 = OpVariable %_ptr_Function_bool Function %16
%x_37 = OpVariable %_ptr_Function_v3float Function %20
%x_6 = OpVariable %_ptr_Function_int Function %24
%x_38 = OpVariable %_ptr_Function_v3float Function %20
%x_51 = OpVariable %_ptr_Function_v3float Function %20
%x_54 = OpVariable %_ptr_Function_v3float Function %20
%x_40_phi = OpVariable %_ptr_Function_bool Function %16
%x_55_phi = OpVariable %_ptr_Function_v3float Function %20
%x_45 = OpVariable %_ptr_Function_bool Function %16
%x_45_phi = OpVariable %_ptr_Function_bool Function %16
%x_7_phi = OpVariable %_ptr_Function_int Function %24
%x_51_phi = OpVariable %_ptr_Function_v3float Function %20
%x_52_phi = OpVariable %_ptr_Function_bool Function %16
OpStore %x_36 %false
OpStore %x_GLF_color %32
OpStore %x_36 %false
OpStore %x_40_phi %false
OpBranch %33
%33 = OpLabel
OpLoopMerge %34 %35 None
OpBranch %36
%36 = OpLabel
%42 = OpLoad %bool %x_40_phi
OpStore %x_6 %int_0
OpStore %x_45_phi %42
OpStore %x_7_phi %int_0
OpBranch %44
%44 = OpLabel
OpLoopMerge %45 %46 None
OpBranch %47
%47 = OpLabel
%48 = OpLoad %bool %x_45_phi
OpStore %x_45 %48
%49 = OpLoad %int %x_7_phi
OpStore %x_51_phi %50
%51 = OpLoad %bool %x_45
OpStore %x_52_phi %51
%52 = OpSLessThan %bool %49 %int_0
OpSelectionMerge %53 None
OpBranchConditional %52 %54 %55
%54 = OpLabel
OpBranch %53
%55 = OpLabel
OpBranch %45
%53 = OpLabel
OpStore %x_36 %true
OpStore %x_37 %57
OpStore %x_51_phi %57
OpStore %x_52_phi %true
OpBranch %45
%46 = OpLabel
OpStore %x_45_phi %false
OpStore %x_7_phi %int_0
OpBranch %44
%45 = OpLabel
%58 = OpLoad %v3float %x_51_phi
OpStore %x_51 %58
%59 = OpLoad %bool %x_52_phi
%60 = OpLoad %v3float %x_51
OpStore %x_55_phi %60
OpSelectionMerge %61 None
OpBranchConditional %59 %62 %61
%62 = OpLabel
OpBranch %34
%61 = OpLabel
OpStore %x_54 %50
OpStore %x_36 %true
%63 = OpLoad %v3float %x_54
OpStore %x_55_phi %63
OpBranch %34
%35 = OpLabel
OpStore %x_40_phi %false
OpBranch %33
%34 = OpLabel
%64 = OpLoad %v3float %x_55_phi
OpStore %x_38 %64
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %65
%68 = OpLabel
%69 = OpFunctionCall %void %main_1
%70 = OpLoad %v4float %x_GLF_color
%71 = OpCompositeConstruct %main_out %70
OpReturnValue %71
OpFunctionEnd
%main = OpFunction %void None %8
%73 = OpLabel
%74 = OpFunctionCall %main_out %main_inner
%75 = OpCompositeExtract %v4float %74 0
OpStore %x_GLF_color_1_1 %75
OpReturn
OpFunctionEnd
%GLF_live4drawShape_ = OpFunction %v3float None %76
%78 = OpLabel
%x_57 = OpVariable %_ptr_Function_bool Function %16
%x_58 = OpVariable %_ptr_Function_v3float Function %20
%i = OpVariable %_ptr_Function_int Function %24
%x_71 = OpVariable %_ptr_Function_v3float Function %20
%x_74 = OpVariable %_ptr_Function_v3float Function %20
%x_60_phi = OpVariable %_ptr_Function_bool Function %16
%x_75_phi = OpVariable %_ptr_Function_v3float Function %20
%x_65 = OpVariable %_ptr_Function_bool Function %16
%x_65_phi = OpVariable %_ptr_Function_bool Function %16
%x_8_phi = OpVariable %_ptr_Function_int Function %24
%x_71_phi = OpVariable %_ptr_Function_v3float Function %20
%x_72_phi = OpVariable %_ptr_Function_bool Function %16
OpStore %x_57 %false
OpStore %x_60_phi %false
OpBranch %86
%86 = OpLabel
OpLoopMerge %87 %88 None
OpBranch %89
%89 = OpLabel
%95 = OpLoad %bool %x_60_phi
OpStore %i %int_0
OpStore %x_65_phi %95
OpStore %x_8_phi %int_0
OpBranch %96
%96 = OpLabel
OpLoopMerge %97 %98 None
OpBranch %99
%99 = OpLabel
%100 = OpLoad %bool %x_65_phi
OpStore %x_65 %100
%101 = OpLoad %int %x_8_phi
OpStore %x_71_phi %50
%102 = OpLoad %bool %x_65
OpStore %x_72_phi %102
%103 = OpSLessThan %bool %101 %int_0
OpSelectionMerge %104 None
OpBranchConditional %103 %105 %106
%105 = OpLabel
OpBranch %104
%106 = OpLabel
OpBranch %97
%104 = OpLabel
OpStore %x_57 %true
OpStore %x_58 %57
OpStore %x_71_phi %57
OpStore %x_72_phi %true
OpBranch %97
%98 = OpLabel
OpStore %x_65_phi %false
OpStore %x_8_phi %int_0
OpBranch %96
%97 = OpLabel
%107 = OpLoad %v3float %x_71_phi
OpStore %x_71 %107
%108 = OpLoad %bool %x_72_phi
%109 = OpLoad %v3float %x_71
OpStore %x_75_phi %109
OpSelectionMerge %110 None
OpBranchConditional %108 %111 %110
%111 = OpLabel
OpBranch %87
%110 = OpLabel
OpStore %x_74 %50
OpStore %x_57 %true
%112 = OpLoad %v3float %x_74
OpStore %x_75_phi %112
OpBranch %87
%88 = OpLabel
OpStore %x_60_phi %false
OpBranch %86
%87 = OpLabel
%113 = OpLoad %v3float %x_75_phi
OpReturnValue %113
OpFunctionEnd