2 * Copyright 2010 Rico Schüller
3 * Copyright 2013 Austin English
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 import
"d3dcommon.idl";
25 typedef D3D_PRIMITIVE D3D11_PRIMITIVE
;
26 typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY
;
27 typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION
;
28 typedef RECT D3D11_RECT
;
30 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
= 14;
31 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS
= 4;
32 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT
= 32;
33 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT
= 15;
34 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT
= 16;
35 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT
= 15;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
39 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT
= 64;
40 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
41 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT
= 1;
42 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
43 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
44 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT
= 32;
45 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS
= 1;
46 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT
= 128;
47 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST
= 1;
48 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS
= 1;
49 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
= 128;
50 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS
= 1;
51 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT
= 16;
52 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST
= 1;
53 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS
= 1;
54 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT
= 16;
55 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT
= 32;
56 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS
= 4;
57 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT
= 32;
58 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT
= 4096;
59 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST
= 3;
60 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS
= 3;
61 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX
= 10;
62 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN
= -10;
63 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE
= -8;
64 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE
= 7;
66 const UINT D3D11_DEFAULT_DEPTH_BIAS
= 0;
67 cpp_quote
("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
68 const UINT D3D11_DEFAULT_MAX_ANISOTROPY
= 16;
69 cpp_quote
("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
70 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX
= 0;
71 const UINT D3D11_DEFAULT_SAMPLE_MASK
= 0xffffffff;
72 const UINT D3D11_DEFAULT_SCISSOR_ENDX
= 0;
73 const UINT D3D11_DEFAULT_SCISSOR_ENDY
= 0;
74 const UINT D3D11_DEFAULT_SCISSOR_STARTX
= 0;
75 const UINT D3D11_DEFAULT_SCISSOR_STARTY
= 0;
76 cpp_quote
("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
77 const UINT D3D11_DEFAULT_STENCIL_READ_MASK
= 0xff;
78 const UINT D3D11_DEFAULT_STENCIL_REFERENCE
= 0;
79 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK
= 0xff;
80 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX
= 0;
81 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT
= 0;
82 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
83 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
84 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX
= 0;
85 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY
= 0;
86 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH
= 0;
88 cpp_quote
("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
90 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
= 8;
92 const UINT D3D11_MAX_MAXANISOTROPY
= 16;
93 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT
= 32;
94 const UINT D3D11_VIEWPORT_BOUNDS_MAX
= 32767;
95 const INT D3D11_VIEWPORT_BOUNDS_MIN
= -32768;
96 const UINT D3D11_SHADER_MAJOR_VERSION
= 5;
97 const UINT D3D11_SHADER_MAX_INSTANCES
= 65535;
98 const UINT D3D11_SHADER_MAX_INTERFACES
= 253;
99 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES
= 4096;
100 const UINT D3D11_SHADER_MAX_TYPES
= 65535;
101 const UINT D3D11_SHADER_MINOR_VERSION
= 0;
102 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT
= 32;
104 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS
= 1;
105 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT
= 8;
106 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST
= 1;
107 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS
= 1;
108 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE
= 0xffffffff;
109 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE
= 0;
110 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE
= 0xffffffff;
111 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS
= 4;
112 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
113 const UINT D3D11_PS_INPUT_REGISTER_COUNT
= 32;
114 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST
= 2;
115 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS
= 1;
116 cpp_quote
("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
117 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS
= 1;
118 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT
= 32;
119 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT
= 1;
120 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS
= 1;
121 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT
= 32;
122 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT
= 1;
123 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS
= 4;
124 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
125 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT
= 8;
126 cpp_quote
("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
128 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT
= 16;
130 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE
= 4096;
131 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP
= 27;
132 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
133 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE
= 4096;
134 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP
= 32;
135 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP
= 32;
136 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION
= 16384;
137 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT
= 1024;
138 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
139 const UINT D3D11_REQ_MAXANISOTROPY
= 16;
140 const UINT D3D11_REQ_MIP_LEVELS
= 15;
141 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES
= 2048;
142 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE
= 4096;
143 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH
= 16384;
144 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM
= 128;
145 cpp_quote
("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
146 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM
= 2048;
147 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP
= 20;
148 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE
= 4096;
149 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION
= 2048;
150 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION
= 16384;
151 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION
= 2048;
152 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION
= 16384;
153 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION
= 2048;
154 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION
= 16384;
156 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL
= 0;
158 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE
= 0;
159 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT
= 5;
161 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES
= 2048;
162 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES
= 512;
163 const UINT D3D11_SO_BUFFER_SLOT_COUNT
= 4;
164 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP
= 0xffffffff;
165 const UINT D3D11_SO_NO_RASTERIZED_STREAM
= 0xffffffff;
166 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT
= 128;
167 const UINT D3D11_SO_STREAM_COUNT
= 4;
169 const UINT D3D11_SPEC_DATE_DAY
= 16;
170 const UINT D3D11_SPEC_DATE_MONTH
= 05;
171 const UINT D3D11_SPEC_DATE_YEAR
= 2011;
173 cpp_quote
("#define D3D11_SPEC_VERSION (1.07)")
174 cpp_quote
("#define D3D11_SRGB_GAMMA (2.2f)")
175 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
176 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
177 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
178 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
179 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
180 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
182 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT
= 32;
183 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED
= 64;
184 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE
= 4;
185 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT
= 128;
186 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT
= 32;
187 const UINT D3D11_STANDARD_VECTOR_SIZE
= 4;
188 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT
= 32;
189 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT
= 64;
191 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
192 cpp_quote
("struct CD3D11_DEFAULT {};")
193 cpp_quote
("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
196 typedef enum D3D11_BLEND
198 D3D11_BLEND_ZERO
= 1,
200 D3D11_BLEND_SRC_COLOR
= 3,
201 D3D11_BLEND_INV_SRC_COLOR
= 4,
202 D3D11_BLEND_SRC_ALPHA
= 5,
203 D3D11_BLEND_INV_SRC_ALPHA
= 6,
204 D3D11_BLEND_DEST_ALPHA
= 7,
205 D3D11_BLEND_INV_DEST_ALPHA
= 8,
206 D3D11_BLEND_DEST_COLOR
= 9,
207 D3D11_BLEND_INV_DEST_COLOR
= 10,
208 D3D11_BLEND_SRC_ALPHA_SAT
= 11,
209 D3D11_BLEND_BLEND_FACTOR
= 14,
210 D3D11_BLEND_INV_BLEND_FACTOR
= 15,
211 D3D11_BLEND_SRC1_COLOR
= 16,
212 D3D11_BLEND_INV_SRC1_COLOR
= 17,
213 D3D11_BLEND_SRC1_ALPHA
= 18,
214 D3D11_BLEND_INV_SRC1_ALPHA
= 19,
217 typedef enum D3D11_BLEND_OP
219 D3D11_BLEND_OP_ADD
= 1,
220 D3D11_BLEND_OP_SUBTRACT
,
221 D3D11_BLEND_OP_REV_SUBTRACT
,
226 typedef struct D3D11_BOX
236 typedef struct D3D11_BUFFER_RTV
250 typedef struct D3D11_BUFFER_SRV
264 typedef struct D3D11_BUFFER_UAV
271 typedef struct D3D11_BUFFEREX_SRV
276 } D3D11_BUFFEREX_SRV
;
278 typedef struct D3D11_CLASS_INSTANCE_DESC
284 UINT BaseConstantBufferOffset
;
288 } D3D11_CLASS_INSTANCE_DESC
;
290 typedef enum D3D11_COMPARISON_FUNC
292 D3D11_COMPARISON_NEVER
= 1,
293 D3D11_COMPARISON_LESS
,
294 D3D11_COMPARISON_EQUAL
,
295 D3D11_COMPARISON_LESS_EQUAL
,
296 D3D11_COMPARISON_GREATER
,
297 D3D11_COMPARISON_NOT_EQUAL
,
298 D3D11_COMPARISON_GREATER_EQUAL
,
299 D3D11_COMPARISON_ALWAYS
300 } D3D11_COMPARISON_FUNC
;
302 typedef enum D3D11_COUNTER
304 D3D11_COUNTER_DEVICE_DEPENDENT_0
= 0x40000000,
307 typedef struct D3D11_COUNTER_DESC
309 D3D11_COUNTER Counter
;
311 } D3D11_COUNTER_DESC
;
313 typedef struct D3D11_COUNTER_INFO
315 D3D11_COUNTER LastDeviceDependentCounter
;
316 UINT NumSimultaneousCounters
;
317 UINT8 NumDetectableParallelUnits
;
318 } D3D11_COUNTER_INFO
;
320 typedef enum D3D11_COUNTER_TYPE
322 D3D11_COUNTER_TYPE_FLOAT32
,
323 D3D11_COUNTER_TYPE_UINT16
,
324 D3D11_COUNTER_TYPE_UINT32
,
325 D3D11_COUNTER_TYPE_UINT64
,
326 } D3D11_COUNTER_TYPE
;
328 typedef enum D3D11_CULL_MODE
335 typedef enum D3D11_DEPTH_WRITE_MASK
337 D3D11_DEPTH_WRITE_MASK_ZERO
,
338 D3D11_DEPTH_WRITE_MASK_ALL
,
339 } D3D11_DEPTH_WRITE_MASK
;
341 typedef enum D3D11_DEVICE_CONTEXT_TYPE
343 D3D11_DEVICE_CONTEXT_IMMEDIATE
,
344 D3D11_DEVICE_CONTEXT_DEFERRED
,
345 } D3D11_DEVICE_CONTEXT_TYPE
;
347 typedef enum D3D11_DSV_DIMENSION
349 D3D11_DSV_DIMENSION_UNKNOWN
,
350 D3D11_DSV_DIMENSION_TEXTURE1D
,
351 D3D11_DSV_DIMENSION_TEXTURE1DARRAY
,
352 D3D11_DSV_DIMENSION_TEXTURE2D
,
353 D3D11_DSV_DIMENSION_TEXTURE2DARRAY
,
354 D3D11_DSV_DIMENSION_TEXTURE2DMS
,
355 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY
,
356 } D3D11_DSV_DIMENSION
;
358 typedef enum D3D11_FEATURE
360 D3D11_FEATURE_THREADING
,
361 D3D11_FEATURE_DOUBLES
,
362 D3D11_FEATURE_FORMAT_SUPPORT
,
363 D3D11_FEATURE_FORMAT_SUPPORT2
,
364 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS
,
365 D3D11_FEATURE_D3D11_OPTIONS
,
366 D3D11_FEATURE_ARCHITECTURE_INFO
,
367 D3D11_FEATURE_D3D9_OPTIONS
,
368 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT
,
369 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
372 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
374 BOOL OutputMergerLogicOp
;
375 BOOL UAVOnlyRenderingForcedSampleCount
;
376 BOOL DiscardAPIsSeenByDriver
;
377 BOOL FlagsForUpdateAndCopySeenByDriver
;
379 BOOL CopyWithOverlap
;
380 BOOL ConstantBufferPartialUpdate
;
381 BOOL ConstantBufferOffsetting
;
382 BOOL MapNoOverwriteOnDynamicConstantBuffer
;
383 BOOL MapNoOverwriteOnDynamicBufferSRV
;
384 BOOL MultisampleRTVWithForcedSampleCountOne
;
385 BOOL SAD4ShaderInstructions
;
386 BOOL ExtendedDoublesShaderInstructions
;
387 BOOL ExtendedResourceSharing
;
388 } D3D11_FEATURE_DATA_D3D11_OPTIONS
;
390 typedef enum D3D11_FILL_MODE
392 D3D11_FILL_WIREFRAME
= 2,
396 typedef enum D3D11_FILTER_TYPE
398 D3D11_FILTER_TYPE_POINT
= 0,
399 D3D11_FILTER_TYPE_LINEAR
= 1
402 const UINT D3D11_MIN_FILTER_SHIFT
= 4;
403 const UINT D3D11_MAG_FILTER_SHIFT
= 2;
404 const UINT D3D11_MIP_FILTER_SHIFT
= 0;
405 const UINT D3D11_FILTER_TYPE_MASK
= 0x00000003;
406 const UINT D3D11_COMPARISON_FILTERING_BIT
= 0x00000080;
407 const UINT D3D11_ANISOTROPIC_FILTERING_BIT
= 0x00000040;
409 cpp_quote
("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
410 cpp_quote
(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
411 cpp_quote
(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
412 cpp_quote
(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
413 cpp_quote
(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
415 cpp_quote
("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
416 cpp_quote
(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
417 cpp_quote
(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
418 cpp_quote
(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
420 cpp_quote
("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
421 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
423 cpp_quote
("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
424 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
426 cpp_quote
("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
427 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
429 cpp_quote
("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
431 cpp_quote
("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
432 cpp_quote
(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
433 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
434 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
435 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
437 typedef enum D3D11_FILTER
439 D3D11_FILTER_MIN_MAG_MIP_POINT
= 0x00,
440 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR
= 0x01,
441 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x04,
442 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR
= 0x05,
443 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT
= 0x10,
444 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x11,
445 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT
= 0x14,
446 D3D11_FILTER_MIN_MAG_MIP_LINEAR
= 0x15,
447 D3D11_FILTER_ANISOTROPIC
= 0x55,
448 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT
= 0x80,
449 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR
= 0x81,
450 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x84,
451 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR
= 0x85,
452 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT
= 0x90,
453 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x91,
454 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT
= 0x94,
455 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR
= 0x95,
456 D3D11_FILTER_COMPARISON_ANISOTROPIC
= 0xd5
459 typedef enum D3D11_DSV_FLAG
461 D3D11_DSV_READ_ONLY_DEPTH
= 0x1,
462 D3D11_DSV_READ_ONLY_STENCIL
= 0x2,
465 typedef enum D3D11_INPUT_CLASSIFICATION
467 D3D11_INPUT_PER_VERTEX_DATA
,
468 D3D11_INPUT_PER_INSTANCE_DATA
,
469 } D3D11_INPUT_CLASSIFICATION
;
471 const UINT D3D11_APPEND_ALIGNED_ELEMENT
= 0xffffffff;
473 typedef struct D3D11_INPUT_ELEMENT_DESC
479 UINT AlignedByteOffset
;
480 D3D11_INPUT_CLASSIFICATION InputSlotClass
;
481 UINT InstanceDataStepRate
;
482 } D3D11_INPUT_ELEMENT_DESC
;
484 typedef enum D3D11_MAP
488 D3D11_MAP_READ_WRITE
,
489 D3D11_MAP_WRITE_DISCARD
,
490 D3D11_MAP_WRITE_NO_OVERWRITE
493 typedef enum D3D11_MAP_FLAG
495 D3D11_MAP_FLAG_DO_NOT_WAIT
= 0x00100000
498 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
500 UINT64 NumPrimitivesWritten
;
501 UINT64 PrimitivesStorageNeeded
;
502 } D3D11_QUERY_DATA_SO_STATISTICS
;
504 typedef struct D3D11_MAPPED_SUBRESOURCE
509 } D3D11_MAPPED_SUBRESOURCE
;
511 typedef enum D3D11_QUERY
514 D3D11_QUERY_OCCLUSION
,
515 D3D11_QUERY_TIMESTAMP
,
516 D3D11_QUERY_TIMESTAMP_DISJOINT
,
517 D3D11_QUERY_PIPELINE_STATISTICS
,
518 D3D11_QUERY_OCCLUSION_PREDICATE
,
519 D3D11_QUERY_SO_STATISTICS
,
520 D3D11_QUERY_SO_OVERFLOW_PREDICATE
,
521 D3D11_QUERY_SO_STATISTICS_STREAM0
,
522 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0
,
523 D3D11_QUERY_SO_STATISTICS_STREAM1
,
524 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1
,
525 D3D11_QUERY_SO_STATISTICS_STREAM2
,
526 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2
,
527 D3D11_QUERY_SO_STATISTICS_STREAM3
,
528 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3
,
531 typedef enum D3D11_QUERY_MISC_FLAG
533 D3D11_QUERY_MISC_PREDICATEHINT
= 0x1,
534 } D3D11_QUERY_MISC_FLAG
;
536 typedef enum D3D11_ASYNC_GETDATA_FLAG
538 D3D11_ASYNC_GETDATA_DONOTFLUSH
= 0x0001,
539 } D3D11_ASYNC_GETDATA_FLAG
;
541 typedef enum D3D11_RESOURCE_MISC_FLAG
543 D3D11_RESOURCE_MISC_GENERATE_MIPS
= 0x00000001L
,
544 D3D11_RESOURCE_MISC_SHARED
= 0x00000002L
,
545 D3D11_RESOURCE_MISC_TEXTURECUBE
= 0x00000004L
,
546 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
= 0x00000010L
,
547 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
= 0x00000020L
,
548 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
= 0x00000040L
,
549 D3D11_RESOURCE_MISC_RESOURCE_CLAMP
= 0x00000080L
,
550 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
= 0x00000100L
,
551 D3D11_RESOURCE_MISC_GDI_COMPATIBLE
= 0x00000200L
,
552 D3D11_RESOURCE_MISC_SHARED_NTHANDLE
= 0x00000800L
,
553 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
= 0x00001000L
,
554 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
= 0x00002000L
,
555 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
= 0x00004000L
,
556 D3D11_RESOURCE_MISC_GUARDED
= 0x00008000L
557 } D3D11_RESOURCE_MISC_FLAG
;
559 typedef struct D3D11_QUERY_DESC
565 typedef struct D3D11_RASTERIZER_DESC
567 D3D11_FILL_MODE FillMode
;
568 D3D11_CULL_MODE CullMode
;
569 BOOL FrontCounterClockwise
;
571 FLOAT DepthBiasClamp
;
572 FLOAT SlopeScaledDepthBias
;
573 BOOL DepthClipEnable
;
575 BOOL MultisampleEnable
;
576 BOOL AntialiasedLineEnable
;
577 } D3D11_RASTERIZER_DESC
;
579 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
580 cpp_quote
("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
581 cpp_quote
(" CD3D11_RASTERIZER_DESC() {}")
582 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
583 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
584 cpp_quote
(" FillMode = D3D11_FILL_SOLID;")
585 cpp_quote
(" CullMode = D3D11_CULL_BACK;")
586 cpp_quote
(" FrontCounterClockwise = FALSE;")
587 cpp_quote
(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
588 cpp_quote
(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
589 cpp_quote
(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
590 cpp_quote
(" DepthClipEnable = TRUE;")
591 cpp_quote
(" ScissorEnable = FALSE;")
592 cpp_quote
(" MultisampleEnable = FALSE;")
593 cpp_quote
(" AntialiasedLineEnable = FALSE;")
595 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
596 cpp_quote
(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
597 cpp_quote
(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
598 cpp_quote
(" FillMode = fillMode;")
599 cpp_quote
(" CullMode = cullMode;")
600 cpp_quote
(" FrontCounterClockwise = frontCounterClockwise;")
601 cpp_quote
(" DepthBias = depthBias;")
602 cpp_quote
(" DepthBiasClamp = depthBiasClamp;")
603 cpp_quote
(" SlopeScaledDepthBias = slopeScaledDepthBias;")
604 cpp_quote
(" DepthClipEnable = depthClipEnable;")
605 cpp_quote
(" ScissorEnable = scissorEnable;")
606 cpp_quote
(" MultisampleEnable = multisampleEnable;")
607 cpp_quote
(" AntialiasedLineEnable = antialiasedLineEnable;")
609 cpp_quote
(" ~CD3D11_RASTERIZER_DESC() {}")
610 cpp_quote
(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
614 typedef enum D3D11_RESOURCE_DIMENSION
616 D3D11_RESOURCE_DIMENSION_UNKNOWN
,
617 D3D11_RESOURCE_DIMENSION_BUFFER
,
618 D3D11_RESOURCE_DIMENSION_TEXTURE1D
,
619 D3D11_RESOURCE_DIMENSION_TEXTURE2D
,
620 D3D11_RESOURCE_DIMENSION_TEXTURE3D
,
621 } D3D11_RESOURCE_DIMENSION
;
623 typedef enum D3D11_RTV_DIMENSION
625 D3D11_RTV_DIMENSION_UNKNOWN
,
626 D3D11_RTV_DIMENSION_BUFFER
,
627 D3D11_RTV_DIMENSION_TEXTURE1D
,
628 D3D11_RTV_DIMENSION_TEXTURE1DARRAY
,
629 D3D11_RTV_DIMENSION_TEXTURE2D
,
630 D3D11_RTV_DIMENSION_TEXTURE2DARRAY
,
631 D3D11_RTV_DIMENSION_TEXTURE2DMS
,
632 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY
,
633 D3D11_RTV_DIMENSION_TEXTURE3D
,
634 } D3D11_RTV_DIMENSION
;
636 typedef struct D3D11_SO_DECLARATION_ENTRY
644 } D3D11_SO_DECLARATION_ENTRY
;
646 typedef enum D3D11_STENCIL_OP
648 D3D11_STENCIL_OP_KEEP
= 1,
649 D3D11_STENCIL_OP_ZERO
,
650 D3D11_STENCIL_OP_REPLACE
,
651 D3D11_STENCIL_OP_INCR_SAT
,
652 D3D11_STENCIL_OP_DECR_SAT
,
653 D3D11_STENCIL_OP_INVERT
,
654 D3D11_STENCIL_OP_INCR
,
655 D3D11_STENCIL_OP_DECR
658 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
660 cpp_quote
("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
661 cpp_quote
(" return MipSlice + ArraySlice * MipLevels;")
663 cpp_quote
("extern \"C\"{")
666 typedef struct D3D11_SUBRESOURCE_DATA
670 UINT SysMemSlicePitch
;
671 } D3D11_SUBRESOURCE_DATA
;
673 typedef struct D3D11_TEX1D_ARRAY_DSV
676 UINT FirstArraySlice
;
678 } D3D11_TEX1D_ARRAY_DSV
;
680 typedef struct D3D11_TEX1D_ARRAY_RTV
683 UINT FirstArraySlice
;
685 } D3D11_TEX1D_ARRAY_RTV
;
687 typedef struct D3D11_TEX1D_ARRAY_SRV
689 UINT MostDetailedMip
;
691 UINT FirstArraySlice
;
693 } D3D11_TEX1D_ARRAY_SRV
;
695 typedef struct D3D11_TEX1D_ARRAY_UAV
698 UINT FirstArraySlice
;
700 } D3D11_TEX1D_ARRAY_UAV
;
702 typedef struct D3D11_TEX1D_DSV
707 typedef struct D3D11_TEX1D_RTV
712 typedef struct D3D11_TEX1D_SRV
714 UINT MostDetailedMip
;
718 typedef struct D3D11_TEX1D_UAV
723 typedef struct D3D11_TEX2D_ARRAY_DSV
726 UINT FirstArraySlice
;
728 } D3D11_TEX2D_ARRAY_DSV
;
730 typedef struct D3D11_TEX2D_ARRAY_RTV
733 UINT FirstArraySlice
;
735 } D3D11_TEX2D_ARRAY_RTV
;
737 typedef struct D3D11_TEX2D_ARRAY_SRV
739 UINT MostDetailedMip
;
741 UINT FirstArraySlice
;
743 } D3D11_TEX2D_ARRAY_SRV
;
745 typedef struct D3D11_TEX2D_ARRAY_UAV
748 UINT FirstArraySlice
;
750 } D3D11_TEX2D_ARRAY_UAV
;
752 typedef struct D3D11_TEX2D_DSV
757 typedef struct D3D11_TEX2D_RTV
762 typedef struct D3D11_TEX2D_SRV
764 UINT MostDetailedMip
;
768 typedef struct D3D11_TEX2D_UAV
773 typedef struct D3D11_TEX2DMS_ARRAY_DSV
775 UINT FirstArraySlice
;
777 } D3D11_TEX2DMS_ARRAY_DSV
;
779 typedef struct D3D11_TEX2DMS_ARRAY_RTV
781 UINT FirstArraySlice
;
783 } D3D11_TEX2DMS_ARRAY_RTV
;
785 typedef struct D3D11_TEX2DMS_ARRAY_SRV
787 UINT FirstArraySlice
;
789 } D3D11_TEX2DMS_ARRAY_SRV
;
791 typedef struct D3D11_TEX2DMS_DSV
793 UINT UnusedField_NothingToDefine
;
796 typedef struct D3D11_TEX2DMS_RTV
798 UINT UnusedField_NothingToDefine
;
801 typedef struct D3D11_TEX2DMS_SRV
803 UINT UnusedField_NothingToDefine
;
806 typedef struct D3D11_TEX3D_RTV
813 typedef struct D3D11_TEX3D_SRV
815 UINT MostDetailedMip
;
819 typedef struct D3D11_TEX3D_UAV
826 typedef struct D3D11_TEXCUBE_ARRAY_SRV
828 UINT MostDetailedMip
;
830 UINT First2DArrayFace
;
832 } D3D11_TEXCUBE_ARRAY_SRV
;
834 typedef struct D3D11_TEXCUBE_SRV
836 UINT MostDetailedMip
;
840 typedef enum D3D11_TEXTURE_ADDRESS_MODE
842 D3D11_TEXTURE_ADDRESS_WRAP
= 1,
843 D3D11_TEXTURE_ADDRESS_MIRROR
,
844 D3D11_TEXTURE_ADDRESS_CLAMP
,
845 D3D11_TEXTURE_ADDRESS_BORDER
,
846 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
847 } D3D11_TEXTURE_ADDRESS_MODE
;
849 typedef enum D3D11_UAV_DIMENSION
851 D3D11_UAV_DIMENSION_UNKNOWN
,
852 D3D11_UAV_DIMENSION_BUFFER
,
853 D3D11_UAV_DIMENSION_TEXTURE1D
,
854 D3D11_UAV_DIMENSION_TEXTURE1DARRAY
,
855 D3D11_UAV_DIMENSION_TEXTURE2D
,
856 D3D11_UAV_DIMENSION_TEXTURE2DARRAY
,
857 D3D11_UAV_DIMENSION_TEXTURE3D
= 8,
858 } D3D11_UAV_DIMENSION
;
860 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
863 D3D11_UAV_DIMENSION ViewDimension
;
867 D3D11_BUFFER_UAV Buffer
;
868 D3D11_TEX1D_UAV Texture1D
;
869 D3D11_TEX1D_ARRAY_UAV Texture1DArray
;
870 D3D11_TEX2D_UAV Texture2D
;
871 D3D11_TEX2D_ARRAY_UAV Texture2DArray
;
872 D3D11_TEX3D_UAV Texture3D
;
874 } D3D11_UNORDERED_ACCESS_VIEW_DESC
;
876 typedef enum D3D11_USAGE
879 D3D11_USAGE_IMMUTABLE
,
884 typedef enum D3D11_BIND_FLAG
886 D3D11_BIND_VERTEX_BUFFER
= 0x0001,
887 D3D11_BIND_INDEX_BUFFER
= 0x0002,
888 D3D11_BIND_CONSTANT_BUFFER
= 0x0004,
889 D3D11_BIND_SHADER_RESOURCE
= 0x0008,
890 D3D11_BIND_STREAM_OUTPUT
= 0x0010,
891 D3D11_BIND_RENDER_TARGET
= 0x0020,
892 D3D11_BIND_DEPTH_STENCIL
= 0x0040,
893 D3D11_BIND_UNORDERED_ACCESS
= 0x0080,
894 D3D11_BIND_DECODER
= 0x0200,
895 D3D11_BIND_VIDEO_ENCODER
= 0x0400
898 typedef enum D3D11_CPU_ACCESS_FLAG
900 D3D11_CPU_ACCESS_WRITE
= 0x00010000,
901 D3D11_CPU_ACCESS_READ
= 0x00020000
902 } D3D11_CPU_ACCESS_FLAG
;
904 typedef struct D3D11_VIEWPORT
914 typedef enum D3D11_COLOR_WRITE_ENABLE
916 D3D11_COLOR_WRITE_ENABLE_RED
= 1,
917 D3D11_COLOR_WRITE_ENABLE_GREEN
= 2,
918 D3D11_COLOR_WRITE_ENABLE_BLUE
= 4,
919 D3D11_COLOR_WRITE_ENABLE_ALPHA
= 8,
920 D3D11_COLOR_WRITE_ENABLE_ALL
=
921 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA
)
922 } D3D11_COLOR_WRITE_ENABLE
;
924 typedef enum D3D11_FORMAT_SUPPORT
926 D3D11_FORMAT_SUPPORT_BUFFER
= 0x00000001,
927 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
= 0x00000002,
928 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
= 0x00000004,
929 D3D11_FORMAT_SUPPORT_SO_BUFFER
= 0x00000008,
930 D3D11_FORMAT_SUPPORT_TEXTURE1D
= 0x00000010,
931 D3D11_FORMAT_SUPPORT_TEXTURE2D
= 0x00000020,
932 D3D11_FORMAT_SUPPORT_TEXTURE3D
= 0x00000040,
933 D3D11_FORMAT_SUPPORT_TEXTURECUBE
= 0x00000080,
934 D3D11_FORMAT_SUPPORT_SHADER_LOAD
= 0x00000100,
935 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE
= 0x00000200,
936 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON
= 0x00000400,
937 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT
= 0x00000800,
938 D3D11_FORMAT_SUPPORT_MIP
= 0x00001000,
939 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
= 0x00002000,
940 D3D11_FORMAT_SUPPORT_RENDER_TARGET
= 0x00004000,
941 D3D11_FORMAT_SUPPORT_BLENDABLE
= 0x00008000,
942 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL
= 0x00010000,
943 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE
= 0x00020000,
944 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
= 0x00040000,
945 D3D11_FORMAT_SUPPORT_DISPLAY
= 0x00080000,
946 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT
= 0x00100000,
947 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
= 0x00200000,
948 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
= 0x00400000,
949 D3D11_FORMAT_SUPPORT_SHADER_GATHER
= 0x00800000,
950 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST
= 0x01000000,
951 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW
= 0x02000000,
952 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON
= 0x04000000
953 } D3D11_FORMAT_SUPPORT
;
955 typedef enum D3D11_CLEAR_FLAG
957 D3D11_CLEAR_DEPTH
= 0x0001L
,
958 D3D11_CLEAR_STENCIL
= 0x0002L
961 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
964 D3D11_BLEND SrcBlend
;
965 D3D11_BLEND DestBlend
;
966 D3D11_BLEND_OP BlendOp
;
967 D3D11_BLEND SrcBlendAlpha
;
968 D3D11_BLEND DestBlendAlpha
;
969 D3D11_BLEND_OP BlendOpAlpha
;
970 UINT8 RenderTargetWriteMask
;
971 } D3D11_RENDER_TARGET_BLEND_DESC
;
973 typedef struct D3D11_BLEND_DESC
975 BOOL AlphaToCoverageEnable
;
976 BOOL IndependentBlendEnable
;
977 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget
[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
];
980 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
981 cpp_quote
("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
982 cpp_quote
(" CD3D11_BLEND_DESC() {}")
983 cpp_quote
(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
984 cpp_quote
(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
985 cpp_quote
(" AlphaToCoverageEnable = FALSE;")
986 cpp_quote
(" IndependentBlendEnable = FALSE;")
987 cpp_quote
(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
988 cpp_quote
(" target->BlendEnable = FALSE;")
989 cpp_quote
(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
990 cpp_quote
(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
991 cpp_quote
(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
992 cpp_quote
(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
995 cpp_quote
(" ~CD3D11_BLEND_DESC() {}")
996 cpp_quote
(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1000 typedef struct D3D11_BUFFER_DESC
1005 UINT CPUAccessFlags
;
1007 UINT StructureByteStride
;
1008 } D3D11_BUFFER_DESC
;
1010 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1011 cpp_quote
("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1012 cpp_quote
(" CD3D11_BUFFER_DESC() {}" )
1013 cpp_quote
(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1014 cpp_quote
(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1015 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1016 cpp_quote
(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1017 cpp_quote
(" ByteWidth = byteWidth;")
1018 cpp_quote
(" Usage = usage;")
1019 cpp_quote
(" BindFlags = bindFlags;")
1020 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1021 cpp_quote
(" MiscFlags = miscFlags;" )
1022 cpp_quote
(" StructureByteStride = structureByteStride;")
1024 cpp_quote
(" ~CD3D11_BUFFER_DESC() {}")
1025 cpp_quote
(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1027 cpp_quote
("#endif" )
1029 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1032 D3D11_DSV_DIMENSION ViewDimension
;
1037 D3D11_TEX1D_DSV Texture1D
;
1038 D3D11_TEX1D_ARRAY_DSV Texture1DArray
;
1039 D3D11_TEX2D_DSV Texture2D
;
1040 D3D11_TEX2D_ARRAY_DSV Texture2DArray
;
1041 D3D11_TEX2DMS_DSV Texture2DMS
;
1042 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray
;
1044 } D3D11_DEPTH_STENCIL_VIEW_DESC
;
1046 typedef struct D3D11_DEPTH_STENCILOP_DESC
1048 D3D11_STENCIL_OP StencilFailOp
;
1049 D3D11_STENCIL_OP StencilDepthFailOp
;
1050 D3D11_STENCIL_OP StencilPassOp
;
1051 D3D11_COMPARISON_FUNC StencilFunc
;
1052 } D3D11_DEPTH_STENCILOP_DESC
;
1054 typedef struct D3D11_DEPTH_STENCIL_DESC
1057 D3D11_DEPTH_WRITE_MASK DepthWriteMask
;
1058 D3D11_COMPARISON_FUNC DepthFunc
;
1060 UINT8 StencilReadMask
;
1061 UINT8 StencilWriteMask
;
1062 D3D11_DEPTH_STENCILOP_DESC FrontFace
;
1063 D3D11_DEPTH_STENCILOP_DESC BackFace
;
1064 } D3D11_DEPTH_STENCIL_DESC
;
1066 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1069 D3D11_RTV_DIMENSION ViewDimension
;
1073 D3D11_BUFFER_RTV Buffer
;
1074 D3D11_TEX1D_RTV Texture1D
;
1075 D3D11_TEX1D_ARRAY_RTV Texture1DArray
;
1076 D3D11_TEX2D_RTV Texture2D
;
1077 D3D11_TEX2D_ARRAY_RTV Texture2DArray
;
1078 D3D11_TEX2DMS_RTV Texture2DMS
;
1079 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray
;
1080 D3D11_TEX3D_RTV Texture3D
;
1082 } D3D11_RENDER_TARGET_VIEW_DESC
;
1084 typedef struct D3D11_SAMPLER_DESC
1086 D3D11_FILTER Filter
;
1087 D3D11_TEXTURE_ADDRESS_MODE AddressU
;
1088 D3D11_TEXTURE_ADDRESS_MODE AddressV
;
1089 D3D11_TEXTURE_ADDRESS_MODE AddressW
;
1092 D3D11_COMPARISON_FUNC ComparisonFunc
;
1093 FLOAT BorderColor
[4];
1096 } D3D11_SAMPLER_DESC
;
1098 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1099 cpp_quote
("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1100 cpp_quote
(" CD3D11_SAMPLER_DESC() {}")
1101 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1102 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1103 cpp_quote
(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1104 cpp_quote
(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1105 cpp_quote
(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1106 cpp_quote
(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1107 cpp_quote
(" MipLODBias = 0;")
1108 cpp_quote
(" MaxAnisotropy = 1;")
1109 cpp_quote
(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1110 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1111 cpp_quote
(" MinLOD = -3.402823466e+38f;")
1112 cpp_quote
(" MaxLOD = 3.402823466e+38f;")
1114 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1115 cpp_quote
(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1116 cpp_quote
(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1117 cpp_quote
(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1118 cpp_quote
(" Filter = filter;")
1119 cpp_quote
(" AddressU = addressU;")
1120 cpp_quote
(" AddressV = addressV;")
1121 cpp_quote
(" AddressW = addressW;")
1122 cpp_quote
(" MipLODBias = mipLODBias;")
1123 cpp_quote
(" MaxAnisotropy = maxAnisotropy;")
1124 cpp_quote
(" ComparisonFunc = comparisonFunc;")
1125 cpp_quote
(" if(borderColor) {")
1126 cpp_quote
(" BorderColor[0] = borderColor[0];")
1127 cpp_quote
(" BorderColor[1] = borderColor[1];")
1128 cpp_quote
(" BorderColor[2] = borderColor[2];")
1129 cpp_quote
(" BorderColor[3] = borderColor[3];")
1130 cpp_quote
(" }else {")
1131 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1133 cpp_quote
(" MinLOD = minLOD;")
1134 cpp_quote
(" MaxLOD = maxLOD;")
1136 cpp_quote
(" ~CD3D11_SAMPLER_DESC() {}")
1137 cpp_quote
(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1141 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1144 D3D11_SRV_DIMENSION ViewDimension
;
1148 D3D11_BUFFER_SRV Buffer
;
1149 D3D11_TEX1D_SRV Texture1D
;
1150 D3D11_TEX1D_ARRAY_SRV Texture1DArray
;
1151 D3D11_TEX2D_SRV Texture2D
;
1152 D3D11_TEX2D_ARRAY_SRV Texture2DArray
;
1153 D3D11_TEX2DMS_SRV Texture2DMS
;
1154 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray
;
1155 D3D11_TEX3D_SRV Texture3D
;
1156 D3D11_TEXCUBE_SRV TextureCube
;
1157 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray
;
1158 D3D11_BUFFEREX_SRV BufferEx
;
1160 } D3D11_SHADER_RESOURCE_VIEW_DESC
;
1162 typedef struct D3D11_TEXTURE1D_DESC
1170 UINT CPUAccessFlags
;
1172 } D3D11_TEXTURE1D_DESC
;
1174 typedef struct D3D11_TEXTURE2D_DESC
1181 DXGI_SAMPLE_DESC SampleDesc
;
1184 UINT CPUAccessFlags
;
1186 } D3D11_TEXTURE2D_DESC
;
1188 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1189 cpp_quote
("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1190 cpp_quote
(" CD3D11_TEXTURE2D_DESC() {}")
1191 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1192 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1193 cpp_quote
(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1194 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1195 cpp_quote
(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1196 cpp_quote
(" Width = width;")
1197 cpp_quote
(" Height = height;")
1198 cpp_quote
(" MipLevels = mipLevels;")
1199 cpp_quote
(" ArraySize = arraySize;")
1200 cpp_quote
(" Format = format;")
1201 cpp_quote
(" SampleDesc.Count = sampleCount;")
1202 cpp_quote
(" SampleDesc.Quality = sampleQuality;")
1203 cpp_quote
(" Usage = usage;")
1204 cpp_quote
(" BindFlags = bindFlags;")
1205 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1206 cpp_quote
(" MiscFlags = miscFlags;")
1208 cpp_quote
(" ~CD3D11_TEXTURE2D_DESC() {}")
1209 cpp_quote
(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1213 typedef struct D3D11_TEXTURE3D_DESC
1222 UINT CPUAccessFlags
;
1224 } D3D11_TEXTURE3D_DESC
;
1226 typedef struct D3D11_VIDEO_DECODER_DESC
1231 DXGI_FORMAT OutputFormat
;
1232 } D3D11_VIDEO_DECODER_DESC
;
1234 typedef struct D3D11_VIDEO_DECODER_CONFIG
1236 GUID guidConfigBitstreamEncryption
;
1237 GUID guidConfigMBcontrolEncryption
;
1238 GUID guidConfigResidDiffEncryption
;
1239 UINT ConfigBitstreamRaw
;
1240 UINT ConfigMBcontrolRasterOrder
;
1241 UINT ConfigResidDiffHost
;
1242 UINT ConfigSpatialResid8
;
1243 UINT ConfigResid8Subtraction
;
1244 UINT ConfigSpatialHost8or9Clipping
;
1245 UINT ConfigSpatialResidInterleaved
;
1246 UINT ConfigIntraResidUnsigned
;
1247 UINT ConfigResidDiffAccelerator
;
1248 UINT ConfigHostInverseScan
;
1249 UINT ConfigSpecificIDCT
;
1250 UINT Config4GroupedCoefs
;
1251 USHORT ConfigMinRenderTargetBuffCount
;
1252 USHORT ConfigDecoderSpecific
;
1253 } D3D11_VIDEO_DECODER_CONFIG
;
1255 typedef enum D3D11_VIDEO_FRAME_FORMAT
1257 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE
= 0,
1258 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST
= 1,
1259 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST
= 2
1260 } D3D11_VIDEO_FRAME_FORMAT
;
1262 typedef enum D3D11_VIDEO_USAGE
1264 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL
= 0,
1265 D3D11_VIDEO_USAGE_OPTIMAL_SPEED
= 1,
1266 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY
= 2
1267 } D3D11_VIDEO_USAGE
;
1269 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1271 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat
;
1272 DXGI_RATIONAL InputFrameRate
;
1275 DXGI_RATIONAL OutputFrameRate
;
1278 D3D11_VIDEO_USAGE Usage
;
1279 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC
;
1281 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1286 UINT InputFormatCaps
;
1287 UINT AutoStreamCaps
;
1289 UINT RateConversionCapsCount
;
1290 UINT MaxInputStreams
;
1291 UINT MaxStreamStates
;
1292 } D3D11_VIDEO_PROCESSOR_CAPS
;
1294 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1300 UINT CustomRateCount
;
1301 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
;
1303 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1305 DXGI_RATIONAL CustomRate
;
1307 BOOL InputInterlaced
;
1308 UINT InputFramesOrFields
;
1309 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
;
1311 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1313 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS
= 0,
1314 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST
= 1,
1315 D3D11_VIDEO_PROCESSOR_FILTER_HUE
= 2,
1316 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION
= 3,
1317 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION
= 4,
1318 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT
= 5,
1319 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING
= 6,
1320 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT
= 7
1321 } D3D11_VIDEO_PROCESSOR_FILTER
;
1323 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1329 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE
;
1331 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1333 D3D11_AUTHENTICATED_CHANNEL_D3D11
= 1,
1334 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE
= 2,
1335 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE
= 3
1336 } D3D11_AUTHENTICATED_CHANNEL_TYPE
;
1338 typedef enum D3D11_VDOV_DIMENSION
1340 D3D11_VDOV_DIMENSION_UNKNOWN
= 0,
1341 D3D11_VDOV_DIMENSION_TEXTURE2D
= 1
1342 } D3D11_VDOV_DIMENSION
;
1344 typedef struct D3D11_TEX2D_VDOV
1349 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1352 D3D11_VDOV_DIMENSION ViewDimension
;
1354 D3D11_TEX2D_VDOV Texture2D
;
1356 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
;
1358 typedef enum D3D11_VPIV_DIMENSION
1360 D3D11_VPIV_DIMENSION_UNKNOWN
= 0,
1361 D3D11_VPIV_DIMENSION_TEXTURE2D
= 1
1362 } D3D11_VPIV_DIMENSION
;
1364 typedef struct D3D11_TEX2D_VPIV
1370 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1373 D3D11_VPIV_DIMENSION ViewDimension
;
1375 D3D11_TEX2D_VPIV Texture2D
;
1377 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
;
1379 typedef enum D3D11_VPOV_DIMENSION
1381 D3D11_VPOV_DIMENSION_UNKNOWN
= 0,
1382 D3D11_VPOV_DIMENSION_TEXTURE2D
= 1,
1383 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY
= 2
1384 } D3D11_VPOV_DIMENSION
;
1386 typedef struct D3D11_TEX2D_VPOV
1391 typedef struct D3D11_TEX2D_ARRAY_VPOV
1394 UINT FirstArraySlice
;
1396 } D3D11_TEX2D_ARRAY_VPOV
;
1398 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1400 D3D11_VPOV_DIMENSION ViewDimension
;
1402 D3D11_TEX2D_VPOV Texture2D
;
1403 D3D11_TEX2D_ARRAY_VPOV Texture2DArray
;
1405 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
;
1407 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1410 UINT KeyExchangeTypeCount
;
1411 UINT BlockAlignmentSize
;
1412 ULONGLONG ProtectedMemorySize
;
1413 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS
;
1415 /* A couple forward declarations are needed */
1416 interface ID3D11Device
;
1417 interface ID3D11ClassLinkage
;
1422 uuid(1841e5c8
-16b0
-489b
-bcc8
-44cfb0d5deae
)
1424 interface ID3D11DeviceChild
: IUnknown
1427 [out] ID3D11Device
**ppDevice
);
1428 HRESULT GetPrivateData
(
1430 [in, out] UINT
*pDataSize
,
1432 HRESULT SetPrivateData
(
1435 [in] const void *pData
);
1436 HRESULT SetPrivateDataInterface
(
1438 [in] const IUnknown
*pData
);
1444 uuid(4b35d0cd
-1e15
-4258-9c98
-1b1333f6dd3b
)
1446 interface ID3D11Asynchronous
: ID3D11DeviceChild
1454 uuid(d6c00747
-87b7
-425e
-b84d
-44d108560afd
)
1456 interface ID3D11Query
: ID3D11Asynchronous
1459 [out] D3D11_QUERY_DESC
*pDesc
);
1465 uuid(dc8e63f3
-d12b
-4952-b47b
-5e45026a862d
)
1467 interface ID3D11Resource
: ID3D11DeviceChild
1470 [out] D3D11_RESOURCE_DIMENSION
*pResourceDimension
);
1471 void SetEvictionPriority
(
1472 [in] UINT EvictionPriority
);
1473 UINT GetEvictionPriority
();
1479 uuid(839d1216
-bb2e
-412b
-b7f4
-a9dbebe08ed1
)
1481 interface ID3D11View
: ID3D11DeviceChild
1484 [out] ID3D11Resource
**ppResource
);
1490 uuid(75b68faa
-347d
-4159-8f45
-a0640f01cd9a
)
1492 interface ID3D11BlendState
: ID3D11DeviceChild
1495 [out] D3D11_BLEND_DESC
*pDesc
);
1501 uuid(48570b85
-d1ee
-4fcd
-a250
-eb350722b037
)
1503 interface ID3D11Buffer
: ID3D11Resource
1506 [out] D3D11_BUFFER_DESC
*pDesc
);
1512 uuid(a6cd7faa
-b0b7
-4a2f
-9436-8662a65797cb
)
1514 interface ID3D11ClassInstance
: ID3D11DeviceChild
1516 void GetClassLinkage
(
1517 [out] ID3D11ClassLinkage
**ppLinkage
);
1519 [out] D3D11_CLASS_INSTANCE_DESC
*pDesc
);
1520 void GetInstanceName
(
1521 [out] LPSTR pInstanceName
,
1522 [in, out] SIZE_T
*pBufferLength
);
1524 [out] LPSTR pTypeName
,
1525 [in, out] SIZE_T
*pBufferLength
);
1531 uuid(ddf57cba
-9543-46e4
-a12b
-f207a0fe7fed
)
1533 interface ID3D11ClassLinkage
: ID3D11DeviceChild
1535 HRESULT GetClassInstance
(
1536 [in] LPCSTR pClassInstanceName
,
1537 [in] UINT InstanceIndex
,
1538 [out] ID3D11ClassInstance
**ppInstance
);
1539 HRESULT CreateClassInstance
(
1540 [in] LPCSTR pClassTypeName
,
1541 [in] UINT ConstantBufferOffset
,
1542 [in] UINT ConstantVectorOffset
,
1543 [in] UINT TextureOffset
,
1544 [in] UINT SamplerOffset
,
1545 [out] ID3D11ClassInstance
**ppInstance
);
1551 uuid(a24bc4d1
-769e-43f7
-8013-98ff566c18e2
)
1553 interface ID3D11CommandList
: ID3D11DeviceChild
1555 UINT GetContextFlags
();
1561 uuid(4f5b196e
-c2bd
-495e
-bd01
-1fded38e4969
)
1563 interface ID3D11ComputeShader
: ID3D11DeviceChild
1570 uuid(6e8c49fb
-a371
-4770-b440
-29086022b741
)
1572 interface ID3D11Counter
: ID3D11Asynchronous
1575 [out] D3D11_COUNTER_DESC
*pDesc
);
1581 uuid(03823efb
-8d8f
-4e1c
-9aa2
-f64bb2cbfdf1
)
1583 interface ID3D11DepthStencilState
: ID3D11DeviceChild
1586 [out] D3D11_DEPTH_STENCIL_DESC
*pDesc
);
1592 uuid(9fdac92a
-1876-48c3
-afad
-25b94f84a9b6
)
1594 interface ID3D11DepthStencilView
: ID3D11View
1597 [out] D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
);
1603 uuid(f582c508
-0f36
-490c
-9977-31eece268cfa
)
1605 interface ID3D11DomainShader
: ID3D11DeviceChild
1612 uuid(38325b96
-effb
-4022-ba02
-2e795b70275c
)
1614 interface ID3D11GeometryShader
: ID3D11DeviceChild
1621 uuid(8e5c6061
-628a
-4c8e
-8264
-bbe45cb3d5dd
)
1623 interface ID3D11HullShader
: ID3D11DeviceChild
1630 uuid(e4819ddc
-4cf0
-4025-bd26
-5de82a3e07b7
)
1632 interface ID3D11InputLayout
: ID3D11DeviceChild
1639 uuid(ea82e40d
-51dc
-4f33
-93d4
-db7c9125ae8c
)
1641 interface ID3D11PixelShader
: ID3D11DeviceChild
1648 uuid(9eb576dd
-9f77
-4d86
-81aa
-8bab5fe490e2
)
1650 interface ID3D11Predicate
: ID3D11Query
1657 uuid(9bb4ab81
-ab1a
-4d8f
-b506
-fc04200b6ee7
)
1659 interface ID3D11RasterizerState
: ID3D11DeviceChild
1662 [out] D3D11_RASTERIZER_DESC
*pDesc
);
1668 uuid(dfdba067
-0b8d
-4865-875b
-d7b4516cc164
)
1670 interface ID3D11RenderTargetView
: ID3D11View
1673 [out] D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
);
1679 uuid(da6fea51
-564c
-4487-9810-f0d0f9b4e3a5
)
1681 interface ID3D11SamplerState
: ID3D11DeviceChild
1684 [out] D3D11_SAMPLER_DESC
*pDesc
);
1690 uuid(b0e06fe0
-8192-4e1a
-b1ca
-36d7414710b2
)
1692 interface ID3D11ShaderResourceView
: ID3D11View
1695 [out] D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
);
1701 uuid(f8fb5c27
-c6b3
-4f75
-a4c8
-439af2ef564c
),
1703 interface ID3D11Texture1D
: ID3D11Resource
1706 [out] D3D11_TEXTURE1D_DESC
*pDesc
);
1712 uuid(6f15aaf2
-d208
-4e89
-9ab4
-489535d34f9c
)
1714 interface ID3D11Texture2D
: ID3D11Resource
1717 [out] D3D11_TEXTURE2D_DESC
*pDesc
);
1723 uuid(037e866e
-f56d
-4357-a8af
-9dabbe6e250e
)
1725 interface ID3D11Texture3D
: ID3D11Resource
1728 [out] D3D11_TEXTURE3D_DESC
*pDesc
);
1734 uuid(28acf509
-7f5c
-48f6
-8611-f316010a6380
)
1736 interface ID3D11UnorderedAccessView
: ID3D11View
1739 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
);
1745 uuid(3b301d64
-d678
-4289-8897-22f8928b72f3
)
1747 interface ID3D11VertexShader
: ID3D11DeviceChild
1754 uuid(c0bfa96c
-e089
-44fb
-8eaf
-26f8796190da
)
1756 interface ID3D11DeviceContext
: ID3D11DeviceChild
1758 void VSSetConstantBuffers
(
1759 [in] UINT StartSlot
,
1760 [in] UINT NumBuffers
,
1761 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1762 void PSSetShaderResources
(
1763 [in] UINT StartSlot
,
1765 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1767 [in] ID3D11PixelShader
*pPixelShader
,
1768 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1769 UINT NumClassInstances
);
1771 [in] UINT StartSlot
,
1772 [in] UINT NumSamplers
,
1773 [in] ID3D11SamplerState
*const *ppSamplers
);
1775 [in] ID3D11VertexShader
*pVertexShader
,
1776 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1777 UINT NumClassInstances
);
1779 [in] UINT IndexCount
,
1780 [in] UINT StartIndexLocation
,
1781 [in] INT BaseVertexLocation
);
1783 [in] UINT VertexCount
,
1784 [in] UINT StartVertexLocation
);
1786 [in] ID3D11Resource
*pResource
,
1787 [in] UINT Subresource
,
1788 [in] D3D11_MAP MapType
,
1790 [out] D3D11_MAPPED_SUBRESOURCE
*pMappedResource
);
1792 [in] ID3D11Resource
*pResource
,
1793 [in] UINT Subresource
);
1794 void PSSetConstantBuffers
(
1795 [in] UINT StartSlot
,
1796 [in] UINT NumBuffers
,
1797 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1798 void IASetInputLayout
(
1799 [in] ID3D11InputLayout
*pInputLayout
);
1800 void IASetVertexBuffers
(
1801 [in] UINT StartSlot
,
1802 [in] UINT NumBuffers
,
1803 [in] ID3D11Buffer
*const *ppVertexBuffers
,
1804 [in] const UINT
*pStrides
,
1805 [in] const UINT
*pOffsets
);
1806 void IASetIndexBuffer
(
1807 [in] ID3D11Buffer
*pIndexBuffer
,
1808 [in] DXGI_FORMAT Format
,
1810 void DrawIndexedInstanced
(
1811 [in] UINT IndexCountPerInstance
,
1812 [in] UINT InstanceCount
,
1813 [in] UINT StartIndexLocation
,
1814 [in] INT BaseVertexLocation
,
1815 [in] UINT StartInstanceLocation
);
1817 [in] UINT VertexCountPerInstance
,
1818 [in] UINT InstanceCount
,
1819 [in] UINT StartVertexLocation
,
1820 [in] UINT StartInstanceLocation
);
1821 void GSSetConstantBuffers
(
1822 [in] UINT StartSlot
,
1823 [in] UINT NumBuffers
,
1824 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1826 [in] ID3D11GeometryShader
*pShader
,
1827 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1828 UINT NumClassInstances
);
1829 void IASetPrimitiveTopology
(
1830 [in] D3D11_PRIMITIVE_TOPOLOGY Topology
);
1831 void VSSetShaderResources
(
1832 [in] UINT StartSlot
,
1834 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1836 [in] UINT StartSlot
,
1837 [in] UINT NumSamplers
,
1838 [in] ID3D11SamplerState
*const *ppSamplers
);
1840 [in] ID3D11Asynchronous
*pAsync
);
1842 [in] ID3D11Asynchronous
*pAsync
);
1844 [in] ID3D11Asynchronous
*pAsync
,
1847 [in] UINT GetDataFlags
);
1848 void SetPredication
(
1849 [in] ID3D11Predicate
*pPredicate
,
1850 [in] BOOL PredicateValue
);
1851 void GSSetShaderResources
(
1852 [in] UINT StartSlot
,
1854 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1856 [in] UINT StartSlot
,
1857 [in] UINT NumSamplers
,
1858 [in] ID3D11SamplerState
*const *ppSamplers
);
1859 void OMSetRenderTargets
(
1861 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
1862 [in] ID3D11DepthStencilView
*pDepthStencilView
);
1863 void OMSetRenderTargetsAndUnorderedAccessViews
(
1865 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
1866 [in] ID3D11DepthStencilView
*pDepthStencilView
,
1867 [in] UINT UAVStartSlot
,
1869 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
1870 [in] const UINT
*pUAVInitialCounts
);
1871 void OMSetBlendState
(
1872 [in] ID3D11BlendState
*pBlendState
,
1873 [in] const FLOAT BlendFactor
[4],
1874 [in] UINT SampleMask
);
1875 void OMSetDepthStencilState
(
1876 [in] ID3D11DepthStencilState
*pDepthStencilState
,
1877 [in] UINT StencilRef
);
1879 [in] UINT NumBuffers
,
1880 [in] ID3D11Buffer
*const *ppSOTargets
,
1881 [in] const UINT
*pOffsets
);
1883 void DrawIndexedInstancedIndirect
(
1884 [in] ID3D11Buffer
*pBufferForArgs
,
1885 [in] UINT AlignedByteOffsetForArgs
);
1886 void DrawInstancedIndirect
(
1887 [in] ID3D11Buffer
*pBufferForArgs
,
1888 [in] UINT AlignedByteOffsetForArgs
);
1890 [in] UINT ThreadGroupCountX
,
1891 [in] UINT ThreadGroupCountY
,
1892 [in] UINT ThreadGroupCountZ
);
1893 void DispatchIndirect
(
1894 [in] ID3D11Buffer
*pBufferForArgs
,
1895 [in] UINT AlignedByteOffsetForArgs
);
1897 [in] ID3D11RasterizerState
*pRasterizerState
);
1898 void RSSetViewports
(
1899 [in] UINT NumViewports
,
1900 [in] const D3D11_VIEWPORT
*pViewports
);
1901 void RSSetScissorRects
(
1903 [in] const D3D11_RECT
*pRects
);
1904 void CopySubresourceRegion
(
1905 [in] ID3D11Resource
*pDstResource
,
1906 [in] UINT DstSubresource
,
1910 [in] ID3D11Resource
*pSrcResource
,
1911 [in] UINT SrcSubresource
,
1912 [in] const D3D11_BOX
*pSrcBox
);
1914 [in] ID3D11Resource
*pDstResource
,
1915 [in] ID3D11Resource
*pSrcResource
);
1916 void UpdateSubresource
(
1917 [in] ID3D11Resource
*pDstResource
,
1918 [in] UINT DstSubresource
,
1919 [in] const D3D11_BOX
*pDstBox
,
1920 [in] const void *pSrcData
,
1921 [in] UINT SrcRowPitch
,
1922 [in] UINT SrcDepthPitch
);
1923 void CopyStructureCount
(
1924 [in] ID3D11Buffer
*pDstBuffer
,
1925 [in] UINT DstAlignedByteOffset
,
1926 [in] ID3D11UnorderedAccessView
*pSrcView
);
1927 void ClearRenderTargetView
(
1928 [in] ID3D11RenderTargetView
*pRenderTargetView
,
1929 [in] const FLOAT ColorRGBA
[4]);
1930 void ClearUnorderedAccessViewUint
(
1931 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
1932 [in] const UINT Values
[4]);
1933 void ClearUnorderedAccessViewFloat
(
1934 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
1935 [in] const FLOAT Values
[4]);
1936 void ClearDepthStencilView
(
1937 [in] ID3D11DepthStencilView
*pDepthStencilView
,
1938 [in] UINT ClearFlags
,
1940 [in] UINT8 Stencil
);
1942 [in] ID3D11ShaderResourceView
*pShaderResourceView
);
1943 void SetResourceMinLOD
(
1944 [in] ID3D11Resource
*pResource
, FLOAT MinLOD
);
1945 FLOAT GetResourceMinLOD
(
1946 [in] ID3D11Resource
*pResource
);
1947 void ResolveSubresource
(
1948 [in] ID3D11Resource
*pDstResource
,
1949 [in] UINT DstSubresource
,
1950 [in] ID3D11Resource
*pSrcResource
,
1951 [in] UINT SrcSubresource
,
1952 [in] DXGI_FORMAT Format
);
1953 void ExecuteCommandList
(
1954 [in] ID3D11CommandList
*pCommandList
,
1955 BOOL RestoreContextState
);
1956 void HSSetShaderResources
(
1957 [in] UINT StartSlot
,
1959 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1961 [in] ID3D11HullShader
*pHullShader
,
1962 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1963 UINT NumClassInstances
);
1965 [in] UINT StartSlot
,
1966 [in] UINT NumSamplers
,
1967 [in] ID3D11SamplerState
*const *ppSamplers
);
1968 void HSSetConstantBuffers
(
1969 [in] UINT StartSlot
,
1970 [in] UINT NumBuffers
,
1971 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1972 void DSSetShaderResources
(
1973 [in] UINT StartSlot
,
1975 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1977 [in] ID3D11DomainShader
*pDomainShader
,
1978 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1979 UINT NumClassInstances
);
1981 [in] UINT StartSlot
,
1982 [in] UINT NumSamplers
,
1983 [in] ID3D11SamplerState
*const *ppSamplers
);
1984 void DSSetConstantBuffers
(
1985 [in] UINT StartSlot
,
1986 [in] UINT NumBuffers
,
1987 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1988 void CSSetShaderResources
(
1989 [in] UINT StartSlot
,
1991 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1992 void CSSetUnorderedAccessViews
(
1993 [in] UINT StartSlot
,
1995 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
1996 [in] const UINT
*pUAVInitialCounts
);
1998 [in] ID3D11ComputeShader
*pComputeShader
,
1999 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2000 UINT NumClassInstances
);
2002 [in] UINT StartSlot
,
2003 [in] UINT NumSamplers
,
2004 [in] ID3D11SamplerState
*const *ppSamplers
);
2005 void CSSetConstantBuffers
(
2006 [in] UINT StartSlot
,
2007 [in] UINT NumBuffers
,
2008 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2009 void VSGetConstantBuffers
(
2010 [in] UINT StartSlot
,
2011 [in] UINT NumBuffers
,
2012 [out] ID3D11Buffer
**ppConstantBuffers
);
2013 void PSGetShaderResources
(
2014 [in] UINT StartSlot
,
2016 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2018 [out] ID3D11PixelShader
**ppPixelShader
,
2019 [out] ID3D11ClassInstance
**ppClassInstances
,
2020 [in, out] UINT
*pNumClassInstances
);
2022 [in] UINT StartSlot
,
2023 [in] UINT NumSamplers
,
2024 [out] ID3D11SamplerState
**ppSamplers
);
2026 [out] ID3D11VertexShader
**ppVertexShader
,
2027 [out] ID3D11ClassInstance
**ppClassInstances
,
2028 [in, out] UINT
*pNumClassInstances
);
2029 void PSGetConstantBuffers
(
2030 [in] UINT StartSlot
,
2031 [in] UINT NumBuffers
,
2032 [out] ID3D11Buffer
**ppConstantBuffers
);
2033 void IAGetInputLayout
(
2034 [out] ID3D11InputLayout
**ppInputLayout
);
2035 void IAGetVertexBuffers
(
2036 [in] UINT StartSlot
,
2037 [in] UINT NumBuffers
,
2038 [out] ID3D11Buffer
**ppVertexBuffers
,
2039 [out] UINT
*pStrides
,
2040 [out] UINT
*pOffsets
);
2041 void IAGetIndexBuffer
(
2042 [out] ID3D11Buffer
**pIndexBuffer
,
2043 [out] DXGI_FORMAT
* Format
,
2044 [out] UINT
* Offset
);
2045 void GSGetConstantBuffers
(
2046 [in] UINT StartSlot
,
2047 [in] UINT NumBuffers
,
2048 [out] ID3D11Buffer
**ppConstantBuffers
);
2050 [out] ID3D11GeometryShader
**ppGeometryShader
,
2051 [out] ID3D11ClassInstance
**ppClassInstances
,
2052 [in, out] UINT
*pNumClassInstances
);
2053 void IAGetPrimitiveTopology
(
2054 [out] D3D11_PRIMITIVE_TOPOLOGY
*pTopology
);
2055 void VSGetShaderResources
(
2056 [in] UINT StartSlot
,
2058 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2060 [in] UINT StartSlot
,
2061 [in] UINT NumSamplers
,
2062 [out] ID3D11SamplerState
**ppSamplers
);
2063 void GetPredication
(
2064 [out] ID3D11Predicate
**ppPredicate
,
2065 [out] BOOL
*pPredicateValue
);
2066 void GSGetShaderResources
(
2067 [in] UINT StartSlot
,
2069 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2071 [in] UINT StartSlot
,
2072 [in] UINT NumSamplers
,
2073 [out] ID3D11SamplerState
**ppSamplers
);
2074 void OMGetRenderTargets
(
2076 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2077 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2078 void OMGetRenderTargetsAndUnorderedAccessViews
(
2080 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2081 [out] ID3D11DepthStencilView
**ppDepthStencilView
,
2082 [in] UINT UAVStartSlot
,
2084 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2085 void OMGetBlendState
(
2086 [out] ID3D11BlendState
**ppBlendState
,
2087 [out] FLOAT BlendFactor
[4],
2088 [out] UINT
*pSampleMask
);
2089 void OMGetDepthStencilState
(
2090 [out] ID3D11DepthStencilState
**ppDepthStencilState
,
2091 [out] UINT
*pStencilRef
);
2093 [in] UINT NumBuffers
,
2094 [out] ID3D11Buffer
**ppSOTargets
);
2096 [out] ID3D11RasterizerState
**ppRasterizerState
);
2097 void RSGetViewports
(
2098 [in, out] UINT
*pNumViewports
,
2099 [out] D3D11_VIEWPORT
*pViewports
);
2100 void RSGetScissorRects
(
2101 [in, out] UINT
*pNumRects
,
2102 [out] D3D11_RECT
*pRects
);
2103 void HSGetShaderResources
(
2104 [in] UINT StartSlot
,
2106 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2108 [out] ID3D11HullShader
**ppHullShader
,
2109 [out] ID3D11ClassInstance
**ppClassInstances
,
2110 [in, out] UINT
*pNumClassInstances
);
2112 [in] UINT StartSlot
,
2113 [in] UINT NumSamplers
,
2114 [out] ID3D11SamplerState
**ppSamplers
);
2115 void HSGetConstantBuffers
(
2116 [in] UINT StartSlot
,
2117 [in] UINT NumBuffers
,
2118 [out] ID3D11Buffer
**ppConstantBuffers
);
2119 void DSGetShaderResources
(
2120 [in] UINT StartSlot
,
2122 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2124 [out] ID3D11DomainShader
**ppDomainShader
,
2125 [out] ID3D11ClassInstance
**ppClassInstances
,
2126 [in, out] UINT
*pNumClassInstances
);
2128 [in] UINT StartSlot
,
2129 [in] UINT NumSamplers
,
2130 [out] ID3D11SamplerState
**ppSamplers
);
2131 void DSGetConstantBuffers
(
2132 [in] UINT StartSlot
,
2133 [in] UINT NumBuffers
,
2134 [out] ID3D11Buffer
**ppConstantBuffers
);
2135 void CSGetShaderResources
(
2136 [in] UINT StartSlot
,
2138 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2139 void CSGetUnorderedAccessViews
(
2140 [in] UINT StartSlot
,
2142 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2144 [out] ID3D11ComputeShader
**ppComputeShader
,
2145 [out] ID3D11ClassInstance
**ppClassInstances
,
2146 [in, out] UINT
*pNumClassInstances
);
2148 [in] UINT StartSlot
,
2149 [in] UINT NumSamplers
,
2150 [out] ID3D11SamplerState
**ppSamplers
);
2151 void CSGetConstantBuffers
(
2152 [in] UINT StartSlot
,
2153 [in] UINT NumBuffers
,
2154 [out] ID3D11Buffer
**ppConstantBuffers
);
2157 D3D11_DEVICE_CONTEXT_TYPE GetType
();
2158 UINT GetContextFlags
();
2159 HRESULT FinishCommandList
(
2160 BOOL RestoreDeferredContextState
,
2161 [out] ID3D11CommandList
**ppCommandList
);
2166 uuid(3015a308
-dcbd
-47aa
-a747
-192486d14d4a
),
2168 pointer_default(unique)
2170 interface ID3D11AuthenticatedChannel
: ID3D11DeviceChild
2172 HRESULT GetCertificateSize
(
2173 UINT
*pCertificateSize
);
2174 HRESULT GetCertificate
(
2175 UINT CertificateSize
,
2176 BYTE *pCertificate
);
2177 void GetChannelHandle
(
2178 HANDLE *pChannelHandle
);
2183 uuid(9b32f9ad
-bdcc
-40a6
-a39d
-d5c865845720
),
2185 pointer_default(unique)
2187 interface ID3D11CryptoSession
: ID3D11DeviceChild
2191 void GetDecoderProfile
(
2192 GUID
*pDecoderProfile
);
2193 HRESULT GetCertificateSize
(
2194 UINT
*pCertificateSize
);
2195 HRESULT GetCertificate
(
2196 UINT CertificateSize
,
2197 BYTE *pCertificate
);
2198 void GetCryptoSessionHandle
(
2199 HANDLE *pCryptoSessionHandle
);
2204 uuid(3c9c5b51
-995d
-48d1
-9b8d
-fa5caeded65c
),
2206 pointer_default(unique)
2208 interface ID3D11VideoDecoder
: ID3D11DeviceChild
2210 HRESULT GetCreationParameters
(
2211 D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2212 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2213 HRESULT GetDriverHandle
(
2214 HANDLE *pDriverHandle
);
2219 uuid(31627037-53ab
-4200-9061-05faa9ab45f9
),
2221 pointer_default(unique)
2223 interface ID3D11VideoProcessorEnumerator
: ID3D11DeviceChild
2225 HRESULT GetVideoProcessorContentDesc
(
2226 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pContentDesc
);
2227 HRESULT CheckVideoProcessorFormat
(
2230 HRESULT GetVideoProcessorCaps
(
2231 D3D11_VIDEO_PROCESSOR_CAPS
*pCaps
);
2232 HRESULT GetVideoProcessorRateConversionCaps
(
2234 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2235 HRESULT GetVideoProcessorCustomRate
(
2237 UINT CustomRateIndex
,
2238 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
*pRate
);
2239 HRESULT GetVideoProcessorFilterRange
(
2240 D3D11_VIDEO_PROCESSOR_FILTER Filter
,
2241 D3D11_VIDEO_PROCESSOR_FILTER_RANGE
*pRange
);
2246 uuid(1d7b0652
-185f
-41c6
-85ce
-0c5be3d4ae6c
),
2248 pointer_default(unique)
2250 interface ID3D11VideoProcessor
: ID3D11DeviceChild
2252 void GetContentDesc
(
2253 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
);
2254 void GetRateConversionCaps
(
2255 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2260 uuid(c2931aea
-2a85
-4f20
-860f
-fba1fd256e18
),
2262 pointer_default(unique)
2264 interface ID3D11VideoDecoderOutputView
: ID3D11View
2267 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
);
2272 uuid(11ec5a5f
-51dc
-4945-ab34
-6e8c21300ea5
),
2274 pointer_default(unique)
2276 interface ID3D11VideoProcessorInputView
: ID3D11View
2279 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
);
2284 uuid(a048285e
-25a9
-4527-bd93
-d68b68c44254
),
2286 pointer_default(unique)
2288 interface ID3D11VideoProcessorOutputView
: ID3D11View
2291 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
);
2296 uuid(10ec4d5b
-975a
-4689-b9e4
-d0aac30fe333
),
2298 pointer_default(unique)
2300 interface ID3D11VideoDevice
: IUnknown
2302 HRESULT CreateVideoDecoder
(
2303 const D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2304 const D3D11_VIDEO_DECODER_CONFIG
*pConfig
,
2305 ID3D11VideoDecoder
**ppDecoder
);
2306 HRESULT CreateVideoProcessor
(
2307 ID3D11VideoProcessorEnumerator
*pEnum
,
2308 UINT RateConversionIndex
,
2309 ID3D11VideoProcessor
**ppVideoProcessor
);
2310 HRESULT CreateAuthenticatedChannel
(
2311 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType
,
2312 ID3D11AuthenticatedChannel
**ppAuthenticatedChannel
);
2313 HRESULT CreateCryptoSession
(
2314 const GUID
*pCryptoType
,
2315 const GUID
*pDecoderProfile
,
2316 const GUID
*pKeyExchangeType
,
2317 ID3D11CryptoSession
**ppCryptoSession
);
2318 HRESULT CreateVideoDecoderOutputView
(
2319 ID3D11Resource
*pResource
,
2320 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
,
2321 ID3D11VideoDecoderOutputView
**ppVDOVView
);
2322 HRESULT CreateVideoProcessorInputView
(
2323 ID3D11Resource
*pResource
,
2324 ID3D11VideoProcessorEnumerator
*pEnum
,
2325 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
,
2326 ID3D11VideoProcessorInputView
**ppVPIView
);
2327 HRESULT CreateVideoProcessorOutputView
(
2328 ID3D11Resource
*pResource
,
2329 ID3D11VideoProcessorEnumerator
*pEnum
,
2330 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
,
2331 ID3D11VideoProcessorOutputView
**ppVPOView
);
2332 HRESULT CreateVideoProcessorEnumerator
(
2333 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
,
2334 ID3D11VideoProcessorEnumerator
**ppEnum
);
2335 UINT GetVideoDecoderProfileCount
();
2336 HRESULT GetVideoDecoderProfile
(
2338 GUID
*pDecoderProfile
);
2339 HRESULT CheckVideoDecoderFormat
(
2340 const GUID
*pDecoderProfile
,
2343 HRESULT GetVideoDecoderConfigCount
(
2344 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2346 HRESULT GetVideoDecoderConfig
(
2347 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2349 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2350 HRESULT GetContentProtectionCaps
(
2351 const GUID
*pCryptoType
,
2352 const GUID
*pDecoderProfile
,
2353 D3D11_VIDEO_CONTENT_PROTECTION_CAPS
*pCaps
);
2354 HRESULT CheckCryptoKeyExchange
(
2355 const GUID
*pCryptoType
,
2356 const GUID
*pDecoderProfile
,
2358 GUID
*pKeyExchangeType
);
2359 HRESULT SetPrivateData
(
2363 HRESULT SetPrivateDataInterface
(
2365 const IUnknown
*pData
);
2371 uuid(db6f6ddb
-ac77
-4e88
-8253-819df9bbf140
)
2373 interface ID3D11Device
: IUnknown
2375 HRESULT CreateBuffer
(
2376 [in] const D3D11_BUFFER_DESC
*pDesc
,
2377 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2378 [out] ID3D11Buffer
**ppBuffer
);
2379 HRESULT CreateTexture1D
(
2380 [in] const D3D11_TEXTURE1D_DESC
*pDesc
,
2381 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2382 [out] ID3D11Texture1D
**ppTexture1D
);
2383 HRESULT CreateTexture2D
(
2384 [in] const D3D11_TEXTURE2D_DESC
*pDesc
,
2385 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2386 [out] ID3D11Texture2D
**ppTexture2D
);
2387 HRESULT CreateTexture3D
(
2388 [in] const D3D11_TEXTURE3D_DESC
*pDesc
,
2389 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2390 [out] ID3D11Texture3D
**ppTexture3D
);
2391 HRESULT CreateShaderResourceView
(
2392 [in] ID3D11Resource
*pResource
,
2393 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
,
2394 [out] ID3D11ShaderResourceView
**ppSRView
);
2395 HRESULT CreateUnorderedAccessView
(
2396 [in] ID3D11Resource
*pResource
,
2397 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
,
2398 [out] ID3D11UnorderedAccessView
**ppUAView
);
2399 HRESULT CreateRenderTargetView
(
2400 [in] ID3D11Resource
*pResource
,
2401 [in] const D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
,
2402 [out] ID3D11RenderTargetView
**ppRTView
);
2403 HRESULT CreateDepthStencilView
(
2404 [in] ID3D11Resource
*pResource
,
2405 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
,
2406 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2407 HRESULT CreateInputLayout
(
2408 [in] const D3D11_INPUT_ELEMENT_DESC
*pInputElementDescs
,
2409 [in] UINT NumElements
,
2410 [in] const void *pShaderBytecodeWithInputSignature
,
2411 [in] SIZE_T BytecodeLength
,
2412 [out] ID3D11InputLayout
**ppInputLayout
);
2413 HRESULT CreateVertexShader
(
2414 [in] const void *pShaderBytecode
,
2415 [in] SIZE_T BytecodeLength
,
2416 [in] ID3D11ClassLinkage
*pClassLinkage
,
2417 [out] ID3D11VertexShader
**ppVertexShader
);
2418 HRESULT CreateGeometryShader
(
2419 [in] const void *pShaderBytecode
,
2420 [in] SIZE_T BytecodeLength
,
2421 [in] ID3D11ClassLinkage
*pClassLinkage
,
2422 [out] ID3D11GeometryShader
**ppGeometryShader
);
2423 HRESULT CreateGeometryShaderWithStreamOutput
(
2424 [in] const void *pShaderBytecode
,
2425 [in] SIZE_T BytecodeLength
,
2426 [in] const D3D11_SO_DECLARATION_ENTRY
*pSODeclaration
,
2427 [in] UINT NumEntries
,
2428 [in] const UINT
*pBufferStrides
,
2429 [in] UINT NumStrides
,
2430 [in] UINT RasterizedStream
,
2431 [in] ID3D11ClassLinkage
*pClassLinkage
,
2432 [out] ID3D11GeometryShader
**ppGeometryShader
);
2433 HRESULT CreatePixelShader
(
2434 [in] const void *pShaderBytecode
,
2435 [in] SIZE_T BytecodeLength
,
2436 [in] ID3D11ClassLinkage
*pClassLinkage
,
2437 [out] ID3D11PixelShader
**ppPixelShader
);
2438 HRESULT CreateHullShader
(
2439 [in] const void *pShaderBytecode
,
2440 [in] SIZE_T BytecodeLength
,
2441 [in] ID3D11ClassLinkage
*pClassLinkage
,
2442 [out] ID3D11HullShader
**ppHullShader
);
2443 HRESULT CreateDomainShader
(
2444 [in] const void *pShaderBytecode
,
2445 [in] SIZE_T BytecodeLength
,
2446 [in] ID3D11ClassLinkage
*pClassLinkage
,
2447 [out] ID3D11DomainShader
**ppDomainShader
);
2448 HRESULT CreateComputeShader
(
2449 [in] const void *pShaderBytecode
,
2450 [in] SIZE_T BytecodeLength
,
2451 [in] ID3D11ClassLinkage
*pClassLinkage
,
2452 [out] ID3D11ComputeShader
**ppComputeShader
);
2453 HRESULT CreateClassLinkage
(
2454 [out] ID3D11ClassLinkage
**ppLinkage
);
2455 HRESULT CreateBlendState
(
2456 [in] const D3D11_BLEND_DESC
*pBlendStateDesc
,
2457 [out] ID3D11BlendState
**ppBlendState
);
2458 HRESULT CreateDepthStencilState
(
2459 [in] const D3D11_DEPTH_STENCIL_DESC
*pDepthStencilDesc
,
2460 [out] ID3D11DepthStencilState
**ppDepthStencilState
);
2461 HRESULT CreateRasterizerState
(
2462 [in] const D3D11_RASTERIZER_DESC
*pRasterizerDesc
,
2463 [out] ID3D11RasterizerState
**ppRasterizerState
);
2464 HRESULT CreateSamplerState
(
2465 [in] const D3D11_SAMPLER_DESC
*pSamplerDesc
,
2466 [out] ID3D11SamplerState
**ppSamplerState
);
2467 HRESULT CreateQuery
(
2468 [in] const D3D11_QUERY_DESC
*pQueryDesc
,
2469 [out] ID3D11Query
**ppQuery
);
2470 HRESULT CreatePredicate
(
2471 [in] const D3D11_QUERY_DESC
*pPredicateDesc
,
2472 [out] ID3D11Predicate
**ppPredicate
);
2473 HRESULT CreateCounter
(
2474 [in] const D3D11_COUNTER_DESC
*pCounterDesc
,
2475 [out] ID3D11Counter
**ppCounter
);
2476 HRESULT CreateDeferredContext
(
2478 [out] ID3D11DeviceContext
**ppDeferredContext
);
2479 HRESULT OpenSharedResource
(
2480 [in] HANDLE hResource
,
2481 [in] REFIID ReturnedInterface
,
2482 [out] void **ppResource
);
2483 HRESULT CheckFormatSupport
(
2484 [in] DXGI_FORMAT Format
,
2485 [out] UINT
*pFormatSupport
);
2486 HRESULT CheckMultisampleQualityLevels
(
2487 [in] DXGI_FORMAT Format
,
2488 [in] UINT SampleCount
,
2489 [out] UINT
*pNumQualityLevels
);
2490 void CheckCounterInfo
(
2491 [out] D3D11_COUNTER_INFO
*pCounterInfo
);
2492 HRESULT CheckCounter
(
2493 [in] const D3D11_COUNTER_DESC
*pDesc
,
2494 [out] D3D11_COUNTER_TYPE
*pType
,
2495 [out] UINT
*pActiveCounters
,
2497 [in, out] UINT
*pNameLength
,
2498 [out] LPSTR szUnits
,
2499 [in, out] UINT
*pUnitsLength
,
2500 [out] LPSTR szDescription
,
2501 [in, out] UINT
*pDescriptionLength
);
2502 HRESULT CheckFeatureSupport
(
2503 D3D11_FEATURE Feature
,
2504 [out] void *pFeatureSupportData
,
2505 UINT FeatureSupportDataSize
);
2506 HRESULT GetPrivateData
(
2508 [in, out] UINT
*pDataSize
,
2510 HRESULT SetPrivateData
(
2513 [in] const void *pData
);
2514 HRESULT SetPrivateDataInterface
(
2516 [in] const IUnknown
*pData
);
2517 D3D_FEATURE_LEVEL GetFeatureLevel
();
2518 UINT GetCreationFlags
();
2519 HRESULT GetDeviceRemovedReason
();
2520 void GetImmediateContext
(
2521 [out] ID3D11DeviceContext
**ppImmediateContext
);
2522 HRESULT SetExceptionMode
(UINT RaiseFlags
);
2523 UINT GetExceptionMode
();
2526 typedef enum D3D11_CREATE_DEVICE_FLAG
{
2527 D3D11_CREATE_DEVICE_SINGLETHREADED
= 0x0001,
2528 D3D11_CREATE_DEVICE_DEBUG
= 0x0002,
2529 D3D11_CREATE_DEVICE_SWITCH_TO_REF
= 0x0004,
2530 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
= 0x0008,
2531 D3D11_CREATE_DEVICE_BGRA_SUPPORT
= 0x0020,
2532 D3D11_CREATE_DEVICE_DEBUGGABLE
= 0x0040,
2533 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY
= 0x0080,
2534 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT
= 0x0100,
2535 D3D11_CREATE_DEVICE_VIDEO_SUPPORT
= 0x0800
2536 } D3D11_CREATE_DEVICE_FLAG
;
2538 const UINT D3D11_SDK_VERSION
= 7;
2540 cpp_quote
("#include <d3d10_1.h>")
2541 cpp_quote
("#ifndef D3D11_IGNORE_SDK_LAYERS")
2542 cpp_quote
("# include <d3d11sdklayers.h>")
2544 cpp_quote
("#include <d3d10misc.h>")
2545 cpp_quote
("#include <d3d10shader.h>")
2546 cpp_quote
("#include <d3d10effect.h>")
2547 cpp_quote
("#include <d3d10_1shader.h>")
2549 cpp_quote
("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2550 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2552 cpp_quote
("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
2553 cpp_quote
(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2555 cpp_quote
("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2556 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
2557 cpp_quote
(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2559 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain
(IDXGIAdapter
*adapter
, D3D_DRIVER_TYPE driver_type
,
2560 HMODULE swrast
, UINT flags
, const D3D_FEATURE_LEVEL
*feature_levels
, UINT levels
, UINT sdk_version
,
2561 const DXGI_SWAP_CHAIN_DESC
*swapchain_desc
, IDXGISwapChain
**swapchain
, ID3D11Device
**device
,
2562 D3D_FEATURE_LEVEL
*obtained_feature_level
, ID3D11DeviceContext
**immediate_context
);