ID3D11DeviceChild::GetDevice method

Get a pointer to the device that created this interface.

Syntax


void GetDevice(
  [out]  ID3D11Device **ppDevice
);

Parameters

ppDevice [out]

Type: ID3D11Device**

Address of a pointer to a device (see ID3D11Device).

Return value

Returns nothing.

Remarks

Any returned interfaces will have their reference count incremented by one, so be sure to call ::release() on the returned pointer(s) before they are freed or else you will have a memory leak.

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceChild

 

 

Community Additions

ADD
Show:
© 2014 Microsoft