ID2D1Factory6::CreateDevice method (d2d1_3.h)

Creates a new Direct2D device from the given IDXGIDevice.

Syntax

HRESULT CreateDevice(
  [in]  IDXGIDevice  *dxgiDevice,
  [out] ID2D1Device5 **d2dDevice5
);

Parameters

[in] dxgiDevice

Type: IDXGIDevice*

The IDXGIDevice to create the Direct2D device from.

[out] d2dDevice5

Type: ID2D1Device5**

The created device.

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

ID2D1Factory6