ID3D11InfoQueue::AddMessage method (d3d11sdklayers.h)
Add a debug message to the message queue and send that message to debug output.
Syntax
HRESULT AddMessage(
[in] D3D11_MESSAGE_CATEGORY Category,
[in] D3D11_MESSAGE_SEVERITY Severity,
[in] D3D11_MESSAGE_ID ID,
[in] LPCSTR pDescription
);
Parameters
[in] Category
Type: D3D11_MESSAGE_CATEGORY
Category of a message (see D3D11_MESSAGE_CATEGORY).
[in] Severity
Type: D3D11_MESSAGE_SEVERITY
Severity of a message (see D3D11_MESSAGE_SEVERITY).
[in] ID
Type: D3D11_MESSAGE_ID
Unique identifier of a message (see D3D11_MESSAGE_ID).
[in] pDescription
Type: LPCSTR
User-defined message.
Return value
Type: HRESULT
This method returns one of the following Direct3D 11 Return Codes.
Remarks
This method is used by the runtime's internal mechanisms to add debug messages to the message queue and send them to debug output. For applications to add their own custom messages to the message queue and send them to debug output, call ID3D11InfoQueue::AddApplicationMessage.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11sdklayers.h |
Library | D3D11.lib |