|
Foundation
|
Storage/Object dereference facility for RHI Objects. More...
#include <Details.hpp>
Public Member Functions | |
| RHIObjectPool (Core::Allocator *allocator) | |
| template<typename U , typename ... Args> | |
| Handle | CreateObject (Args &&... args) |
| Creates specified RHIObject of derived type T and retrieves its handle. | |
| template<typename U = Base> | |
| U * | GetObjectPtr (Handle handle) const |
| Retrieves the raw pointer to the object within the storage. | |
| void | DestroyObject (Handle handle) |
| Destroys the object associated with the given handle, and frees the handle for reuse. | |
Private Attributes | |
| Core::Allocator * | mAllocator |
| Core::Pool< Handle, Base > | mObjects |
Storage/Object dereference facility for RHI Objects.
|
inline |
|
inline |
Creates specified RHIObject of derived type T and retrieves its handle.
|
inline |
Destroys the object associated with the given handle, and frees the handle for reuse.
|
inline |
Retrieves the raw pointer to the object within the storage.
| U | Pointer type to cast to. |
|
private |
|
private |