Template class implementing base functionality of the texture view interface. More...
#include <TextureViewBase.hpp>
Public Member Functions | |
TextureViewBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const TextureViewDesc &ViewDesc, ITexture *pTexture, bool bIsDefaultView, bool bIsDeviceInternal=false) | |
virtual void DILIGENT_CALL_TYPE | SetSampler (ISampler *pSampler) override final |
Implementation of ITextureView::SetSampler() | |
virtual ISampler *DILIGENT_CALL_TYPE | GetSampler () override final |
Implementation of ITextureView::GetSampler() | |
virtual ITexture *DILIGENT_CALL_TYPE | GetTexture () override final |
Implementation of ITextureView::GetTexture() | |
![]() | |
DeviceObjectBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const TextureViewDesc &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 | |
RefCntAutoPtr< ISampler > | m_pSampler |
Strong reference to the sampler. | |
ITexture *const | m_pTexture |
Raw pointer to the texture. | |
RefCntAutoPtr< ITexture > | m_spTexture |
![]() | |
RenderDeviceImplType *const | m_pDevice |
Pointer to the device. | |
TextureViewDesc | m_Desc |
Object description. | |
Template class implementing base functionality of the texture view interface.
EngineImplTraits | - Engine implementation type traits. |
|
inline |
pRefCounters | - Reference counters object that controls the lifetime of this texture view. |
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. |
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 texture. Used for non-default views to keep the texture alive