Diligent::IBufferSuballocation struct

Buffer suballocation.

Base classes

struct IObject
Base interface for all dynamic objects in the engine.

Derived classes

template<typename Base>
class RefCountedObject
Base class for all reference counting objects.

Public functions

auto GetOffset() const -> Uint32 pure virtual
Returns the start offset of the suballocation.
auto GetSize() const -> Uint32 pure virtual
Returns the suballocation size.
auto GetAllocator() -> IBufferSuballocator* pure virtual
Returns the pointer to the parent allocator.
void SetUserData(IObject* pUserData) pure virtual
Stores a pointer to the user-provided data object, which may later be retreived through GetUserData().
auto GetUserData() const -> IObject* pure virtual
Returns the pointer to the user data object previously set with SetUserData() method.

Function documentation

void Diligent::IBufferSuballocation::SetUserData(IObject* pUserData) pure virtual

Stores a pointer to the user-provided data object, which may later be retreived through GetUserData().

Parameters
pUserData in - Pointer to the user data object to store.

IObject* Diligent::IBufferSuballocation::GetUserData() const pure virtual

Returns the pointer to the user data object previously set with SetUserData() method.

Returns Pointer to the user data object