Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an ID2D1Device2 object.
Syntax
HRESULT CreateDevice(
[in] IDXGIDevice *dxgiDevice,
[out] ID2D1Device2 **d2dDevice2
);
Parameters
[in] dxgiDevice
Type: IDXGIDevice*
The IDXGIDevice object used when creating the ID2D1Device2.
[out] d2dDevice2
Type: ID2D1Device2**
The requested ID2D1Device2 object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d2d1_3.h |
Library | D2d1_3.lib |
DLL | D2d1_3.dll |