Module resource_manager
Structs§
- Resource
Acquire Task - An opaque handle to a
ResourceManagertask. - Resource
Manager - Use the
ResourceManagerto access and use resources in kzb files. The resource manager maintains kzb files and provides mechanisms to load resources from kzb files. - Resource
Usage - The memory usage summary for all resources.
Enums§
Traits§
- Acquire
Finished Callback - Resource
Load Task - Use this trait to implement the load tasks that load new resources.
A load task is split into an optional
loadand mandatoryfinishfunctions. Theloadfunction may be called in a background worker thread, instead of the main thread. And so only thread independent work should be done here. While thefinishfunction is guaranteed to be called in the main thread. - Resource
Protocol - Use this trait to implement the protocol for loading resources.
- Resource
Reload Protocol - Use this trait to implement the protocol for reloading GPU resources.