IDXGIInfoQueue::AddApplicationMessage Method

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

Syntax

public:
HRESULT AddApplicationMessage(
         DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
         LPCSTR pDescription
)  

Parameters

Severity
Type: DXGI_INFO_QUEUE_MESSAGE_SEVERITY 

[in] A DXGI_INFO_QUEUE_MESSAGE_SEVERITY-typed value that specifies the severity of 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