Epok Engine

EPOK RUNTIME

epok::streaming_warmup

Function · 1 overload

Function

The caller selects a startup working set from resident metadata.

Belongs to
epok
Header
streaming.hpp
Overloads
1

Declaration

Declaration
inline bool streaming_warmup(const uint32_t *pages, size_t count, psyqo::GPU &gpu)

The caller selects a startup working set from resident metadata.

ParameterTypeMeaning
pagesconst uint32_t *Value supplied for pages. 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.
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"

// Assume these named values have been initialized with valid data:
// const uint32_t * pages
// size_t count
// psyqo::GPU & gpu

auto result = epok::streaming_warmup(pages, count, gpu);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

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

Related members