blob: 7028bed48d055ce1cfbddb64d602b14a658384ab [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 25
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %main_frag_depth_Output %main_sample_mask_Output
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %main_frag_depth_Output "main_frag_depth_Output"
OpName %main_sample_mask_Output "main_sample_mask_Output"
OpName %main_inner "main_inner"
OpMemberName %FragmentOutputs 0 "frag_depth"
OpMemberName %FragmentOutputs 1 "sample_mask"
OpName %FragmentOutputs "FragmentOutputs"
OpName %main "main"
OpDecorate %main_frag_depth_Output BuiltIn FragDepth
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %main_sample_mask_Output BuiltIn SampleMask
OpMemberDecorate %FragmentOutputs 0 Offset 0
OpMemberDecorate %FragmentOutputs 1 Offset 4
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%main_frag_depth_Output = OpVariable %_ptr_Output_float Output
%uint = OpTypeInt 32 0
%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
%FragmentOutputs = OpTypeStruct %float %uint
%11 = OpTypeFunction %FragmentOutputs
%float_1 = OpConstant %float 1
%13 = OpConstantComposite %FragmentOutputs %float_1 %uint_1
%void = OpTypeVoid
%17 = OpTypeFunction %void
%_ptr_Output_uint = OpTypePointer Output %uint
%uint_0 = OpConstant %uint 0
%main_inner = OpFunction %FragmentOutputs None %11
%12 = OpLabel
OpReturnValue %13
OpFunctionEnd
%main = OpFunction %void None %17
%18 = OpLabel
%19 = OpFunctionCall %FragmentOutputs %main_inner
%20 = OpCompositeExtract %float %19 0
OpStore %main_frag_depth_Output %20 None
%21 = OpCompositeExtract %uint %19 1
%22 = OpAccessChain %_ptr_Output_uint %main_sample_mask_Output %uint_0
OpStore %22 %21 None
OpReturn
OpFunctionEnd