IPixD3D12Resource interface

Represents a D3D12 resource. IPixCommittedD3D12Resource, IPixPlacedD3D12Resource, and IPixReservedD3D12Resource extend off IPixD3D12Resource and provide data specific to committed, placed, and reserved resources.

Inheritance

IPixD3D12Resource inherits from IPixD3D12ApiObject → IUnknown.

Interface ID

{E9EFF236-9BD1-4C45-BF75-E880CA500E41}

Methods

The IPixD3D12Resource interface declares these methods.

Method Description
GetType Gets whether this is a committed, placed, or reserved resource.
GetResourceDesc Gets the D3D12 resource description including dimensions, format, and flags.
GetClearValue Get the resource clear value.
GetInitialBarrierStateType Get whether the resource was created with an initial layout or initial state.
GetInitialState Get the initial state of the resource.
GetInitialLayout Get the initial layout of the resource.
GetCastableFormatCount Gets the number of DXGI formats this resource can be cast to.
GetCastableFormat Get the castable format at the given index.
GetViews Get all resource views/descriptors associated with the current D3D12 resource.

Inherited methods

Method Defined by
GetName IPixD3D12ApiObject
GetApiObjectId IPixD3D12ApiObject
GetApiObjectType IPixD3D12ApiObject

Requirements

Header: PixApiPipelineInterfaces.h