ITexture struct
Texture inteface.
Contents
- Reference
Base classes
- struct IDeviceObject
- Base interface for all objects created by the render device Diligent::
IRenderDevice.
Derived classes
- struct ITextureD3D11
- Exposes Direct3D11-specific functionality of a texture object.
- struct ITextureD3D12
- Exposes Direct3D12-specific functionality of a texture object.
- struct ITextureGL
- Exposes OpenGL-specific functionality of a texture object.
- class ITextureMtl
- Exposes Metal-specific functionality of a texture object.
- struct ITextureVk
- Exposes Vulkan-specific functionality of a texture object.
Public functions
- auto GetDesc() const -> const TextureDesc&METHOD() override
- Returns the texture description used to create the object.
- auto CreateView(const TextureViewDesc& ViewDesc, ITextureView** ppView) -> void METHOD() virtual
- Creates a new texture view.
-
auto GetDefaultView(TEXTURE_
VIEW_ TYPE ViewType) -> ITextureView*METHOD() virtual - Returns the pointer to the default view.
- auto GetNativeHandle() -> void*METHOD() virtual
- Returns native texture handle specific to the underlying graphics API.
-
auto SetState(RESOURCE_
STATE State) -> void METHOD() virtual - Sets the usage state for all texture subresources.
-
auto GetState() const -> RESOURCE_
STATE METHOD() virtual - Returns the internal texture state.
Function documentation
void METHOD() Diligent:: ITexture:: CreateView(const TextureViewDesc& ViewDesc,
ITextureView** ppView) virtual
Creates a new texture view.
| Parameters | |
|---|---|
| ViewDesc in | - View description. See Diligent:: |
| ppView out | - Address of the memory location where the pointer to the view interface will be written to. |
ITextureView*METHOD() Diligent:: ITexture:: GetDefaultView(TEXTURE_ VIEW_ TYPE ViewType) virtual
Returns the pointer to the default view.
| Parameters | |
|---|---|
| ViewType in | - Type of the requested view. See Diligent:: |
| Returns | Pointer to the interface |
void*METHOD() Diligent:: ITexture:: GetNativeHandle() virtual
Returns native texture handle specific to the underlying graphics API.
| Returns | pointer to ID3D11Resource interface, for D3D11 implementation pointer to ID3D12Resource interface, for D3D12 implementation GL buffer handle, for GL implementation |
|---|
void METHOD() Diligent:: ITexture:: SetState(RESOURCE_ STATE State) virtual
Sets the usage state for all texture subresources.