Flutter Engine
The Flutter Engine
|
#include <BufferWriter.h>
Classes | |
struct | ArrayDesc |
struct | Conditional |
struct | is_quad |
struct | is_quad< GrQuad > |
struct | is_quad< VertexWriter::TriFan< T > > |
struct | is_quad< VertexWriter::TriStrip< T > > |
struct | RepeatDesc |
struct | Skip |
struct | TriFan |
struct | TriStrip |
Public Member Functions | |
VertexWriter ()=default | |
VertexWriter (void *ptr) | |
VertexWriter (void *ptr, size_t size) | |
VertexWriter (void *ptr, Mark end) | |
VertexWriter (const VertexWriter &)=delete | |
VertexWriter (VertexWriter &&that) | |
VertexWriter & | operator= (const VertexWriter &)=delete |
VertexWriter & | operator= (VertexWriter &&that) |
VertexWriter | makeOffset (size_t offsetInBytes) const |
template<typename... Args> | |
void | writeQuad (const Args &... remainder) |
Public Member Functions inherited from skgpu::BufferWriter | |
operator bool () const | |
Mark | mark (size_t offset=0) const |
Static Public Member Functions | |
template<typename T > | |
static Conditional< T > | If (bool condition, const T &value) |
template<typename T > | |
static ArrayDesc< T > | Array (const T *array, int count) |
template<int kCount, typename T > | |
static RepeatDesc< kCount, T > | Repeat (const T &val) |
static TriStrip< float > | TriStripFromRect (const SkRect &r) |
static TriStrip< uint16_t > | TriStripFromUVs (const std::array< uint16_t, 4 > &rect) |
static TriFan< float > | TriFanFromRect (const SkRect &r) |
Static Public Attributes | |
static constexpr uint32_t | kIEEE_32_infinity = 0x7f800000 |
Friends | |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &, const T &) |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &, const ArrayDesc< T > &) |
Additional Inherited Members | |
Protected Member Functions inherited from skgpu::BufferWriter | |
BufferWriter ()=default | |
BufferWriter (void *ptr, size_t size) | |
BufferWriter (void *ptr, Mark end={}) | |
BufferWriter & | operator= (const BufferWriter &)=delete |
BufferWriter & | operator= (BufferWriter &&that) |
template<typename W > | |
W | makeOffset (size_t offsetInBytes) const |
void | validate (size_t bytesToWrite) const |
Protected Attributes inherited from skgpu::BufferWriter | |
void * | fPtr = nullptr |
Helper for writing vertex data to a buffer. Usage: VertexWriter vertices{target->makeVertexSpace(...)}; vertices << A0 << B0 << C0 << ...; vertices << A1 << B1 << C1 << ...;
Each value must be POD (plain old data), or have a specialization of the "<<" operator.
Definition at line 123 of file BufferWriter.h.
|
default |
|
inlineexplicit |
Definition at line 128 of file BufferWriter.h.
|
inline |
Definition at line 130 of file BufferWriter.h.
|
inline |
Definition at line 131 of file BufferWriter.h.
|
delete |
|
inline |
Definition at line 134 of file BufferWriter.h.
|
inlinestatic |
Definition at line 167 of file BufferWriter.h.
|
inlinestatic |
Definition at line 153 of file BufferWriter.h.
|
inline |
Definition at line 142 of file BufferWriter.h.
|
delete |
|
inline |
Definition at line 137 of file BufferWriter.h.
|
inlinestatic |
Definition at line 177 of file BufferWriter.h.
Definition at line 239 of file BufferWriter.h.
|
inlinestatic |
Definition at line 221 of file BufferWriter.h.
|
inline |
Definition at line 244 of file BufferWriter.h.
|
friend |
Definition at line 301 of file BufferWriter.h.
|
friend |
|
inlinestaticconstexpr |
Definition at line 124 of file BufferWriter.h.