IDXGIInfoQueue::AddMessage Method

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

Syntax

public:
HRESULT AddMessage(
         DXGI_DEBUG_ID Producer,
         DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
         DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
         DXGI_INFO_QUEUE_MESSAGE_ID ID,
         LPCSTR pDescription
)  

Parameters

Producer
Type: DXGI_DEBUG_ID 

[in] A DXGI_DEBUG_ID value that identifies the entity that produced the message.

Category
Type: DXGI_INFO_QUEUE_MESSAGE_CATEGORY 

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

Severity
Type: DXGI_INFO_QUEUE_MESSAGE_SEVERITY 

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

ID
Type: DXGI_INFO_QUEUE_MESSAGE_ID 

[in] An integer that uniquely identifies the message.

pDescription
Type: LPCSTR 

[in] The message string.

Return value

Type: HRESULT 

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

Requirements

Header: Declared in dxgidebug.h.

Library: Use d3d11.lib.

See also

IDXGIInfoQueue

IDXGIInfoQueue Members