xref: /aosp_15_r20/external/skia/src/gpu/graphite/render/CoverBoundsRenderStep.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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_CoverBoundsRenderStep_DEFINED
9 #define skgpu_graphite_render_CoverBoundsRenderStep_DEFINED
10 
11 #include "src/base/SkVx.h"
12 #include "src/gpu/graphite/Renderer.h"
13 
14 #include <string>
15 
16 namespace skgpu::graphite {
17 
18 class DrawParams;
19 class DrawWriter;
20 class PipelineDataGatherer;
21 struct DepthStencilSettings;
22 
23 class CoverBoundsRenderStep final : public RenderStep {
24 public:
25     CoverBoundsRenderStep(const char* tag, DepthStencilSettings dsSettings);
26 
27     ~CoverBoundsRenderStep() override;
28 
29     std::string vertexSkSL() const override;
30     void writeVertices(DrawWriter*, const DrawParams&, skvx::uint2 ssboIndices) const override;
31     void writeUniformsAndTextures(const DrawParams&, PipelineDataGatherer*) const override;
32 
33 private:
34 };
35 
36 }  // namespace skgpu::graphite
37 
38 #endif // skgpu_render_CoverBoundsRenderStep_DEFINED
39