ID2D1DeviceContext::CreateCommandList method

Creates a ID2D1CommandList object.

Syntax

HRESULT CreateCommandList(
  ID2D1CommandList **commandList
);

Parameters

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

   
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