Skip to main content
Creates a command list in the closed state. Also see ID3D12Device::CreateCommandList.

Syntax

Parameters

nodeMask [in]
Type: UINT
For single-GPU operation, set this to zero. If there are multiple GPU nodes, then set a bit to identify the node (the device’s physical adapter) for which to create the command list. Each bit in the mask corresponds to a single node. Only one bit must be set. Also see Multi-adapter systems. type [in]
Type: D3D12_COMMAND_LIST_TYPE
Specifies the type of command list to create. flags
Type: D3D12_COMMAND_LIST_FLAGS
Specifies creation flags. riid [in]
Type: const IID &
A reference to the globally unique identifier (GUID) of the command list interface to return in ppCommandList. ppCommandList [out]
Type: void **
A pointer to a memory block that receives a pointer to the ID3D12CommandList or ID3D12GraphicsCommandList interface for the command list.

Return value

Type: HRESULT If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Direct3D 12 return codes for other possible return values.

Remarks

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles

See Also

ID3D12Device::CreateCommandList
Last modified on August 20, 2026