Diligent Engine API Reference
|
Template class implementing base functionality for a buffer view object. More...
Public Member Functions | |
BufferViewBase (IReferenceCounters *pRefCounters, IRenderDevice *pDevice, const BufferViewDesc &ViewDesc, IBuffer *pBuffer, bool bIsDefaultView) | |
virtual IBuffer * | GetBuffer () override final |
Implementation of IBufferView::GetBuffer() | |
![]() | |
DeviceObjectBase (IReferenceCounters *pRefCounters, IRenderDevice *pDevice, const BufferViewDesc &ObjDesc, bool bIsDeviceInternal=false) | |
UniqueIdentifier | GetUniqueID () const |
Returns unique identifier. More... | |
Protected Attributes | |
IBuffer *const | m_pBuffer |
Pointer to the buffer. | |
RefCntAutoPtr< IBuffer > | m_spBuffer |
Strong reference to the buffer. Used for non-default views to keep the buffer alive. | |
![]() | |
const String | m_ObjectNameCopy |
Copy of a device object name. More... | |
BufferViewDesc | m_Desc |
Object description. | |
Template class implementing base functionality for a buffer view object.
BaseInterface | - base interface that this class will inheret (Diligent::IBufferViewD3D11, Diligent::IBufferViewD3D12 or Diligent::IBufferViewGL). |
BuffViewObjAllocator | - type of the allocator that is used to allocate memory for the buffer view object instances |
|
inline |
pRefCounters | - reference counters object that controls the lifetime of this buffer view. |
pDevice | - pointer to the render device. |
ViewDesc | - buffer view description. |
pBuffer | - pointer to the buffer that the view is to be created for. |
bIsDefaultView | - flag indicating if the view is default view, and is thus part of the buffer object. In this case the view will attach to the buffer's reference counters. |