blob: 10d6320f70d52ef94274f235b1cc09247a551040 [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_MiddleOutFanRenderStep_DEFINED
#define skgpu_graphite_render_MiddleOutFanRenderStep_DEFINED
#include "src/gpu/graphite/Renderer.h"
namespace skgpu::graphite {
class MiddleOutFanRenderStep final : public RenderStep {
public:
// TODO: If this takes DepthStencilSettings directly and a way to adjust the flags to specify
// that it performs shading, this RenderStep definition can be shared between the stencil and
// the convex rendering variants.
MiddleOutFanRenderStep(bool evenOdd);
~MiddleOutFanRenderStep() override;
std::string vertexSkSL() const override;
void writeVertices(DrawWriter*, const DrawParams&, skvx::ushort2 ssboIndices) const override;
void writeUniformsAndTextures(const DrawParams&, PipelineDataGatherer*) const override;
};
} // namespace skgpu::graphite
#endif // skgpu_graphite_render_MiddleOutFanRenderStep_DEFINED