Flutter Engine
The Flutter Engine
|
#include <FixedCountBufferUtils.h>
Static Public Member Functions | |
static constexpr int | PreallocCount (int totalCombinedPathVerbCnt) |
static int | VertexCount (const LinearTolerances &tolerances) |
static constexpr size_t | VertexBufferSize () |
static constexpr size_t | IndexBufferSize () |
static void | WriteVertexBuffer (VertexWriter, size_t bufferSize) |
static void | WriteIndexBuffer (VertexWriter, size_t bufferSize) |
Fixed-count tessellation operates in three modes, two for filling paths, and one for stroking. These modes may have additional sub-variations, but in terms of vertex buffer management, these three categories are sufficient:
The three types defined below for these three modes provide utility functions for heuristics to choose pre-allocation size when accumulating instance attributes with a PatchWriter, and functions for creating static/GPU-private vertex and index buffers that are used as the template for instanced rendering.
Definition at line 39 of file FixedCountBufferUtils.h.
|
inlinestaticconstexpr |
Definition at line 66 of file FixedCountBufferUtils.h.
|
inlinestaticconstexpr |
Definition at line 43 of file FixedCountBufferUtils.h.
|
inlinestaticconstexpr |
Definition at line 61 of file FixedCountBufferUtils.h.
|
inlinestatic |
Definition at line 52 of file FixedCountBufferUtils.h.
|
static |
Definition at line 103 of file FixedCountBufferUtils.cpp.
|
static |
Definition at line 70 of file FixedCountBufferUtils.cpp.