Skip to main content
This method creates a command signature.

Syntax

Parameters

pDesc [in]
Type: const D3D12_COMMAND_SIGNATURE_DESC *
Describes the command signature to be created with the D3D12_COMMAND_SIGNATURE_DESC structure. pRootSignature [in, optional]
Type: ID3D12RootSignature *
Specifies the ID3D12RootSignature that the command signature applies to. The root signature is required if any of the commands in the signature will update bindings on the pipeline. If the only command present is a draw or dispatch, the root signature parameter can be set to NULL. riid
Type: const IID &
The globally unique identifier (GUID) for the command signature interface (ID3D12CommandSignature). The REFIID, or GUID, of the interface to the command signature can be obtained by using the __uuidof() macro. For example, __uuidof(ID3D12CommandSignature) will get the GUID of the interface to a command signature. ppvCommandSignature [out, optional]
Type: void **
Specifies a pointer, that on successful completion of the method will point to the created command signature (ID3D12CommandSignature).

Return value

Type: HRESULT This method returns one of the Direct3D 12 Return Codes.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12Device
Last modified on August 20, 2026