ID3D12Device::CreateCommandSignature method

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

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: 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 [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.h

Library

D3D12.lib

DLL

D3D12.dll

See also

ID3D12Device

 

 

Show: