#include <PathTessellator.h>
Definition at line 130 of file PathTessellator.h.
◆ PathWedgeTessellator()
Definition at line 138 of file PathTessellator.h.
140 fAttribs |= PatchAttribs::kFanPoint;
141 }
PathTessellator(bool infinitySupport, PatchAttribs attribs)
◆ draw()
void skgpu::ganesh::PathWedgeTessellator::draw |
( |
GrOpFlushState * |
flushState | ) |
const |
|
finalvirtual |
Implements skgpu::ganesh::PathTessellator.
Definition at line 272 of file PathTessellator.cpp.
272 {
274 return;
275 }
279 }
280}
void drawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex)
void bindBuffers(sk_sp< const GrBuffer > indexBuffer, sk_sp< const GrBuffer > instanceBuffer, sk_sp< const GrBuffer > vertexBuffer, GrPrimitiveRestart primitiveRestart=GrPrimitiveRestart::kNo)
GrVertexChunkArray fVertexChunkArray
sk_sp< const GrGpuBuffer > fFixedIndexBuffer
sk_sp< const GrGpuBuffer > fFixedVertexBuffer
◆ Make()
Definition at line 132 of file PathTessellator.h.
134 {
136 }
auto make(Ctor &&ctor) -> decltype(ctor(nullptr))
PathWedgeTessellator(bool infinitySupport, PatchAttribs attribs=PatchAttribs::kNone)
◆ prepare()
Implements skgpu::ganesh::PathTessellator.
Definition at line 244 of file PathTessellator.cpp.
247 {
249 LinearTolerances worstCase;
251 write_wedge_patches(std::move(writer), shaderMatrix, pathDrawList);
253 }
254
256
258
261 gFixedCountWedgesVertexBufferKey,
263
265
268 gFixedCountWedgesIndexBufferKey,
270}
#define SKGPU_DEFINE_STATIC_UNIQUE_KEY(name)
sk_sp< const GrGpuBuffer > findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size, const skgpu::UniqueKey &key, InitializeBufferFn)
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)
The documentation for this class was generated from the following files: