Adds a debug message to the message queue and sends that message to the debug output.
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
)
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.
Type: HRESULT
Returns S_OK if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.
Header: Declared in dxgidebug.h.
Library: Use d3d11.lib.