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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for