Epok Engine

PSYQO SDK

psyqo::timer_literals::operator""_s

Function · 2 overloads

Function

Performs `operator "" s` as part of GPU setup, command submission and frame synchronization.

Belongs to
psyqo::timer_literals
Header
gpu.hh
Overloads
2

Declaration 1 of 2

Declaration
consteval uint32_t operator""_s(long double value)

Performs `operator "" s` as part of GPU setup, command submission and frame synchronization.

ParameterTypeMeaning
valuelong doubleValue supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "psyqo/gpu.hh"

// Assume these named values have been initialized with valid data:
// long double value

auto result = psyqo::timer_literals::operator""_s(value);

Why use it

It provides direct, allocation-conscious access to GPU setup, command submission and frame synchronization. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/gpu.hh:67

Declaration 2 of 2

Declaration
consteval uint32_t operator""_s(unsigned long long int value)

Performs `operator "" s` as part of GPU setup, command submission and frame synchronization.

ParameterTypeMeaning
valueunsigned long longValue supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "psyqo/gpu.hh"

// Assume these named values have been initialized with valid data:
// unsigned long long value

auto result = psyqo::timer_literals::operator""_s(value);

Why use it

It provides direct, allocation-conscious access to GPU setup, command submission and frame synchronization. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/gpu.hh:63

Related members