• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 Google LLC.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "src/gpu/tessellate/shaders/GrTessellationShader.h"
9 
MakePipeline(const ProgramArgs & args,GrAAType aaType,GrAppliedClip && appliedClip,GrProcessorSet && processors)10 const GrPipeline* GrTessellationShader::MakePipeline(const ProgramArgs& args,
11                                                      GrAAType aaType,
12                                                      GrAppliedClip&& appliedClip,
13                                                      GrProcessorSet&& processors) {
14     GrPipeline::InitArgs pipelineArgs;
15 
16     pipelineArgs.fCaps = args.fCaps;
17     pipelineArgs.fDstProxyView = *args.fDstProxyView;
18     pipelineArgs.fWriteSwizzle = args.fWriteView.swizzle();
19 
20     return args.fArena->make<GrPipeline>(pipelineArgs,
21                                          std::move(processors),
22                                          std::move(appliedClip));
23 }
24