#include <FixedCountBufferUtils.h>
Definition at line 75 of file FixedCountBufferUtils.h.
◆ IndexBufferSize()
static constexpr size_t skgpu::tess::FixedCountWedges::IndexBufferSize |
( |
| ) |
|
|
inlinestaticconstexpr |
Definition at line 96 of file FixedCountBufferUtils.h.
96 {
98 3 * sizeof(uint16_t);
99 }
static constexpr int NumCurveTrianglesAtResolveLevel(int resolveLevel)
static constexpr int kMaxResolveLevel
◆ PreallocCount()
static constexpr int skgpu::tess::FixedCountWedges::PreallocCount |
( |
int |
totalCombinedPathVerbCnt | ) |
|
|
inlinestaticconstexpr |
◆ VertexBufferSize()
static constexpr size_t skgpu::tess::FixedCountWedges::VertexBufferSize |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ VertexCount()
◆ WriteIndexBuffer()
void skgpu::tess::FixedCountWedges::WriteIndexBuffer |
( |
VertexWriter |
vertexWriter, |
|
|
size_t |
bufferSize |
|
) |
| |
|
static |
Definition at line 117 of file FixedCountBufferUtils.cpp.
117 {
118 SkASSERT(bufferSize >=
sizeof(uint16_t) * 3);
119
120
121 vertexWriter << (uint16_t)0 << (uint16_t)1 << (uint16_t)2;
122
123
124 write_curve_index_buffer_base_index(std::move(vertexWriter),
125 bufferSize - sizeof(uint16_t) * 3,
126 1);
127}
◆ WriteVertexBuffer()
void skgpu::tess::FixedCountWedges::WriteVertexBuffer |
( |
VertexWriter |
vertexWriter, |
|
|
size_t |
bufferSize |
|
) |
| |
|
static |
Definition at line 107 of file FixedCountBufferUtils.cpp.
107 {
109
110
111 vertexWriter << -1.f << -1.f;
112
113
115}
static void WriteVertexBuffer(VertexWriter, size_t bufferSize)
The documentation for this class was generated from the following files: