ID3D11DeviceChild::GetDevice method (d3d11.h)
Get a pointer to the device that created this interface.
Syntax
void GetDevice(
[out] ID3D11Device **ppDevice
);
Parameters
[out] ppDevice
Type: ID3D11Device**
Address of a pointer to a device (see ID3D11Device).
Return value
None
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.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for