Epok Engine

PSYQO SDK

psyqo::GTE::write

Function template · 2 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.

Function template

Writes a 32-bits value to a GTE register from memory.

Belongs to
psyqo::GTE
Header
gte-registers.hh
Overloads
2

Declaration 1 of 2

static · template
Declaration
template <Register reg, Safety safety = Safe> static inline void write(const uint32_t* ptr)

Writes a 32-bits value to a GTE register from memory.

ParameterTypeMeaning
ptrconst uint32_t *The pointer to the value to write.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/gte-registers.hh"

// Replace these template arguments with types or values accepted by the declaration:
// reg, safety

// Assume these named values have been initialized with valid data:
// const uint32_t * ptr

psyqo::GTE::write<reg, safety>(ptr);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/gte-registers.hh:346

Declaration 2 of 2

static · template
Declaration
template <Register reg, Safety safety = Safe> static inline void write(uint32_t value)

Write a 32-bits value to a GTE register.

ParameterTypeMeaning
valueuint32_tThe value to write.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/gte-registers.hh"

// Replace these template arguments with types or values accepted by the declaration:
// reg, safety

// Assume these named values have been initialized with valid data:
// uint32_t value

psyqo::GTE::write<reg, safety>(value);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/gte-registers.hh:184

Related members