|
PSYQo
|
The fragments helpers. More...
Classes | |
| struct | FixedFragment |
| A maximum fixed sized fragment of similar primitives. More... | |
The fragments helpers.
This namespace provides helper templates to create fragments. A fragment is any structure which validates the following constraints:
head which is reserved for the usage of the GPU class.size_t getActualFragmentSize() method which returns the size of the fragment's payload in uint32_t units.head field.The structure may have any other field for its own usage.
Fragments are used by the GPU class to send a list of commands to the GPU. This can be done either using the sendFragment call to only send a single fragment, or by using the chain call to queue the fragments in a chain to be sent later.