blob: 5e511e0eefa0a7da2057a935be392efa1db10783 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 69
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "three"
OpName %x_7 "x_7"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %a "a"
OpName %i "i"
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 %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_7 NonWritable
OpDecorate %x_7 DescriptorSet 0
OpDecorate %x_7 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%int = OpTypeInt 32 1
%buf0 = OpTypeStruct %int
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_7 = OpVariable %_ptr_Uniform_buf0 Uniform
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%9 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %9
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %9
%void = OpTypeVoid
%12 = OpTypeFunction %void
%_ptr_Function_int = OpTypePointer Function %int
%18 = OpConstantNull %int
%int_0 = OpConstant %int 0
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_7 = OpConstant %int 7
%bool = OpTypeBool
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%55 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%56 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%57 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %12
%15 = OpLabel
%a = OpVariable %_ptr_Function_int Function %18
%i = OpVariable %_ptr_Function_int Function %18
OpStore %a %int_0
OpStore %i %int_0
OpBranch %21
%21 = OpLabel
OpLoopMerge %22 %23 None
OpBranch %24
%24 = OpLabel
%25 = OpLoad %int %i
%29 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0
%30 = OpLoad %int %29
%32 = OpIAdd %int %int_7 %30
%33 = OpSLessThan %bool %25 %32
OpSelectionMerge %35 None
OpBranchConditional %33 %36 %37
%36 = OpLabel
OpBranch %35
%37 = OpLabel
OpBranch %22
%35 = OpLabel
%38 = OpLoad %int %i
OpSelectionMerge %39 None
OpSwitch %38 %40 7 %41 8 %41
%41 = OpLabel
%42 = OpLoad %int %a
%44 = OpIAdd %int %42 %int_1
OpStore %a %44
OpBranch %39
%40 = OpLabel
OpBranch %39
%39 = OpLabel
OpBranch %23
%23 = OpLabel
%45 = OpLoad %int %i
%46 = OpIAdd %int %45 %int_1
OpStore %i %46
OpBranch %21
%22 = OpLabel
%47 = OpLoad %int %a
%49 = OpIEqual %bool %47 %int_2
OpSelectionMerge %50 None
OpBranchConditional %49 %51 %52
%51 = OpLabel
OpStore %x_GLF_color %55
OpBranch %50
%52 = OpLabel
OpStore %x_GLF_color %56
OpBranch %50
%50 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %57
%tint_symbol = OpFunctionParameter %main_out
%61 = OpLabel
%62 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %62
OpReturn
OpFunctionEnd
%main = OpFunction %void None %12
%64 = OpLabel
%65 = OpFunctionCall %void %main_1
%67 = OpLoad %v4float %x_GLF_color
%68 = OpCompositeConstruct %main_out %67
%66 = OpFunctionCall %void %tint_symbol_2 %68
OpReturn
OpFunctionEnd