ID2D1Factory5::CreateDevice method (d2d1_3.h)

Creates an ID2D1Device4 object.

Syntax

HRESULT CreateDevice(
  [in]  IDXGIDevice  *dxgiDevice,
  [out] ID2D1Device4 **d2dDevice4
);

Parameters

[in] dxgiDevice

Type: IDXGIDevice*

The IDXGIDevice object used when creating the ID2D1Device4.

[out] d2dDevice4

Type: ID2D1Device4**

The requested ID2D1Device4 object.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1Factory5