xref: /third_party/skia/src/gpu/tessellate/shaders/GrTessellationShader.cpp (revision cb93a386)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/src/gpu/tessellate/shaders/
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
10const 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

Indexes created Thu Nov 07 10:32:03 CST 2024