vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::AsyncLoadQueue Class Reference

Thread-safe drop-box for async-loaded assets awaiting main-thread finalisation. More...

#include <async_load_queue.h>

Public Member Functions

std::vector< TextureLoadCompletion > drainTextures ()
 Move every pending completion out under one lock; main thread only.

Detailed Description

Thread-safe drop-box for async-loaded assets awaiting main-thread finalisation.

One per process, so a worker task carries no pointer back to its request.

Member Function Documentation

◆ drainTextures()

std::vector< TextureLoadCompletion > Vkm::Engine::AsyncLoadQueue::drainTextures ( )

Move every pending completion out under one lock; main thread only.

drainMeshes is the same for meshes.

Returns
The completions pushed since the last drain, oldest first.

The documentation for this class was generated from the following file: