Template class implementing base functionality of the buffer view object. More...
#include <BufferViewBase.hpp>
Public Member Functions | |
BufferViewBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const BufferViewDesc &ViewDesc, IBuffer *pBuffer, bool bIsDefaultView, bool bIsDeviceInternal=false) | |
virtual IBuffer *DILIGENT_CALL_TYPE | GetBuffer () const override final |
Implementation of IBufferView::GetBuffer() | |
![]() | |
DeviceObjectBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const BufferViewDesc &ObjDesc, bool bIsDeviceInternal=false) | |
virtual Int32 DILIGENT_CALL_TYPE | GetUniqueID () const override final |
Returns unique identifier. | |
virtual void DILIGENT_CALL_TYPE | SetUserData (IObject *pUserData) override final |
Implementation of IDeviceObject::SetUserData. | |
virtual IObject *DILIGENT_CALL_TYPE | GetUserData () const override final |
Implementation of IDeviceObject::GetUserData. | |
Protected Attributes | |
IBuffer *const | m_pBuffer |
Pointer to the buffer. | |
RefCntAutoPtr< IBuffer > | m_spBuffer |
![]() | |
RenderDeviceImplType *const | m_pDevice |
Pointer to the device. | |
BufferViewDesc | m_Desc |
Object description. | |
Template class implementing base functionality of the buffer view object.
EngineImplTraits | - Engine implementation type traits. |
|
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 a default view, and is thus part of the buffer object. In this case the view will attach to the buffer's reference counters. |
bIsDeviceInternal | - Flag indicating if the texture is an internal device object and must not keep a strong reference to the device |
|
protected |
Strong reference to the buffer. Used for non-default views to keep the buffer alive