PSYQo
Public Types | Public Member Functions | Public Attributes | List of all members
psyqo::Fragments::FixedFragment< P, T, N > Struct Template Reference

A maximum fixed sized fragment of similar primitives. More...

#include <fragments.hh>

Public Types

typedef T FragmentBaseType
 

Public Member Functions

constexpr size_t maxSize () const
 
size_t getActualFragmentSize () const
 

Public Attributes

unsigned count
 
uint32_t head
 
prologue
 
eastl::array< T, N > primitives
 

Detailed Description

template<typename P, typename T, size_t N>
struct psyqo::Fragments::FixedFragment< P, T, N >

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.

Template Parameters
PThe prologue type.
TThe primitive type.
NThe maximum number of primitives in the payload.

The documentation for this struct was generated from the following file: