blob: a83eaf89eb6cfe5279b2c0d58125e32018c51ed2 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 63
; Schema: 0
OpCapability Shader
%29 = OpExtInstImport "GLSL.std.450"
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 %buf0 "buf0"
OpMemberName %buf0 0 "two"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %main_1 "main_1"
OpName %v "v"
OpName %d "d"
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
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 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
%int = OpTypeInt 32 1
%buf0 = OpTypeStruct %int
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Private_v4float = OpTypePointer Private %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%void = OpTypeVoid
%12 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%_ptr_Function_v2float = OpTypePointer Function %v2float
%19 = OpConstantNull %v2float
%_ptr_Function_float = OpTypePointer Function %float
%22 = OpConstantNull %float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%float_0_100000001 = OpConstant %float 0.100000001
%32 = OpConstantComposite %v2float %float_0_100000001 %float_0_100000001
%v2int = OpTypeVector %int 2
%int_3 = OpConstant %int 3
%float_1_15927994 = OpConstant %float 1.15927994
%float_0_64349997 = OpConstant %float 0.64349997
%40 = OpConstantComposite %v2float %float_1_15927994 %float_0_64349997
%float_0_00999999978 = OpConstant %float 0.00999999978
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%50 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%51 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%52 = OpTypeFunction %main_out
%main_1 = OpFunction %void None %12
%15 = OpLabel
%v = OpVariable %_ptr_Function_v2float Function %19
%d = OpVariable %_ptr_Function_float Function %22
%26 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0
%27 = OpLoad %int %26
%35 = OpCompositeConstruct %v2int %27 %int_3
%30 = OpExtInst %v2float %29 Ldexp %32 %35
%28 = OpExtInst %v2float %29 Acos %30
OpStore %v %28
%36 = OpLoad %v2float %v
%37 = OpExtInst %float %29 Distance %36 %40
OpStore %d %37
%41 = OpLoad %float %d
%43 = OpFOrdLessThan %bool %41 %float_0_00999999978
OpSelectionMerge %45 None
OpBranchConditional %43 %46 %47
%46 = OpLabel
OpStore %x_GLF_color %50
OpBranch %45
%47 = OpLabel
OpStore %x_GLF_color %51
OpBranch %45
%45 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %52
%55 = OpLabel
%56 = OpFunctionCall %void %main_1
%57 = OpLoad %v4float %x_GLF_color
%58 = OpCompositeConstruct %main_out %57
OpReturnValue %58
OpFunctionEnd
%main = OpFunction %void None %12
%60 = OpLabel
%61 = OpFunctionCall %main_out %main_inner
%62 = OpCompositeExtract %v4float %61 0
OpStore %x_GLF_color_1_1 %62
OpReturn
OpFunctionEnd