blob: abe5509bdf8ea3f8da1498fe2a62c44ac1b4116d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 64
; Schema: 0
OpCapability Shader
%29 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "two"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
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 %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 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_6 = 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
%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 %void %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
%tint_symbol_2 = OpFunction %void None %52
%tint_symbol = OpFunctionParameter %main_out
%56 = OpLabel
%57 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %57
OpReturn
OpFunctionEnd
%main = OpFunction %void None %12
%59 = OpLabel
%60 = OpFunctionCall %void %main_1
%62 = OpLoad %v4float %x_GLF_color
%63 = OpCompositeConstruct %main_out %62
%61 = OpFunctionCall %void %tint_symbol_2 %63
OpReturn
OpFunctionEnd