ID3D11InfoQueue::AddApplicationMessage Method

Add a user-defined message to the message queue and send that message to debug output.

Syntax

public:
HRESULT AddApplicationMessage(
         D3D11_MESSAGE_SEVERITY Severity,
         LPCSTR pDescription
)  

Parameters

Severity
Type: D3D11_MESSAGE_SEVERITY 

[in] Severity of a message (see D3D11_MESSAGE_SEVERITY).

pDescription
Type: LPCSTR 

[in] Message string.

Return value

Type: HRESULT 

This method returns one of the following Direct3D 11 return codes.

Requirements

Header: Declared in d3d11sdklayers.h.

Library: Use d3d11.lib.

See also

ID3D11InfoQueue

ID3D11InfoQueue Members