8#ifndef skgpu_tessellate_FixedCountBufferUtils_DEFINED
9#define skgpu_tessellate_FixedCountBufferUtils_DEFINED
18namespace skgpu {
struct VertexWriter; }
47 return totalCombinedPathVerbCnt + (totalCombinedPathVerbCnt + 3) / 2;
83 return (totalCombinedPathVerbCnt * 5 + 3) / 4;
127 return (totalCombinedPathVerbCnt * 2) + 8;
static void WriteIndexBuffer(VertexWriter, size_t bufferSize)
static constexpr size_t VertexBufferSize()
static int VertexCount(const LinearTolerances &tolerances)
static constexpr int PreallocCount(int totalCombinedPathVerbCnt)
static constexpr size_t IndexBufferSize()
static void WriteVertexBuffer(VertexWriter, size_t bufferSize)
static constexpr int PreallocCount(int totalCombinedPathVerbCnt)
static void WriteVertexBuffer(VertexWriter, size_t bufferSize)
static constexpr int kMaxEdgesNoVertexIDs
static int VertexCount(const LinearTolerances &tolerances)
static constexpr size_t VertexBufferSize()
static constexpr int kMaxEdges
static constexpr size_t IndexBufferSize()
static int VertexCount(const LinearTolerances &tolerances)
static constexpr int PreallocCount(int totalCombinedPathVerbCnt)
static constexpr size_t VertexBufferSize()
static void WriteVertexBuffer(VertexWriter, size_t bufferSize)
static void WriteIndexBuffer(VertexWriter, size_t bufferSize)
int requiredStrokeEdges() const
int requiredResolveLevel() const
static float min(float r, float g, float b)
static constexpr int NumCurveTrianglesAtResolveLevel(int resolveLevel)
static constexpr int kMaxResolveLevel
static constexpr int kMaxParametricSegments