DXGIGetDebugInterface

Retrieves a debugging interface.

Syntax

HRESULT DXGIGetDebugInterface(
         REFIID riid,
         void **ppDebug
)  

Parameters

riid
Type: REFIID 

The globally unique identifier (GUID) of the requested interface type.

ppDebug
Type: void **

A pointer to a buffer that receives a pointer to the debugging interface.

Return value

Type: HRESULT 

Returns S_OK if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.

Remarks

IDXGIDebug and IDXGIInfoQueue are debugging interfaces.

To access DXGIGetDebugInterface, call the GetModuleHandle function to get Dxgidebug.dll and the GetProcAddress function to get the address of DXGIGetDebugInterface.

Requirements

Header: Declared in dxgidebug.h.

Library: Use d3d11.lib.