ID3D12InfoQueue::AddMessage method

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

Syntax

HRESULT AddMessage(
  D3D12_MESSAGE_CATEGORY Category,
  D3D12_MESSAGE_SEVERITY Severity,
  D3D12_MESSAGE_ID       ID,
  LPCSTR                 pDescription
);

Parameters

Category

Type: D3D12_MESSAGE_CATEGORY

Category of a message.

Severity

Type: D3D12_MESSAGE_SEVERITY

Severity of a message.

ID

Type: D3D12_MESSAGE_ID

Unique identifier of a message.

pDescription

Type: LPCSTR

User-defined message.

Return Value

Type: HRESULT

This method returns one of the Direct3D 12 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 ID3D12InfoQueue::AddApplicationMessage.

Requirements

   
Target Platform Windows
Header d3d12sdklayers.h

See Also

ID3D12InfoQueue