blob: baf6ffd772708baed5010426e04aaa0ff0164ae5 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %frag_main "frag_main" %loc1_1 %loc2_1 %a_1 %b_1
OpExecutionMode %frag_main OriginUpperLeft
OpName %loc1_1 "loc1_1"
OpName %loc2_1 "loc2_1"
OpName %a_1 "a_1"
OpName %b_1 "b_1"
OpName %Outputs "Outputs"
OpMemberName %Outputs 0 "a"
OpMemberName %Outputs 1 "b"
OpName %frag_main_inner "frag_main_inner"
OpName %loc1 "loc1"
OpName %loc2 "loc2"
OpName %frag_main "frag_main"
OpDecorate %loc1_1 Location 1
OpDecorate %loc2_1 Location 2
OpDecorate %a_1 Location 1
OpDecorate %b_1 Location 2
OpMemberDecorate %Outputs 0 Offset 0
OpMemberDecorate %Outputs 1 Offset 8
%float = OpTypeFloat 32
%_ptr_Input_float = OpTypePointer Input %float
%loc1_1 = OpVariable %_ptr_Input_float Input
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%loc2_1 = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_float = OpTypePointer Output %float
%9 = OpConstantNull %float
%a_1 = OpVariable %_ptr_Output_float Output %9
%_ptr_Output_v4float = OpTypePointer Output %v4float
%12 = OpConstantNull %v4float
%b_1 = OpVariable %_ptr_Output_v4float Output %12
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%Outputs = OpTypeStruct %half %v4half
%13 = OpTypeFunction %Outputs %half %v4half
%half_0x1p_1 = OpConstant %half 0x1p+1
%half_0x1_8p_1 = OpConstant %half 0x1.8p+1
%void = OpTypeVoid
%26 = OpTypeFunction %void
%frag_main_inner = OpFunction %Outputs None %13
%loc1 = OpFunctionParameter %half
%loc2 = OpFunctionParameter %v4half
%20 = OpLabel
%22 = OpFMul %half %loc1 %half_0x1p_1
%24 = OpVectorTimesScalar %v4half %loc2 %half_0x1_8p_1
%25 = OpCompositeConstruct %Outputs %22 %24
OpReturnValue %25
OpFunctionEnd
%frag_main = OpFunction %void None %26
%29 = OpLabel
%32 = OpLoad %float %loc1_1
%31 = OpFConvert %half %32
%34 = OpLoad %v4float %loc2_1
%33 = OpFConvert %v4half %34
%30 = OpFunctionCall %Outputs %frag_main_inner %31 %33
%36 = OpCompositeExtract %half %30 0
%35 = OpFConvert %float %36
OpStore %a_1 %35
%38 = OpCompositeExtract %v4half %30 1
%37 = OpFConvert %v4float %38
OpStore %b_1 %37
OpReturn
OpFunctionEnd