Diligent Engine API Reference
|
Template class implementing base functionality for a texture view interface. More...
Public Member Functions | |
TextureViewBase (TexViewObjAllocator &ObjAllocator, IRenderDevice *pDevice, const TextureViewDesc &ViewDesc, class ITexture *pTexture, bool bIsDefaultView) | |
virtual void | SetSampler (class ISampler *pSampler) override final |
Implementation of ITextureView::SetSampler() | |
virtual ISampler * | GetSampler () override final |
Implementation of ITextureView::GetSampler() | |
virtual ITexture * | GetTexture () override final |
Implementation of ITextureView::GetTexture() | |
Public Member Functions inherited from Diligent::DeviceObjectBase< BaseInterface, TextureViewDesc, TexViewObjAllocator > | |
DeviceObjectBase (TexViewObjAllocator &ObjAllocator, class IRenderDevice *pDevice, const TextureViewDesc &ObjDesc, IObject *pOwner=nullptr, bool bIsDeviceInternal=false) | |
UniqueIdentifier | GetUniqueID () const |
Returns unique identifier. More... | |
Protected Attributes | |
Diligent::RefCntAutoPtr< ISampler > | m_pSampler |
Strong reference to the sampler. | |
ITexture * | m_pTexture |
Raw pointer to the texture. | |
Diligent::RefCntAutoPtr< ITexture > | m_spTexture |
Strong reference to the texture. Used for non-default views to keep the texture alive. | |
Protected Attributes inherited from Diligent::DeviceObjectBase< BaseInterface, TextureViewDesc, TexViewObjAllocator > | |
const String | m_ObjectNameCopy |
Copy of a device object name. More... | |
TextureViewDesc | m_Desc |
Object description. | |
Template class implementing base functionality for a texture view interface.
BaseInterface | - base interface that this class will inheret (Diligent::ITextureViewD3D11, Diligent::ITextureViewD3D12 or Diligent::ITextureViewGL). TexViewObjAllocator - type of the allocator that is used to allocate memory for the texture view object instances |
|
inline |
ObjAllocator | - allocator that was used to allocate memory for this instance of the texture view object |
pDevice | - pointer to the render device. |
ViewDesc | - texture view description. |
pTexture | - pointer to the texture that the view is to be created for. |
bIsDefaultView | - flag indicating if the view is default view, and is thus part of the texture object. In this case the view will attach to the texture's reference counters. |