msi/tests: Get rid of workarounds for old Windows versions.
[wine.git] / include / d3dcommon.idl
blob5ffb4cd5b5bd6fbcfc961d1c80e2b487e6c41423
1 /*
2 * Copyright 2010 Matteo Bruni for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 import "oaidl.idl";
20 import "ocidl.idl";
22 typedef struct _D3D_SHADER_MACRO
24 const char *Name;
25 const char *Definition;
26 } D3D_SHADER_MACRO;
28 typedef struct _D3D_SHADER_MACRO* LPD3D_SHADER_MACRO;
31 object,
32 local,
33 uuid(8ba5fb08-5195-40e2-ac58-0d989c3a0102)
35 interface ID3D10Blob : IUnknown
37 void *GetBufferPointer();
38 SIZE_T GetBufferSize();
41 typedef ID3D10Blob* LPD3D10BLOB;
42 typedef ID3D10Blob ID3DBlob;
43 typedef ID3DBlob* LPD3DBLOB;
44 cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
46 typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *data);
49 object,
50 local,
51 uuid(a06eb39a-50da-425b-8c31-4eecd6c270f3),
52 pointer_default(unique)
54 interface ID3DDestructionNotifier : IUnknown
56 HRESULT RegisterDestructionCallback(
57 [in] PFN_DESTRUCTION_CALLBACK callback_func,
58 [in] void *data,
59 [out] UINT *callback_id
61 HRESULT UnregisterDestructionCallback(
62 [in] UINT callback_id
66 typedef enum _D3D_INCLUDE_TYPE
68 D3D_INCLUDE_LOCAL = 0,
69 D3D_INCLUDE_SYSTEM,
70 D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL,
71 D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM,
72 D3D_INCLUDE_FORCE_DWORD = 0x7fffffff
73 } D3D_INCLUDE_TYPE;
76 object,
77 local,
79 interface ID3DInclude
81 HRESULT Open(D3D_INCLUDE_TYPE include_type,
82 const char *filename,
83 const void *parent_data,
84 const void **data,
85 UINT *bytes);
86 HRESULT Close(const void *data);
89 typedef ID3DInclude* LPD3DINCLUDE;
91 typedef enum D3D_DRIVER_TYPE
93 D3D_DRIVER_TYPE_UNKNOWN,
94 D3D_DRIVER_TYPE_HARDWARE,
95 D3D_DRIVER_TYPE_REFERENCE,
96 D3D_DRIVER_TYPE_NULL,
97 D3D_DRIVER_TYPE_SOFTWARE,
98 D3D_DRIVER_TYPE_WARP,
99 } D3D_DRIVER_TYPE;
101 typedef enum D3D_FEATURE_LEVEL
103 D3D_FEATURE_LEVEL_1_0_CORE = 0x1000,
104 D3D_FEATURE_LEVEL_9_1 = 0x9100,
105 D3D_FEATURE_LEVEL_9_2 = 0x9200,
106 D3D_FEATURE_LEVEL_9_3 = 0x9300,
107 D3D_FEATURE_LEVEL_10_0 = 0xa000,
108 D3D_FEATURE_LEVEL_10_1 = 0xa100,
109 D3D_FEATURE_LEVEL_11_0 = 0xb000,
110 D3D_FEATURE_LEVEL_11_1 = 0xb100,
111 D3D_FEATURE_LEVEL_12_0 = 0xc000,
112 D3D_FEATURE_LEVEL_12_1 = 0xc100,
113 D3D_FEATURE_LEVEL_12_2 = 0xc200,
114 } D3D_FEATURE_LEVEL;
116 cpp_quote("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048")
117 cpp_quote("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096")
118 cpp_quote("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048")
119 cpp_quote("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096")
120 cpp_quote("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512")
121 cpp_quote("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096")
122 cpp_quote("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256")
123 cpp_quote("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2")
124 cpp_quote("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535")
125 cpp_quote("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575")
126 cpp_quote("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1")
127 cpp_quote("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4")
128 cpp_quote("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128")
129 cpp_quote("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048")
130 cpp_quote("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192")
132 typedef enum _D3D_SHADER_VARIABLE_CLASS
134 D3D_SVC_SCALAR,
135 D3D_SVC_VECTOR,
136 D3D_SVC_MATRIX_ROWS,
137 D3D_SVC_MATRIX_COLUMNS,
138 D3D_SVC_OBJECT,
139 D3D_SVC_STRUCT,
140 D3D_SVC_INTERFACE_CLASS,
141 D3D_SVC_INTERFACE_POINTER,
142 D3D10_SVC_SCALAR = 0,
143 D3D10_SVC_VECTOR,
144 D3D10_SVC_MATRIX_ROWS,
145 D3D10_SVC_MATRIX_COLUMNS,
146 D3D10_SVC_OBJECT,
147 D3D10_SVC_STRUCT,
148 D3D11_SVC_INTERFACE_CLASS,
149 D3D11_SVC_INTERFACE_POINTER,
150 D3D_SVC_FORCE_DWORD = 0x7fffffff,
151 } D3D_SHADER_VARIABLE_CLASS;
153 typedef enum _D3D_SHADER_VARIABLE_FLAGS
155 D3D_SVF_USERPACKED = 0x01,
156 D3D_SVF_USED = 0x02,
157 D3D_SVF_INTERFACE_POINTER = 0x04,
158 D3D_SVF_INTERFACE_PARAMETER = 0x08,
159 D3D10_SVF_USERPACKED = D3D_SVF_USERPACKED,
160 D3D10_SVF_USED = D3D_SVF_USED,
161 D3D11_SVF_INTERFACE_POINTER = D3D_SVF_INTERFACE_POINTER,
162 D3D11_SVF_INTERFACE_PARAMETER = D3D_SVF_INTERFACE_PARAMETER,
163 D3D_SVF_FORCE_DWORD = 0x7fffffff
164 } D3D_SHADER_VARIABLE_FLAGS;
166 typedef enum _D3D_SHADER_VARIABLE_TYPE
168 D3D_SVT_VOID,
169 D3D_SVT_BOOL,
170 D3D_SVT_INT,
171 D3D_SVT_FLOAT,
172 D3D_SVT_STRING,
173 D3D_SVT_TEXTURE,
174 D3D_SVT_TEXTURE1D,
175 D3D_SVT_TEXTURE2D,
176 D3D_SVT_TEXTURE3D,
177 D3D_SVT_TEXTURECUBE,
178 D3D_SVT_SAMPLER,
179 D3D_SVT_SAMPLER1D,
180 D3D_SVT_SAMPLER2D,
181 D3D_SVT_SAMPLER3D,
182 D3D_SVT_SAMPLERCUBE,
183 D3D_SVT_PIXELSHADER,
184 D3D_SVT_VERTEXSHADER,
185 D3D_SVT_PIXELFRAGMENT,
186 D3D_SVT_VERTEXFRAGMENT,
187 D3D_SVT_UINT,
188 D3D_SVT_UINT8,
189 D3D_SVT_GEOMETRYSHADER,
190 D3D_SVT_RASTERIZER,
191 D3D_SVT_DEPTHSTENCIL,
192 D3D_SVT_BLEND,
193 D3D_SVT_BUFFER,
194 D3D_SVT_CBUFFER,
195 D3D_SVT_TBUFFER,
196 D3D_SVT_TEXTURE1DARRAY,
197 D3D_SVT_TEXTURE2DARRAY,
198 D3D_SVT_RENDERTARGETVIEW,
199 D3D_SVT_DEPTHSTENCILVIEW,
200 D3D_SVT_TEXTURE2DMS,
201 D3D_SVT_TEXTURE2DMSARRAY,
202 D3D_SVT_TEXTURECUBEARRAY,
203 D3D_SVT_HULLSHADER,
204 D3D_SVT_DOMAINSHADER,
205 D3D_SVT_INTERFACE_POINTER,
206 D3D_SVT_COMPUTESHADER,
207 D3D_SVT_DOUBLE,
208 D3D_SVT_RWTEXTURE1D,
209 D3D_SVT_RWTEXTURE1DARRAY,
210 D3D_SVT_RWTEXTURE2D,
211 D3D_SVT_RWTEXTURE2DARRAY,
212 D3D_SVT_RWTEXTURE3D,
213 D3D_SVT_RWBUFFER,
214 D3D_SVT_BYTEADDRESS_BUFFER,
215 D3D_SVT_RWBYTEADDRESS_BUFFER,
216 D3D_SVT_STRUCTURED_BUFFER,
217 D3D_SVT_RWSTRUCTURED_BUFFER,
218 D3D_SVT_APPEND_STRUCTURED_BUFFER,
219 D3D_SVT_CONSUME_STRUCTURED_BUFFER,
220 D3D_SVT_MIN8FLOAT,
221 D3D_SVT_MIN10FLOAT,
222 D3D_SVT_MIN16FLOAT,
223 D3D_SVT_MIN12INT,
224 D3D_SVT_MIN16INT,
225 D3D_SVT_MIN16UINT,
226 D3D10_SVT_VOID = 0,
227 D3D10_SVT_BOOL,
228 D3D10_SVT_INT,
229 D3D10_SVT_FLOAT,
230 D3D10_SVT_STRING,
231 D3D10_SVT_TEXTURE,
232 D3D10_SVT_TEXTURE1D,
233 D3D10_SVT_TEXTURE2D,
234 D3D10_SVT_TEXTURE3D,
235 D3D10_SVT_TEXTURECUBE,
236 D3D10_SVT_SAMPLER,
237 D3D10_SVT_SAMPLER1D,
238 D3D10_SVT_SAMPLER2D,
239 D3D10_SVT_SAMPLER3D,
240 D3D10_SVT_SAMPLERCUBE,
241 D3D10_SVT_PIXELSHADER,
242 D3D10_SVT_VERTEXSHADER,
243 D3D10_SVT_PIXELFRAGMENT,
244 D3D10_SVT_VERTEXFRAGMENT,
245 D3D10_SVT_UINT,
246 D3D10_SVT_UINT8,
247 D3D10_SVT_GEOMETRYSHADER,
248 D3D10_SVT_RASTERIZER,
249 D3D10_SVT_DEPTHSTENCIL,
250 D3D10_SVT_BLEND,
251 D3D10_SVT_BUFFER,
252 D3D10_SVT_CBUFFER,
253 D3D10_SVT_TBUFFER,
254 D3D10_SVT_TEXTURE1DARRAY,
255 D3D10_SVT_TEXTURE2DARRAY,
256 D3D10_SVT_RENDERTARGETVIEW,
257 D3D10_SVT_DEPTHSTENCILVIEW,
258 D3D10_SVT_TEXTURE2DMS,
259 D3D10_SVT_TEXTURE2DMSARRAY,
260 D3D10_SVT_TEXTURECUBEARRAY,
261 D3D11_SVT_HULLSHADER,
262 D3D11_SVT_DOMAINSHADER,
263 D3D11_SVT_INTERFACE_POINTER,
264 D3D11_SVT_COMPUTESHADER,
265 D3D11_SVT_DOUBLE,
266 D3D11_SVT_RWTEXTURE1D,
267 D3D11_SVT_RWTEXTURE1DARRAY,
268 D3D11_SVT_RWTEXTURE2D,
269 D3D11_SVT_RWTEXTURE2DARRAY,
270 D3D11_SVT_RWTEXTURE3D,
271 D3D11_SVT_RWBUFFER,
272 D3D11_SVT_BYTEADDRESS_BUFFER,
273 D3D11_SVT_RWBYTEADDRESS_BUFFER,
274 D3D11_SVT_STRUCTURED_BUFFER,
275 D3D11_SVT_RWSTRUCTURED_BUFFER,
276 D3D11_SVT_APPEND_STRUCTURED_BUFFER,
277 D3D11_SVT_CONSUME_STRUCTURED_BUFFER,
278 D3D_SVT_FORCE_DWORD = 0x7fffffff,
279 } D3D_SHADER_VARIABLE_TYPE;
281 typedef enum _D3D_SHADER_INPUT_FLAGS
283 D3D_SIF_USERPACKED = 0x01,
284 D3D_SIF_COMPARISON_SAMPLER = 0x02,
285 D3D_SIF_TEXTURE_COMPONENT_0 = 0x04,
286 D3D_SIF_TEXTURE_COMPONENT_1 = 0x08,
287 D3D_SIF_TEXTURE_COMPONENTS = 0x0C,
288 D3D_SIF_UNUSED = 0x10,
289 D3D10_SIF_USERPACKED = D3D_SIF_USERPACKED,
290 D3D10_SIF_COMPARISON_SAMPLER = D3D_SIF_COMPARISON_SAMPLER,
291 D3D10_SIF_TEXTURE_COMPONENT_0 = D3D_SIF_TEXTURE_COMPONENT_0,
292 D3D10_SIF_TEXTURE_COMPONENT_1 = D3D_SIF_TEXTURE_COMPONENT_1,
293 D3D10_SIF_TEXTURE_COMPONENTS = D3D_SIF_TEXTURE_COMPONENTS,
294 D3D_SIF_FORCE_DWORD = 0x7fffffff
295 } D3D_SHADER_INPUT_FLAGS;
297 typedef enum D3D_PRIMITIVE
299 D3D_PRIMITIVE_UNDEFINED,
300 D3D_PRIMITIVE_POINT,
301 D3D_PRIMITIVE_LINE,
302 D3D_PRIMITIVE_TRIANGLE,
303 D3D_PRIMITIVE_LINE_ADJ = 6,
304 D3D_PRIMITIVE_TRIANGLE_ADJ,
305 D3D_PRIMITIVE_1_CONTROL_POINT_PATCH,
306 D3D_PRIMITIVE_2_CONTROL_POINT_PATCH,
307 D3D_PRIMITIVE_3_CONTROL_POINT_PATCH,
308 D3D_PRIMITIVE_4_CONTROL_POINT_PATCH,
309 D3D_PRIMITIVE_5_CONTROL_POINT_PATCH,
310 D3D_PRIMITIVE_6_CONTROL_POINT_PATCH,
311 D3D_PRIMITIVE_7_CONTROL_POINT_PATCH,
312 D3D_PRIMITIVE_8_CONTROL_POINT_PATCH,
313 D3D_PRIMITIVE_9_CONTROL_POINT_PATCH,
314 D3D_PRIMITIVE_10_CONTROL_POINT_PATCH,
315 D3D_PRIMITIVE_11_CONTROL_POINT_PATCH,
316 D3D_PRIMITIVE_12_CONTROL_POINT_PATCH,
317 D3D_PRIMITIVE_13_CONTROL_POINT_PATCH,
318 D3D_PRIMITIVE_14_CONTROL_POINT_PATCH,
319 D3D_PRIMITIVE_15_CONTROL_POINT_PATCH,
320 D3D_PRIMITIVE_16_CONTROL_POINT_PATCH,
321 D3D_PRIMITIVE_17_CONTROL_POINT_PATCH,
322 D3D_PRIMITIVE_18_CONTROL_POINT_PATCH,
323 D3D_PRIMITIVE_19_CONTROL_POINT_PATCH,
324 D3D_PRIMITIVE_20_CONTROL_POINT_PATCH,
325 D3D_PRIMITIVE_21_CONTROL_POINT_PATCH,
326 D3D_PRIMITIVE_22_CONTROL_POINT_PATCH,
327 D3D_PRIMITIVE_23_CONTROL_POINT_PATCH,
328 D3D_PRIMITIVE_24_CONTROL_POINT_PATCH,
329 D3D_PRIMITIVE_25_CONTROL_POINT_PATCH,
330 D3D_PRIMITIVE_26_CONTROL_POINT_PATCH,
331 D3D_PRIMITIVE_27_CONTROL_POINT_PATCH,
332 D3D_PRIMITIVE_28_CONTROL_POINT_PATCH,
333 D3D_PRIMITIVE_29_CONTROL_POINT_PATCH,
334 D3D_PRIMITIVE_30_CONTROL_POINT_PATCH,
335 D3D_PRIMITIVE_31_CONTROL_POINT_PATCH,
336 D3D_PRIMITIVE_32_CONTROL_POINT_PATCH,
337 D3D10_PRIMITIVE_UNDEFINED = 0,
338 D3D10_PRIMITIVE_POINT,
339 D3D10_PRIMITIVE_LINE,
340 D3D10_PRIMITIVE_TRIANGLE,
341 D3D10_PRIMITIVE_LINE_ADJ = 6,
342 D3D10_PRIMITIVE_TRIANGLE_ADJ,
343 D3D11_PRIMITIVE_UNDEFINED = 0,
344 D3D11_PRIMITIVE_POINT,
345 D3D11_PRIMITIVE_LINE,
346 D3D11_PRIMITIVE_TRIANGLE,
347 D3D11_PRIMITIVE_LINE_ADJ = 6,
348 D3D11_PRIMITIVE_TRIANGLE_ADJ,
349 D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH,
350 D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH,
351 D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH,
352 D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH,
353 D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH,
354 D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH,
355 D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH,
356 D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH,
357 D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH,
358 D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH,
359 D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH,
360 D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH,
361 D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH,
362 D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH,
363 D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH,
364 D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH,
365 D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH,
366 D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH,
367 D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH,
368 D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH,
369 D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH,
370 D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH,
371 D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH,
372 D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH,
373 D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH,
374 D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH,
375 D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH,
376 D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH,
377 D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH,
378 D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH,
379 D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH,
380 D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH,
381 } D3D_PRIMITIVE;
383 typedef enum D3D_PRIMITIVE_TOPOLOGY
385 D3D_PRIMITIVE_TOPOLOGY_UNDEFINED,
386 D3D_PRIMITIVE_TOPOLOGY_POINTLIST,
387 D3D_PRIMITIVE_TOPOLOGY_LINELIST,
388 D3D_PRIMITIVE_TOPOLOGY_LINESTRIP,
389 D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
390 D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
391 D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
392 D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
393 D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
394 D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
395 D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
396 D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
397 D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
398 D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
399 D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
400 D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
401 D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
402 D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
403 D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
404 D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
405 D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
406 D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
407 D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
408 D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
409 D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
410 D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
411 D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
412 D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
413 D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
414 D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
415 D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
416 D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
417 D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
418 D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
419 D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
420 D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
421 D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
422 D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
423 D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
424 D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
425 D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
426 D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
427 D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
428 D3D10_PRIMITIVE_TOPOLOGY_POINTLIST,
429 D3D10_PRIMITIVE_TOPOLOGY_LINELIST,
430 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP,
431 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
432 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
433 D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
434 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
435 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
436 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
437 D3D11_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
438 D3D11_PRIMITIVE_TOPOLOGY_POINTLIST,
439 D3D11_PRIMITIVE_TOPOLOGY_LINELIST,
440 D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP,
441 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
442 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
443 D3D11_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
444 D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
445 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
446 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
447 D3D11_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
448 D3D11_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
449 D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
450 D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
451 D3D11_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
452 D3D11_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
453 D3D11_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
454 D3D11_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
455 D3D11_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
456 D3D11_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
457 D3D11_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
458 D3D11_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
459 D3D11_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
460 D3D11_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
461 D3D11_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
462 D3D11_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
463 D3D11_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
464 D3D11_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
465 D3D11_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
466 D3D11_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
467 D3D11_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
468 D3D11_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
469 D3D11_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
470 D3D11_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
471 D3D11_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
472 D3D11_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
473 D3D11_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
474 D3D11_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
475 D3D11_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
476 D3D11_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
477 D3D11_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
478 D3D11_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
479 } D3D_PRIMITIVE_TOPOLOGY;
481 typedef enum D3D_TESSELLATOR_DOMAIN
483 D3D_TESSELLATOR_DOMAIN_UNDEFINED,
484 D3D_TESSELLATOR_DOMAIN_ISOLINE,
485 D3D_TESSELLATOR_DOMAIN_TRI,
486 D3D_TESSELLATOR_DOMAIN_QUAD,
487 D3D11_TESSELLATOR_DOMAIN_UNDEFINED = 0,
488 D3D11_TESSELLATOR_DOMAIN_ISOLINE,
489 D3D11_TESSELLATOR_DOMAIN_TRI,
490 D3D11_TESSELLATOR_DOMAIN_QUAD,
491 } D3D_TESSELLATOR_DOMAIN;
493 typedef enum D3D_TESSELLATOR_PARTITIONING
495 D3D_TESSELLATOR_PARTITIONING_UNDEFINED,
496 D3D_TESSELLATOR_PARTITIONING_INTEGER,
497 D3D_TESSELLATOR_PARTITIONING_POW2,
498 D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD,
499 D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN,
500 D3D11_TESSELLATOR_PARTITIONING_UNDEFINED = 0,
501 D3D11_TESSELLATOR_PARTITIONING_INTEGER,
502 D3D11_TESSELLATOR_PARTITIONING_POW2,
503 D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD,
504 D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN,
505 } D3D_TESSELLATOR_PARTITIONING;
507 typedef enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE
509 D3D_TESSELLATOR_OUTPUT_UNDEFINED,
510 D3D_TESSELLATOR_OUTPUT_POINT,
511 D3D_TESSELLATOR_OUTPUT_LINE,
512 D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW,
513 D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW,
514 D3D11_TESSELLATOR_OUTPUT_UNDEFINED = 0,
515 D3D11_TESSELLATOR_OUTPUT_POINT,
516 D3D11_TESSELLATOR_OUTPUT_LINE,
517 D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW,
518 D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW,
519 } D3D_TESSELLATOR_OUTPUT_PRIMITIVE;
521 typedef enum D3D_MIN_PRECISION
523 D3D_MIN_PRECISION_DEFAULT = 0,
524 D3D_MIN_PRECISION_FLOAT_16 = 1,
525 D3D_MIN_PRECISION_FLOAT_2_8 = 2,
526 D3D_MIN_PRECISION_RESERVED = 3,
527 D3D_MIN_PRECISION_SINT_16 = 4,
528 D3D_MIN_PRECISION_UINT_16 = 5,
529 D3D_MIN_PRECISION_ANY_16 = 0xf0,
530 D3D_MIN_PRECISION_ANY_10 = 0xf1,
531 } D3D_MIN_PRECISION;
533 typedef enum D3D_CBUFFER_TYPE
535 D3D_CT_CBUFFER,
536 D3D_CT_TBUFFER,
537 D3D_CT_INTERFACE_POINTERS,
538 D3D_CT_RESOURCE_BIND_INFO,
539 D3D10_CT_CBUFFER = 0,
540 D3D10_CT_TBUFFER,
541 D3D11_CT_CBUFFER = 0,
542 D3D11_CT_TBUFFER,
543 D3D11_CT_INTERFACE_POINTERS,
544 D3D11_CT_RESOURCE_BIND_INFO,
545 } D3D_CBUFFER_TYPE;
547 typedef enum D3D_SRV_DIMENSION
549 D3D_SRV_DIMENSION_UNKNOWN,
550 D3D_SRV_DIMENSION_BUFFER,
551 D3D_SRV_DIMENSION_TEXTURE1D,
552 D3D_SRV_DIMENSION_TEXTURE1DARRAY,
553 D3D_SRV_DIMENSION_TEXTURE2D,
554 D3D_SRV_DIMENSION_TEXTURE2DARRAY,
555 D3D_SRV_DIMENSION_TEXTURE2DMS,
556 D3D_SRV_DIMENSION_TEXTURE2DMSARRAY,
557 D3D_SRV_DIMENSION_TEXTURE3D,
558 D3D_SRV_DIMENSION_TEXTURECUBE,
559 D3D_SRV_DIMENSION_TEXTURECUBEARRAY,
560 D3D_SRV_DIMENSION_BUFFEREX,
561 D3D10_SRV_DIMENSION_UNKNOWN = 0,
562 D3D10_SRV_DIMENSION_BUFFER,
563 D3D10_SRV_DIMENSION_TEXTURE1D,
564 D3D10_SRV_DIMENSION_TEXTURE1DARRAY,
565 D3D10_SRV_DIMENSION_TEXTURE2D,
566 D3D10_SRV_DIMENSION_TEXTURE2DARRAY,
567 D3D10_SRV_DIMENSION_TEXTURE2DMS,
568 D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY,
569 D3D10_SRV_DIMENSION_TEXTURE3D,
570 D3D10_SRV_DIMENSION_TEXTURECUBE,
571 D3D10_1_SRV_DIMENSION_UNKNOWN = 0,
572 D3D10_1_SRV_DIMENSION_BUFFER,
573 D3D10_1_SRV_DIMENSION_TEXTURE1D,
574 D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY,
575 D3D10_1_SRV_DIMENSION_TEXTURE2D,
576 D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY,
577 D3D10_1_SRV_DIMENSION_TEXTURE2DMS,
578 D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY,
579 D3D10_1_SRV_DIMENSION_TEXTURE3D,
580 D3D10_1_SRV_DIMENSION_TEXTURECUBE,
581 D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY,
582 D3D11_SRV_DIMENSION_UNKNOWN = 0,
583 D3D11_SRV_DIMENSION_BUFFER,
584 D3D11_SRV_DIMENSION_TEXTURE1D,
585 D3D11_SRV_DIMENSION_TEXTURE1DARRAY,
586 D3D11_SRV_DIMENSION_TEXTURE2D,
587 D3D11_SRV_DIMENSION_TEXTURE2DARRAY,
588 D3D11_SRV_DIMENSION_TEXTURE2DMS,
589 D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY,
590 D3D11_SRV_DIMENSION_TEXTURE3D,
591 D3D11_SRV_DIMENSION_TEXTURECUBE,
592 D3D11_SRV_DIMENSION_TEXTURECUBEARRAY,
593 D3D11_SRV_DIMENSION_BUFFEREX,
594 } D3D_SRV_DIMENSION;
596 typedef enum D3D_REGISTER_COMPONENT_TYPE
598 D3D_REGISTER_COMPONENT_UNKNOWN,
599 D3D_REGISTER_COMPONENT_UINT32,
600 D3D_REGISTER_COMPONENT_SINT32,
601 D3D_REGISTER_COMPONENT_FLOAT32,
602 D3D10_REGISTER_COMPONENT_UNKNOWN = 0,
603 D3D10_REGISTER_COMPONENT_UINT32,
604 D3D10_REGISTER_COMPONENT_SINT32,
605 D3D10_REGISTER_COMPONENT_FLOAT32,
606 } D3D_REGISTER_COMPONENT_TYPE;
608 typedef enum D3D_RESOURCE_RETURN_TYPE
610 D3D_RETURN_TYPE_UNORM = 1,
611 D3D_RETURN_TYPE_SNORM,
612 D3D_RETURN_TYPE_SINT,
613 D3D_RETURN_TYPE_UINT,
614 D3D_RETURN_TYPE_FLOAT,
615 D3D_RETURN_TYPE_MIXED,
616 D3D_RETURN_TYPE_DOUBLE,
617 D3D_RETURN_TYPE_CONTINUED,
618 D3D10_RETURN_TYPE_UNORM = 1,
619 D3D10_RETURN_TYPE_SNORM,
620 D3D10_RETURN_TYPE_SINT,
621 D3D10_RETURN_TYPE_UINT,
622 D3D10_RETURN_TYPE_FLOAT,
623 D3D10_RETURN_TYPE_MIXED,
624 D3D11_RETURN_TYPE_UNORM = 1,
625 D3D11_RETURN_TYPE_SNORM,
626 D3D11_RETURN_TYPE_SINT,
627 D3D11_RETURN_TYPE_UINT,
628 D3D11_RETURN_TYPE_FLOAT,
629 D3D11_RETURN_TYPE_MIXED,
630 D3D11_RETURN_TYPE_DOUBLE,
631 D3D11_RETURN_TYPE_CONTINUED,
632 } D3D_RESOURCE_RETURN_TYPE;
634 typedef enum D3D_NAME
636 D3D_NAME_UNDEFINED,
637 D3D_NAME_POSITION,
638 D3D_NAME_CLIP_DISTANCE,
639 D3D_NAME_CULL_DISTANCE,
640 D3D_NAME_RENDER_TARGET_ARRAY_INDEX,
641 D3D_NAME_VIEWPORT_ARRAY_INDEX,
642 D3D_NAME_VERTEX_ID,
643 D3D_NAME_PRIMITIVE_ID,
644 D3D_NAME_INSTANCE_ID,
645 D3D_NAME_IS_FRONT_FACE,
646 D3D_NAME_SAMPLE_INDEX,
647 D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR,
648 D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR,
649 D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR,
650 D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR,
651 D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR,
652 D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR,
653 D3D_NAME_BARYCENTRICS = 23,
654 D3D_NAME_SHADINGRATE,
655 D3D_NAME_CULLPRIMITIVE,
656 D3D_NAME_TARGET = 64,
657 D3D_NAME_DEPTH,
658 D3D_NAME_COVERAGE,
659 D3D_NAME_DEPTH_GREATER_EQUAL,
660 D3D_NAME_DEPTH_LESS_EQUAL,
661 D3D10_NAME_UNDEFINED = 0,
662 D3D10_NAME_POSITION,
663 D3D10_NAME_CLIP_DISTANCE,
664 D3D10_NAME_CULL_DISTANCE,
665 D3D10_NAME_RENDER_TARGET_ARRAY_INDEX,
666 D3D10_NAME_VIEWPORT_ARRAY_INDEX,
667 D3D10_NAME_VERTEX_ID,
668 D3D10_NAME_PRIMITIVE_ID,
669 D3D10_NAME_INSTANCE_ID,
670 D3D10_NAME_IS_FRONT_FACE,
671 D3D10_NAME_SAMPLE_INDEX,
672 D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR,
673 D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR,
674 D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR,
675 D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR,
676 D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR,
677 D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR,
678 D3D10_NAME_TARGET = 64,
679 D3D10_NAME_DEPTH,
680 D3D10_NAME_COVERAGE,
681 D3D11_NAME_DEPTH_GREATER_EQUAL,
682 D3D11_NAME_DEPTH_LESS_EQUAL,
683 } D3D_NAME;
685 typedef enum _D3D_SHADER_INPUT_TYPE
687 D3D_SIT_CBUFFER,
688 D3D_SIT_TBUFFER,
689 D3D_SIT_TEXTURE,
690 D3D_SIT_SAMPLER,
691 D3D_SIT_UAV_RWTYPED,
692 D3D_SIT_STRUCTURED,
693 D3D_SIT_UAV_RWSTRUCTURED,
694 D3D_SIT_BYTEADDRESS,
695 D3D_SIT_UAV_RWBYTEADDRESS,
696 D3D_SIT_UAV_APPEND_STRUCTURED,
697 D3D_SIT_UAV_CONSUME_STRUCTURED,
698 D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
699 D3D_SIT_RTACCELERATIONSTRUCTURE,
700 D3D_SIT_UAV_FEEDBACKTEXTURE,
701 D3D10_SIT_CBUFFER = 0,
702 D3D10_SIT_TBUFFER,
703 D3D10_SIT_TEXTURE,
704 D3D10_SIT_SAMPLER,
705 D3D11_SIT_UAV_RWTYPED,
706 D3D11_SIT_STRUCTURED,
707 D3D11_SIT_UAV_RWSTRUCTURED,
708 D3D11_SIT_BYTEADDRESS,
709 D3D11_SIT_UAV_RWBYTEADDRESS,
710 D3D11_SIT_UAV_APPEND_STRUCTURED,
711 D3D11_SIT_UAV_CONSUME_STRUCTURED,
712 D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
713 } D3D_SHADER_INPUT_TYPE;
715 typedef enum _D3D_SHADER_CBUFFER_FLAGS
717 D3D_CBF_USERPACKED = 0x01,
718 D3D10_CBF_USERPACKED = D3D_CBF_USERPACKED,
719 D3D_CBF_FORCE_DWORD = 0x7fffffff
720 } D3D_SHADER_CBUFFER_FLAGS;
722 typedef enum _D3D_PARAMETER_FLAGS
724 D3D_PF_NONE,
725 D3D_PF_IN,
726 D3D_PF_OUT,
727 D3D_PF_FORCE_DWORD = 0x7fffffff
728 } D3D_PARAMETER_FLAGS;
730 typedef enum _D3D_INTERPOLATION_MODE
732 D3D_INTERPOLATION_UNDEFINED,
733 D3D_INTERPOLATION_CONSTANT,
734 D3D_INTERPOLATION_LINEAR,
735 D3D_INTERPOLATION_LINEAR_CENTROID,
736 D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE,
737 D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_CENTROID,
738 D3D_INTERPOLATION_LINEAR_SAMPLE,
739 D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_SAMPLE,
740 } D3D_INTERPOLATION_MODE;
742 cpp_quote("DEFINE_GUID(WKPDID_D3DDebugObjectName,0x429b8c22,0x9188,0x4b0c,0x87,0x42,0xac,0xb0,0xbf,0x85,0xc2,0x00);")