Epok Engine

EPOK RUNTIME

epok::gameplay_event_queue

Function · 2 overloads

Function

Performs `gameplay event queue` as part of the utility module.

Belongs to
epok
Header
utility.hpp
Overloads
2

Declaration 1 of 2

Declaration
inline EventQueue<4> gameplay_event_queue(GameplayEventQueue4 state)

Performs `gameplay event queue` as part of the utility module.

ParameterTypeMeaning
stateGameplayEventQueue4Value supplied for state. Keep referenced or pointed-to data valid for the complete call.

Returns: EventQueue<4>. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// GameplayEventQueue4 state

auto result = epok::gameplay_event_queue(state);

Why use it

The asynchronous shape lets the frame loop continue while hardware or queued work completes.

Trade-offs and warnings

Captured data and buffers must remain valid until the callback or task has completed.

Declared in runtime/utility.hpp:163

Declaration 2 of 2

Declaration
inline GameplayEventQueue4 gameplay_event_queue(EventQueue<4>& value)

Performs `gameplay event queue` as part of the utility module.

ParameterTypeMeaning
valueEventQueue<4> &Value supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// EventQueue<4> & value

auto result = epok::gameplay_event_queue(value);

Why use it

The asynchronous shape lets the frame loop continue while hardware or queued work completes.

Trade-offs and warnings

Captured data and buffers must remain valid until the callback or task has completed. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/utility.hpp:162

Related members