Diligent::ITextureD3D12 struct

Exposes Direct3D12-specific functionality of a texture object.

Contents

Base classes

struct ITexture
Texture inteface.

Public functions

auto GetD3D12Texture() -> ID3D12Resource*METHOD() virtual
Returns a pointer to the ID3D12Resource interface of the internal Direct3D12 object.
auto SetD3D12ResourceState(D3D12_RESOURCE_STATES state) -> void METHOD() virtual
Sets the texture usage state.
auto GetD3D12ResourceState() const -> D3D12_RESOURCE_STATES METHOD() virtual
Returns current D3D12 texture state. If the state is unknown to the engine (Diligent::RESOURCE_STATE_UNKNOWN), returns D3D12_RESOURCE_STATE_COMMON (0).

Function documentation

ID3D12Resource*METHOD() Diligent::ITextureD3D12::GetD3D12Texture() virtual

Returns a pointer to the ID3D12Resource interface of the internal Direct3D12 object.

The method does NOT call AddRef() on the returned interface, so Release() must not be called.

void METHOD() Diligent::ITextureD3D12::SetD3D12ResourceState(D3D12_RESOURCE_STATES state) virtual

Sets the texture usage state.

Parameters
state in - D3D12 resource state to be set for this texture