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
22 typedef struct _D3D_SHADER_MACRO
28 typedef struct _D3D_SHADER_MACRO
* LPD3D_SHADER_MACRO
;
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,
50 D3D10_INCLUDE_LOCAL
= D3D_INCLUDE_LOCAL
,
51 D3D10_INCLUDE_SYSTEM
= D3D_INCLUDE_SYSTEM
,
52 D3D_INCLUDE_FORCE_DWORD
= 0x7fffffff
61 HRESULT Open
(D3D_INCLUDE_TYPE include_type
,
63 const void *parent_data
,
66 HRESULT Close
(const void *data
);
69 typedef ID3DInclude
* LPD3DINCLUDE
;
71 typedef enum D3D_FEATURE_LEVEL
73 D3D_FEATURE_LEVEL_9_1
= 0x9100,
74 D3D_FEATURE_LEVEL_9_2
= 0x9200,
75 D3D_FEATURE_LEVEL_9_3
= 0x9300,
76 D3D_FEATURE_LEVEL_10_0
= 0xa000,
77 D3D_FEATURE_LEVEL_10_1
= 0xa100,
78 D3D_FEATURE_LEVEL_11_0
= 0xb000,
81 typedef enum _D3D_SHADER_VARIABLE_CLASS
86 D3D_SVC_MATRIX_COLUMNS
,
89 D3D_SVC_INTERFACE_CLASS
,
90 D3D_SVC_INTERFACE_POINTER
,
93 D3D10_SVC_MATRIX_ROWS
,
94 D3D10_SVC_MATRIX_COLUMNS
,
97 D3D11_SVC_INTERFACE_CLASS
,
98 D3D11_SVC_INTERFACE_POINTER
,
99 D3D_SVC_FORCE_DWORD
= 0x7fffffff,
100 } D3D_SHADER_VARIABLE_CLASS
;
102 typedef enum _D3D_SHADER_VARIABLE_TYPE
120 D3D_SVT_VERTEXSHADER
,
121 D3D_SVT_PIXELFRAGMENT
,
122 D3D_SVT_VERTEXFRAGMENT
,
125 D3D_SVT_GEOMETRYSHADER
,
127 D3D_SVT_DEPTHSTENCIL
,
132 D3D_SVT_TEXTURE1DARRAY
,
133 D3D_SVT_TEXTURE2DARRAY
,
134 D3D_SVT_RENDERTARGETVIEW
,
135 D3D_SVT_DEPTHSTENCILVIEW
,
137 D3D_SVT_TEXTURE2DMSARRAY
,
138 D3D_SVT_TEXTURECUBEARRAY
,
140 D3D_SVT_DOMAINSHADER
,
141 D3D_SVT_INTERFACE_POINTER
,
142 D3D_SVT_COMPUTESHADER
,
145 D3D_SVT_RWTEXTURE1DARRAY
,
147 D3D_SVT_RWTEXTURE2DARRAY
,
150 D3D_SVT_BYTEADDRESS_BUFFER
,
151 D3D_SVT_RWBYTEADDRESS_BUFFER
,
152 D3D_SVT_STRUCTURED_BUFFER
,
153 D3D_SVT_RWSTRUCTURED_BUFFER
,
154 D3D_SVT_APPEND_STRUCTURED_BUFFER
,
155 D3D_SVT_CONSUME_STRUCTURED_BUFFER
,
165 D3D10_SVT_TEXTURECUBE
,
170 D3D10_SVT_SAMPLERCUBE
,
171 D3D10_SVT_PIXELSHADER
,
172 D3D10_SVT_VERTEXSHADER
,
173 D3D10_SVT_PIXELFRAGMENT
,
174 D3D10_SVT_VERTEXFRAGMENT
,
177 D3D10_SVT_GEOMETRYSHADER
,
178 D3D10_SVT_RASTERIZER
,
179 D3D10_SVT_DEPTHSTENCIL
,
184 D3D10_SVT_TEXTURE1DARRAY
,
185 D3D10_SVT_TEXTURE2DARRAY
,
186 D3D10_SVT_RENDERTARGETVIEW
,
187 D3D10_SVT_DEPTHSTENCILVIEW
,
188 D3D10_SVT_TEXTURE2DMS
,
189 D3D10_SVT_TEXTURE2DMSARRAY
,
190 D3D10_SVT_TEXTURECUBEARRAY
,
191 D3D11_SVT_HULLSHADER
,
192 D3D11_SVT_DOMAINSHADER
,
193 D3D11_SVT_INTERFACE_POINTER
,
194 D3D11_SVT_COMPUTESHADER
,
196 D3D11_SVT_RWTEXTURE1D
,
197 D3D11_SVT_RWTEXTURE1DARRAY
,
198 D3D11_SVT_RWTEXTURE2D
,
199 D3D11_SVT_RWTEXTURE2DARRAY
,
200 D3D11_SVT_RWTEXTURE3D
,
202 D3D11_SVT_BYTEADDRESS_BUFFER
,
203 D3D11_SVT_RWBYTEADDRESS_BUFFER
,
204 D3D11_SVT_STRUCTURED_BUFFER
,
205 D3D11_SVT_RWSTRUCTURED_BUFFER
,
206 D3D11_SVT_APPEND_STRUCTURED_BUFFER
,
207 D3D11_SVT_CONSUME_STRUCTURED_BUFFER
,
208 D3D_SVT_FORCE_DWORD
= 0x7fffffff,
209 } D3D_SHADER_VARIABLE_TYPE
;
211 typedef enum D3D_PRIMITIVE
213 D3D_PRIMITIVE_UNDEFINED
,
216 D3D_PRIMITIVE_TRIANGLE
,
217 D3D_PRIMITIVE_LINE_ADJ
= 6,
218 D3D_PRIMITIVE_TRIANGLE_ADJ
,
219 D3D_PRIMITIVE_1_CONTROL_POINT_PATCH
,
220 D3D_PRIMITIVE_2_CONTROL_POINT_PATCH
,
221 D3D_PRIMITIVE_3_CONTROL_POINT_PATCH
,
222 D3D_PRIMITIVE_4_CONTROL_POINT_PATCH
,
223 D3D_PRIMITIVE_5_CONTROL_POINT_PATCH
,
224 D3D_PRIMITIVE_6_CONTROL_POINT_PATCH
,
225 D3D_PRIMITIVE_7_CONTROL_POINT_PATCH
,
226 D3D_PRIMITIVE_8_CONTROL_POINT_PATCH
,
227 D3D_PRIMITIVE_9_CONTROL_POINT_PATCH
,
228 D3D_PRIMITIVE_10_CONTROL_POINT_PATCH
,
229 D3D_PRIMITIVE_11_CONTROL_POINT_PATCH
,
230 D3D_PRIMITIVE_12_CONTROL_POINT_PATCH
,
231 D3D_PRIMITIVE_13_CONTROL_POINT_PATCH
,
232 D3D_PRIMITIVE_14_CONTROL_POINT_PATCH
,
233 D3D_PRIMITIVE_15_CONTROL_POINT_PATCH
,
234 D3D_PRIMITIVE_16_CONTROL_POINT_PATCH
,
235 D3D_PRIMITIVE_17_CONTROL_POINT_PATCH
,
236 D3D_PRIMITIVE_18_CONTROL_POINT_PATCH
,
237 D3D_PRIMITIVE_19_CONTROL_POINT_PATCH
,
238 D3D_PRIMITIVE_20_CONTROL_POINT_PATCH
= 28,
239 D3D_PRIMITIVE_21_CONTROL_POINT_PATCH
,
240 D3D_PRIMITIVE_22_CONTROL_POINT_PATCH
,
241 D3D_PRIMITIVE_23_CONTROL_POINT_PATCH
,
242 D3D_PRIMITIVE_24_CONTROL_POINT_PATCH
,
243 D3D_PRIMITIVE_25_CONTROL_POINT_PATCH
,
244 D3D_PRIMITIVE_26_CONTROL_POINT_PATCH
,
245 D3D_PRIMITIVE_27_CONTROL_POINT_PATCH
,
246 D3D_PRIMITIVE_28_CONTROL_POINT_PATCH
,
247 D3D_PRIMITIVE_29_CONTROL_POINT_PATCH
,
248 D3D_PRIMITIVE_30_CONTROL_POINT_PATCH
,
249 D3D_PRIMITIVE_31_CONTROL_POINT_PATCH
,
250 D3D_PRIMITIVE_32_CONTROL_POINT_PATCH
,
251 D3D10_PRIMITIVE_UNDEFINED
= 0,
252 D3D10_PRIMITIVE_POINT
,
253 D3D10_PRIMITIVE_LINE
,
254 D3D10_PRIMITIVE_TRIANGLE
,
255 D3D10_PRIMITIVE_LINE_ADJ
= 6,
256 D3D10_PRIMITIVE_TRIANGLE_ADJ
,
257 D3D11_PRIMITIVE_UNDEFINED
= 0,
258 D3D11_PRIMITIVE_POINT
,
259 D3D11_PRIMITIVE_LINE
,
260 D3D11_PRIMITIVE_TRIANGLE
,
261 D3D11_PRIMITIVE_LINE_ADJ
= 6,
262 D3D11_PRIMITIVE_TRIANGLE_ADJ
,
263 D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH
,
264 D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH
,
265 D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH
,
266 D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH
,
267 D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH
,
268 D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH
,
269 D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH
,
270 D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH
,
271 D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH
,
272 D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH
,
273 D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH
,
274 D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH
,
275 D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH
,
276 D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH
,
277 D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH
,
278 D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH
,
279 D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH
,
280 D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH
,
281 D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH
,
282 D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH
= 28,
283 D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH
,
284 D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH
,
285 D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH
,
286 D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH
,
287 D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH
,
288 D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH
,
289 D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH
,
290 D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH
,
291 D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH
,
292 D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH
,
293 D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH
,
294 D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH
,
297 typedef enum D3D_PRIMITIVE_TOPOLOGY
299 D3D_PRIMITIVE_TOPOLOGY_UNDEFINED
,
300 D3D_PRIMITIVE_TOPOLOGY_POINTLIST
,
301 D3D_PRIMITIVE_TOPOLOGY_LINELIST
,
302 D3D_PRIMITIVE_TOPOLOGY_LINESTRIP
,
303 D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST
,
304 D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
,
305 D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ
= 10,
306 D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ
,
307 D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ
,
308 D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ
,
309 D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST
= 33,
310 D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST
,
311 D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST
,
312 D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST
,
313 D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST
,
314 D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST
,
315 D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST
,
316 D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST
,
317 D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST
,
318 D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST
,
319 D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST
,
320 D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST
,
321 D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST
,
322 D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST
,
323 D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST
,
324 D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST
,
325 D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST
,
326 D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST
,
327 D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST
,
328 D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST
,
329 D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST
,
330 D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST
,
331 D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST
,
332 D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST
,
333 D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST
,
334 D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST
,
335 D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST
,
336 D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST
,
337 D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST
,
338 D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST
,
339 D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST
,
340 D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST
,
341 D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED
= 0,
342 D3D10_PRIMITIVE_TOPOLOGY_POINTLIST
,
343 D3D10_PRIMITIVE_TOPOLOGY_LINELIST
,
344 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP
,
345 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST
,
346 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
,
347 D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ
= 10,
348 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ
,
349 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ
,
350 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ
,
351 D3D11_PRIMITIVE_TOPOLOGY_UNDEFINED
= 0,
352 D3D11_PRIMITIVE_TOPOLOGY_POINTLIST
,
353 D3D11_PRIMITIVE_TOPOLOGY_LINELIST
,
354 D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP
,
355 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST
,
356 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
,
357 D3D11_PRIMITIVE_TOPOLOGY_LINELIST_ADJ
= 10,
358 D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ
,
359 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ
,
360 D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ
,
361 D3D11_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST
= 33,
362 D3D11_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST
,
363 D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST
,
364 D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST
,
365 D3D11_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST
,
366 D3D11_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST
,
367 D3D11_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST
,
368 D3D11_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST
,
369 D3D11_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST
,
370 D3D11_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST
,
371 D3D11_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST
,
372 D3D11_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST
,
373 D3D11_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST
,
374 D3D11_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST
,
375 D3D11_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST
,
376 D3D11_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST
,
377 D3D11_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST
,
378 D3D11_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST
,
379 D3D11_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST
,
380 D3D11_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST
,
381 D3D11_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST
,
382 D3D11_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST
,
383 D3D11_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST
,
384 D3D11_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST
,
385 D3D11_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST
,
386 D3D11_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST
,
387 D3D11_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST
,
388 D3D11_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST
,
389 D3D11_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST
,
390 D3D11_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST
,
391 D3D11_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST
,
392 D3D11_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST
,
393 } D3D_PRIMITIVE_TOPOLOGY
;
395 typedef enum D3D_TESSELLATOR_DOMAIN
397 D3D_TESSELLATOR_DOMAIN_UNDEFINED
,
398 D3D_TESSELLATOR_DOMAIN_ISOLINE
,
399 D3D_TESSELLATOR_DOMAIN_TRI
,
400 D3D_TESSELLATOR_DOMAIN_QUAD
,
401 D3D11_TESSELLATOR_DOMAIN_UNDEFINED
= 0,
402 D3D11_TESSELLATOR_DOMAIN_ISOLINE
,
403 D3D11_TESSELLATOR_DOMAIN_TRI
,
404 D3D11_TESSELLATOR_DOMAIN_QUAD
,
405 } D3D_TESSELLATOR_DOMAIN
;
407 typedef enum D3D_TESSELLATOR_PARTITIONING
409 D3D_TESSELLATOR_PARTITIONING_UNDEFINED
,
410 D3D_TESSELLATOR_PARTITIONING_INTEGER
,
411 D3D_TESSELLATOR_PARTITIONING_POW2
,
412 D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD
,
413 D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN
,
414 D3D11_TESSELLATOR_PARTITIONING_UNDEFINED
= 0,
415 D3D11_TESSELLATOR_PARTITIONING_INTEGER
,
416 D3D11_TESSELLATOR_PARTITIONING_POW2
,
417 D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD
,
418 D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN
,
419 } D3D_TESSELLATOR_PARTITIONING
;
421 typedef enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE
423 D3D_TESSELLATOR_OUTPUT_UNDEFINED
,
424 D3D_TESSELLATOR_OUTPUT_POINT
,
425 D3D_TESSELLATOR_OUTPUT_LINE
,
426 D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW
,
427 D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW
,
428 D3D11_TESSELLATOR_OUTPUT_UNDEFINED
= 0,
429 D3D11_TESSELLATOR_OUTPUT_POINT
,
430 D3D11_TESSELLATOR_OUTPUT_LINE
,
431 D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW
,
432 D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW
,
433 } D3D_TESSELLATOR_OUTPUT_PRIMITIVE
;
435 typedef enum D3D_CBUFFER_TYPE
439 D3D_CT_INTERFACE_POINTERS
,
440 D3D_CT_RESOURCE_BIND_INFO
,
441 D3D10_CT_CBUFFER
= 0,
443 D3D11_CT_CBUFFER
= 0,
445 D3D11_CT_INTERFACE_POINTERS
,
446 D3D11_CT_RESOURCE_BIND_INFO
,
449 typedef enum D3D_SRV_DIMENSION
451 D3D_SRV_DIMENSION_UNKNOWN
,
452 D3D_SRV_DIMENSION_BUFFER
,
453 D3D_SRV_DIMENSION_TEXTURE1D
,
454 D3D_SRV_DIMENSION_TEXTURE1DARRAY
,
455 D3D_SRV_DIMENSION_TEXTURE2D
,
456 D3D_SRV_DIMENSION_TEXTURE2DARRAY
,
457 D3D_SRV_DIMENSION_TEXTURE2DMS
,
458 D3D_SRV_DIMENSION_TEXTURE2DMSARRAY
,
459 D3D_SRV_DIMENSION_TEXTURE3D
,
460 D3D_SRV_DIMENSION_TEXTURECUBE
,
461 D3D_SRV_DIMENSION_TEXTURECUBEARRAY
,
462 D3D_SRV_DIMENSION_BUFFEREX
,
463 D3D10_SRV_DIMENSION_UNKNOWN
= 0,
464 D3D10_SRV_DIMENSION_BUFFER
,
465 D3D10_SRV_DIMENSION_TEXTURE1D
,
466 D3D10_SRV_DIMENSION_TEXTURE1DARRAY
,
467 D3D10_SRV_DIMENSION_TEXTURE2D
,
468 D3D10_SRV_DIMENSION_TEXTURE2DARRAY
,
469 D3D10_SRV_DIMENSION_TEXTURE2DMS
,
470 D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY
,
471 D3D10_SRV_DIMENSION_TEXTURE3D
,
472 D3D10_SRV_DIMENSION_TEXTURECUBE
,
473 D3D10_1_SRV_DIMENSION_UNKNOWN
= 0,
474 D3D10_1_SRV_DIMENSION_BUFFER
,
475 D3D10_1_SRV_DIMENSION_TEXTURE1D
,
476 D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY
,
477 D3D10_1_SRV_DIMENSION_TEXTURE2D
,
478 D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY
,
479 D3D10_1_SRV_DIMENSION_TEXTURE2DMS
,
480 D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY
,
481 D3D10_1_SRV_DIMENSION_TEXTURE3D
,
482 D3D10_1_SRV_DIMENSION_TEXTURECUBE
,
483 D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY
,
484 D3D11_SRV_DIMENSION_UNKNOWN
= 0,
485 D3D11_SRV_DIMENSION_BUFFER
,
486 D3D11_SRV_DIMENSION_TEXTURE1D
,
487 D3D11_SRV_DIMENSION_TEXTURE1DARRAY
,
488 D3D11_SRV_DIMENSION_TEXTURE2D
,
489 D3D11_SRV_DIMENSION_TEXTURE2DARRAY
,
490 D3D11_SRV_DIMENSION_TEXTURE2DMS
,
491 D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY
,
492 D3D11_SRV_DIMENSION_TEXTURE3D
,
493 D3D11_SRV_DIMENSION_TEXTURECUBE
,
494 D3D11_SRV_DIMENSION_TEXTURECUBEARRAY
,
495 D3D11_SRV_DIMENSION_BUFFEREX
,
498 typedef enum D3D_REGISTER_COMPONENT_TYPE
500 D3D_REGISTER_COMPONENT_UNKNOWN
,
501 D3D_REGISTER_COMPONENT_UINT32
,
502 D3D_REGISTER_COMPONENT_SINT32
,
503 D3D_REGISTER_COMPONENT_FLOAT32
,
504 D3D10_REGISTER_COMPONENT_UNKNOWN
= 0,
505 D3D10_REGISTER_COMPONENT_UINT32
,
506 D3D10_REGISTER_COMPONENT_SINT32
,
507 D3D10_REGISTER_COMPONENT_FLOAT32
,
508 } D3D_REGISTER_COMPONENT_TYPE
;
510 typedef enum D3D_RESOURCE_RETURN_TYPE
512 D3D_RETURN_TYPE_UNORM
= 1,
513 D3D_RETURN_TYPE_SNORM
,
514 D3D_RETURN_TYPE_SINT
,
515 D3D_RETURN_TYPE_UINT
,
516 D3D_RETURN_TYPE_FLOAT
,
517 D3D_RETURN_TYPE_MIXED
,
518 D3D_RETURN_TYPE_DOUBLE
,
519 D3D_RETURN_TYPE_CONTINUED
,
520 D3D10_RETURN_TYPE_UNORM
= 1,
521 D3D10_RETURN_TYPE_SNORM
,
522 D3D10_RETURN_TYPE_SINT
,
523 D3D10_RETURN_TYPE_UINT
,
524 D3D10_RETURN_TYPE_FLOAT
,
525 D3D10_RETURN_TYPE_MIXED
,
526 D3D11_RETURN_TYPE_UNORM
= 1,
527 D3D11_RETURN_TYPE_SNORM
,
528 D3D11_RETURN_TYPE_SINT
,
529 D3D11_RETURN_TYPE_UINT
,
530 D3D11_RETURN_TYPE_FLOAT
,
531 D3D11_RETURN_TYPE_MIXED
,
532 D3D11_RETURN_TYPE_DOUBLE
,
533 D3D11_RETURN_TYPE_CONTINUED
,
534 } D3D_RESOURCE_RETURN_TYPE
;
536 typedef enum D3D_NAME
540 D3D_NAME_CLIP_DISTANCE
,
541 D3D_NAME_CULL_DISTANCE
,
542 D3D_NAME_RENDER_TARGET_ARRAY_INDEX
,
543 D3D_NAME_VIEWPORT_ARRAY_INDEX
,
545 D3D_NAME_PRIMITIVE_ID
,
546 D3D_NAME_INSTANCE_ID
,
547 D3D_NAME_IS_FRONT_FACE
,
548 D3D_NAME_SAMPLE_INDEX
,
549 D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR
,
550 D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR
,
551 D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR
,
552 D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR
,
553 D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR
,
554 D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR
,
555 D3D_NAME_TARGET
= 64,
558 D3D_NAME_DEPTH_GREATER_EQUAL
,
559 D3D_NAME_DEPTH_LESS_EQUAL
,
560 D3D10_NAME_UNDEFINED
= 0,
562 D3D10_NAME_CLIP_DISTANCE
,
563 D3D10_NAME_CULL_DISTANCE
,
564 D3D10_NAME_RENDER_TARGET_ARRAY_INDEX
,
565 D3D10_NAME_VIEWPORT_ARRAY_INDEX
,
566 D3D10_NAME_VERTEX_ID
,
567 D3D10_NAME_PRIMITIVE_ID
,
568 D3D10_NAME_INSTANCE_ID
,
569 D3D10_NAME_IS_FRONT_FACE
,
570 D3D10_NAME_SAMPLE_INDEX
,
571 D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR
,
572 D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR
,
573 D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR
,
574 D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR
,
575 D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR
,
576 D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR
,
577 D3D10_NAME_TARGET
= 64,
580 D3D11_NAME_DEPTH_GREATER_EQUAL
,
581 D3D11_NAME_DEPTH_LESS_EQUAL
,
584 typedef enum _D3D_SHADER_INPUT_TYPE
592 D3D_SIT_UAV_RWSTRUCTURED
,
594 D3D_SIT_UAV_RWBYTEADDRESS
,
595 D3D_SIT_UAV_APPEND_STRUCTURED
,
596 D3D_SIT_UAV_CONSUME_STRUCTURED
,
597 D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER
,
598 D3D10_SIT_CBUFFER
= 0,
602 D3D11_SIT_UAV_RWTYPED
,
603 D3D11_SIT_STRUCTURED
,
604 D3D11_SIT_UAV_RWSTRUCTURED
,
605 D3D11_SIT_BYTEADDRESS
,
606 D3D11_SIT_UAV_RWBYTEADDRESS
,
607 D3D11_SIT_UAV_APPEND_STRUCTURED
,
608 D3D11_SIT_UAV_CONSUME_STRUCTURED
,
609 D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER
,
610 } D3D_SHADER_INPUT_TYPE
;