ID3D12Device::CreateCommandSignature method

This method creates a command signature.

Syntax

HRESULT CreateCommandSignature(
  const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  ID3D12RootSignature                *pRootSignature,
  REFIID                             riid,
  void                               **ppvCommandSignature
);

Parameters

pDesc

Type: const D3D12_COMMAND_SIGNATURE_DESC*

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

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.

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

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

See Also

ID3D12Device