ID2D1Factory6::CreateDevice method

Creates a new Direct2D device from the given IDXGIDevice.

Syntax


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

Parameters

dxgiDevice [in]

Type: IDXGIDevice*

The IDXGIDevice to create the Direct2D device from.

d2dDevice5 [out]

Type: ID2D1Device5**

The created device.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1Factory6

 

 

Show: