#include "src/gpu/graphite/render/TessellateWedgesRenderStep.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/DynamicInstancesPatchAllocator.h"
#include "src/gpu/tessellate/FixedCountBufferUtils.h"
#include "src/gpu/tessellate/MidpointContourParser.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};
}
TessellateWedgesRenderStep::TessellateWedgesRenderStep(std::string_view variantName,
bool infinitySupport,
DepthStencilSettings depthStencilSettings,
StaticBufferManager* bufferManager)
: … { … }
TessellateWedgesRenderStep::~TessellateWedgesRenderStep() { … }
std::string TessellateWedgesRenderStep::vertexSkSL() const { … }
void TessellateWedgesRenderStep::writeVertices(DrawWriter* dw,
const DrawParams& params,
skvx::ushort2 ssboIndices) const { … }
void TessellateWedgesRenderStep::writeUniformsAndTextures(const DrawParams& params,
PipelineDataGatherer* gatherer) const { … }
}