blob: 3e1d57ae7f259ba17db5a555a6b7ecbf756091d5 [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 47
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %main_loc0_Output %main_loc1_Output %main_loc2_Output %main_loc3_Output %main_loc4_Output %main_loc5_Output
OpExecutionMode %main OriginUpperLeft
OpName %main_loc0_Output "main_loc0_Output"
OpName %main_loc1_Output "main_loc1_Output"
OpName %main_loc2_Output "main_loc2_Output"
OpName %main_loc3_Output "main_loc3_Output"
OpName %main_loc4_Output "main_loc4_Output"
OpName %main_loc5_Output "main_loc5_Output"
OpName %main_inner "main_inner"
OpMemberName %FragmentOutputs 0 "loc0"
OpMemberName %FragmentOutputs 1 "loc1"
OpMemberName %FragmentOutputs 2 "loc2"
OpMemberName %FragmentOutputs 3 "loc3"
OpMemberName %FragmentOutputs 4 "loc4"
OpMemberName %FragmentOutputs 5 "loc5"
OpName %FragmentOutputs "FragmentOutputs"
OpName %main "main"
OpDecorate %main_loc0_Output Location 0
OpDecorate %main_loc1_Output Location 1
OpDecorate %main_loc2_Output Location 2
OpDecorate %main_loc3_Output Location 3
OpDecorate %main_loc4_Output Location 4
OpDecorate %main_loc5_Output Location 5
OpMemberDecorate %FragmentOutputs 0 Offset 0
OpMemberDecorate %FragmentOutputs 1 Offset 4
OpMemberDecorate %FragmentOutputs 2 Offset 8
OpMemberDecorate %FragmentOutputs 3 Offset 16
OpMemberDecorate %FragmentOutputs 4 Offset 32
OpMemberDecorate %FragmentOutputs 5 Offset 40
%int = OpTypeInt 32 1
%_ptr_Output_int = OpTypePointer Output %int
%main_loc0_Output = OpVariable %_ptr_Output_int Output
%uint = OpTypeInt 32 0
%_ptr_Output_uint = OpTypePointer Output %uint
%main_loc1_Output = OpVariable %_ptr_Output_uint Output
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%main_loc2_Output = OpVariable %_ptr_Output_float Output
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%main_loc3_Output = OpVariable %_ptr_Output_v4float Output
%half = OpTypeFloat 16
%_ptr_Output_half = OpTypePointer Output %half
%main_loc4_Output = OpVariable %_ptr_Output_half Output
%v3half = OpTypeVector %half 3
%_ptr_Output_v3half = OpTypePointer Output %v3half
%main_loc5_Output = OpVariable %_ptr_Output_v3half Output
%FragmentOutputs = OpTypeStruct %int %uint %float %v4float %half %v3half
%21 = OpTypeFunction %FragmentOutputs
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%27 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%half_0x1_2p_1 = OpConstant %half 0x1.2p+1
%half_0x1_8p_1 = OpConstant %half 0x1.8p+1
%half_0x1_4p_2 = OpConstant %half 0x1.4p+2
%half_0x1p_3 = OpConstant %half 0x1p+3
%32 = OpConstantComposite %v3half %half_0x1_8p_1 %half_0x1_4p_2 %half_0x1p_3
%23 = OpConstantComposite %FragmentOutputs %int_1 %uint_1 %float_1 %27 %half_0x1_2p_1 %32
%void = OpTypeVoid
%38 = OpTypeFunction %void
%main_inner = OpFunction %FragmentOutputs None %21
%22 = OpLabel
OpReturnValue %23
OpFunctionEnd
%main = OpFunction %void None %38
%39 = OpLabel
%40 = OpFunctionCall %FragmentOutputs %main_inner
%41 = OpCompositeExtract %int %40 0
OpStore %main_loc0_Output %41 None
%42 = OpCompositeExtract %uint %40 1
OpStore %main_loc1_Output %42 None
%43 = OpCompositeExtract %float %40 2
OpStore %main_loc2_Output %43 None
%44 = OpCompositeExtract %v4float %40 3
OpStore %main_loc3_Output %44 None
%45 = OpCompositeExtract %half %40 4
OpStore %main_loc4_Output %45 None
%46 = OpCompositeExtract %v3half %40 5
OpStore %main_loc5_Output %46 None
OpReturn
OpFunctionEnd