2 * Copyright (c) 2007-2010 SlimDX Group
\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
5 * of this software and associated documentation files (the "Software"), to deal
\r
6 * in the Software without restriction, including without limitation the rights
\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
8 * copies of the Software, and to permit persons to whom the Software is
\r
9 * furnished to do so, subject to the following conditions:
\r
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
24 #include "../ComObject.h"
\r
26 #include "Enums11.h"
\r
27 #include "DebugMessageID11.h"
\r
28 #include "InfoQueueFilter11.h"
\r
32 namespace Direct3D11
\r
36 public ref class InfoQueue : ComObject
\r
38 COMOBJECT(ID3D11InfoQueue, InfoQueue);
\r
41 InfoQueue(Device^ device);
\r
43 /*Result AddApplicationMessage(MessageSeverity severity, System::String^ description);
\r
44 Result AddMessage(MessageCategory category, MessageSeverity severity, DebugMessageID messageId, System::String^ description);
\r
45 Result AddMessage(DebugMessage message);
\r
46 Result AddRetrievalFilters(... array<InfoQueueFilter>^ filters);
\r
47 Result AddStorageFilters(... array<InfoQueueFilter>^ filters);
\r
49 void ClearRetrievalFilters();
\r
50 void ClearStorageFilters();
\r
51 void ClearStoredMessages();
\r
53 bool IsBreakingOn(MessageCategory category);
\r
54 bool IsBreakingOn(DebugMessageID messageId);
\r
55 bool IsBreakingOn(MessageSeverity severity);
\r
57 DebugMessage GetMessage(int index);
\r
58 InfoQueueFilter PeekRetrievalFilter();
\r
59 InfoQueueFilter PeekStorageFilter();
\r
61 void PopRetrievalFilter();
\r
62 void PopStorageFilter();
\r
64 void PushCopyOfRetrievalFilter();
\r
65 void PushCopyOfStorageFilter();
\r
66 void PushEmptyRetrievalFilter();
\r
67 void PushEmptyStorageFilter();
\r
69 void PushRetrievalFilter(InfoQueueFilter filter);
\r
70 void PushStorageFilter(InfoQueueFilter filter);
\r
72 Result BreakOn(MessageCategory category, bool enable);
\r
73 Result BreakOn(DebugMessageID messageId, bool enable);
\r
74 Result BreakOn(MessageSeverity severity, bool enable);
\r
76 property bool MuteOutput
\r
79 void set(bool value);
\r
82 property System::Int64 MessageCountLimit
\r
84 System::Int64 get();
\r
85 void set(System::Int64 value);
\r
88 property System::Int64 NumberOfMessagesAllowedByStorageFilter
\r
90 System::Int64 get();
\r
93 property System::Int64 NumberOfMessagesDeniedByStorageFilter
\r
95 System::Int64 get();
\r
98 property System::Int64 NumberOfMessagesDiscaredByMessageCountLimit
\r
100 System::Int64 get();
\r
103 property System::Int64 NumberOfStoredMessages
\r
105 System::Int64 get();
\r
108 property System::Int64 NumberOfStoredMessagesAllowedByRetrievalFilter
\r
110 System::Int64 get();
\r
113 property int RetrievalFilterStackSize
\r
118 property int StorageFilterStackSize
\r