Class IShaderResourceDX12
Interface for objects that can be bound to the shader slots in DirectX 12.
Inheritance
IShaderResourceDX12
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX12/IShaderResourceDX12.h
Syntax
public class IShaderResourceDX12
Constructors
IShaderResourceDX12()
Declaration
public IShaderResourceDX12()
IShaderResourceDX12(int32 subresourceIndex)
Declaration
public IShaderResourceDX12(int32 subresourceIndex)
Parameters
|
int32
subresourceIndex
|
Fields
SrvDimension
Declaration
public D3D12_SRV_DIMENSION SrvDimension = D3D12_SRV_DIMENSION_UNKNOWN
Field Value
|
D3D12_SRV_DIMENSION
|
SubresourceIndex
Affected subresource index or -1 if use whole resource. This solves only resource states tracking per single subresource, not subresources range, if need to here should be range of subresources (for texture arrays, volume textures and cubemaps).
Declaration
public int32 SubresourceIndex
Field Value
|
int32
|
UavDimension
Declaration
public D3D12_UAV_DIMENSION UavDimension = D3D12_UAV_DIMENSION_UNKNOWN
Field Value
|
D3D12_UAV_DIMENSION
|
Methods
GetResourceOwner()
Gets the resource owner.
Declaration
public virtual ResourceOwnerDX12* GetResourceOwner() const = 0
Returns
|
ResourceOwnerDX12
|
IsDepthStencilResource()
Determines whether this resource is depth/stencil buffer.
Declaration
public virtual bool IsDepthStencilResource() const = 0
Returns
|
bool
|
SRV()
Gets CPU handle to the shader resource view descriptor.
Declaration
public virtual D3D12_CPU_DESCRIPTOR_HANDLE SRV() const = 0
Returns
|
D3D12_CPU_DESCRIPTOR_HANDLE
|
UAV()
Gets CPU handle to the unordered access view descriptor.
Declaration
public virtual D3D12_CPU_DESCRIPTOR_HANDLE UAV() const = 0
Returns
|
D3D12_CPU_DESCRIPTOR_HANDLE
|