IDXGIInfoQueue::AddMessage method (dxgidebug.h)

Adds a debug message to the message queue and sends that message to the debug output.

Syntax

HRESULT AddMessage(
  [in] DXGI_DEBUG_ID                    Producer,
  [in] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
  [in] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
  [in] DXGI_INFO_QUEUE_MESSAGE_ID       ID,
  [in] LPCSTR                           pDescription
);

Parameters

[in] Producer

A DXGI_DEBUG_ID value that identifies the entity that produced the message.

[in] Category

A DXGI_INFO_QUEUE_MESSAGE_CATEGORY-typed value that specifies the category of the message.

[in] Severity

A DXGI_INFO_QUEUE_MESSAGE_SEVERITY-typed value that specifies the severity of the message.

[in] ID

An integer that uniquely identifies the message.

[in] pDescription

The message string.

Return value

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

Remarks

Note  This API requires the Windows Software Development Kit (SDK) for Windows 8.
 

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header dxgidebug.h
DLL DXGIDebug.dll

See also

IDXGIInfoQueue