joy.cpl: Fix pulsing buttons in joystick button state display.
[wine/zf.git] / include / d3dcommon.idl
blob29404efd69de3ef6f2253a6d99bf11e8dc9e2d40
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 enum _D3D_INCLUDE_TYPE
48 D3D_INCLUDE_LOCAL = 0,
49 D3D_INCLUDE_SYSTEM,
50 D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL,
51 D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM,
52 D3D_INCLUDE_FORCE_DWORD = 0x7fffffff
53 } D3D_INCLUDE_TYPE;
56 object,
57 local,
59 interface ID3DInclude
61 HRESULT Open(D3D_INCLUDE_TYPE include_type,
62 const char *filename,
63 const void *parent_data,
64 const void **data,
65 UINT *bytes);
66 HRESULT Close(const void *data);
69 typedef ID3DInclude* LPD3DINCLUDE;
71 typedef enum D3D_DRIVER_TYPE
73 D3D_DRIVER_TYPE_UNKNOWN,
74 D3D_DRIVER_TYPE_HARDWARE,
75 D3D_DRIVER_TYPE_REFERENCE,
76 D3D_DRIVER_TYPE_NULL,
77 D3D_DRIVER_TYPE_SOFTWARE,
78 D3D_DRIVER_TYPE_WARP,
79 } D3D_DRIVER_TYPE;
81 typedef enum D3D_FEATURE_LEVEL
83 D3D_FEATURE_LEVEL_9_1 = 0x9100,
84 D3D_FEATURE_LEVEL_9_2 = 0x9200,
85 D3D_FEATURE_LEVEL_9_3 = 0x9300,
86 D3D_FEATURE_LEVEL_10_0 = 0xa000,
87 D3D_FEATURE_LEVEL_10_1 = 0xa100,
88 D3D_FEATURE_LEVEL_11_0 = 0xb000,
89 D3D_FEATURE_LEVEL_11_1 = 0xb100,
90 D3D_FEATURE_LEVEL_12_0 = 0xc000,
91 D3D_FEATURE_LEVEL_12_1 = 0xc100,
92 } D3D_FEATURE_LEVEL;
94 cpp_quote("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048")
95 cpp_quote("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096")
96 cpp_quote("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048")
97 cpp_quote("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096")
98 cpp_quote("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512")
99 cpp_quote("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096")
100 cpp_quote("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256")
101 cpp_quote("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2")
102 cpp_quote("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535")
103 cpp_quote("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575")
104 cpp_quote("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1")
105 cpp_quote("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4")
106 cpp_quote("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128")
107 cpp_quote("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048")
108 cpp_quote("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192")
110 typedef enum _D3D_SHADER_VARIABLE_CLASS
112 D3D_SVC_SCALAR,
113 D3D_SVC_VECTOR,
114 D3D_SVC_MATRIX_ROWS,
115 D3D_SVC_MATRIX_COLUMNS,
116 D3D_SVC_OBJECT,
117 D3D_SVC_STRUCT,
118 D3D_SVC_INTERFACE_CLASS,
119 D3D_SVC_INTERFACE_POINTER,
120 D3D10_SVC_SCALAR = 0,
121 D3D10_SVC_VECTOR,
122 D3D10_SVC_MATRIX_ROWS,
123 D3D10_SVC_MATRIX_COLUMNS,
124 D3D10_SVC_OBJECT,
125 D3D10_SVC_STRUCT,
126 D3D11_SVC_INTERFACE_CLASS,
127 D3D11_SVC_INTERFACE_POINTER,
128 D3D_SVC_FORCE_DWORD = 0x7fffffff,
129 } D3D_SHADER_VARIABLE_CLASS;
131 typedef enum _D3D_SHADER_VARIABLE_FLAGS
133 D3D_SVF_USERPACKED = 0x01,
134 D3D_SVF_USED = 0x02,
135 D3D_SVF_INTERFACE_POINTER = 0x04,
136 D3D_SVF_INTERFACE_PARAMETER = 0x08,
137 D3D10_SVF_USERPACKED = D3D_SVF_USERPACKED,
138 D3D10_SVF_USED = D3D_SVF_USED,
139 D3D11_SVF_INTERFACE_POINTER = D3D_SVF_INTERFACE_POINTER,
140 D3D11_SVF_INTERFACE_PARAMETER = D3D_SVF_INTERFACE_PARAMETER,
141 D3D_SVF_FORCE_DWORD = 0x7fffffff
142 } D3D_SHADER_VARIABLE_FLAGS;
144 typedef enum _D3D_SHADER_VARIABLE_TYPE
146 D3D_SVT_VOID,
147 D3D_SVT_BOOL,
148 D3D_SVT_INT,
149 D3D_SVT_FLOAT,
150 D3D_SVT_STRING,
151 D3D_SVT_TEXTURE,
152 D3D_SVT_TEXTURE1D,
153 D3D_SVT_TEXTURE2D,
154 D3D_SVT_TEXTURE3D,
155 D3D_SVT_TEXTURECUBE,
156 D3D_SVT_SAMPLER,
157 D3D_SVT_SAMPLER1D,
158 D3D_SVT_SAMPLER2D,
159 D3D_SVT_SAMPLER3D,
160 D3D_SVT_SAMPLERCUBE,
161 D3D_SVT_PIXELSHADER,
162 D3D_SVT_VERTEXSHADER,
163 D3D_SVT_PIXELFRAGMENT,
164 D3D_SVT_VERTEXFRAGMENT,
165 D3D_SVT_UINT,
166 D3D_SVT_UINT8,
167 D3D_SVT_GEOMETRYSHADER,
168 D3D_SVT_RASTERIZER,
169 D3D_SVT_DEPTHSTENCIL,
170 D3D_SVT_BLEND,
171 D3D_SVT_BUFFER,
172 D3D_SVT_CBUFFER,
173 D3D_SVT_TBUFFER,
174 D3D_SVT_TEXTURE1DARRAY,
175 D3D_SVT_TEXTURE2DARRAY,
176 D3D_SVT_RENDERTARGETVIEW,
177 D3D_SVT_DEPTHSTENCILVIEW,
178 D3D_SVT_TEXTURE2DMS,
179 D3D_SVT_TEXTURE2DMSARRAY,
180 D3D_SVT_TEXTURECUBEARRAY,
181 D3D_SVT_HULLSHADER,
182 D3D_SVT_DOMAINSHADER,
183 D3D_SVT_INTERFACE_POINTER,
184 D3D_SVT_COMPUTESHADER,
185 D3D_SVT_DOUBLE,
186 D3D_SVT_RWTEXTURE1D,
187 D3D_SVT_RWTEXTURE1DARRAY,
188 D3D_SVT_RWTEXTURE2D,
189 D3D_SVT_RWTEXTURE2DARRAY,
190 D3D_SVT_RWTEXTURE3D,
191 D3D_SVT_RWBUFFER,
192 D3D_SVT_BYTEADDRESS_BUFFER,
193 D3D_SVT_RWBYTEADDRESS_BUFFER,
194 D3D_SVT_STRUCTURED_BUFFER,
195 D3D_SVT_RWSTRUCTURED_BUFFER,
196 D3D_SVT_APPEND_STRUCTURED_BUFFER,
197 D3D_SVT_CONSUME_STRUCTURED_BUFFER,
198 D3D10_SVT_VOID = 0,
199 D3D10_SVT_BOOL,
200 D3D10_SVT_INT,
201 D3D10_SVT_FLOAT,
202 D3D10_SVT_STRING,
203 D3D10_SVT_TEXTURE,
204 D3D10_SVT_TEXTURE1D,
205 D3D10_SVT_TEXTURE2D,
206 D3D10_SVT_TEXTURE3D,
207 D3D10_SVT_TEXTURECUBE,
208 D3D10_SVT_SAMPLER,
209 D3D10_SVT_SAMPLER1D,
210 D3D10_SVT_SAMPLER2D,
211 D3D10_SVT_SAMPLER3D,
212 D3D10_SVT_SAMPLERCUBE,
213 D3D10_SVT_PIXELSHADER,
214 D3D10_SVT_VERTEXSHADER,
215 D3D10_SVT_PIXELFRAGMENT,
216 D3D10_SVT_VERTEXFRAGMENT,
217 D3D10_SVT_UINT,
218 D3D10_SVT_UINT8,
219 D3D10_SVT_GEOMETRYSHADER,
220 D3D10_SVT_RASTERIZER,
221 D3D10_SVT_DEPTHSTENCIL,
222 D3D10_SVT_BLEND,
223 D3D10_SVT_BUFFER,
224 D3D10_SVT_CBUFFER,
225 D3D10_SVT_TBUFFER,
226 D3D10_SVT_TEXTURE1DARRAY,
227 D3D10_SVT_TEXTURE2DARRAY,
228 D3D10_SVT_RENDERTARGETVIEW,
229 D3D10_SVT_DEPTHSTENCILVIEW,
230 D3D10_SVT_TEXTURE2DMS,
231 D3D10_SVT_TEXTURE2DMSARRAY,
232 D3D10_SVT_TEXTURECUBEARRAY,
233 D3D11_SVT_HULLSHADER,
234 D3D11_SVT_DOMAINSHADER,
235 D3D11_SVT_INTERFACE_POINTER,
236 D3D11_SVT_COMPUTESHADER,
237 D3D11_SVT_DOUBLE,
238 D3D11_SVT_RWTEXTURE1D,
239 D3D11_SVT_RWTEXTURE1DARRAY,
240 D3D11_SVT_RWTEXTURE2D,
241 D3D11_SVT_RWTEXTURE2DARRAY,
242 D3D11_SVT_RWTEXTURE3D,
243 D3D11_SVT_RWBUFFER,
244 D3D11_SVT_BYTEADDRESS_BUFFER,
245 D3D11_SVT_RWBYTEADDRESS_BUFFER,
246 D3D11_SVT_STRUCTURED_BUFFER,
247 D3D11_SVT_RWSTRUCTURED_BUFFER,
248 D3D11_SVT_APPEND_STRUCTURED_BUFFER,
249 D3D11_SVT_CONSUME_STRUCTURED_BUFFER,
250 D3D_SVT_FORCE_DWORD = 0x7fffffff,
251 } D3D_SHADER_VARIABLE_TYPE;
253 typedef enum _D3D_SHADER_INPUT_FLAGS
255 D3D_SIF_USERPACKED = 0x01,
256 D3D_SIF_COMPARISON_SAMPLER = 0x02,
257 D3D_SIF_TEXTURE_COMPONENT_0 = 0x04,
258 D3D_SIF_TEXTURE_COMPONENT_1 = 0x08,
259 D3D_SIF_TEXTURE_COMPONENTS = 0x0C,
260 D3D_SIF_UNUSED = 0x10,
261 D3D10_SIF_USERPACKED = D3D_SIF_USERPACKED,
262 D3D10_SIF_COMPARISON_SAMPLER = D3D_SIF_COMPARISON_SAMPLER,
263 D3D10_SIF_TEXTURE_COMPONENT_0 = D3D_SIF_TEXTURE_COMPONENT_0,
264 D3D10_SIF_TEXTURE_COMPONENT_1 = D3D_SIF_TEXTURE_COMPONENT_1,
265 D3D10_SIF_TEXTURE_COMPONENTS = D3D_SIF_TEXTURE_COMPONENTS,
266 D3D_SIF_FORCE_DWORD = 0x7fffffff
267 } D3D_SHADER_INPUT_FLAGS;
269 typedef enum D3D_PRIMITIVE
271 D3D_PRIMITIVE_UNDEFINED,
272 D3D_PRIMITIVE_POINT,
273 D3D_PRIMITIVE_LINE,
274 D3D_PRIMITIVE_TRIANGLE,
275 D3D_PRIMITIVE_LINE_ADJ = 6,
276 D3D_PRIMITIVE_TRIANGLE_ADJ,
277 D3D_PRIMITIVE_1_CONTROL_POINT_PATCH,
278 D3D_PRIMITIVE_2_CONTROL_POINT_PATCH,
279 D3D_PRIMITIVE_3_CONTROL_POINT_PATCH,
280 D3D_PRIMITIVE_4_CONTROL_POINT_PATCH,
281 D3D_PRIMITIVE_5_CONTROL_POINT_PATCH,
282 D3D_PRIMITIVE_6_CONTROL_POINT_PATCH,
283 D3D_PRIMITIVE_7_CONTROL_POINT_PATCH,
284 D3D_PRIMITIVE_8_CONTROL_POINT_PATCH,
285 D3D_PRIMITIVE_9_CONTROL_POINT_PATCH,
286 D3D_PRIMITIVE_10_CONTROL_POINT_PATCH,
287 D3D_PRIMITIVE_11_CONTROL_POINT_PATCH,
288 D3D_PRIMITIVE_12_CONTROL_POINT_PATCH,
289 D3D_PRIMITIVE_13_CONTROL_POINT_PATCH,
290 D3D_PRIMITIVE_14_CONTROL_POINT_PATCH,
291 D3D_PRIMITIVE_15_CONTROL_POINT_PATCH,
292 D3D_PRIMITIVE_16_CONTROL_POINT_PATCH,
293 D3D_PRIMITIVE_17_CONTROL_POINT_PATCH,
294 D3D_PRIMITIVE_18_CONTROL_POINT_PATCH,
295 D3D_PRIMITIVE_19_CONTROL_POINT_PATCH,
296 D3D_PRIMITIVE_20_CONTROL_POINT_PATCH = 28,
297 D3D_PRIMITIVE_21_CONTROL_POINT_PATCH,
298 D3D_PRIMITIVE_22_CONTROL_POINT_PATCH,
299 D3D_PRIMITIVE_23_CONTROL_POINT_PATCH,
300 D3D_PRIMITIVE_24_CONTROL_POINT_PATCH,
301 D3D_PRIMITIVE_25_CONTROL_POINT_PATCH,
302 D3D_PRIMITIVE_26_CONTROL_POINT_PATCH,
303 D3D_PRIMITIVE_27_CONTROL_POINT_PATCH,
304 D3D_PRIMITIVE_28_CONTROL_POINT_PATCH,
305 D3D_PRIMITIVE_29_CONTROL_POINT_PATCH,
306 D3D_PRIMITIVE_30_CONTROL_POINT_PATCH,
307 D3D_PRIMITIVE_31_CONTROL_POINT_PATCH,
308 D3D_PRIMITIVE_32_CONTROL_POINT_PATCH,
309 D3D10_PRIMITIVE_UNDEFINED = 0,
310 D3D10_PRIMITIVE_POINT,
311 D3D10_PRIMITIVE_LINE,
312 D3D10_PRIMITIVE_TRIANGLE,
313 D3D10_PRIMITIVE_LINE_ADJ = 6,
314 D3D10_PRIMITIVE_TRIANGLE_ADJ,
315 D3D11_PRIMITIVE_UNDEFINED = 0,
316 D3D11_PRIMITIVE_POINT,
317 D3D11_PRIMITIVE_LINE,
318 D3D11_PRIMITIVE_TRIANGLE,
319 D3D11_PRIMITIVE_LINE_ADJ = 6,
320 D3D11_PRIMITIVE_TRIANGLE_ADJ,
321 D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH,
322 D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH,
323 D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH,
324 D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH,
325 D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH,
326 D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH,
327 D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH,
328 D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH,
329 D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH,
330 D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH,
331 D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH,
332 D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH,
333 D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH,
334 D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH,
335 D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH,
336 D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH,
337 D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH,
338 D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH,
339 D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH,
340 D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH = 28,
341 D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH,
342 D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH,
343 D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH,
344 D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH,
345 D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH,
346 D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH,
347 D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH,
348 D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH,
349 D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH,
350 D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH,
351 D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH,
352 D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH,
353 } D3D_PRIMITIVE;
355 typedef enum D3D_PRIMITIVE_TOPOLOGY
357 D3D_PRIMITIVE_TOPOLOGY_UNDEFINED,
358 D3D_PRIMITIVE_TOPOLOGY_POINTLIST,
359 D3D_PRIMITIVE_TOPOLOGY_LINELIST,
360 D3D_PRIMITIVE_TOPOLOGY_LINESTRIP,
361 D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
362 D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
363 D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
364 D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
365 D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
366 D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
367 D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
368 D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
369 D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
370 D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
371 D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
372 D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
373 D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
374 D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
375 D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
376 D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
377 D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
378 D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
379 D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
380 D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
381 D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
382 D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
383 D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
384 D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
385 D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
386 D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
387 D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
388 D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
389 D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
390 D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
391 D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
392 D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
393 D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
394 D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
395 D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
396 D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
397 D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
398 D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
399 D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
400 D3D10_PRIMITIVE_TOPOLOGY_POINTLIST,
401 D3D10_PRIMITIVE_TOPOLOGY_LINELIST,
402 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP,
403 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
404 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
405 D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
406 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
407 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
408 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
409 D3D11_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
410 D3D11_PRIMITIVE_TOPOLOGY_POINTLIST,
411 D3D11_PRIMITIVE_TOPOLOGY_LINELIST,
412 D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP,
413 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
414 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
415 D3D11_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
416 D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
417 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
418 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
419 D3D11_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
420 D3D11_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
421 D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
422 D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
423 D3D11_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
424 D3D11_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
425 D3D11_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
426 D3D11_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
427 D3D11_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
428 D3D11_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
429 D3D11_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
430 D3D11_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
431 D3D11_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
432 D3D11_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
433 D3D11_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
434 D3D11_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
435 D3D11_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
436 D3D11_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
437 D3D11_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
438 D3D11_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
439 D3D11_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
440 D3D11_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
441 D3D11_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
442 D3D11_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
443 D3D11_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
444 D3D11_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
445 D3D11_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
446 D3D11_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
447 D3D11_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
448 D3D11_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
449 D3D11_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
450 D3D11_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
451 } D3D_PRIMITIVE_TOPOLOGY;
453 typedef enum D3D_TESSELLATOR_DOMAIN
455 D3D_TESSELLATOR_DOMAIN_UNDEFINED,
456 D3D_TESSELLATOR_DOMAIN_ISOLINE,
457 D3D_TESSELLATOR_DOMAIN_TRI,
458 D3D_TESSELLATOR_DOMAIN_QUAD,
459 D3D11_TESSELLATOR_DOMAIN_UNDEFINED = 0,
460 D3D11_TESSELLATOR_DOMAIN_ISOLINE,
461 D3D11_TESSELLATOR_DOMAIN_TRI,
462 D3D11_TESSELLATOR_DOMAIN_QUAD,
463 } D3D_TESSELLATOR_DOMAIN;
465 typedef enum D3D_TESSELLATOR_PARTITIONING
467 D3D_TESSELLATOR_PARTITIONING_UNDEFINED,
468 D3D_TESSELLATOR_PARTITIONING_INTEGER,
469 D3D_TESSELLATOR_PARTITIONING_POW2,
470 D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD,
471 D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN,
472 D3D11_TESSELLATOR_PARTITIONING_UNDEFINED = 0,
473 D3D11_TESSELLATOR_PARTITIONING_INTEGER,
474 D3D11_TESSELLATOR_PARTITIONING_POW2,
475 D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD,
476 D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN,
477 } D3D_TESSELLATOR_PARTITIONING;
479 typedef enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE
481 D3D_TESSELLATOR_OUTPUT_UNDEFINED,
482 D3D_TESSELLATOR_OUTPUT_POINT,
483 D3D_TESSELLATOR_OUTPUT_LINE,
484 D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW,
485 D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW,
486 D3D11_TESSELLATOR_OUTPUT_UNDEFINED = 0,
487 D3D11_TESSELLATOR_OUTPUT_POINT,
488 D3D11_TESSELLATOR_OUTPUT_LINE,
489 D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW,
490 D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW,
491 } D3D_TESSELLATOR_OUTPUT_PRIMITIVE;
493 typedef enum D3D_MIN_PRECISION
495 D3D_MIN_PRECISION_DEFAULT = 0,
496 D3D_MIN_PRECISION_FLOAT_16 = 1,
497 D3D_MIN_PRECISION_FLOAT_2_8 = 2,
498 D3D_MIN_PRECISION_RESERVED = 3,
499 D3D_MIN_PRECISION_SINT_16 = 4,
500 D3D_MIN_PRECISION_UINT_16 = 5,
501 D3D_MIN_PRECISION_ANY_16 = 0xf0,
502 D3D_MIN_PRECISION_ANY_10 = 0xf1,
503 } D3D_MIN_PRECISION;
505 typedef enum D3D_CBUFFER_TYPE
507 D3D_CT_CBUFFER,
508 D3D_CT_TBUFFER,
509 D3D_CT_INTERFACE_POINTERS,
510 D3D_CT_RESOURCE_BIND_INFO,
511 D3D10_CT_CBUFFER = 0,
512 D3D10_CT_TBUFFER,
513 D3D11_CT_CBUFFER = 0,
514 D3D11_CT_TBUFFER,
515 D3D11_CT_INTERFACE_POINTERS,
516 D3D11_CT_RESOURCE_BIND_INFO,
517 } D3D_CBUFFER_TYPE;
519 typedef enum D3D_SRV_DIMENSION
521 D3D_SRV_DIMENSION_UNKNOWN,
522 D3D_SRV_DIMENSION_BUFFER,
523 D3D_SRV_DIMENSION_TEXTURE1D,
524 D3D_SRV_DIMENSION_TEXTURE1DARRAY,
525 D3D_SRV_DIMENSION_TEXTURE2D,
526 D3D_SRV_DIMENSION_TEXTURE2DARRAY,
527 D3D_SRV_DIMENSION_TEXTURE2DMS,
528 D3D_SRV_DIMENSION_TEXTURE2DMSARRAY,
529 D3D_SRV_DIMENSION_TEXTURE3D,
530 D3D_SRV_DIMENSION_TEXTURECUBE,
531 D3D_SRV_DIMENSION_TEXTURECUBEARRAY,
532 D3D_SRV_DIMENSION_BUFFEREX,
533 D3D10_SRV_DIMENSION_UNKNOWN = 0,
534 D3D10_SRV_DIMENSION_BUFFER,
535 D3D10_SRV_DIMENSION_TEXTURE1D,
536 D3D10_SRV_DIMENSION_TEXTURE1DARRAY,
537 D3D10_SRV_DIMENSION_TEXTURE2D,
538 D3D10_SRV_DIMENSION_TEXTURE2DARRAY,
539 D3D10_SRV_DIMENSION_TEXTURE2DMS,
540 D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY,
541 D3D10_SRV_DIMENSION_TEXTURE3D,
542 D3D10_SRV_DIMENSION_TEXTURECUBE,
543 D3D10_1_SRV_DIMENSION_UNKNOWN = 0,
544 D3D10_1_SRV_DIMENSION_BUFFER,
545 D3D10_1_SRV_DIMENSION_TEXTURE1D,
546 D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY,
547 D3D10_1_SRV_DIMENSION_TEXTURE2D,
548 D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY,
549 D3D10_1_SRV_DIMENSION_TEXTURE2DMS,
550 D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY,
551 D3D10_1_SRV_DIMENSION_TEXTURE3D,
552 D3D10_1_SRV_DIMENSION_TEXTURECUBE,
553 D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY,
554 D3D11_SRV_DIMENSION_UNKNOWN = 0,
555 D3D11_SRV_DIMENSION_BUFFER,
556 D3D11_SRV_DIMENSION_TEXTURE1D,
557 D3D11_SRV_DIMENSION_TEXTURE1DARRAY,
558 D3D11_SRV_DIMENSION_TEXTURE2D,
559 D3D11_SRV_DIMENSION_TEXTURE2DARRAY,
560 D3D11_SRV_DIMENSION_TEXTURE2DMS,
561 D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY,
562 D3D11_SRV_DIMENSION_TEXTURE3D,
563 D3D11_SRV_DIMENSION_TEXTURECUBE,
564 D3D11_SRV_DIMENSION_TEXTURECUBEARRAY,
565 D3D11_SRV_DIMENSION_BUFFEREX,
566 } D3D_SRV_DIMENSION;
568 typedef enum D3D_REGISTER_COMPONENT_TYPE
570 D3D_REGISTER_COMPONENT_UNKNOWN,
571 D3D_REGISTER_COMPONENT_UINT32,
572 D3D_REGISTER_COMPONENT_SINT32,
573 D3D_REGISTER_COMPONENT_FLOAT32,
574 D3D10_REGISTER_COMPONENT_UNKNOWN = 0,
575 D3D10_REGISTER_COMPONENT_UINT32,
576 D3D10_REGISTER_COMPONENT_SINT32,
577 D3D10_REGISTER_COMPONENT_FLOAT32,
578 } D3D_REGISTER_COMPONENT_TYPE;
580 typedef enum D3D_RESOURCE_RETURN_TYPE
582 D3D_RETURN_TYPE_UNORM = 1,
583 D3D_RETURN_TYPE_SNORM,
584 D3D_RETURN_TYPE_SINT,
585 D3D_RETURN_TYPE_UINT,
586 D3D_RETURN_TYPE_FLOAT,
587 D3D_RETURN_TYPE_MIXED,
588 D3D_RETURN_TYPE_DOUBLE,
589 D3D_RETURN_TYPE_CONTINUED,
590 D3D10_RETURN_TYPE_UNORM = 1,
591 D3D10_RETURN_TYPE_SNORM,
592 D3D10_RETURN_TYPE_SINT,
593 D3D10_RETURN_TYPE_UINT,
594 D3D10_RETURN_TYPE_FLOAT,
595 D3D10_RETURN_TYPE_MIXED,
596 D3D11_RETURN_TYPE_UNORM = 1,
597 D3D11_RETURN_TYPE_SNORM,
598 D3D11_RETURN_TYPE_SINT,
599 D3D11_RETURN_TYPE_UINT,
600 D3D11_RETURN_TYPE_FLOAT,
601 D3D11_RETURN_TYPE_MIXED,
602 D3D11_RETURN_TYPE_DOUBLE,
603 D3D11_RETURN_TYPE_CONTINUED,
604 } D3D_RESOURCE_RETURN_TYPE;
606 typedef enum D3D_NAME
608 D3D_NAME_UNDEFINED,
609 D3D_NAME_POSITION,
610 D3D_NAME_CLIP_DISTANCE,
611 D3D_NAME_CULL_DISTANCE,
612 D3D_NAME_RENDER_TARGET_ARRAY_INDEX,
613 D3D_NAME_VIEWPORT_ARRAY_INDEX,
614 D3D_NAME_VERTEX_ID,
615 D3D_NAME_PRIMITIVE_ID,
616 D3D_NAME_INSTANCE_ID,
617 D3D_NAME_IS_FRONT_FACE,
618 D3D_NAME_SAMPLE_INDEX,
619 D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR,
620 D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR,
621 D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR,
622 D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR,
623 D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR,
624 D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR,
625 D3D_NAME_TARGET = 64,
626 D3D_NAME_DEPTH,
627 D3D_NAME_COVERAGE,
628 D3D_NAME_DEPTH_GREATER_EQUAL,
629 D3D_NAME_DEPTH_LESS_EQUAL,
630 D3D10_NAME_UNDEFINED = 0,
631 D3D10_NAME_POSITION,
632 D3D10_NAME_CLIP_DISTANCE,
633 D3D10_NAME_CULL_DISTANCE,
634 D3D10_NAME_RENDER_TARGET_ARRAY_INDEX,
635 D3D10_NAME_VIEWPORT_ARRAY_INDEX,
636 D3D10_NAME_VERTEX_ID,
637 D3D10_NAME_PRIMITIVE_ID,
638 D3D10_NAME_INSTANCE_ID,
639 D3D10_NAME_IS_FRONT_FACE,
640 D3D10_NAME_SAMPLE_INDEX,
641 D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR,
642 D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR,
643 D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR,
644 D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR,
645 D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR,
646 D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR,
647 D3D10_NAME_TARGET = 64,
648 D3D10_NAME_DEPTH,
649 D3D10_NAME_COVERAGE,
650 D3D11_NAME_DEPTH_GREATER_EQUAL,
651 D3D11_NAME_DEPTH_LESS_EQUAL,
652 } D3D_NAME;
654 typedef enum _D3D_SHADER_INPUT_TYPE
656 D3D_SIT_CBUFFER,
657 D3D_SIT_TBUFFER,
658 D3D_SIT_TEXTURE,
659 D3D_SIT_SAMPLER,
660 D3D_SIT_UAV_RWTYPED,
661 D3D_SIT_STRUCTURED,
662 D3D_SIT_UAV_RWSTRUCTURED,
663 D3D_SIT_BYTEADDRESS,
664 D3D_SIT_UAV_RWBYTEADDRESS,
665 D3D_SIT_UAV_APPEND_STRUCTURED,
666 D3D_SIT_UAV_CONSUME_STRUCTURED,
667 D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
668 D3D10_SIT_CBUFFER = 0,
669 D3D10_SIT_TBUFFER,
670 D3D10_SIT_TEXTURE,
671 D3D10_SIT_SAMPLER,
672 D3D11_SIT_UAV_RWTYPED,
673 D3D11_SIT_STRUCTURED,
674 D3D11_SIT_UAV_RWSTRUCTURED,
675 D3D11_SIT_BYTEADDRESS,
676 D3D11_SIT_UAV_RWBYTEADDRESS,
677 D3D11_SIT_UAV_APPEND_STRUCTURED,
678 D3D11_SIT_UAV_CONSUME_STRUCTURED,
679 D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
680 } D3D_SHADER_INPUT_TYPE;
682 typedef enum _D3D_SHADER_CBUFFER_FLAGS
684 D3D_CBF_USERPACKED = 0x01,
685 D3D10_CBF_USERPACKED = D3D_CBF_USERPACKED,
686 D3D_CBF_FORCE_DWORD = 0x7fffffff
687 } D3D_SHADER_CBUFFER_FLAGS;
689 cpp_quote("DEFINE_GUID(WKPDID_D3DDebugObjectName,0x429b8c22,0x9188,0x4b0c,0x87,0x42,0xac,0xb0,0xbf,0x85,0xc2,0x00);")