Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
PSYQO SDK
Function template · 3 overloads
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Chains an already constructed DMA chain to the next DMA chain transfer.
template <Fragment Frag1, Fragment Frag2> void chain(Frag1 *first, Frag2 *last)Chains an already constructed DMA chain to the next DMA chain transfer.
| Parameter | Type | Meaning |
|---|---|---|
first | Frag1 * | The pointer to the first fragment of the chain. |
last | Frag2 * | The pointer to the last fragment of the chain. |
Returns: Nothing (void).
#include "psyqo/gpu.hh"
// Replace these template arguments with types or values accepted by the declaration:
// Frag1, Frag2
// Assume these named values have been initialized with valid data:
// Frag1 * first
// Frag2 * last
psyqo::GPU& object = /* obtain a valid instance */;
object.chain<Frag1, Frag2>(first, last);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/gpu.hh:334
template <Fragment Frag> void chain(Frag &fragment)Chains a fragment to the next DMA chain transfer.
| Parameter | Type | Meaning |
|---|---|---|
fragment | Frag & | The fragment to chain. |
Returns: Nothing (void).
#include "psyqo/gpu.hh"
// Replace these template arguments with types or values accepted by the declaration:
// Frag
// Assume these named values have been initialized with valid data:
// Frag & fragment
psyqo::GPU& object = /* obtain a valid instance */;
object.chain<Frag>(fragment);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/gpu.hh:320
template <size_t N, Safe safety = Safe::Yes> void chain(OrderingTable<N, safety> &table)Chains an ordering table to the next DMA chain transfer.
| Parameter | Type | Meaning |
|---|---|---|
table | OrderingTable<N, safety> & | The ordering table to chain. |
Returns: Nothing (void).
#include "psyqo/gpu.hh"
// Replace these template arguments with types or values accepted by the declaration:
// N, safety
// Assume these named values have been initialized with valid data:
// OrderingTable<N, safety> & table
psyqo::GPU& object = /* obtain a valid instance */;
object.chain<N, safety>(table);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/gpu.hh:349
armPeriodicTimerCreates a periodic timer.MethodarmTimerCreates a single-use timer.MethodcancelTimerCancels a timer.MethodchangeTimerPeriodChanges the period of a periodic timer.MethodclearImmediately clears the drawing buffer.MethoddelayDelays the coroutine for a specified amount of time.MethoddisableScissorImmediately disables the scissoring of the VRAM.MethodenableScissorEnables the scissoring of the VRAM.MethodgetClearSets a `FastFill` primitive to clear the current drawing buffer.MethodgetFrameCountReturns the number of frames rendered by the GPU so far.MethodgetNextClearSets a `FastFill` primitive to clear the next drawing buffer.MethodgetNextScissorGets the next scissoring region.Method