Base implementation of the ITexture interface. More...
#include <TextureBase.hpp>
Public Member Functions | |
TextureBase (IReferenceCounters *pRefCounters, TexViewObjAllocatorType &TexViewObjAllocator, RenderDeviceImplType *pDevice, const TextureDesc &Desc, bool bIsDeviceInternal=false) | |
virtual void DILIGENT_CALL_TYPE | CreateView (const struct TextureViewDesc &ViewDesc, ITextureView **ppView) override |
void | CreateDefaultViews () |
Creates default texture views. | |
virtual ITextureView *DILIGENT_CALL_TYPE | GetDefaultView (TEXTURE_VIEW_TYPE ViewType) override |
Implementation of ITexture::GetDefaultView(). | |
virtual const SparseTextureProperties &DILIGENT_CALL_TYPE | GetSparseProperties () const override final |
Implementation of ITexture::GetSparseProperties(). | |
![]() | |
DeviceObjectBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const TextureDesc &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 Member Functions | |
virtual void | CreateViewInternal (const struct TextureViewDesc &ViewDesc, ITextureView **ppView, bool bIsDefaultView)=0 |
Pure virtual function that is implemented in every backend. | |
Additional Inherited Members | |
![]() | |
RenderDeviceImplType *const | m_pDevice |
Pointer to the device. | |
TextureDesc | m_Desc |
Object description. | |
Base implementation of the ITexture interface.
EngineImplTraits | - Engine implementation type traits. |
|
inline |
pRefCounters | - Reference counters object that controls the lifetime of this texture. |
TexViewObjAllocator | - Allocator that is used to allocate memory for the instances of the texture view object. This parameter is only used for debug purposes. |
pDevice | - Pointer to the device |
Desc | - Texture description |
bIsDeviceInternal | - Flag indicating if the texture is an internal device object and must not keep a strong reference to the device |
|
inline |
Creates default texture views.
The function calls CreateViewInternal().
|
inlineoverridevirtual |
Implementation of ITexture::CreateView(); calls CreateViewInternal() virtual function that creates texture view for the specific engine implementation.