ID3D12VideoEncodeCommandList::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 |
---|---|
Minimum supported client | Windows 10, version 2004 (10.0; Build 19041) |
Minimum supported server | Windows Server, version 2004 (10.0; Build 19041) |
Header | d3d12video.h |
DLL | d3d12.dll |