blob: 335fc7b71d0c2384e7acb158e771943f08948c34 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 57
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %x_21_phi "x_21_phi"
OpName %x_25 "x_25"
OpName %x_25_phi "x_25_phi"
OpName %x_30_phi "x_30_phi"
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 %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%5 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %5
%void = OpTypeVoid
%8 = OpTypeFunction %void
%bool = OpTypeBool
%_ptr_Function_bool = OpTypePointer Function %bool
%15 = OpConstantNull %bool
%false = OpConstantFalse %bool
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%true = OpConstantTrue %bool
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%44 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main_out = OpTypeStruct %v4float
%45 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %8
%11 = OpLabel
%x_21_phi = OpVariable %_ptr_Function_bool Function %15
%x_25 = OpVariable %_ptr_Function_bool Function %15
%x_25_phi = OpVariable %_ptr_Function_bool Function %15
%x_30_phi = OpVariable %_ptr_Function_bool Function %15
OpStore %x_21_phi %false
OpBranch %17
%17 = OpLabel
OpLoopMerge %18 %19 None
OpBranch %20
%20 = OpLabel
%24 = OpLoad %bool %x_21_phi
OpStore %x_25_phi %24
OpBranch %25
%25 = OpLabel
OpLoopMerge %26 %27 None
OpBranch %28
%28 = OpLabel
%29 = OpLoad %bool %x_25_phi
OpStore %x_25 %29
%30 = OpLoad %bool %x_25
OpStore %x_30_phi %30
%34 = OpSLessThan %bool %int_1 %int_0
OpSelectionMerge %35 None
OpBranchConditional %34 %36 %37
%36 = OpLabel
OpBranch %35
%37 = OpLabel
OpBranch %26
%35 = OpLabel
OpStore %x_30_phi %true
OpBranch %26
%27 = OpLabel
OpStore %x_25_phi %false
OpBranch %25
%26 = OpLabel
%39 = OpLoad %bool %x_30_phi
OpSelectionMerge %40 None
OpBranchConditional %39 %41 %40
%41 = OpLabel
OpBranch %18
%40 = OpLabel
OpStore %x_GLF_color %44
OpBranch %18
%19 = OpLabel
OpStore %x_21_phi %false
OpBranch %17
%18 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %45
%tint_symbol = OpFunctionParameter %main_out
%49 = OpLabel
%50 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %50
OpReturn
OpFunctionEnd
%main = OpFunction %void None %8
%52 = OpLabel
%53 = OpFunctionCall %void %main_1
%55 = OpLoad %v4float %x_GLF_color
%56 = OpCompositeConstruct %main_out %55
%54 = OpFunctionCall %void %tint_symbol_2 %56
OpReturn
OpFunctionEnd