ID3D12VideoDecodeCommandList::DiscardResource method (d3d12video.h)

Indicate that the current contents of a resource can be discarded. The current contents of the resource are no longer valid allowing optimizations for subsequent operations such as ResourceBarrier.

Syntax

void DiscardResource(
  ID3D12Resource             *pResource,
  const D3D12_DISCARD_REGION *pRegion
);

Parameters

pResource

A pointer to the ID3D12Resource interface for the resource to discard.

pRegion

A pointer to a D3D12_DISCARD_REGION structure that describes details for the discard-resource operation.

Return value

None

Requirements

Requirement Value
Header d3d12video.h
DLL d3d12.dll