IDXGIInfoQueue::SetMessageCountLimit Method

Sets the maximum number of messages that can be added to the message queue.

Syntax

public:
HRESULT SetMessageCountLimit(
         DXGI_DEBUG_ID Producer,
         UINT64 MessageCountLimit
)  

Parameters

Producer
Type: DXGI_DEBUG_ID 

[in] A DXGI_DEBUG_ID value that identifies the entity that sets the limit on the number of messages.

MessageCountLimit
Type: UINT64 

[in] The maximum number of messages that can be added to the queue. –1 means no limit.

Return value

Type: HRESULT 

Returns S_OK if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.

Requirements

Header: Declared in dxgidebug.h.

Library: Use d3d11.lib.

See also

IDXGIInfoQueue

IDXGIInfoQueue Members