Epok Engine

PSYQO SDK

psyqo::GTE::clear

Function template · 1 overload

Function template

Clear 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 void clear()

Clear a GTE register.

This overload takes no parameters.

Returns: Nothing (void).

Example

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

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

psyqo::GTE::clear<reg, safety>();

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

Related members