Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::ganesh::VertexChunkPatchAllocator Class Reference

#include <VertexChunkPatchAllocator.h>

Public Member Functions

 VertexChunkPatchAllocator (size_t stride, tess::LinearTolerances *worstCaseTolerances, GrMeshDrawTarget *target, GrVertexChunkArray *chunks, int minVerticesPerChunk)
 
VertexWriter append (const tess::LinearTolerances &tolerances)
 

Detailed Description

Definition at line 18 of file VertexChunkPatchAllocator.h.

Constructor & Destructor Documentation

◆ VertexChunkPatchAllocator()

skgpu::ganesh::VertexChunkPatchAllocator::VertexChunkPatchAllocator ( size_t  stride,
tess::LinearTolerances worstCaseTolerances,
GrMeshDrawTarget target,
GrVertexChunkArray chunks,
int  minVerticesPerChunk 
)
inline

Definition at line 24 of file VertexChunkPatchAllocator.h.

29 : fWorstCaseTolerances(worstCaseTolerances)
30 , fBuilder(target, chunks, stride, minVerticesPerChunk) {}
uint32_t * target

Member Function Documentation

◆ append()

VertexWriter skgpu::ganesh::VertexChunkPatchAllocator::append ( const tess::LinearTolerances tolerances)
inline

Definition at line 32 of file VertexChunkPatchAllocator.h.

32 {
33 fWorstCaseTolerances->accumulate(tolerances);
34 return fBuilder.appendVertices(1);
35 }
SK_ALWAYS_INLINE skgpu::VertexWriter appendVertices(int count)
void accumulate(const LinearTolerances &tolerances)

The documentation for this class was generated from the following file: