Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDXGIDevice::GetAdapter method

Returns the adapter for the specified device.

Syntax


HRESULT GetAdapter(
  [out] IDXGIAdapter **pAdapter
);

Parameters

pAdapter [out]

Type: IDXGIAdapter**

The address of an IDXGIAdapter interface pointer to the adapter. This parameter must not be NULL.

Return value

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.

Remarks

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.

Requirements

Header

DXGI.h

Library

DXGI.lib

See also

IDXGIDevice
DXGI Interfaces

 

 

Show:
© 2017 Microsoft