ID3D12Device::CreateCommandSignature method (d3d12.h)

This method creates a command signature.

Syntax

HRESULT CreateCommandSignature(
  [in]            const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  [in, optional]  ID3D12RootSignature                *pRootSignature,
                  REFIID                             riid,
  [out, optional] void                               **ppvCommandSignature
);

Parameters

[in] pDesc

Type: const D3D12_COMMAND_SIGNATURE_DESC*

Describes the command signature to be created with the D3D12_COMMAND_SIGNATURE_DESC structure.

[in, optional] pRootSignature

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: REFIID

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.

[out, optional] ppvCommandSignature

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

Requirement Value
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See also

ID3D12Device