blob: 5c7a3b12889377d73e8caf14e6cfafffb12dba44 [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 56
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %main_loc0_Output %main_frag_depth_Output %main_loc1_Output %main_loc2_Output %main_sample_mask_Output %main_loc3_Output %main_loc4_Output %main_loc5_Output
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %main_loc0_Output "main_loc0_Output"
OpName %main_frag_depth_Output "main_frag_depth_Output"
OpName %main_loc1_Output "main_loc1_Output"
OpName %main_loc2_Output "main_loc2_Output"
OpName %main_sample_mask_Output "main_sample_mask_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 "frag_depth"
OpMemberName %FragmentOutputs 2 "loc1"
OpMemberName %FragmentOutputs 3 "loc2"
OpMemberName %FragmentOutputs 4 "sample_mask"
OpMemberName %FragmentOutputs 5 "loc3"
OpMemberName %FragmentOutputs 6 "loc4"
OpMemberName %FragmentOutputs 7 "loc5"
OpName %FragmentOutputs "FragmentOutputs"
OpName %main "main"
OpDecorate %main_loc0_Output Location 0
OpDecorate %main_frag_depth_Output BuiltIn FragDepth
OpDecorate %main_loc1_Output Location 1
OpDecorate %main_loc2_Output Location 2
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %main_sample_mask_Output BuiltIn SampleMask
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 12
OpMemberDecorate %FragmentOutputs 4 Offset 16
OpMemberDecorate %FragmentOutputs 5 Offset 32
OpMemberDecorate %FragmentOutputs 6 Offset 48
OpMemberDecorate %FragmentOutputs 7 Offset 56
%int = OpTypeInt 32 1
%_ptr_Output_int = OpTypePointer Output %int
%main_loc0_Output = OpVariable %_ptr_Output_int Output
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%main_frag_depth_Output = OpVariable %_ptr_Output_float Output
%uint = OpTypeInt 32 0
%_ptr_Output_uint = OpTypePointer Output %uint
%main_loc1_Output = OpVariable %_ptr_Output_uint Output
%main_loc2_Output = OpVariable %_ptr_Output_float Output
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
%main_sample_mask_Output = OpVariable %_ptr_Output__arr_uint_uint_1 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 %float %uint %float %uint %v4float %half %v3half
%26 = OpTypeFunction %FragmentOutputs
%int_1 = OpConstant %int 1
%float_2 = OpConstant %float 2
%float_1 = OpConstant %float 1
%uint_2 = OpConstant %uint 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%33 = 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
%37 = OpConstantComposite %v3half %half_0x1_8p_1 %half_0x1_4p_2 %half_0x1p_3
%28 = OpConstantComposite %FragmentOutputs %int_1 %float_2 %uint_1 %float_1 %uint_2 %33 %half_0x1_2p_1 %37
%void = OpTypeVoid
%43 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%main_inner = OpFunction %FragmentOutputs None %26
%27 = OpLabel
OpReturnValue %28
OpFunctionEnd
%main = OpFunction %void None %43
%44 = OpLabel
%45 = OpFunctionCall %FragmentOutputs %main_inner
%46 = OpCompositeExtract %int %45 0
OpStore %main_loc0_Output %46 None
%47 = OpCompositeExtract %float %45 1
OpStore %main_frag_depth_Output %47 None
%48 = OpCompositeExtract %uint %45 2
OpStore %main_loc1_Output %48 None
%49 = OpCompositeExtract %float %45 3
OpStore %main_loc2_Output %49 None
%50 = OpCompositeExtract %uint %45 4
%51 = OpAccessChain %_ptr_Output_uint %main_sample_mask_Output %uint_0
OpStore %51 %50 None
%53 = OpCompositeExtract %v4float %45 5
OpStore %main_loc3_Output %53 None
%54 = OpCompositeExtract %half %45 6
OpStore %main_loc4_Output %54 None
%55 = OpCompositeExtract %v3half %45 7
OpStore %main_loc5_Output %55 None
OpReturn
OpFunctionEnd