Set the maximum number of messages that can be added to the message queue.
public:
HRESULT SetMessageCountLimit(
UINT64 MessageCountLimit
)
MessageCountLimit
Type: UINT64
[in] Maximum number of messages that can be added to the message queue. -1 means no limit.
Type: HRESULT
This method returns one of the following Direct3D 11 return codes.
When the number of messages in the message queue has reached the maximum limit, new messages coming in will push old messages out.
Header: Declared in d3d11sdklayers.h.
Library: Use d3d11.lib.