Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::BufferViewBase< EngineImplTraits > Class Template Reference

Template class implementing base functionality of the buffer view object. More...

#include <BufferViewBase.hpp>

Inheritance diagram for Diligent::BufferViewBase< EngineImplTraits >:
Diligent::DeviceObjectBase< EngineImplTraits::BufferViewInterface, EngineImplTraits::RenderDeviceImplType, BufferViewDesc > Diligent::ObjectBase< EngineImplTraits::BufferViewInterface > Diligent::RefCountedObject< EngineImplTraits::BufferViewInterface >

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()
 
- Public Member Functions inherited from Diligent::DeviceObjectBase< EngineImplTraits::BufferViewInterface, EngineImplTraits::RenderDeviceImplType, BufferViewDesc >
 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< IBufferm_spBuffer
 
- Protected Attributes inherited from Diligent::DeviceObjectBase< EngineImplTraits::BufferViewInterface, EngineImplTraits::RenderDeviceImplType, BufferViewDesc >
RenderDeviceImplType *const m_pDevice
 Pointer to the device.
 
BufferViewDesc m_Desc
 Object description.
 

Detailed Description

template<typename EngineImplTraits>
class Diligent::BufferViewBase< EngineImplTraits >

Template class implementing base functionality of the buffer view object.

Template Parameters
EngineImplTraits- Engine implementation type traits.

Constructor & Destructor Documentation

◆ BufferViewBase()

template<typename EngineImplTraits>
Diligent::BufferViewBase< EngineImplTraits >::BufferViewBase ( IReferenceCounters * pRefCounters,
RenderDeviceImplType * pDevice,
const BufferViewDesc & ViewDesc,
IBuffer * pBuffer,
bool bIsDefaultView,
bool bIsDeviceInternal = false )
inline
Parameters
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

Member Data Documentation

◆ m_spBuffer

template<typename EngineImplTraits>
RefCntAutoPtr<IBuffer> Diligent::BufferViewBase< EngineImplTraits >::m_spBuffer
protected

Strong reference to the buffer. Used for non-default views to keep the buffer alive