#include <StrokeTessellator.h>
Definition at line 28 of file StrokeTessellator.h.
◆ PatchAttribs
◆ StrokeTessellator()
skgpu::ganesh::StrokeTessellator::StrokeTessellator |
( |
PatchAttribs |
attribs | ) |
|
|
inline |
◆ draw()
void skgpu::ganesh::StrokeTessellator::draw |
( |
GrOpFlushState * |
flushState | ) |
const |
Definition at line 191 of file StrokeTessellator.cpp.
191 {
193 return;
194 }
197 return;
198 }
202 instanceChunk.fBase,
204 0);
205 }
206}
const GrShaderCaps * shaderCaps() const
void bindBuffers(sk_sp< const GrBuffer > indexBuffer, sk_sp< const GrBuffer > instanceBuffer, sk_sp< const GrBuffer > vertexBuffer, GrPrimitiveRestart primitiveRestart=GrPrimitiveRestart::kNo)
void drawInstanced(int instanceCount, int baseInstance, int vertexCount, int baseVertex)
const GrCaps & caps() const final
GrVertexChunkArray fVertexChunkArray
sk_sp< const GrGpuBuffer > fVertexBufferIfNoIDSupport
◆ prepare()
Definition at line 165 of file StrokeTessellator.cpp.
168 {
169 LinearTolerances worstCase;
172
173 write_fixed_count_patches(std::move(patchWriter), shaderMatrix, pathStrokeList);
175
176 if (!
target->caps().shaderCaps()->fVertexIDSupport) {
177
178
180
182
186 gVertexIDFallbackBufferKey,
188 }
189}
#define SKGPU_DEFINE_STATIC_UNIQUE_KEY(name)
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 float min(float r, float g, float b)
◆ fAttribs
const PatchAttribs skgpu::ganesh::StrokeTessellator::fAttribs |
|
protected |
◆ fVertexBufferIfNoIDSupport
sk_sp<const GrGpuBuffer> skgpu::ganesh::StrokeTessellator::fVertexBufferIfNoIDSupport |
|
protected |
◆ fVertexChunkArray
◆ fVertexCount
int skgpu::ganesh::StrokeTessellator::fVertexCount = 0 |
|
protected |
The documentation for this class was generated from the following files: