Epok Engine

EPOK RUNTIME

epok::upload_texture_bank

Function template · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function template

Acquire returns a pinned, checksum-verified page; upload MUST be blocking.

Belongs to
epok
Header
texture_upload.hpp
Overloads
1

Declaration

template
Declaration
template<class Acquire,class Release,class Upload> bool upload_texture_bank(const Texture* bank,size_t count,uint32_t pages,uint32_t page_bytes, Acquire acquire,Release release,Upload upload)

Acquire returns a pinned, checksum-verified page; upload MUST be blocking.

ParameterTypeMeaning
bankconst Texture *Not documented; consult the linked header.
countsize_tNot documented; consult the linked header.
pagesuint32_tNot documented; consult the linked header.
page_bytesuint32_tNot documented; consult the linked header.
acquireAcquireNot documented; consult the linked header.
releaseReleaseNot documented; consult the linked header.
uploadUploadNot documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "texture_upload.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Acquire, Release, Upload

// Assume these named values have been initialized with valid data:
// const Texture * bank
// size_t count
// uint32_t pages
// uint32_t page_bytes
// Acquire acquire
// Release release
// Upload upload

auto result = epok::upload_texture_bank<Acquire, Release, Upload>(bank, count, pages, page_bytes, acquire, release, upload);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/texture_upload.hpp:13

Related members