Epok Engine

EPOK RUNTIME

epok::streaming_warmup_scene

Function template · 1 overload

Function template

A bounded small-scene startup policy.

Belongs to
epok
Header
streaming.hpp
Overloads
1

Declaration

template
Declaration
template <class ActorData, class Active> inline bool streaming_warmup_scene(const ActorData *objects, size_t count, Active &&active, psyqo::GPU &gpu)

A bounded small-scene startup policy.

ParameterTypeMeaning
objectsconst ActorData *Value supplied for objects. Keep referenced or pointed-to data valid for the complete call.
countsize_tValue supplied for count. Keep referenced or pointed-to data valid for the complete call.
activeActive &&Value supplied for active. Keep referenced or pointed-to data valid for the complete call.
gpupsyqo::GPU &Value supplied for gpu. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "streaming.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// ActorData, Active

// Assume these named values have been initialized with valid data:
// const ActorData * objects
// size_t count
// Active && active
// psyqo::GPU & gpu

auto result = epok::streaming_warmup_scene<ActorData, Active>(objects, count, active, gpu);

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection. The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. Check the return value; `false` is part of normal control flow for many PSX resource operations. 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/streaming.hpp:261

Related members