blob: 6d5ce47222656024899d9f57839fc086b3c45b30 [file]
/*
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef skgpu_graphite_render_SDFTextLCDRenderStep_DEFINED
#define skgpu_graphite_render_SDFTextLCDRenderStep_DEFINED
#include "src/core/SkVx.h"
#include "src/gpu/graphite/Renderer.h"
#include <string>
namespace skgpu::graphite {
class DrawParams;
class DrawWriter;
class PipelineDataGatherer;
struct ResourceBindingRequirements;
class SDFTextLCDRenderStep final : public RenderStep {
public:
SDFTextLCDRenderStep(Layout);
~SDFTextLCDRenderStep() override;
std::string vertexSkSL(const RootNodesInfo&) const override;
std::string texturesAndSamplersSkSL(const ResourceBindingRequirements&,
int* nextBindingIndex) const override;
const char* fragmentCoverageSkSL() const override;
void writeVertices(DrawWriter*,
StorageContext*,
const DrawParams&,
uint32_t ssboIndex) const override;
void writeUniformsAndTextures(const DrawParams&, PipelineDataGatherer*) const override;
};
} // namespace skgpu::graphite
#endif // skgpu_graphite_render_SDFTextLCDRenderStep_DEFINED