Epok Engine

PSYQO SDK

psyqo::GTE::readSafe

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

Function

Reads safe as part of Geometry Transformation Engine math and register operations.

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

Declaration 1 of 3

template
Declaration
template <> inline PackedVec3 readSafe<PseudoRegister::LV>()

Reads safe as part of Geometry Transformation Engine math and register operations.

This overload takes no parameters.

Returns: PackedVec3. Consult the linked header for its meaning.

Example sketch

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

auto result = psyqo::GTE::readSafe();

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:946

Declaration 2 of 3

template
Declaration
template <> inline PackedVec3 readSafe<PseudoRegister::SV>()

Reads safe as part of Geometry Transformation Engine math and register operations.

This overload takes no parameters.

Returns: PackedVec3. Consult the linked header for its meaning.

Example sketch

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

auto result = psyqo::GTE::readSafe();

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:939

Declaration 3 of 3

static · template
Declaration
template <PseudoRegister reg, bool valid = false> static inline PackedVec3 readSafe()

Reads a short vector from a GTE pseudo register, adding nops after the operation.

This overload takes no parameters.

Returns: PackedVec3 — PackedVec3 The vector read from the pseudo register.

Example sketch

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

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

auto result = psyqo::GTE::readSafe<reg, valid>();

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:413

Related members