blob: 9ba9ef468262e928e1ff7d761e8e6b1e483aebfa [file] [log] [blame]
/*
* Copyright 2022 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_VerticesRenderStep_DEFINED
#define skgpu_graphite_render_VerticesRenderStep_DEFINED
#include "include/core/SkVertices.h"
#include "src/gpu/graphite/Renderer.h"
namespace skgpu::graphite {
class VerticesRenderStep final : public RenderStep {
public:
explicit VerticesRenderStep(PrimitiveType, std::string_view, bool hasColor, bool hasTexture);
~VerticesRenderStep() override;
const char* vertexSkSL() const override;
void writeVertices(DrawWriter*, const DrawParams&) const override;
void writeUniformsAndTextures(const DrawParams&, SkPipelineDataGatherer*) const override;
private:
bool fHasColor;
bool fHasTexture;
};
} // namespace skgpu::graphite
#endif // skgpu_graphite_render_VerticesRenderStep_DEFINED