]> git.notmuchmail.org Git - apitrace/blob - specs/d3d10sdklayers.py
Drop API_D3D10/11.
[apitrace] / specs / d3d10sdklayers.py
1 ##########################################################################
2 #
3 # Copyright 2012 VMware, Inc.
4 # All Rights Reserved.
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 # THE SOFTWARE.
23 #
24 ##########################################################################/
25
26 from dxgi import *
27 from d3d10 import HRESULT
28
29 D3D10_DEBUG_FEATURE = Flags(UINT, [
30     "D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP",
31     "D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP",
32     "D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP",
33 ])
34
35 ID3D10Debug = Interface("ID3D10Debug", IUnknown)
36 ID3D10Debug.methods += [
37     StdMethod(HRESULT, "SetFeatureMask", [(D3D10_DEBUG_FEATURE, "Mask")]),
38     StdMethod(UINT, "GetFeatureMask", [], sideeffects=False),
39     StdMethod(HRESULT, "SetPresentPerRenderOpDelay", [(UINT, "Milliseconds")]),
40     StdMethod(UINT, "GetPresentPerRenderOpDelay", [], sideeffects=False),
41     StdMethod(HRESULT, "SetSwapChain", [(ObjPointer(IDXGISwapChain), "pSwapChain")]),
42     StdMethod(HRESULT, "GetSwapChain", [Out(Pointer(ObjPointer(IDXGISwapChain)), "ppSwapChain")]),
43     StdMethod(HRESULT, "Validate", []),
44 ]
45
46 ID3D10SwitchToRef = Interface("ID3D10SwitchToRef", IUnknown)
47 ID3D10SwitchToRef.methods += [
48     StdMethod(BOOL, "SetUseRef", [(BOOL, "UseRef")]),
49     StdMethod(BOOL, "GetUseRef", [], sideeffects=False),
50 ]
51
52 D3D10_MESSAGE_CATEGORY = Enum("D3D10_MESSAGE_CATEGORY", [
53     "D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED",
54     "D3D10_MESSAGE_CATEGORY_MISCELLANEOUS",
55     "D3D10_MESSAGE_CATEGORY_INITIALIZATION",
56     "D3D10_MESSAGE_CATEGORY_CLEANUP",
57     "D3D10_MESSAGE_CATEGORY_COMPILATION",
58     "D3D10_MESSAGE_CATEGORY_STATE_CREATION",
59     "D3D10_MESSAGE_CATEGORY_STATE_SETTING",
60     "D3D10_MESSAGE_CATEGORY_STATE_GETTING",
61     "D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION",
62     "D3D10_MESSAGE_CATEGORY_EXECUTION",
63 ])
64
65 D3D10_MESSAGE_SEVERITY = Enum("D3D10_MESSAGE_SEVERITY", [
66     "D3D10_MESSAGE_SEVERITY_CORRUPTION",
67     "D3D10_MESSAGE_SEVERITY_ERROR",
68     "D3D10_MESSAGE_SEVERITY_WARNING",
69     "D3D10_MESSAGE_SEVERITY_INFO",
70 ])
71
72 D3D10_MESSAGE_ID = Enum("D3D10_MESSAGE_ID", [
73     "D3D10_MESSAGE_ID_UNKNOWN",
74     "D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD",
75     "D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD",
76     "D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD",
77     "D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD",
78     "D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD",
79     "D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD",
80     "D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD",
81     "D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD",
82     "D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD",
83     "D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD",
84     "D3D10_MESSAGE_ID_STRING_FROM_APPLICATION",
85     "D3D10_MESSAGE_ID_CORRUPTED_THIS",
86     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1",
87     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2",
88     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3",
89     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4",
90     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5",
91     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6",
92     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7",
93     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8",
94     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9",
95     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10",
96     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11",
97     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12",
98     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13",
99     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14",
100     "D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15",
101     "D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING",
102     "D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY",
103     "D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT",
104     "D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT",
105     "D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT",
106     "D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT",
107     "D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT",
108     "D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT",
109     "D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT",
110     "D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT",
111     "D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT",
112     "D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT",
113     "D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT",
114     "D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT",
115     "D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT",
116     "D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT",
117     "D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT",
118     "D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT",
119     "D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT",
120     "D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT",
121     "D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT",
122     "D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT",
123     "D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT",
124     "D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA",
125     "D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA",
126     "D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN",
127     "D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS",
128     "D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS",
129     "D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY",
130     "D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT",
131     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES",
132     "D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE",
133     "D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS",
134     "D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS",
135     "D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS",
136     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS",
137     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS",
138     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA",
139     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS",
140     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS",
141     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS",
142     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN",
143     "D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN",
144     "D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC",
145     "D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS",
146     "D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION",
147     "D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT",
148     "D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT",
149     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES",
150     "D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE",
151     "D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS",
152     "D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS",
153     "D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS",
154     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS",
155     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS",
156     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA",
157     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS",
158     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS",
159     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS",
160     "D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN",
161     "D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN",
162     "D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC",
163     "D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION",
164     "D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT",
165     "D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT",
166     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES",
167     "D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE",
168     "D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS",
169     "D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS",
170     "D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS",
171     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS",
172     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS",
173     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA",
174     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS",
175     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS",
176     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS",
177     "D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN",
178     "D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN",
179     "D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC",
180     "D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION",
181     "D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT",
182     "D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT",
183     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES",
184     "D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE",
185     "D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS",
186     "D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS",
187     "D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS",
188     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS",
189     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS",
190     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA",
191     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS",
192     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS",
193     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS",
194     "D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN",
195     "D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN",
196     "D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC",
197     "D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION",
198     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT",
199     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC",
200     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT",
201     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS",
202     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE",
203     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS",
204     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN",
205     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN",
206     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT",
207     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT",
208     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC",
209     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT",
210     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS",
211     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE",
212     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS",
213     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN",
214     "D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN",
215     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT",
216     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC",
217     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT",
218     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS",
219     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE",
220     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS",
221     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN",
222     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN",
223     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY",
224     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS",
225     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT",
226     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT",
227     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT",
228     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS",
229     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH",
230     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE",
231     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE",
232     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT",
233     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC",
234     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE",
235     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC",
236     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT",
237     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC",
238     "D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY",
239     "D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE",
240     "D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE",
241     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY",
242     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE",
243     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE",
244     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY",
245     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE",
246     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE",
247     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES",
248     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED",
249     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL",
250     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL",
251     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED",
252     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT",
253     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT",
254     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT",
255     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT",
256     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION",
257     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT",
258     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE",
259     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC",
260     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH",
261     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS",
262     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX",
263     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE",
264     "D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY",
265     "D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE",
266     "D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE",
267     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE",
268     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE",
269     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP",
270     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS",
271     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS",
272     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC",
273     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK",
274     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC",
275     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP",
276     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP",
277     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP",
278     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC",
279     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP",
280     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP",
281     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP",
282     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC",
283     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS",
284     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC",
285     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND",
286     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND",
287     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP",
288     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA",
289     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA",
290     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA",
291     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK",
292     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS",
293     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC",
294     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER",
295     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU",
296     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV",
297     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW",
298     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS",
299     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY",
300     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC",
301     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD",
302     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD",
303     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS",
304     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC",
305     "D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY",
306     "D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS",
307     "D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG",
308     "D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC",
309     "D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED",
310     "D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED",
311     "D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER",
312     "D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE",
313     "D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY",
314     "D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER",
315     "D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID",
316     "D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE",
317     "D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED",
318     "D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY",
319     "D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER",
320     "D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY",
321     "D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY",
322     "D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY",
323     "D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER",
324     "D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY",
325     "D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY",
326     "D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER",
327     "D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED",
328     "D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY",
329     "D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER",
330     "D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY",
331     "D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY",
332     "D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT",
333     "D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR",
334     "D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH",
335     "D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH",
336     "D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID",
337     "D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY",
338     "D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY",
339     "D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY",
340     "D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY",
341     "D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY",
342     "D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY",
343     "D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY",
344     "D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY",
345     "D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY",
346     "D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY",
347     "D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY",
348     "D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY",
349     "D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY",
350     "D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID",
351     "D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE",
352     "D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE",
353     "D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX",
354     "D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE",
355     "D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE",
356     "D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE",
357     "D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE",
358     "D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE",
359     "D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE",
360     "D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE",
361     "D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX",
362     "D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE",
363     "D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID",
364     "D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID",
365     "D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID",
366     "D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID",
367     "D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID",
368     "D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE",
369     "D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS",
370     "D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED",
371     "D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN",
372     "D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED",
373     "D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE",
374     "D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE",
375     "D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS",
376     "D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED",
377     "D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN",
378     "D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE",
379     "D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED",
380     "D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE",
381     "D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE",
382     "D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS",
383     "D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED",
384     "D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN",
385     "D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE",
386     "D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED",
387     "D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE",
388     "D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE",
389     "D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS",
390     "D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED",
391     "D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN",
392     "D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE",
393     "D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED",
394     "D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED",
395     "D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED",
396     "D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS",
397     "D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN",
398     "D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN",
399     "D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE",
400     "D3D10_MESSAGE_ID_REF_THREADING_MODE",
401     "D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION",
402     "D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION",
403     "D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION",
404     "D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE",
405     "D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER",
406     "D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY",
407     "D3D10_MESSAGE_ID_REF_INFO",
408     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW",
409     "D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW",
410     "D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW",
411     "D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW",
412     "D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW",
413     "D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW",
414     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET",
415     "D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND",
416     "D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX",
417     "D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE",
418     "D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK",
419     "D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE",
420     "D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS",
421     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET",
422     "D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET",
423     "D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET",
424     "D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL",
425     "D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET",
426     "D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET",
427     "D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH",
428     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL",
429     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL",
430     "D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET",
431     "D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID",
432     "D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL",
433     "D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH",
434     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH",
435     "D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT",
436     "D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET",
437     "D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED",
438     "D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY",
439     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED",
440     "D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED",
441     "D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED",
442     "D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED",
443     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED",
444     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED",
445     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED",
446     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED",
447     "D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE",
448     "D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER",
449     "D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING",
450     "D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0",
451     "D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT",
452     "D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT",
453     "D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT",
454     "D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN",
455     "D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN",
456     "D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN",
457     "D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET",
458     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC",
459     "D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC",
460     "D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH",
461     "D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW",
462     "D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS",
463     "D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH",
464     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH",
465     "D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY",
466     "D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY",
467     "D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN",
468     "D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN",
469     "D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER",
470     "D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED",
471     "D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER",
472     "D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN",
473     "D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN",
474     "D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC",
475     "D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER",
476     "D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER",
477     "D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE",
478     "D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED",
479     "D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION",
480     "D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE",
481     "D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS",
482     "D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION",
483     "D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS",
484     "D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN",
485     "D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE",
486     "D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS",
487     "D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL",
488     "D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH",
489     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED",
490     "D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN",
491     "D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE",
492     "D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE",
493     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT",
494     "D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH",
495     "D3D10_MESSAGE_ID_D3D10_MESSAGES_END",
496     "D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START",
497     "D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED",
498     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED",
499     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT",
500     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY",
501     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE",
502     "D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED",
503     "D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS",
504     "D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS",
505     "D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS",
506     "D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND",
507     "D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D",
508     "D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE",
509     "D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE",
510     "D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS",
511     "D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS",
512     "D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX",
513     "D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS",
514     "D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED",
515     "D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS",
516     "D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY",
517     "D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK",
518     "D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK",
519     "D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT",
520     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE",
521     "D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE",
522     "D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE",
523     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD",
524     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL",
525     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX",
526     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO",
527     "D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES",
528     "D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET",
529     "D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER",
530     "D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE",
531     "D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE",
532     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE",
533     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS",
534     "D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT",
535     "D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS",
536     "D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES",
537     "D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED",
538     "D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED",
539     "D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED",
540     "D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED",
541     "D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED",
542     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND",
543     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND",
544     "D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED",
545     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE",
546     "D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED",
547     "D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3",
548     "D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED",
549     "D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO",
550     "D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION",
551     "D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED",
552     "D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR",
553     "D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA",
554     "D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP",
555     "D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED",
556     "D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT",
557     "D3D10_MESSAGE_ID_D3D10L9_MESSAGES_END",
558 ])
559
560 D3D10_MESSAGE = Struct("D3D10_MESSAGE", [
561     (D3D10_MESSAGE_CATEGORY, "Category"),
562     (D3D10_MESSAGE_SEVERITY, "Severity"),
563     (D3D10_MESSAGE_ID, "ID"),
564     (ConstCString, "pDescription"),
565     (SIZE_T, "DescriptionByteLength"),
566 ])
567
568 D3D10_INFO_QUEUE_FILTER_DESC = Struct("D3D10_INFO_QUEUE_FILTER_DESC", [
569     (UINT, "NumCategories"),
570     (Pointer(D3D10_MESSAGE_CATEGORY), "pCategoryList"),
571     (UINT, "NumSeverities"),
572     (Pointer(D3D10_MESSAGE_SEVERITY), "pSeverityList"),
573     (UINT, "NumIDs"),
574     (OpaquePointer(D3D10_MESSAGE_ID), "pIDList"), # TODO: Array
575 ])
576
577 D3D10_INFO_QUEUE_FILTER = Struct("D3D10_INFO_QUEUE_FILTER", [
578     (D3D10_INFO_QUEUE_FILTER_DESC, "AllowList"),
579     (D3D10_INFO_QUEUE_FILTER_DESC, "DenyList"),
580 ])
581
582 ID3D10InfoQueue = Interface("ID3D10InfoQueue", IUnknown)
583 ID3D10InfoQueue.methods += [
584     StdMethod(HRESULT, "SetMessageCountLimit", [(UINT64, "MessageCountLimit")], sideeffects=False),
585     StdMethod(Void, "ClearStoredMessages", [], sideeffects=False),
586     StdMethod(HRESULT, "GetMessage", [(UINT64, "MessageIndex"), Out(Pointer(D3D10_MESSAGE), "pMessage"), Out(Pointer(SIZE_T), "pMessageByteLength")], sideeffects=False),
587     StdMethod(UINT64, "GetNumMessagesAllowedByStorageFilter", [], sideeffects=False),
588     StdMethod(UINT64, "GetNumMessagesDeniedByStorageFilter", [], sideeffects=False),
589     StdMethod(UINT64, "GetNumStoredMessages", [], sideeffects=False),
590     StdMethod(UINT64, "GetNumStoredMessagesAllowedByRetrievalFilter", [], sideeffects=False),
591     StdMethod(UINT64, "GetNumMessagesDiscardedByMessageCountLimit", [], sideeffects=False),
592     StdMethod(UINT64, "GetMessageCountLimit", [], sideeffects=False),
593     StdMethod(HRESULT, "AddStorageFilterEntries", [(Pointer(D3D10_INFO_QUEUE_FILTER), "pFilter")], sideeffects=False),
594     StdMethod(HRESULT, "GetStorageFilter", [Out(Pointer(D3D10_INFO_QUEUE_FILTER), "pFilter"), Out(Pointer(SIZE_T), "pFilterByteLength")], sideeffects=False),
595     StdMethod(Void, "ClearStorageFilter", [], sideeffects=False),
596     StdMethod(HRESULT, "PushEmptyStorageFilter", [], sideeffects=False),
597     StdMethod(HRESULT, "PushCopyOfStorageFilter", [], sideeffects=False),
598     StdMethod(HRESULT, "PushStorageFilter", [(Pointer(D3D10_INFO_QUEUE_FILTER), "pFilter")], sideeffects=False),
599     StdMethod(Void, "PopStorageFilter", [], sideeffects=False),
600     StdMethod(UINT, "GetStorageFilterStackSize", [], sideeffects=False),
601     StdMethod(HRESULT, "AddRetrievalFilterEntries", [(Pointer(D3D10_INFO_QUEUE_FILTER), "pFilter")], sideeffects=False),
602     StdMethod(HRESULT, "GetRetrievalFilter", [Out(Pointer(D3D10_INFO_QUEUE_FILTER), "pFilter"), Out(Pointer(SIZE_T), "pFilterByteLength")], sideeffects=False),
603     StdMethod(Void, "ClearRetrievalFilter", [], sideeffects=False),
604     StdMethod(HRESULT, "PushEmptyRetrievalFilter", [], sideeffects=False),
605     StdMethod(HRESULT, "PushCopyOfRetrievalFilter", [], sideeffects=False),
606     StdMethod(HRESULT, "PushRetrievalFilter", [(Pointer(D3D10_INFO_QUEUE_FILTER), "pFilter")], sideeffects=False),
607     StdMethod(Void, "PopRetrievalFilter", [], sideeffects=False),
608     StdMethod(UINT, "GetRetrievalFilterStackSize", [], sideeffects=False),
609     StdMethod(HRESULT, "AddMessage", [(D3D10_MESSAGE_CATEGORY, "Category"), (D3D10_MESSAGE_SEVERITY, "Severity"), (D3D10_MESSAGE_ID, "ID"), (LPCSTR, "pDescription")], sideeffects=False),
610     StdMethod(HRESULT, "AddApplicationMessage", [(D3D10_MESSAGE_SEVERITY, "Severity"), (LPCSTR, "pDescription")], sideeffects=False),
611     StdMethod(HRESULT, "SetBreakOnCategory", [(D3D10_MESSAGE_CATEGORY, "Category"), (BOOL, "bEnable")], sideeffects=False),
612     StdMethod(HRESULT, "SetBreakOnSeverity", [(D3D10_MESSAGE_SEVERITY, "Severity"), (BOOL, "bEnable")], sideeffects=False),
613     StdMethod(HRESULT, "SetBreakOnID", [(D3D10_MESSAGE_ID, "ID"), (BOOL, "bEnable")], sideeffects=False),
614     StdMethod(BOOL, "GetBreakOnCategory", [(D3D10_MESSAGE_CATEGORY, "Category")], sideeffects=False),
615     StdMethod(BOOL, "GetBreakOnSeverity", [(D3D10_MESSAGE_SEVERITY, "Severity")], sideeffects=False),
616     StdMethod(BOOL, "GetBreakOnID", [(D3D10_MESSAGE_ID, "ID")], sideeffects=False),
617     StdMethod(Void, "SetMuteDebugOutput", [(BOOL, "bMute")], sideeffects=False),
618     StdMethod(BOOL, "GetMuteDebugOutput", [], sideeffects=False),
619 ]
620