Epok Engine

PSYQO SDK

psyqo::Color::(anonymous struct at third_party/nugget/psyqo/primitives/common.hh:92:5)::r

Field

Field

Exposes `r` on `psyqo::Color::(anonymous struct at third_party/nugget/psyqo/primitives/common.hh:92:5)` for typed PlayStation GPU primitives.

Belongs to
psyqo::Color::(anonymous struct at third_party/nugget/psyqo/primitives/common.hh:92:5)
Header
primitives/common.hh

Declaration

Declaration
uint8_t r

Exposes `r` on `psyqo::Color::(anonymous struct at third_party/nugget/psyqo/primitives/common.hh:92:5)` for typed PlayStation GPU primitives.

Type
uint8_t
Storage
Per instance

Example

C++ example
#include "psyqo/primitives/common.hh"

psyqo::Color::(anonymous struct at third_party/nugget/psyqo/primitives/common.hh:92:5)& object = /* obtain a valid instance */;
auto value = object.r;

// When mutation is valid for this object:
// object.r = replacement;

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/primitives/common.hh:93