#include <FixedCountBufferUtils.h>
Definition at line 106 of file FixedCountBufferUtils.h.
◆ PreallocCount()
static constexpr int skgpu::tess::FixedCountStrokes::PreallocCount |
( |
int |
totalCombinedPathVerbCnt | ) |
|
|
inlinestaticconstexpr |
◆ VertexBufferSize()
static constexpr size_t skgpu::tess::FixedCountStrokes::VertexBufferSize |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ VertexCount()
◆ WriteVertexBuffer()
void skgpu::tess::FixedCountStrokes::WriteVertexBuffer |
( |
VertexWriter |
vertexWriter, |
|
|
size_t |
bufferSize |
|
) |
| |
|
static |
Definition at line 129 of file FixedCountBufferUtils.cpp.
129 {
130 int edgeCount = bufferSize / (
sizeof(
float) * 2);
131 for (int i = 0; i < edgeCount; ++i) {
132 vertexWriter << (
float)i << (
float)-i;
133 }
134}
◆ kMaxEdges
constexpr int skgpu::tess::FixedCountStrokes::kMaxEdges = (1 << 14) - 1 |
|
staticconstexpr |
◆ kMaxEdgesNoVertexIDs
constexpr int skgpu::tess::FixedCountStrokes::kMaxEdgesNoVertexIDs = 1024 |
|
staticconstexpr |
The documentation for this class was generated from the following files: