#include "src/gpu/graphite/render/TessellateCurvesRenderStep.h"
#include "src/sksl/SkSLString.h"
#include "src/gpu/graphite/BufferManager.h"
#include "src/gpu/graphite/DrawParams.h"
#include "src/gpu/graphite/DrawWriter.h"
#include "src/gpu/graphite/PipelineData.h"
#include "src/gpu/graphite/render/CommonDepthStencilSettings.h"
#include "src/gpu/graphite/render/DynamicInstancesPatchAllocator.h"
#include "src/gpu/tessellate/FixedCountBufferUtils.h"
#include "src/gpu/tessellate/PatchWriter.h"
namespace skgpu::graphite {
namespace {
usingnamespaceskgpu::tess;
static constexpr PatchAttribs kAttribs = …;
static constexpr PatchAttribs kAttribsWithCurveType = …;
Writer;
static constexpr Attribute kBaseAttributes[] = …;
static constexpr Attribute kAttributesWithCurveType[] = …;
static constexpr SkSpan<const Attribute> kAttributes[2] = {kAttributesWithCurveType,
kBaseAttributes};
}
TessellateCurvesRenderStep::TessellateCurvesRenderStep(bool evenOdd,
bool infinitySupport,
StaticBufferManager* bufferManager)
: … { … }
TessellateCurvesRenderStep::~TessellateCurvesRenderStep() { … }
std::string TessellateCurvesRenderStep::vertexSkSL() const { … }
void TessellateCurvesRenderStep::writeVertices(DrawWriter* dw,
const DrawParams& params,
skvx::ushort2 ssboIndices) const { … }
void TessellateCurvesRenderStep::writeUniformsAndTextures(const DrawParams& params,
PipelineDataGatherer* gatherer) const { … }
}