blob: b08e6036757cbeb947b6d6c0ee769c4e1396bf56 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 38
; 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 %a "a"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %main_inner "main_inner"
OpName %main "main"
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
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%15 = OpConstantNull %uint
%uint_4 = OpConstant %uint 4
%uint_2 = OpConstant %uint 2
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%25 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%26 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%27 = OpTypeFunction %main_out
%main_1 = OpFunction %void None %8
%11 = OpLabel
%a = OpVariable %_ptr_Function_uint Function %15
OpStore %a %uint_4
%17 = OpLoad %uint %a
%20 = OpUDiv %uint %17 %uint_2
OpSelectionMerge %18 None
OpSwitch %20 %21 2 %22
%22 = OpLabel
OpStore %x_GLF_color %25
OpBranch %18
%21 = OpLabel
OpStore %x_GLF_color %26
OpBranch %18
%18 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %27
%30 = OpLabel
%31 = OpFunctionCall %void %main_1
%32 = OpLoad %v4float %x_GLF_color
%33 = OpCompositeConstruct %main_out %32
OpReturnValue %33
OpFunctionEnd
%main = OpFunction %void None %8
%35 = OpLabel
%36 = OpFunctionCall %main_out %main_inner
%37 = OpCompositeExtract %v4float %36 0
OpStore %x_GLF_color_1_1 %37
OpReturn
OpFunctionEnd