Diligent Engine API Reference
|
Texture view interface. More...
Public Member Functions | |
virtual void | QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface)=0 |
Queries the specific interface, see IObject::QueryInterface() for details. | |
virtual const TextureViewDesc & | GetDesc () const =0 |
Returns the texture view description used to create the object. | |
virtual void | SetSampler (class ISampler *pSampler)=0 |
Sets the texture sampler to use for filtering operations when accessing a texture from shaders. Only shader resource views can be assigned a sampler. The view will keep strong reference to the sampler. | |
virtual ISampler * | GetSampler ()=0 |
Returns the pointer to the sampler object set by the ITextureView::SetSampler(). More... | |
virtual class ITexture * | GetTexture ()=0 |
Returns the pointer to the referenced texture object. More... | |
virtual void | GenerateMips (IDeviceContext *pContext)=0 |
Generates a mipmap chain. More... | |
![]() | |
virtual void | QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0 |
Queries the specific interface, see IObject::QueryInterface() for details. | |
Texture view interface.
|
pure virtual |
Generates a mipmap chain.
Implemented in Diligent::TextureViewD3D11Impl, Diligent::TextureViewGLImpl, and Diligent::TextureViewD3D12Impl.
|
pure virtual |
Returns the pointer to the sampler object set by the ITextureView::SetSampler().
The method does NOT call AddRef() on the returned interface, so Release() must not be called.
Implemented in Diligent::TextureViewBase< ITextureViewD3D11 >, Diligent::TextureViewBase< ITextureViewD3D12 >, and Diligent::TextureViewBase< ITextureViewGL >.
|
pure virtual |
Returns the pointer to the referenced texture object.
The method does NOT call AddRef() on the returned interface, so Release() must not be called.
Implemented in Diligent::TextureViewBase< ITextureViewD3D11 >, Diligent::TextureViewBase< ITextureViewD3D12 >, and Diligent::TextureViewBase< ITextureViewGL >.