|
Nugget
|
A maximum fixed sized fragment of similar primitives. More...
#include <psyqo/fragments.hh>

Public Types | |
| typedef Prim | FragmentBaseType |
Public Member Functions | |
| constexpr size_t | maxSize () const |
| FixedFragmentWithPrologue () | |
| FixedFragmentWithPrologue (const FixedFragmentWithPrologue &)=default | |
| size_t | getActualFragmentSize () const |
Public Attributes | |
| unsigned | count = N |
| uint32_t | head |
| P | prologue |
| eastl::array< Prim, N > | primitives |
A maximum fixed sized fragment of similar primitives.
This fragment contains a prologue, followed by a sequence of identical primitives. The prologue typically is used to store a setup for the rest of the primitives. The payload is a sequence of primitives of identical type. The count field needs to be updated to reflect the actual number of primitives stored in the fragment's payload. The primitive type can be a compounded structure of multiple primitive types.
| P | The prologue type. |
| T | The primitive type. |
| N | The maximum number of primitives in the payload. |
| typedef Prim psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::FragmentBaseType |
|
inline |
|
explicitdefault |
|
inline |
|
inlineconstexpr |
| unsigned psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::count = N |
| uint32_t psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::head |
| eastl::array<Prim, N> psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::primitives |
| P psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::prologue |