Diligent Engine API Reference
|
Template class implementing base functionality for a device object. More...
Public Member Functions | |
DeviceObjectBase (TObjectAllocator &ObjAllocator, class IRenderDevice *pDevice, const ObjectDescType &ObjDesc, IObject *pOwner=nullptr, bool bIsDeviceInternal=false) | |
UniqueIdentifier | GetUniqueID () const |
Returns unique identifier. More... | |
Protected Attributes | |
const String | m_ObjectNameCopy |
Copy of a device object name. More... | |
ObjectDescType | m_Desc |
Object description. | |
Template class implementing base functionality for a device object.
|
inline |
ObjAllocator | - allocator that was used to allocate memory for this instance |
pDevice | - pointer to the render device. |
ObjDesc | - object description. |
pOwner | - owner object. |
bIsDeviceInternal | - flag indicating if the object is an internal device object and must not keep a strong reference to the device. |
|
inline |
Returns unique identifier.
|
protected |
Copy of a device object name.
When new object is created, its description structure is copied to m_Desc, the name is copied to m_ObjectNameCopy, and m_Desc.Name pointer is set to m_ObjectNameCopy.c_str().