|
CeresEngine 0.2.0
A game development framework
|
A helper class that keeps track of any resource so that they remain alive for as long as Vulkan needs it to be. More...
#include <CeresEngine/RenderAPI/Vulkan/VKCommandBuffer.hpp>
Public Member Functions | |
| VKCommandBufferTracker ()=default | |
| Creates a new empty tracker. | |
| VKCommandBufferTracker (const VKCommandBufferTracker &)=delete | |
| VKCommandBufferTracker & | operator= (const VKCommandBufferTracker &)=delete |
| VKCommandBufferTracker (VKCommandBufferTracker &&)=default | |
| VKCommandBufferTracker & | operator= (VKCommandBufferTracker &&)=default |
| ~VKCommandBufferTracker () | |
| Destroys the tracker and releases any resource that may be tracked. | |
| void | track (GPUObject *resource) |
| Tracks a resource by pointer. | |
| void | track (GPUObject &resource) |
| Tracks a resource by reference. | |
| void | reset () |
| Resets any tracked state. | |
Private Types | |
| using | Allocator = VKAllocator |
| An allocator that stores the state of tracked objects. | |
Private Attributes | |
| Allocator | mAllocator |
| An allocator that stores the state of tracked objects. | |
| Deque< RC< GPUObject >, Allocator > | mResources {mAllocator} |
| The marker that points to the top of the allocator before it allocates anything. | |
A helper class that keeps track of any resource so that they remain alive for as long as Vulkan needs it to be.
An allocator that stores the state of tracked objects.
|
default |
Creates a new empty tracker.
|
delete |
|
default |
|
inline |
Destroys the tracker and releases any resource that may be tracked.
|
delete |
|
default |
|
inline |
Resets any tracked state.
Tracks a resource by reference.
| resource | A reference to the resource to be tracked |
Tracks a resource by pointer.
| resource | A pointer to the resource to be tracked |
|
private |
An allocator that stores the state of tracked objects.
|
private |
The marker that points to the top of the allocator before it allocates anything.
Used to rewind the allocator on reset(). A vector of all tracked resources.