Diligent Engine API Reference
Public Member Functions | Protected Attributes | List of all members
Diligent::TextureViewD3D11Impl Class Reference

Implementation of the Diligent::ITextureViewD3D11 interface. More...

Inheritance diagram for Diligent::TextureViewD3D11Impl:
Diligent::TextureViewBase< ITextureViewD3D11, FixedBlockMemoryAllocator > Diligent::DeviceObjectBase< ITextureViewD3D11, TextureViewDesc, FixedBlockMemoryAllocator > Diligent::ObjectBase< ITextureViewD3D11, FixedBlockMemoryAllocator > Diligent::RefCountedObject< ITextureViewD3D11, FixedBlockMemoryAllocator > Diligent::ITextureViewD3D11 Diligent::ITextureView Diligent::IDeviceObject Diligent::IObject

Public Member Functions

virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface) override final
 Queries the specific interface, see IObject::QueryInterface() for details.
 
virtual ID3D11View * GetD3D11View () override final
 Returns a pointer to the ID3D11View interface of the internal Direct3D11 object. More...
 
void GenerateMips (IDeviceContext *pContext) override final
 Generates a mipmap chain. More...
 
- Public Member Functions inherited from Diligent::TextureViewBase< ITextureViewD3D11, FixedBlockMemoryAllocator >
 TextureViewBase (FixedBlockMemoryAllocator &ObjAllocator, IRenderDevice *pDevice, const TextureViewDesc &ViewDesc, class ITexture *pTexture, bool bIsDefaultView)
 
virtual void SetSampler (class ISampler *pSampler) override final
 Implementation of ITextureView::SetSampler()
 
virtual ISamplerGetSampler () override final
 Implementation of ITextureView::GetSampler()
 
virtual ITextureGetTexture () override final
 Implementation of ITextureView::GetTexture()
 
- Public Member Functions inherited from Diligent::DeviceObjectBase< ITextureViewD3D11, TextureViewDesc, FixedBlockMemoryAllocator >
 DeviceObjectBase (FixedBlockMemoryAllocator &ObjAllocator, class IRenderDevice *pDevice, const TextureViewDesc &ObjDesc, IObject *pOwner=nullptr, bool bIsDeviceInternal=false)
 
virtual const TextureViewDescGetDesc () const override final
 
UniqueIdentifier GetUniqueID () const
 Returns unique identifier. More...
 
- Public Member Functions inherited from Diligent::RefCountedObject< ITextureViewD3D11, FixedBlockMemoryAllocator >
virtual IReferenceCountersGetReferenceCounters () const override final
 
virtual Atomics::Long AddRef () override
 
virtual Atomics::Long Release () override
 

Protected Attributes

CComPtr< ID3D11View > m_pD3D11View
 D3D11 view.
 
- Protected Attributes inherited from Diligent::TextureViewBase< ITextureViewD3D11, FixedBlockMemoryAllocator >
Diligent::RefCntAutoPtr< ISamplerm_pSampler
 Strong reference to the sampler.
 
ITexturem_pTexture
 Raw pointer to the texture.
 
Diligent::RefCntAutoPtr< ITexturem_spTexture
 Strong reference to the texture. Used for non-default views to keep the texture alive.
 
- Protected Attributes inherited from Diligent::DeviceObjectBase< ITextureViewD3D11, TextureViewDesc, FixedBlockMemoryAllocator >
const String m_ObjectNameCopy
 Copy of a device object name. More...
 
TextureViewDesc m_Desc
 Object description.
 

Detailed Description

Implementation of the Diligent::ITextureViewD3D11 interface.

Member Function Documentation

void Diligent::TextureViewD3D11Impl::GenerateMips ( IDeviceContext pContext)
finaloverridevirtual

Generates a mipmap chain.

Remarks
This function can only be called for a shader resource view The texture must be created with MISC_TEXTURE_FLAG_GENERATE_MIPS flag

Implements Diligent::ITextureView.

virtual ID3D11View* Diligent::TextureViewD3D11Impl::GetD3D11View ( )
inlinefinaloverridevirtual

Returns a pointer to the ID3D11View interface of the internal Direct3D11 object.

The method does NOT call AddRef() on the returned interface, so Release() must not be called.

Implements Diligent::ITextureViewD3D11.