#include "src/gpu/graphite/render/TessellateStrokesRenderStep.h"
#include "include/core/SkM44.h"
#include "src/base/SkVx.h"
#include "src/core/SkGeometry.h"
#include "src/sksl/SkSLString.h"
#include "src/gpu/graphite/DrawParams.h"
#include "src/gpu/graphite/DrawTypes.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"
#include "src/gpu/tessellate/StrokeIterator.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};
}
TessellateStrokesRenderStep::TessellateStrokesRenderStep(bool infinitySupport)
: … { … }
TessellateStrokesRenderStep::~TessellateStrokesRenderStep() { … }
std::string TessellateStrokesRenderStep::vertexSkSL() const { … }
void TessellateStrokesRenderStep::writeVertices(DrawWriter* dw,
const DrawParams& params,
skvx::ushort2 ssboIndices) const { … }
void TessellateStrokesRenderStep::writeUniformsAndTextures(const DrawParams& params,
PipelineDataGatherer* gatherer) const { … }
}