ID2D1DeviceContext::CreateCommandList method (d2d1_1.h)

Creates a ID2D1CommandList object.

Syntax

HRESULT CreateCommandList(
  [out] ID2D1CommandList **commandList
);

Parameters

[out] commandList

Type: ID2D1CommandList**

When this method returns, contains the address of a pointer to a command list.

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULT Description
S_OK No error occurred.
E_OUTOFMEMORY Direct2D could not allocate sufficient memory to complete the call.

Remarks

A ID2D1CommandList can store Direct2D commands to be displayed later through ID2D1DeviceContext::DrawImage or through an image brush.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1.h
DLL D2d1.dll

See also

ID2D1CommandList

ID2D1DeviceContext