class
render::TrackedGpuBufferSuballocation
Inherits:
GpuBufferSuballocation
Tracked GPU buffer suballocation that automatically releases itself when destroyed.
Inherits from GpuBufferSuballocation to support all the same operations.
Public
Constructors
TrackedGpuBufferSuballocation
TrackedGpuBufferSuballocation(GpuBufferPool *owner, const GpuBufferSuballocation &base)
Constructor - for internal use by GpuBufferPool only.
Do not call directly - use GpuBufferPool::AllocateTracked() instead.
TrackedGpuBufferSuballocation
TrackedGpuBufferSuballocation(TrackedGpuBufferSuballocation &&other) noexcept
Move constructor - transfers ownership.
Methods
~TrackedGpuBufferSuballocation
~TrackedGpuBufferSuballocation()
Destructor - automatically releases the allocation back to the owner pool.
Operators
operator=
Move assignment - transfers ownership.
Private
Fields
mOwner
GpuBufferPool * mOwner