D3D11Texture
The D3D11Texture class is a Direct3D11-specific implementation of the Texture class, providing access to internal resources and views. It supports the creation of external textures from ID3D11Texture2D objects and provides methods for accessing various views, such as shader resource, render target, depth stencil, and unordered access views. Additionally, the class includes interop handle support for integrating with other APIs or systems.
#include <platform/TellusimTexture.h>
Inheritance
- Inherits from Texture
Constructors
D3D11Texture()
Methods
Create external texture.
bool create(Type type, ID3D11Texture2D *texture, Flags flags = DefaultFlags, Format format = FormatUnknown)
uint32_t getDXGIFormat() const
ID3D11Texture2D *getD3D11Texture() const
ID3D11ShaderResourceView *getShaderResourceView() const
ID3D11RenderTargetView *getRenderTargetView() const
ID3D11DepthStencilView *getDepthStencilView() const
ID3D11UnorderedAccessView *getUnorderedAccessView() const
void *getInteropHandle() const