Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
TessellateStrokesRenderStep.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 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#ifndef skgpu_graphite_render_TessellateStrokesRenderStep_DEFINED
9#define skgpu_graphite_render_TessellateStrokesRenderStep_DEFINED
10
12
13namespace skgpu::graphite {
14
16public:
17 // TODO: If this takes DepthStencilSettings directly and a way to adjust the flags to specify
18 // that it performs shading, this RenderStep definition could be used to handle inverse-filled
19 // stroke draws.
20 explicit TessellateStrokesRenderStep(bool infinitySupport);
21
23
24 std::string vertexSkSL() const override;
25 void writeVertices(DrawWriter*, const DrawParams&, skvx::ushort2 ssboIndices) const override;
26 void writeUniformsAndTextures(const DrawParams&, PipelineDataGatherer*) const override;
27
28private:
29 bool fInfinitySupport;
30};
31
32} // namespace skgpu::graphite
33
34#endif // skgpu_graphite_render_TessellateStrokesRenderStep_DEFINED
void writeUniformsAndTextures(const DrawParams &, PipelineDataGatherer *) const override
void writeVertices(DrawWriter *, const DrawParams &, skvx::ushort2 ssboIndices) const override