ID3D12VideoEncodeCommandList::Reset method (d3d12video.h)

Resets a command list back to its initial state as if a new command list was just created.

Syntax

HRESULT Reset(
  ID3D12CommandAllocator *pAllocator
);

Parameters

pAllocator

Type: ID3D12CommandAllocator*

A pointer to the ID3D12CommandAllocator object that the device creates command lists from.

Return value

Type: HRESULT

Returns S_OK if successful; otherwise, returns one of the following values:

  • E_FAIL if the command list was not in the "closed" state when the Reset call was made, or the per-device limit would have been exceeded.
  • E_OUTOFMEMORY if the operating system ran out of memory.
  • E_INVALIDARG if the allocator is currently being used with another command list in the "recording" state or if the specified allocator was created with the wrong type.
See Direct3D 12 Return Codes for other possible return values.

Remarks

For additional information and examples of using this method, see ID3D12GraphicsCommandList::Reset method

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