blob: 1c9b68302f5cc38510ae2da0b6c325671e5268a5 [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 43
; Schema: 0
OpCapability Shader
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
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_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"
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
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
%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
%FragmentOutputs = OpTypeStruct %int %float %uint %float %uint %v4float
%20 = 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
%27 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%22 = OpConstantComposite %FragmentOutputs %int_1 %float_2 %uint_1 %float_1 %uint_2 %27
%void = OpTypeVoid
%32 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%main_inner = OpFunction %FragmentOutputs None %20
%21 = OpLabel
OpReturnValue %22
OpFunctionEnd
%main = OpFunction %void None %32
%33 = OpLabel
%34 = OpFunctionCall %FragmentOutputs %main_inner
%35 = OpCompositeExtract %int %34 0
OpStore %main_loc0_Output %35 None
%36 = OpCompositeExtract %float %34 1
OpStore %main_frag_depth_Output %36 None
%37 = OpCompositeExtract %uint %34 2
OpStore %main_loc1_Output %37 None
%38 = OpCompositeExtract %float %34 3
OpStore %main_loc2_Output %38 None
%39 = OpCompositeExtract %uint %34 4
%40 = OpAccessChain %_ptr_Output_uint %main_sample_mask_Output %uint_0
OpStore %40 %39 None
%42 = OpCompositeExtract %v4float %34 5
OpStore %main_loc3_Output %42 None
OpReturn
OpFunctionEnd