Epok Engine

PSYQO SDK

psyqo::GTE::readRaw

Function template · 1 overload

Function template

Reads a 32-bits value from a GTE register.

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

Declaration

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

Reads a 32-bits value from a GTE register.

This overload takes no parameters.

Returns: uint32_t — uint32_t The value read from the register.

Example

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

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

auto result = psyqo::GTE::readRaw<reg, safety>();

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection. The API maps closely to PSX GPU work, giving predictable ordering and low overhead.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. Respect packet lifetime, ordering-table direction and per-frame GPU/VRAM budgets; submission is not a desktop immediate-mode draw call.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/gte-registers.hh:367

Related members