Epok Engine

PSYQO SDK

psyqo::GTE::readUnsafe

Function · 3 overloads

Function

Reads unsafe 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 readUnsafe<PseudoRegister::LV>()

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

This overload takes no parameters.

Returns: PackedVec3. Check the value before continuing when it represents success, availability or a resource handle.

Example

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

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

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size.

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

Declaration 2 of 3

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

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

This overload takes no parameters.

Returns: PackedVec3. Check the value before continuing when it represents success, availability or a resource handle.

Example

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

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

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size.

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

Declaration 3 of 3

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

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

This overload takes no parameters.

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

Example

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::readUnsafe<reg, valid>();

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size.

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

Related members