ID2D1Factory4::CreateDevice method (d2d1_3.h)

Creates an ID2D1Device3 object.

Syntax

HRESULT CreateDevice(
  [in]  IDXGIDevice  *dxgiDevice,
  [out] ID2D1Device3 **d2dDevice3
);

Parameters

[in] dxgiDevice

Type: IDXGIDevice*

The IDXGIDevice object used when creating the ID2D1Device3.

[out] d2dDevice3

Type: ID2D1Device3**

The requested ID2D1Device3 object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Target Platform Windows
Header d2d1_3.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1Factory4