Skip to main content

D3D12Texture

The D3D12Texture class is a Direct3D12-specific implementation of the Texture class, providing access to internal resources and views. It supports creation from external ID3D12Resource objects and exposes methods to retrieve shader, render target, depth stencil, and unordered access views. This class also manages resource state transitions and provides access to shared and interop handles for advanced usage scenarios.

#include <platform/TellusimTexture.h>

Inheritance

Constructors

D3D12Texture()

Methods

Create external texture.

bool create(Type type, ID3D12Resource *texture, uint32_t state, Flags flags = DefaultFlags, Format format = FormatUnknown)
uint32_t getDXGIFormat() const
ID3D12Resource *getD3D12Texture() const
size_t getShaderResourceView() const
size_t getRenderTargetView() const
size_t getDepthStencilView() const
size_t getUnorderedAccessView() const
void setTextureState(uint32_t state)
uint32_t getTextureState() const
void *getSharedHandle() const
void *getInteropHandle() const