ITextureView struct
Texture view interface.
Contents
- Reference
Base classes
- struct IDeviceObject
- Base interface for all objects created by the render device Diligent::
IRenderDevice.
Derived classes
- struct ITextureViewD3D11
- Exposes Direct3D11-specific functionality of a texture view object.
- struct ITextureViewD3D12
- Exposes Direct3D12-specific functionality of a texture view object.
- struct ITextureViewGL
- Exposes OpenGL-specific functionality of a texture view object.
- class ITextureViewMtl
- Exposes Metal-specific functionality of a texture view object.
- struct ITextureViewVk
- Exposes Vulkan-specific functionality of a texture view object.
Public functions
- auto GetDesc() const -> const TextureViewDesc&METHOD() override
- Returns the texture view description used to create the object.
- auto SetSampler(struct ISampler* pSampler) -> void METHOD() virtual
- 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.
- auto GetSampler() -> struct ISampler*METHOD() virtual
- Returns the pointer to the sampler object set by the ITextureView::
SetSampler(). - auto GetTexture() -> struct ITexture*METHOD() virtual
- Returns the pointer to the referenced texture object.
Function documentation
struct ISampler*METHOD() Diligent:: ITextureView:: GetSampler() virtual
Returns the pointer to the sampler object set by the ITextureView::
The method does NOT call AddRef() on the returned interface, so Release() must not be called.
struct ITexture*METHOD() Diligent:: ITextureView:: GetTexture() 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.