ID3D10InfoQueue::AddMessage method

Add a Direct3D 10 debug message to the message queue and send that message to debug output.

Syntax


HRESULT AddMessage(
  [in]  D3D10_MESSAGE_CATEGORY Category,
  [in]  D3D10_MESSAGE_SEVERITY Severity,
  [in]  D3D10_MESSAGE_ID ID,
  [in]  LPCSTR pDescription
);

Parameters

Category [in]

Type: D3D10_MESSAGE_CATEGORY

Category of a message (see D3D10_MESSAGE_CATEGORY).

Severity [in]

Type: D3D10_MESSAGE_SEVERITY

Severity of a message (see D3D10_MESSAGE_SEVERITY).

ID [in]

Type: D3D10_MESSAGE_ID

Unique identifier of a message (see D3D10_MESSAGE_ID).

pDescription [in]

Type: LPCSTR

User-defined message.

Return value

Type: HRESULT

This method returns one of the following Direct3D 10 Return Codes.

Remarks

This method is used by the runtime's internal mechanisms to add Direct3D 10 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 ID3D10InfoQueue::AddApplicationMessage.

Requirements

Header

D3D10SDKLayers.h

See also

ID3D10InfoQueue Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft