Returns the adapter for the specified device.
public:
HRESULT GetAdapter(
IDXGIAdapter **pAdapter
)
pAdapter
Type: IDXGIAdapter **
[out] The address of an IDXGIAdapter interface pointer to the adapter. This parameter must not be NULL.
Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the DXGI_ERROR that indicates failure. If the pAdapter parameter is NULL this method returns E_INVALIDARG.
If the GetAdapter method succeeds, the reference count on the adapter interface will be incremented. To avoid a memory leak, be sure to release the interface when you are finished using it.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).