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_ASYNC_GETDATA_FLAG
533 D3D11_ASYNC_GETDATA_DONOTFLUSH
= 0x0001,
534 } D3D11_ASYNC_GETDATA_FLAG
;
536 typedef enum D3D11_RESOURCE_MISC_FLAG
538 D3D11_RESOURCE_MISC_GENERATE_MIPS
= 0x00000001L
,
539 D3D11_RESOURCE_MISC_SHARED
= 0x00000002L
,
540 D3D11_RESOURCE_MISC_TEXTURECUBE
= 0x00000004L
,
541 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
= 0x00000010L
,
542 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
= 0x00000020L
,
543 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
= 0x00000040L
,
544 D3D11_RESOURCE_MISC_RESOURCE_CLAMP
= 0x00000080L
,
545 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
= 0x00000100L
,
546 D3D11_RESOURCE_MISC_GDI_COMPATIBLE
= 0x00000200L
,
547 D3D11_RESOURCE_MISC_SHARED_NTHANDLE
= 0x00000800L
,
548 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
= 0x00001000L
,
549 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
= 0x00002000L
,
550 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
= 0x00004000L
,
551 D3D11_RESOURCE_MISC_GUARDED
= 0x00008000L
552 } D3D11_RESOURCE_MISC_FLAG
;
554 typedef struct D3D11_QUERY_DESC
560 typedef struct D3D11_RASTERIZER_DESC
562 D3D11_FILL_MODE FillMode
;
563 D3D11_CULL_MODE CullMode
;
564 BOOL FrontCounterClockwise
;
566 FLOAT DepthBiasClamp
;
567 FLOAT SlopeScaledDepthBias
;
568 BOOL DepthClipEnable
;
570 BOOL MultisampleEnable
;
571 BOOL AntialiasedLineEnable
;
572 } D3D11_RASTERIZER_DESC
;
574 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
575 cpp_quote
("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
576 cpp_quote
(" CD3D11_RASTERIZER_DESC() {}")
577 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
578 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
579 cpp_quote
(" FillMode = D3D11_FILL_SOLID;")
580 cpp_quote
(" CullMode = D3D11_CULL_BACK;")
581 cpp_quote
(" FrontCounterClockwise = FALSE;")
582 cpp_quote
(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
583 cpp_quote
(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
584 cpp_quote
(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
585 cpp_quote
(" DepthClipEnable = TRUE;")
586 cpp_quote
(" ScissorEnable = FALSE;")
587 cpp_quote
(" MultisampleEnable = FALSE;")
588 cpp_quote
(" AntialiasedLineEnable = FALSE;")
590 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
591 cpp_quote
(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
592 cpp_quote
(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
593 cpp_quote
(" FillMode = fillMode;")
594 cpp_quote
(" CullMode = cullMode;")
595 cpp_quote
(" FrontCounterClockwise = frontCounterClockwise;")
596 cpp_quote
(" DepthBias = depthBias;")
597 cpp_quote
(" DepthBiasClamp = depthBiasClamp;")
598 cpp_quote
(" SlopeScaledDepthBias = slopeScaledDepthBias;")
599 cpp_quote
(" DepthClipEnable = depthClipEnable;")
600 cpp_quote
(" ScissorEnable = scissorEnable;")
601 cpp_quote
(" MultisampleEnable = multisampleEnable;")
602 cpp_quote
(" AntialiasedLineEnable = antialiasedLineEnable;")
604 cpp_quote
(" ~CD3D11_RASTERIZER_DESC() {}")
605 cpp_quote
(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
609 typedef enum D3D11_RESOURCE_DIMENSION
611 D3D11_RESOURCE_DIMENSION_UNKNOWN
,
612 D3D11_RESOURCE_DIMENSION_BUFFER
,
613 D3D11_RESOURCE_DIMENSION_TEXTURE1D
,
614 D3D11_RESOURCE_DIMENSION_TEXTURE2D
,
615 D3D11_RESOURCE_DIMENSION_TEXTURE3D
,
616 } D3D11_RESOURCE_DIMENSION
;
618 typedef enum D3D11_RTV_DIMENSION
620 D3D11_RTV_DIMENSION_UNKNOWN
,
621 D3D11_RTV_DIMENSION_BUFFER
,
622 D3D11_RTV_DIMENSION_TEXTURE1D
,
623 D3D11_RTV_DIMENSION_TEXTURE1DARRAY
,
624 D3D11_RTV_DIMENSION_TEXTURE2D
,
625 D3D11_RTV_DIMENSION_TEXTURE2DARRAY
,
626 D3D11_RTV_DIMENSION_TEXTURE2DMS
,
627 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY
,
628 D3D11_RTV_DIMENSION_TEXTURE3D
,
629 } D3D11_RTV_DIMENSION
;
631 typedef struct D3D11_SO_DECLARATION_ENTRY
639 } D3D11_SO_DECLARATION_ENTRY
;
641 typedef enum D3D11_STENCIL_OP
643 D3D11_STENCIL_OP_KEEP
= 1,
644 D3D11_STENCIL_OP_ZERO
,
645 D3D11_STENCIL_OP_REPLACE
,
646 D3D11_STENCIL_OP_INCR_SAT
,
647 D3D11_STENCIL_OP_DECR_SAT
,
648 D3D11_STENCIL_OP_INVERT
,
649 D3D11_STENCIL_OP_INCR
,
650 D3D11_STENCIL_OP_DECR
653 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
655 cpp_quote
("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
656 cpp_quote
(" return MipSlice + ArraySlice * MipLevels;")
658 cpp_quote
("extern \"C\"{")
661 typedef struct D3D11_SUBRESOURCE_DATA
665 UINT SysMemSlicePitch
;
666 } D3D11_SUBRESOURCE_DATA
;
668 typedef struct D3D11_TEX1D_ARRAY_DSV
671 UINT FirstArraySlice
;
673 } D3D11_TEX1D_ARRAY_DSV
;
675 typedef struct D3D11_TEX1D_ARRAY_RTV
678 UINT FirstArraySlice
;
680 } D3D11_TEX1D_ARRAY_RTV
;
682 typedef struct D3D11_TEX1D_ARRAY_SRV
684 UINT MostDetailedMip
;
686 UINT FirstArraySlice
;
688 } D3D11_TEX1D_ARRAY_SRV
;
690 typedef struct D3D11_TEX1D_ARRAY_UAV
693 UINT FirstArraySlice
;
695 } D3D11_TEX1D_ARRAY_UAV
;
697 typedef struct D3D11_TEX1D_DSV
702 typedef struct D3D11_TEX1D_RTV
707 typedef struct D3D11_TEX1D_SRV
709 UINT MostDetailedMip
;
713 typedef struct D3D11_TEX1D_UAV
718 typedef struct D3D11_TEX2D_ARRAY_DSV
721 UINT FirstArraySlice
;
723 } D3D11_TEX2D_ARRAY_DSV
;
725 typedef struct D3D11_TEX2D_ARRAY_RTV
728 UINT FirstArraySlice
;
730 } D3D11_TEX2D_ARRAY_RTV
;
732 typedef struct D3D11_TEX2D_ARRAY_SRV
734 UINT MostDetailedMip
;
736 UINT FirstArraySlice
;
738 } D3D11_TEX2D_ARRAY_SRV
;
740 typedef struct D3D11_TEX2D_ARRAY_UAV
743 UINT FirstArraySlice
;
745 } D3D11_TEX2D_ARRAY_UAV
;
747 typedef struct D3D11_TEX2D_DSV
752 typedef struct D3D11_TEX2D_RTV
757 typedef struct D3D11_TEX2D_SRV
759 UINT MostDetailedMip
;
763 typedef struct D3D11_TEX2D_UAV
768 typedef struct D3D11_TEX2DMS_ARRAY_DSV
770 UINT FirstArraySlice
;
772 } D3D11_TEX2DMS_ARRAY_DSV
;
774 typedef struct D3D11_TEX2DMS_ARRAY_RTV
776 UINT FirstArraySlice
;
778 } D3D11_TEX2DMS_ARRAY_RTV
;
780 typedef struct D3D11_TEX2DMS_ARRAY_SRV
782 UINT FirstArraySlice
;
784 } D3D11_TEX2DMS_ARRAY_SRV
;
786 typedef struct D3D11_TEX2DMS_DSV
788 UINT UnusedField_NothingToDefine
;
791 typedef struct D3D11_TEX2DMS_RTV
793 UINT UnusedField_NothingToDefine
;
796 typedef struct D3D11_TEX2DMS_SRV
798 UINT UnusedField_NothingToDefine
;
801 typedef struct D3D11_TEX3D_RTV
808 typedef struct D3D11_TEX3D_SRV
810 UINT MostDetailedMip
;
814 typedef struct D3D11_TEX3D_UAV
821 typedef struct D3D11_TEXCUBE_ARRAY_SRV
823 UINT MostDetailedMip
;
825 UINT First2DArrayFace
;
827 } D3D11_TEXCUBE_ARRAY_SRV
;
829 typedef struct D3D11_TEXCUBE_SRV
831 UINT MostDetailedMip
;
835 typedef enum D3D11_TEXTURE_ADDRESS_MODE
837 D3D11_TEXTURE_ADDRESS_WRAP
= 1,
838 D3D11_TEXTURE_ADDRESS_MIRROR
,
839 D3D11_TEXTURE_ADDRESS_CLAMP
,
840 D3D11_TEXTURE_ADDRESS_BORDER
,
841 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
842 } D3D11_TEXTURE_ADDRESS_MODE
;
844 typedef enum D3D11_UAV_DIMENSION
846 D3D11_UAV_DIMENSION_UNKNOWN
,
847 D3D11_UAV_DIMENSION_BUFFER
,
848 D3D11_UAV_DIMENSION_TEXTURE1D
,
849 D3D11_UAV_DIMENSION_TEXTURE1DARRAY
,
850 D3D11_UAV_DIMENSION_TEXTURE2D
,
851 D3D11_UAV_DIMENSION_TEXTURE2DARRAY
,
852 D3D11_UAV_DIMENSION_TEXTURE3D
= 8,
853 } D3D11_UAV_DIMENSION
;
855 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
858 D3D11_UAV_DIMENSION ViewDimension
;
862 D3D11_BUFFER_UAV Buffer
;
863 D3D11_TEX1D_UAV Texture1D
;
864 D3D11_TEX1D_ARRAY_UAV Texture1DArray
;
865 D3D11_TEX2D_UAV Texture2D
;
866 D3D11_TEX2D_ARRAY_UAV Texture2DArray
;
867 D3D11_TEX3D_UAV Texture3D
;
869 } D3D11_UNORDERED_ACCESS_VIEW_DESC
;
871 typedef enum D3D11_USAGE
874 D3D11_USAGE_IMMUTABLE
,
879 typedef enum D3D11_BIND_FLAG
881 D3D11_BIND_VERTEX_BUFFER
= 0x0001,
882 D3D11_BIND_INDEX_BUFFER
= 0x0002,
883 D3D11_BIND_CONSTANT_BUFFER
= 0x0004,
884 D3D11_BIND_SHADER_RESOURCE
= 0x0008,
885 D3D11_BIND_STREAM_OUTPUT
= 0x0010,
886 D3D11_BIND_RENDER_TARGET
= 0x0020,
887 D3D11_BIND_DEPTH_STENCIL
= 0x0040,
888 D3D11_BIND_UNORDERED_ACCESS
= 0x0080,
889 D3D11_BIND_DECODER
= 0x0200,
890 D3D11_BIND_VIDEO_ENCODER
= 0x0400
893 typedef enum D3D11_CPU_ACCESS_FLAG
895 D3D11_CPU_ACCESS_WRITE
= 0x00010000,
896 D3D11_CPU_ACCESS_READ
= 0x00020000
897 } D3D11_CPU_ACCESS_FLAG
;
899 typedef struct D3D11_VIEWPORT
909 typedef enum D3D11_COLOR_WRITE_ENABLE
911 D3D11_COLOR_WRITE_ENABLE_RED
= 1,
912 D3D11_COLOR_WRITE_ENABLE_GREEN
= 2,
913 D3D11_COLOR_WRITE_ENABLE_BLUE
= 4,
914 D3D11_COLOR_WRITE_ENABLE_ALPHA
= 8,
915 D3D11_COLOR_WRITE_ENABLE_ALL
=
916 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA
)
917 } D3D11_COLOR_WRITE_ENABLE
;
919 typedef enum D3D11_FORMAT_SUPPORT
921 D3D11_FORMAT_SUPPORT_BUFFER
= 0x00000001,
922 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
= 0x00000002,
923 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
= 0x00000004,
924 D3D11_FORMAT_SUPPORT_SO_BUFFER
= 0x00000008,
925 D3D11_FORMAT_SUPPORT_TEXTURE1D
= 0x00000010,
926 D3D11_FORMAT_SUPPORT_TEXTURE2D
= 0x00000020,
927 D3D11_FORMAT_SUPPORT_TEXTURE3D
= 0x00000040,
928 D3D11_FORMAT_SUPPORT_TEXTURECUBE
= 0x00000080,
929 D3D11_FORMAT_SUPPORT_SHADER_LOAD
= 0x00000100,
930 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE
= 0x00000200,
931 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON
= 0x00000400,
932 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT
= 0x00000800,
933 D3D11_FORMAT_SUPPORT_MIP
= 0x00001000,
934 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
= 0x00002000,
935 D3D11_FORMAT_SUPPORT_RENDER_TARGET
= 0x00004000,
936 D3D11_FORMAT_SUPPORT_BLENDABLE
= 0x00008000,
937 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL
= 0x00010000,
938 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE
= 0x00020000,
939 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
= 0x00040000,
940 D3D11_FORMAT_SUPPORT_DISPLAY
= 0x00080000,
941 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT
= 0x00100000,
942 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
= 0x00200000,
943 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
= 0x00400000,
944 D3D11_FORMAT_SUPPORT_SHADER_GATHER
= 0x00800000,
945 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST
= 0x01000000,
946 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW
= 0x02000000,
947 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON
= 0x04000000
948 } D3D11_FORMAT_SUPPORT
;
950 typedef enum D3D11_CLEAR_FLAG
952 D3D11_CLEAR_DEPTH
= 0x0001L
,
953 D3D11_CLEAR_STENCIL
= 0x0002L
956 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
959 D3D11_BLEND SrcBlend
;
960 D3D11_BLEND DestBlend
;
961 D3D11_BLEND_OP BlendOp
;
962 D3D11_BLEND SrcBlendAlpha
;
963 D3D11_BLEND DestBlendAlpha
;
964 D3D11_BLEND_OP BlendOpAlpha
;
965 UINT8 RenderTargetWriteMask
;
966 } D3D11_RENDER_TARGET_BLEND_DESC
;
968 typedef struct D3D11_BLEND_DESC
970 BOOL AlphaToCoverageEnable
;
971 BOOL IndependentBlendEnable
;
972 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget
[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
];
975 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
976 cpp_quote
("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
977 cpp_quote
(" CD3D11_BLEND_DESC() {}")
978 cpp_quote
(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
979 cpp_quote
(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
980 cpp_quote
(" AlphaToCoverageEnable = FALSE;")
981 cpp_quote
(" IndependentBlendEnable = FALSE;")
982 cpp_quote
(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
983 cpp_quote
(" target->BlendEnable = FALSE;")
984 cpp_quote
(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
985 cpp_quote
(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
986 cpp_quote
(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
987 cpp_quote
(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
990 cpp_quote
(" ~CD3D11_BLEND_DESC() {}")
991 cpp_quote
(" operator const D3D11_BLEND_DESC&() const { return *this; }")
995 typedef struct D3D11_BUFFER_DESC
1000 UINT CPUAccessFlags
;
1002 UINT StructureByteStride
;
1003 } D3D11_BUFFER_DESC
;
1005 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1006 cpp_quote
("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1007 cpp_quote
(" CD3D11_BUFFER_DESC() {}" )
1008 cpp_quote
(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1009 cpp_quote
(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1010 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1011 cpp_quote
(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1012 cpp_quote
(" ByteWidth = byteWidth;")
1013 cpp_quote
(" Usage = usage;")
1014 cpp_quote
(" BindFlags = bindFlags;")
1015 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1016 cpp_quote
(" MiscFlags = miscFlags;" )
1017 cpp_quote
(" StructureByteStride = structureByteStride;")
1019 cpp_quote
(" ~CD3D11_BUFFER_DESC() {}")
1020 cpp_quote
(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1022 cpp_quote
("#endif" )
1024 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1027 D3D11_DSV_DIMENSION ViewDimension
;
1032 D3D11_TEX1D_DSV Texture1D
;
1033 D3D11_TEX1D_ARRAY_DSV Texture1DArray
;
1034 D3D11_TEX2D_DSV Texture2D
;
1035 D3D11_TEX2D_ARRAY_DSV Texture2DArray
;
1036 D3D11_TEX2DMS_DSV Texture2DMS
;
1037 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray
;
1039 } D3D11_DEPTH_STENCIL_VIEW_DESC
;
1041 typedef struct D3D11_DEPTH_STENCILOP_DESC
1043 D3D11_STENCIL_OP StencilFailOp
;
1044 D3D11_STENCIL_OP StencilDepthFailOp
;
1045 D3D11_STENCIL_OP StencilPassOp
;
1046 D3D11_COMPARISON_FUNC StencilFunc
;
1047 } D3D11_DEPTH_STENCILOP_DESC
;
1049 typedef struct D3D11_DEPTH_STENCIL_DESC
1052 D3D11_DEPTH_WRITE_MASK DepthWriteMask
;
1053 D3D11_COMPARISON_FUNC DepthFunc
;
1055 UINT8 StencilReadMask
;
1056 UINT8 StencilWriteMask
;
1057 D3D11_DEPTH_STENCILOP_DESC FrontFace
;
1058 D3D11_DEPTH_STENCILOP_DESC BackFace
;
1059 } D3D11_DEPTH_STENCIL_DESC
;
1061 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1064 D3D11_RTV_DIMENSION ViewDimension
;
1068 D3D11_BUFFER_RTV Buffer
;
1069 D3D11_TEX1D_RTV Texture1D
;
1070 D3D11_TEX1D_ARRAY_RTV Texture1DArray
;
1071 D3D11_TEX2D_RTV Texture2D
;
1072 D3D11_TEX2D_ARRAY_RTV Texture2DArray
;
1073 D3D11_TEX2DMS_RTV Texture2DMS
;
1074 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray
;
1075 D3D11_TEX3D_RTV Texture3D
;
1077 } D3D11_RENDER_TARGET_VIEW_DESC
;
1079 typedef struct D3D11_SAMPLER_DESC
1081 D3D11_FILTER Filter
;
1082 D3D11_TEXTURE_ADDRESS_MODE AddressU
;
1083 D3D11_TEXTURE_ADDRESS_MODE AddressV
;
1084 D3D11_TEXTURE_ADDRESS_MODE AddressW
;
1087 D3D11_COMPARISON_FUNC ComparisonFunc
;
1088 FLOAT BorderColor
[4];
1091 } D3D11_SAMPLER_DESC
;
1093 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1094 cpp_quote
("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1095 cpp_quote
(" CD3D11_SAMPLER_DESC() {}")
1096 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1097 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1098 cpp_quote
(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1099 cpp_quote
(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1100 cpp_quote
(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1101 cpp_quote
(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1102 cpp_quote
(" MipLODBias = 0;")
1103 cpp_quote
(" MaxAnisotropy = 1;")
1104 cpp_quote
(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1105 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1106 cpp_quote
(" MinLOD = -3.402823466e+38f;")
1107 cpp_quote
(" MaxLOD = 3.402823466e+38f;")
1109 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1110 cpp_quote
(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1111 cpp_quote
(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1112 cpp_quote
(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1113 cpp_quote
(" Filter = filter;")
1114 cpp_quote
(" AddressU = addressU;")
1115 cpp_quote
(" AddressV = addressV;")
1116 cpp_quote
(" AddressW = addressW;")
1117 cpp_quote
(" MipLODBias = mipLODBias;")
1118 cpp_quote
(" MaxAnisotropy = maxAnisotropy;")
1119 cpp_quote
(" ComparisonFunc = comparisonFunc;")
1120 cpp_quote
(" if(borderColor) {")
1121 cpp_quote
(" BorderColor[0] = borderColor[0];")
1122 cpp_quote
(" BorderColor[1] = borderColor[1];")
1123 cpp_quote
(" BorderColor[2] = borderColor[2];")
1124 cpp_quote
(" BorderColor[3] = borderColor[3];")
1125 cpp_quote
(" }else {")
1126 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1128 cpp_quote
(" MinLOD = minLOD;")
1129 cpp_quote
(" MaxLOD = maxLOD;")
1131 cpp_quote
(" ~CD3D11_SAMPLER_DESC() {}")
1132 cpp_quote
(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1136 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1139 D3D11_SRV_DIMENSION ViewDimension
;
1143 D3D11_BUFFER_SRV Buffer
;
1144 D3D11_TEX1D_SRV Texture1D
;
1145 D3D11_TEX1D_ARRAY_SRV Texture1DArray
;
1146 D3D11_TEX2D_SRV Texture2D
;
1147 D3D11_TEX2D_ARRAY_SRV Texture2DArray
;
1148 D3D11_TEX2DMS_SRV Texture2DMS
;
1149 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray
;
1150 D3D11_TEX3D_SRV Texture3D
;
1151 D3D11_TEXCUBE_SRV TextureCube
;
1152 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray
;
1153 D3D11_BUFFEREX_SRV BufferEx
;
1155 } D3D11_SHADER_RESOURCE_VIEW_DESC
;
1157 typedef struct D3D11_TEXTURE1D_DESC
1165 UINT CPUAccessFlags
;
1167 } D3D11_TEXTURE1D_DESC
;
1169 typedef struct D3D11_TEXTURE2D_DESC
1176 DXGI_SAMPLE_DESC SampleDesc
;
1179 UINT CPUAccessFlags
;
1181 } D3D11_TEXTURE2D_DESC
;
1183 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1184 cpp_quote
("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1185 cpp_quote
(" CD3D11_TEXTURE2D_DESC() {}")
1186 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1187 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1188 cpp_quote
(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1189 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1190 cpp_quote
(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1191 cpp_quote
(" Width = width;")
1192 cpp_quote
(" Height = height;")
1193 cpp_quote
(" MipLevels = mipLevels;")
1194 cpp_quote
(" ArraySize = arraySize;")
1195 cpp_quote
(" Format = format;")
1196 cpp_quote
(" SampleDesc.Count = sampleCount;")
1197 cpp_quote
(" SampleDesc.Quality = sampleQuality;")
1198 cpp_quote
(" Usage = usage;")
1199 cpp_quote
(" BindFlags = bindFlags;")
1200 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1201 cpp_quote
(" MiscFlags = miscFlags;")
1203 cpp_quote
(" ~CD3D11_TEXTURE2D_DESC() {}")
1204 cpp_quote
(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1208 typedef struct D3D11_TEXTURE3D_DESC
1217 UINT CPUAccessFlags
;
1219 } D3D11_TEXTURE3D_DESC
;
1221 typedef struct D3D11_VIDEO_DECODER_DESC
1226 DXGI_FORMAT OutputFormat
;
1227 } D3D11_VIDEO_DECODER_DESC
;
1229 typedef struct D3D11_VIDEO_DECODER_CONFIG
1231 GUID guidConfigBitstreamEncryption
;
1232 GUID guidConfigMBcontrolEncryption
;
1233 GUID guidConfigResidDiffEncryption
;
1234 UINT ConfigBitstreamRaw
;
1235 UINT ConfigMBcontrolRasterOrder
;
1236 UINT ConfigResidDiffHost
;
1237 UINT ConfigSpatialResid8
;
1238 UINT ConfigResid8Subtraction
;
1239 UINT ConfigSpatialHost8or9Clipping
;
1240 UINT ConfigSpatialResidInterleaved
;
1241 UINT ConfigIntraResidUnsigned
;
1242 UINT ConfigResidDiffAccelerator
;
1243 UINT ConfigHostInverseScan
;
1244 UINT ConfigSpecificIDCT
;
1245 UINT Config4GroupedCoefs
;
1246 USHORT ConfigMinRenderTargetBuffCount
;
1247 USHORT ConfigDecoderSpecific
;
1248 } D3D11_VIDEO_DECODER_CONFIG
;
1250 typedef enum D3D11_VIDEO_FRAME_FORMAT
1252 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE
= 0,
1253 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST
= 1,
1254 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST
= 2
1255 } D3D11_VIDEO_FRAME_FORMAT
;
1257 typedef enum D3D11_VIDEO_USAGE
1259 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL
= 0,
1260 D3D11_VIDEO_USAGE_OPTIMAL_SPEED
= 1,
1261 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY
= 2
1262 } D3D11_VIDEO_USAGE
;
1264 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1266 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat
;
1267 DXGI_RATIONAL InputFrameRate
;
1270 DXGI_RATIONAL OutputFrameRate
;
1273 D3D11_VIDEO_USAGE Usage
;
1274 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC
;
1276 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1281 UINT InputFormatCaps
;
1282 UINT AutoStreamCaps
;
1284 UINT RateConversionCapsCount
;
1285 UINT MaxInputStreams
;
1286 UINT MaxStreamStates
;
1287 } D3D11_VIDEO_PROCESSOR_CAPS
;
1289 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1295 UINT CustomRateCount
;
1296 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
;
1298 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1300 DXGI_RATIONAL CustomRate
;
1302 BOOL InputInterlaced
;
1303 UINT InputFramesOrFields
;
1304 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
;
1306 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1308 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS
= 0,
1309 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST
= 1,
1310 D3D11_VIDEO_PROCESSOR_FILTER_HUE
= 2,
1311 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION
= 3,
1312 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION
= 4,
1313 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT
= 5,
1314 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING
= 6,
1315 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT
= 7
1316 } D3D11_VIDEO_PROCESSOR_FILTER
;
1318 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1324 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE
;
1326 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1328 D3D11_AUTHENTICATED_CHANNEL_D3D11
= 1,
1329 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE
= 2,
1330 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE
= 3
1331 } D3D11_AUTHENTICATED_CHANNEL_TYPE
;
1333 typedef enum D3D11_VDOV_DIMENSION
1335 D3D11_VDOV_DIMENSION_UNKNOWN
= 0,
1336 D3D11_VDOV_DIMENSION_TEXTURE2D
= 1
1337 } D3D11_VDOV_DIMENSION
;
1339 typedef struct D3D11_TEX2D_VDOV
1344 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1347 D3D11_VDOV_DIMENSION ViewDimension
;
1349 D3D11_TEX2D_VDOV Texture2D
;
1351 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
;
1353 typedef enum D3D11_VPIV_DIMENSION
1355 D3D11_VPIV_DIMENSION_UNKNOWN
= 0,
1356 D3D11_VPIV_DIMENSION_TEXTURE2D
= 1
1357 } D3D11_VPIV_DIMENSION
;
1359 typedef struct D3D11_TEX2D_VPIV
1365 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1368 D3D11_VPIV_DIMENSION ViewDimension
;
1370 D3D11_TEX2D_VPIV Texture2D
;
1372 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
;
1374 typedef enum D3D11_VPOV_DIMENSION
1376 D3D11_VPOV_DIMENSION_UNKNOWN
= 0,
1377 D3D11_VPOV_DIMENSION_TEXTURE2D
= 1,
1378 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY
= 2
1379 } D3D11_VPOV_DIMENSION
;
1381 typedef struct D3D11_TEX2D_VPOV
1386 typedef struct D3D11_TEX2D_ARRAY_VPOV
1389 UINT FirstArraySlice
;
1391 } D3D11_TEX2D_ARRAY_VPOV
;
1393 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1395 D3D11_VPOV_DIMENSION ViewDimension
;
1397 D3D11_TEX2D_VPOV Texture2D
;
1398 D3D11_TEX2D_ARRAY_VPOV Texture2DArray
;
1400 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
;
1402 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1405 UINT KeyExchangeTypeCount
;
1406 UINT BlockAlignmentSize
;
1407 ULONGLONG ProtectedMemorySize
;
1408 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS
;
1410 /* A couple forward declarations are needed */
1411 interface ID3D11Device
;
1412 interface ID3D11ClassLinkage
;
1417 uuid(1841e5c8
-16b0
-489b
-bcc8
-44cfb0d5deae
)
1419 interface ID3D11DeviceChild
: IUnknown
1422 [out] ID3D11Device
**ppDevice
);
1423 HRESULT GetPrivateData
(
1425 [in, out] UINT
*pDataSize
,
1427 HRESULT SetPrivateData
(
1430 [in] const void *pData
);
1431 HRESULT SetPrivateDataInterface
(
1433 [in] const IUnknown
*pData
);
1439 uuid(4b35d0cd
-1e15
-4258-9c98
-1b1333f6dd3b
)
1441 interface ID3D11Asynchronous
: ID3D11DeviceChild
1449 uuid(d6c00747
-87b7
-425e
-b84d
-44d108560afd
)
1451 interface ID3D11Query
: ID3D11Asynchronous
1454 [out] D3D11_QUERY_DESC
*pDesc
);
1460 uuid(dc8e63f3
-d12b
-4952-b47b
-5e45026a862d
)
1462 interface ID3D11Resource
: ID3D11DeviceChild
1465 [out] D3D11_RESOURCE_DIMENSION
*pResourceDimension
);
1466 void SetEvictionPriority
(
1467 [in] UINT EvictionPriority
);
1468 UINT GetEvictionPriority
();
1474 uuid(839d1216
-bb2e
-412b
-b7f4
-a9dbebe08ed1
)
1476 interface ID3D11View
: ID3D11DeviceChild
1479 [out] ID3D11Resource
**ppResource
);
1485 uuid(75b68faa
-347d
-4159-8f45
-a0640f01cd9a
)
1487 interface ID3D11BlendState
: ID3D11DeviceChild
1490 [out] D3D11_BLEND_DESC
*pDesc
);
1496 uuid(48570b85
-d1ee
-4fcd
-a250
-eb350722b037
)
1498 interface ID3D11Buffer
: ID3D11Resource
1501 [out] D3D11_BUFFER_DESC
*pDesc
);
1507 uuid(a6cd7faa
-b0b7
-4a2f
-9436-8662a65797cb
)
1509 interface ID3D11ClassInstance
: ID3D11DeviceChild
1511 void GetClassLinkage
(
1512 [out] ID3D11ClassLinkage
**ppLinkage
);
1514 [out] D3D11_CLASS_INSTANCE_DESC
*pDesc
);
1515 void GetInstanceName
(
1516 [out] LPSTR pInstanceName
,
1517 [in, out] SIZE_T
*pBufferLength
);
1519 [out] LPSTR pTypeName
,
1520 [in, out] SIZE_T
*pBufferLength
);
1526 uuid(ddf57cba
-9543-46e4
-a12b
-f207a0fe7fed
)
1528 interface ID3D11ClassLinkage
: ID3D11DeviceChild
1530 HRESULT GetClassInstance
(
1531 [in] LPCSTR pClassInstanceName
,
1532 [in] UINT InstanceIndex
,
1533 [out] ID3D11ClassInstance
**ppInstance
);
1534 HRESULT CreateClassInstance
(
1535 [in] LPCSTR pClassTypeName
,
1536 [in] UINT ConstantBufferOffset
,
1537 [in] UINT ConstantVectorOffset
,
1538 [in] UINT TextureOffset
,
1539 [in] UINT SamplerOffset
,
1540 [out] ID3D11ClassInstance
**ppInstance
);
1546 uuid(a24bc4d1
-769e-43f7
-8013-98ff566c18e2
)
1548 interface ID3D11CommandList
: ID3D11DeviceChild
1550 UINT GetContextFlags
();
1556 uuid(4f5b196e
-c2bd
-495e
-bd01
-1fded38e4969
)
1558 interface ID3D11ComputeShader
: ID3D11DeviceChild
1565 uuid(6e8c49fb
-a371
-4770-b440
-29086022b741
)
1567 interface ID3D11Counter
: ID3D11Asynchronous
1570 [out] D3D11_COUNTER_DESC
*pDesc
);
1576 uuid(03823efb
-8d8f
-4e1c
-9aa2
-f64bb2cbfdf1
)
1578 interface ID3D11DepthStencilState
: ID3D11DeviceChild
1581 [out] D3D11_DEPTH_STENCIL_DESC
*pDesc
);
1587 uuid(9fdac92a
-1876-48c3
-afad
-25b94f84a9b6
)
1589 interface ID3D11DepthStencilView
: ID3D11View
1592 [out] D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
);
1598 uuid(f582c508
-0f36
-490c
-9977-31eece268cfa
)
1600 interface ID3D11DomainShader
: ID3D11DeviceChild
1607 uuid(38325b96
-effb
-4022-ba02
-2e795b70275c
)
1609 interface ID3D11GeometryShader
: ID3D11DeviceChild
1616 uuid(8e5c6061
-628a
-4c8e
-8264
-bbe45cb3d5dd
)
1618 interface ID3D11HullShader
: ID3D11DeviceChild
1625 uuid(e4819ddc
-4cf0
-4025-bd26
-5de82a3e07b7
)
1627 interface ID3D11InputLayout
: ID3D11DeviceChild
1634 uuid(ea82e40d
-51dc
-4f33
-93d4
-db7c9125ae8c
)
1636 interface ID3D11PixelShader
: ID3D11DeviceChild
1643 uuid(9eb576dd
-9f77
-4d86
-81aa
-8bab5fe490e2
)
1645 interface ID3D11Predicate
: ID3D11Query
1652 uuid(9bb4ab81
-ab1a
-4d8f
-b506
-fc04200b6ee7
)
1654 interface ID3D11RasterizerState
: ID3D11DeviceChild
1657 [out] D3D11_RASTERIZER_DESC
*pDesc
);
1663 uuid(dfdba067
-0b8d
-4865-875b
-d7b4516cc164
)
1665 interface ID3D11RenderTargetView
: ID3D11View
1668 [out] D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
);
1674 uuid(da6fea51
-564c
-4487-9810-f0d0f9b4e3a5
)
1676 interface ID3D11SamplerState
: ID3D11DeviceChild
1679 [out] D3D11_SAMPLER_DESC
*pDesc
);
1685 uuid(b0e06fe0
-8192-4e1a
-b1ca
-36d7414710b2
)
1687 interface ID3D11ShaderResourceView
: ID3D11View
1690 [out] D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
);
1696 uuid(f8fb5c27
-c6b3
-4f75
-a4c8
-439af2ef564c
),
1698 interface ID3D11Texture1D
: ID3D11Resource
1701 [out] D3D11_TEXTURE1D_DESC
*pDesc
);
1707 uuid(6f15aaf2
-d208
-4e89
-9ab4
-489535d34f9c
)
1709 interface ID3D11Texture2D
: ID3D11Resource
1712 [out] D3D11_TEXTURE2D_DESC
*pDesc
);
1718 uuid(037e866e
-f56d
-4357-a8af
-9dabbe6e250e
)
1720 interface ID3D11Texture3D
: ID3D11Resource
1723 [out] D3D11_TEXTURE3D_DESC
*pDesc
);
1729 uuid(28acf509
-7f5c
-48f6
-8611-f316010a6380
)
1731 interface ID3D11UnorderedAccessView
: ID3D11View
1734 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
);
1740 uuid(3b301d64
-d678
-4289-8897-22f8928b72f3
)
1742 interface ID3D11VertexShader
: ID3D11DeviceChild
1749 uuid(c0bfa96c
-e089
-44fb
-8eaf
-26f8796190da
)
1751 interface ID3D11DeviceContext
: ID3D11DeviceChild
1753 void VSSetConstantBuffers
(
1754 [in] UINT StartSlot
,
1755 [in] UINT NumBuffers
,
1756 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1757 void PSSetShaderResources
(
1758 [in] UINT StartSlot
,
1760 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1762 [in] ID3D11PixelShader
*pPixelShader
,
1763 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1764 UINT NumClassInstances
);
1766 [in] UINT StartSlot
,
1767 [in] UINT NumSamplers
,
1768 [in] ID3D11SamplerState
*const *ppSamplers
);
1770 [in] ID3D11VertexShader
*pVertexShader
,
1771 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1772 UINT NumClassInstances
);
1774 [in] UINT IndexCount
,
1775 [in] UINT StartIndexLocation
,
1776 [in] INT BaseVertexLocation
);
1778 [in] UINT VertexCount
,
1779 [in] UINT StartVertexLocation
);
1781 [in] ID3D11Resource
*pResource
,
1782 [in] UINT Subresource
,
1783 [in] D3D11_MAP MapType
,
1785 [out] D3D11_MAPPED_SUBRESOURCE
*pMappedResource
);
1787 [in] ID3D11Resource
*pResource
,
1788 [in] UINT Subresource
);
1789 void PSSetConstantBuffers
(
1790 [in] UINT StartSlot
,
1791 [in] UINT NumBuffers
,
1792 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1793 void IASetInputLayout
(
1794 [in] ID3D11InputLayout
*pInputLayout
);
1795 void IASetVertexBuffers
(
1796 [in] UINT StartSlot
,
1797 [in] UINT NumBuffers
,
1798 [in] ID3D11Buffer
*const *ppVertexBuffers
,
1799 [in] const UINT
*pStrides
,
1800 [in] const UINT
*pOffsets
);
1801 void IASetIndexBuffer
(
1802 [in] ID3D11Buffer
*pIndexBuffer
,
1803 [in] DXGI_FORMAT Format
,
1805 void DrawIndexedInstanced
(
1806 [in] UINT IndexCountPerInstance
,
1807 [in] UINT InstanceCount
,
1808 [in] UINT StartIndexLocation
,
1809 [in] INT BaseVertexLocation
,
1810 [in] UINT StartInstanceLocation
);
1812 [in] UINT VertexCountPerInstance
,
1813 [in] UINT InstanceCount
,
1814 [in] UINT StartVertexLocation
,
1815 [in] UINT StartInstanceLocation
);
1816 void GSSetConstantBuffers
(
1817 [in] UINT StartSlot
,
1818 [in] UINT NumBuffers
,
1819 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1821 [in] ID3D11GeometryShader
*pShader
,
1822 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1823 UINT NumClassInstances
);
1824 void IASetPrimitiveTopology
(
1825 [in] D3D11_PRIMITIVE_TOPOLOGY Topology
);
1826 void VSSetShaderResources
(
1827 [in] UINT StartSlot
,
1829 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1831 [in] UINT StartSlot
,
1832 [in] UINT NumSamplers
,
1833 [in] ID3D11SamplerState
*const *ppSamplers
);
1835 [in] ID3D11Asynchronous
*pAsync
);
1837 [in] ID3D11Asynchronous
*pAsync
);
1839 [in] ID3D11Asynchronous
*pAsync
,
1842 [in] UINT GetDataFlags
);
1843 void SetPredication
(
1844 [in] ID3D11Predicate
*pPredicate
,
1845 [in] BOOL PredicateValue
);
1846 void GSSetShaderResources
(
1847 [in] UINT StartSlot
,
1849 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1851 [in] UINT StartSlot
,
1852 [in] UINT NumSamplers
,
1853 [in] ID3D11SamplerState
*const *ppSamplers
);
1854 void OMSetRenderTargets
(
1856 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
1857 [in] ID3D11DepthStencilView
*pDepthStencilView
);
1858 void OMSetRenderTargetsAndUnorderedAccessViews
(
1860 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
1861 [in] ID3D11DepthStencilView
*pDepthStencilView
,
1862 [in] UINT UAVStartSlot
,
1864 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
1865 [in] const UINT
*pUAVInitialCounts
);
1866 void OMSetBlendState
(
1867 [in] ID3D11BlendState
*pBlendState
,
1868 [in] const FLOAT BlendFactor
[4],
1869 [in] UINT SampleMask
);
1870 void OMSetDepthStencilState
(
1871 [in] ID3D11DepthStencilState
*pDepthStencilState
,
1872 [in] UINT StencilRef
);
1874 [in] UINT NumBuffers
,
1875 [in] ID3D11Buffer
*const *ppSOTargets
,
1876 [in] const UINT
*pOffsets
);
1878 void DrawIndexedInstancedIndirect
(
1879 [in] ID3D11Buffer
*pBufferForArgs
,
1880 [in] UINT AlignedByteOffsetForArgs
);
1881 void DrawInstancedIndirect
(
1882 [in] ID3D11Buffer
*pBufferForArgs
,
1883 [in] UINT AlignedByteOffsetForArgs
);
1885 [in] UINT ThreadGroupCountX
,
1886 [in] UINT ThreadGroupCountY
,
1887 [in] UINT ThreadGroupCountZ
);
1888 void DispatchIndirect
(
1889 [in] ID3D11Buffer
*pBufferForArgs
,
1890 [in] UINT AlignedByteOffsetForArgs
);
1892 [in] ID3D11RasterizerState
*pRasterizerState
);
1893 void RSSetViewports
(
1894 [in] UINT NumViewports
,
1895 [in] const D3D11_VIEWPORT
*pViewports
);
1896 void RSSetScissorRects
(
1898 [in] const D3D11_RECT
*pRects
);
1899 void CopySubresourceRegion
(
1900 [in] ID3D11Resource
*pDstResource
,
1901 [in] UINT DstSubresource
,
1905 [in] ID3D11Resource
*pSrcResource
,
1906 [in] UINT SrcSubresource
,
1907 [in] const D3D11_BOX
*pSrcBox
);
1909 [in] ID3D11Resource
*pDstResource
,
1910 [in] ID3D11Resource
*pSrcResource
);
1911 void UpdateSubresource
(
1912 [in] ID3D11Resource
*pDstResource
,
1913 [in] UINT DstSubresource
,
1914 [in] const D3D11_BOX
*pDstBox
,
1915 [in] const void *pSrcData
,
1916 [in] UINT SrcRowPitch
,
1917 [in] UINT SrcDepthPitch
);
1918 void CopyStructureCount
(
1919 [in] ID3D11Buffer
*pDstBuffer
,
1920 [in] UINT DstAlignedByteOffset
,
1921 [in] ID3D11UnorderedAccessView
*pSrcView
);
1922 void ClearRenderTargetView
(
1923 [in] ID3D11RenderTargetView
*pRenderTargetView
,
1924 [in] const FLOAT ColorRGBA
[4]);
1925 void ClearUnorderedAccessViewUint
(
1926 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
1927 [in] const UINT Values
[4]);
1928 void ClearUnorderedAccessViewFloat
(
1929 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
1930 [in] const FLOAT Values
[4]);
1931 void ClearDepthStencilView
(
1932 [in] ID3D11DepthStencilView
*pDepthStencilView
,
1933 [in] UINT ClearFlags
,
1935 [in] UINT8 Stencil
);
1937 [in] ID3D11ShaderResourceView
*pShaderResourceView
);
1938 void SetResourceMinLOD
(
1939 [in] ID3D11Resource
*pResource
, FLOAT MinLOD
);
1940 FLOAT GetResourceMinLOD
(
1941 [in] ID3D11Resource
*pResource
);
1942 void ResolveSubresource
(
1943 [in] ID3D11Resource
*pDstResource
,
1944 [in] UINT DstSubresource
,
1945 [in] ID3D11Resource
*pSrcResource
,
1946 [in] UINT SrcSubresource
,
1947 [in] DXGI_FORMAT Format
);
1948 void ExecuteCommandList
(
1949 [in] ID3D11CommandList
*pCommandList
,
1950 BOOL RestoreContextState
);
1951 void HSSetShaderResources
(
1952 [in] UINT StartSlot
,
1954 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1956 [in] ID3D11HullShader
*pHullShader
,
1957 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1958 UINT NumClassInstances
);
1960 [in] UINT StartSlot
,
1961 [in] UINT NumSamplers
,
1962 [in] ID3D11SamplerState
*const *ppSamplers
);
1963 void HSSetConstantBuffers
(
1964 [in] UINT StartSlot
,
1965 [in] UINT NumBuffers
,
1966 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1967 void DSSetShaderResources
(
1968 [in] UINT StartSlot
,
1970 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1972 [in] ID3D11DomainShader
*pDomainShader
,
1973 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1974 UINT NumClassInstances
);
1976 [in] UINT StartSlot
,
1977 [in] UINT NumSamplers
,
1978 [in] ID3D11SamplerState
*const *ppSamplers
);
1979 void DSSetConstantBuffers
(
1980 [in] UINT StartSlot
,
1981 [in] UINT NumBuffers
,
1982 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1983 void CSSetShaderResources
(
1984 [in] UINT StartSlot
,
1986 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1987 void CSSetUnorderedAccessViews
(
1988 [in] UINT StartSlot
,
1990 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
1991 [in] const UINT
*pUAVInitialCounts
);
1993 [in] ID3D11ComputeShader
*pComputeShader
,
1994 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1995 UINT NumClassInstances
);
1997 [in] UINT StartSlot
,
1998 [in] UINT NumSamplers
,
1999 [in] ID3D11SamplerState
*const *ppSamplers
);
2000 void CSSetConstantBuffers
(
2001 [in] UINT StartSlot
,
2002 [in] UINT NumBuffers
,
2003 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2004 void VSGetConstantBuffers
(
2005 [in] UINT StartSlot
,
2006 [in] UINT NumBuffers
,
2007 [out] ID3D11Buffer
**ppConstantBuffers
);
2008 void PSGetShaderResources
(
2009 [in] UINT StartSlot
,
2011 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2013 [out] ID3D11PixelShader
**ppPixelShader
,
2014 [out] ID3D11ClassInstance
**ppClassInstances
,
2015 [in, out] UINT
*pNumClassInstances
);
2017 [in] UINT StartSlot
,
2018 [in] UINT NumSamplers
,
2019 [out] ID3D11SamplerState
**ppSamplers
);
2021 [out] ID3D11VertexShader
**ppVertexShader
,
2022 [out] ID3D11ClassInstance
**ppClassInstances
,
2023 [in, out] UINT
*pNumClassInstances
);
2024 void PSGetConstantBuffers
(
2025 [in] UINT StartSlot
,
2026 [in] UINT NumBuffers
,
2027 [out] ID3D11Buffer
**ppConstantBuffers
);
2028 void IAGetInputLayout
(
2029 [out] ID3D11InputLayout
**ppInputLayout
);
2030 void IAGetVertexBuffers
(
2031 [in] UINT StartSlot
,
2032 [in] UINT NumBuffers
,
2033 [out] ID3D11Buffer
**ppVertexBuffers
,
2034 [out] UINT
*pStrides
,
2035 [out] UINT
*pOffsets
);
2036 void IAGetIndexBuffer
(
2037 [out] ID3D11Buffer
**pIndexBuffer
,
2038 [out] DXGI_FORMAT
* Format
,
2039 [out] UINT
* Offset
);
2040 void GSGetConstantBuffers
(
2041 [in] UINT StartSlot
,
2042 [in] UINT NumBuffers
,
2043 [out] ID3D11Buffer
**ppConstantBuffers
);
2045 [out] ID3D11GeometryShader
**ppGeometryShader
,
2046 [out] ID3D11ClassInstance
**ppClassInstances
,
2047 [in, out] UINT
*pNumClassInstances
);
2048 void IAGetPrimitiveTopology
(
2049 [out] D3D11_PRIMITIVE_TOPOLOGY
*pTopology
);
2050 void VSGetShaderResources
(
2051 [in] UINT StartSlot
,
2053 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2055 [in] UINT StartSlot
,
2056 [in] UINT NumSamplers
,
2057 [out] ID3D11SamplerState
**ppSamplers
);
2058 void GetPredication
(
2059 [out] ID3D11Predicate
**ppPredicate
,
2060 [out] BOOL
*pPredicateValue
);
2061 void GSGetShaderResources
(
2062 [in] UINT StartSlot
,
2064 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2066 [in] UINT StartSlot
,
2067 [in] UINT NumSamplers
,
2068 [out] ID3D11SamplerState
**ppSamplers
);
2069 void OMGetRenderTargets
(
2071 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2072 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2073 void OMGetRenderTargetsAndUnorderedAccessViews
(
2075 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2076 [out] ID3D11DepthStencilView
**ppDepthStencilView
,
2077 [in] UINT UAVStartSlot
,
2079 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2080 void OMGetBlendState
(
2081 [out] ID3D11BlendState
**ppBlendState
,
2082 [out] FLOAT BlendFactor
[4],
2083 [out] UINT
*pSampleMask
);
2084 void OMGetDepthStencilState
(
2085 [out] ID3D11DepthStencilState
**ppDepthStencilState
,
2086 [out] UINT
*pStencilRef
);
2088 [in] UINT NumBuffers
,
2089 [out] ID3D11Buffer
**ppSOTargets
);
2091 [out] ID3D11RasterizerState
**ppRasterizerState
);
2092 void RSGetViewports
(
2093 [in, out] UINT
*pNumViewports
,
2094 [out] D3D11_VIEWPORT
*pViewports
);
2095 void RSGetScissorRects
(
2096 [in, out] UINT
*pNumRects
,
2097 [out] D3D11_RECT
*pRects
);
2098 void HSGetShaderResources
(
2099 [in] UINT StartSlot
,
2101 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2103 [out] ID3D11HullShader
**ppHullShader
,
2104 [out] ID3D11ClassInstance
**ppClassInstances
,
2105 [in, out] UINT
*pNumClassInstances
);
2107 [in] UINT StartSlot
,
2108 [in] UINT NumSamplers
,
2109 [out] ID3D11SamplerState
**ppSamplers
);
2110 void HSGetConstantBuffers
(
2111 [in] UINT StartSlot
,
2112 [in] UINT NumBuffers
,
2113 [out] ID3D11Buffer
**ppConstantBuffers
);
2114 void DSGetShaderResources
(
2115 [in] UINT StartSlot
,
2117 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2119 [out] ID3D11DomainShader
**ppDomainShader
,
2120 [out] ID3D11ClassInstance
**ppClassInstances
,
2121 [in, out] UINT
*pNumClassInstances
);
2123 [in] UINT StartSlot
,
2124 [in] UINT NumSamplers
,
2125 [out] ID3D11SamplerState
**ppSamplers
);
2126 void DSGetConstantBuffers
(
2127 [in] UINT StartSlot
,
2128 [in] UINT NumBuffers
,
2129 [out] ID3D11Buffer
**ppConstantBuffers
);
2130 void CSGetShaderResources
(
2131 [in] UINT StartSlot
,
2133 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2134 void CSGetUnorderedAccessViews
(
2135 [in] UINT StartSlot
,
2137 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2139 [out] ID3D11ComputeShader
**ppComputeShader
,
2140 [out] ID3D11ClassInstance
**ppClassInstances
,
2141 [in, out] UINT
*pNumClassInstances
);
2143 [in] UINT StartSlot
,
2144 [in] UINT NumSamplers
,
2145 [out] ID3D11SamplerState
**ppSamplers
);
2146 void CSGetConstantBuffers
(
2147 [in] UINT StartSlot
,
2148 [in] UINT NumBuffers
,
2149 [out] ID3D11Buffer
**ppConstantBuffers
);
2152 D3D11_DEVICE_CONTEXT_TYPE GetType
();
2153 UINT GetContextFlags
();
2154 HRESULT FinishCommandList
(
2155 BOOL RestoreDeferredContextState
,
2156 [out] ID3D11CommandList
**ppCommandList
);
2161 uuid(3015a308
-dcbd
-47aa
-a747
-192486d14d4a
),
2163 pointer_default(unique)
2165 interface ID3D11AuthenticatedChannel
: ID3D11DeviceChild
2167 HRESULT GetCertificateSize
(
2168 UINT
*pCertificateSize
);
2169 HRESULT GetCertificate
(
2170 UINT CertificateSize
,
2171 BYTE *pCertificate
);
2172 void GetChannelHandle
(
2173 HANDLE *pChannelHandle
);
2178 uuid(9b32f9ad
-bdcc
-40a6
-a39d
-d5c865845720
),
2180 pointer_default(unique)
2182 interface ID3D11CryptoSession
: ID3D11DeviceChild
2186 void GetDecoderProfile
(
2187 GUID
*pDecoderProfile
);
2188 HRESULT GetCertificateSize
(
2189 UINT
*pCertificateSize
);
2190 HRESULT GetCertificate
(
2191 UINT CertificateSize
,
2192 BYTE *pCertificate
);
2193 void GetCryptoSessionHandle
(
2194 HANDLE *pCryptoSessionHandle
);
2199 uuid(3c9c5b51
-995d
-48d1
-9b8d
-fa5caeded65c
),
2201 pointer_default(unique)
2203 interface ID3D11VideoDecoder
: ID3D11DeviceChild
2205 HRESULT GetCreationParameters
(
2206 D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2207 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2208 HRESULT GetDriverHandle
(
2209 HANDLE *pDriverHandle
);
2214 uuid(31627037-53ab
-4200-9061-05faa9ab45f9
),
2216 pointer_default(unique)
2218 interface ID3D11VideoProcessorEnumerator
: ID3D11DeviceChild
2220 HRESULT GetVideoProcessorContentDesc
(
2221 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pContentDesc
);
2222 HRESULT CheckVideoProcessorFormat
(
2225 HRESULT GetVideoProcessorCaps
(
2226 D3D11_VIDEO_PROCESSOR_CAPS
*pCaps
);
2227 HRESULT GetVideoProcessorRateConversionCaps
(
2229 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2230 HRESULT GetVideoProcessorCustomRate
(
2232 UINT CustomRateIndex
,
2233 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
*pRate
);
2234 HRESULT GetVideoProcessorFilterRange
(
2235 D3D11_VIDEO_PROCESSOR_FILTER Filter
,
2236 D3D11_VIDEO_PROCESSOR_FILTER_RANGE
*pRange
);
2241 uuid(1d7b0652
-185f
-41c6
-85ce
-0c5be3d4ae6c
),
2243 pointer_default(unique)
2245 interface ID3D11VideoProcessor
: ID3D11DeviceChild
2247 void GetContentDesc
(
2248 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
);
2249 void GetRateConversionCaps
(
2250 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2255 uuid(c2931aea
-2a85
-4f20
-860f
-fba1fd256e18
),
2257 pointer_default(unique)
2259 interface ID3D11VideoDecoderOutputView
: ID3D11View
2262 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
);
2267 uuid(11ec5a5f
-51dc
-4945-ab34
-6e8c21300ea5
),
2269 pointer_default(unique)
2271 interface ID3D11VideoProcessorInputView
: ID3D11View
2274 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
);
2279 uuid(a048285e
-25a9
-4527-bd93
-d68b68c44254
),
2281 pointer_default(unique)
2283 interface ID3D11VideoProcessorOutputView
: ID3D11View
2286 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
);
2291 uuid(10ec4d5b
-975a
-4689-b9e4
-d0aac30fe333
),
2293 pointer_default(unique)
2295 interface ID3D11VideoDevice
: IUnknown
2297 HRESULT CreateVideoDecoder
(
2298 const D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2299 const D3D11_VIDEO_DECODER_CONFIG
*pConfig
,
2300 ID3D11VideoDecoder
**ppDecoder
);
2301 HRESULT CreateVideoProcessor
(
2302 ID3D11VideoProcessorEnumerator
*pEnum
,
2303 UINT RateConversionIndex
,
2304 ID3D11VideoProcessor
**ppVideoProcessor
);
2305 HRESULT CreateAuthenticatedChannel
(
2306 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType
,
2307 ID3D11AuthenticatedChannel
**ppAuthenticatedChannel
);
2308 HRESULT CreateCryptoSession
(
2309 const GUID
*pCryptoType
,
2310 const GUID
*pDecoderProfile
,
2311 const GUID
*pKeyExchangeType
,
2312 ID3D11CryptoSession
**ppCryptoSession
);
2313 HRESULT CreateVideoDecoderOutputView
(
2314 ID3D11Resource
*pResource
,
2315 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
,
2316 ID3D11VideoDecoderOutputView
**ppVDOVView
);
2317 HRESULT CreateVideoProcessorInputView
(
2318 ID3D11Resource
*pResource
,
2319 ID3D11VideoProcessorEnumerator
*pEnum
,
2320 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
,
2321 ID3D11VideoProcessorInputView
**ppVPIView
);
2322 HRESULT CreateVideoProcessorOutputView
(
2323 ID3D11Resource
*pResource
,
2324 ID3D11VideoProcessorEnumerator
*pEnum
,
2325 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
,
2326 ID3D11VideoProcessorOutputView
**ppVPOView
);
2327 HRESULT CreateVideoProcessorEnumerator
(
2328 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
,
2329 ID3D11VideoProcessorEnumerator
**ppEnum
);
2330 UINT GetVideoDecoderProfileCount
();
2331 HRESULT GetVideoDecoderProfile
(
2333 GUID
*pDecoderProfile
);
2334 HRESULT CheckVideoDecoderFormat
(
2335 const GUID
*pDecoderProfile
,
2338 HRESULT GetVideoDecoderConfigCount
(
2339 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2341 HRESULT GetVideoDecoderConfig
(
2342 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2344 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2345 HRESULT GetContentProtectionCaps
(
2346 const GUID
*pCryptoType
,
2347 const GUID
*pDecoderProfile
,
2348 D3D11_VIDEO_CONTENT_PROTECTION_CAPS
*pCaps
);
2349 HRESULT CheckCryptoKeyExchange
(
2350 const GUID
*pCryptoType
,
2351 const GUID
*pDecoderProfile
,
2353 GUID
*pKeyExchangeType
);
2354 HRESULT SetPrivateData
(
2358 HRESULT SetPrivateDataInterface
(
2360 const IUnknown
*pData
);
2366 uuid(db6f6ddb
-ac77
-4e88
-8253-819df9bbf140
)
2368 interface ID3D11Device
: IUnknown
2370 HRESULT CreateBuffer
(
2371 [in] const D3D11_BUFFER_DESC
*pDesc
,
2372 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2373 [out] ID3D11Buffer
**ppBuffer
);
2374 HRESULT CreateTexture1D
(
2375 [in] const D3D11_TEXTURE1D_DESC
*pDesc
,
2376 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2377 [out] ID3D11Texture1D
**ppTexture1D
);
2378 HRESULT CreateTexture2D
(
2379 [in] const D3D11_TEXTURE2D_DESC
*pDesc
,
2380 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2381 [out] ID3D11Texture2D
**ppTexture2D
);
2382 HRESULT CreateTexture3D
(
2383 [in] const D3D11_TEXTURE3D_DESC
*pDesc
,
2384 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
2385 [out] ID3D11Texture3D
**ppTexture3D
);
2386 HRESULT CreateShaderResourceView
(
2387 [in] ID3D11Resource
*pResource
,
2388 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
,
2389 [out] ID3D11ShaderResourceView
**ppSRView
);
2390 HRESULT CreateUnorderedAccessView
(
2391 [in] ID3D11Resource
*pResource
,
2392 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
,
2393 [out] ID3D11UnorderedAccessView
**ppUAView
);
2394 HRESULT CreateRenderTargetView
(
2395 [in] ID3D11Resource
*pResource
,
2396 [in] const D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
,
2397 [out] ID3D11RenderTargetView
**ppRTView
);
2398 HRESULT CreateDepthStencilView
(
2399 [in] ID3D11Resource
*pResource
,
2400 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
,
2401 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2402 HRESULT CreateInputLayout
(
2403 [in] const D3D11_INPUT_ELEMENT_DESC
*pInputElementDescs
,
2404 [in] UINT NumElements
,
2405 [in] const void *pShaderBytecodeWithInputSignature
,
2406 [in] SIZE_T BytecodeLength
,
2407 [out] ID3D11InputLayout
**ppInputLayout
);
2408 HRESULT CreateVertexShader
(
2409 [in] const void *pShaderBytecode
,
2410 [in] SIZE_T BytecodeLength
,
2411 [in] ID3D11ClassLinkage
*pClassLinkage
,
2412 [out] ID3D11VertexShader
**ppVertexShader
);
2413 HRESULT CreateGeometryShader
(
2414 [in] const void *pShaderBytecode
,
2415 [in] SIZE_T BytecodeLength
,
2416 [in] ID3D11ClassLinkage
*pClassLinkage
,
2417 [out] ID3D11GeometryShader
**ppGeometryShader
);
2418 HRESULT CreateGeometryShaderWithStreamOutput
(
2419 [in] const void *pShaderBytecode
,
2420 [in] SIZE_T BytecodeLength
,
2421 [in] const D3D11_SO_DECLARATION_ENTRY
*pSODeclaration
,
2422 [in] UINT NumEntries
,
2423 [in] const UINT
*pBufferStrides
,
2424 [in] UINT NumStrides
,
2425 [in] UINT RasterizedStream
,
2426 [in] ID3D11ClassLinkage
*pClassLinkage
,
2427 [out] ID3D11GeometryShader
**ppGeometryShader
);
2428 HRESULT CreatePixelShader
(
2429 [in] const void *pShaderBytecode
,
2430 [in] SIZE_T BytecodeLength
,
2431 [in] ID3D11ClassLinkage
*pClassLinkage
,
2432 [out] ID3D11PixelShader
**ppPixelShader
);
2433 HRESULT CreateHullShader
(
2434 [in] const void *pShaderBytecode
,
2435 [in] SIZE_T BytecodeLength
,
2436 [in] ID3D11ClassLinkage
*pClassLinkage
,
2437 [out] ID3D11HullShader
**ppHullShader
);
2438 HRESULT CreateDomainShader
(
2439 [in] const void *pShaderBytecode
,
2440 [in] SIZE_T BytecodeLength
,
2441 [in] ID3D11ClassLinkage
*pClassLinkage
,
2442 [out] ID3D11DomainShader
**ppDomainShader
);
2443 HRESULT CreateComputeShader
(
2444 [in] const void *pShaderBytecode
,
2445 [in] SIZE_T BytecodeLength
,
2446 [in] ID3D11ClassLinkage
*pClassLinkage
,
2447 [out] ID3D11ComputeShader
**ppComputeShader
);
2448 HRESULT CreateClassLinkage
(
2449 [out] ID3D11ClassLinkage
**ppLinkage
);
2450 HRESULT CreateBlendState
(
2451 [in] const D3D11_BLEND_DESC
*pBlendStateDesc
,
2452 [out] ID3D11BlendState
**ppBlendState
);
2453 HRESULT CreateDepthStencilState
(
2454 [in] const D3D11_DEPTH_STENCIL_DESC
*pDepthStencilDesc
,
2455 [out] ID3D11DepthStencilState
**ppDepthStencilState
);
2456 HRESULT CreateRasterizerState
(
2457 [in] const D3D11_RASTERIZER_DESC
*pRasterizerDesc
,
2458 [out] ID3D11RasterizerState
**ppRasterizerState
);
2459 HRESULT CreateSamplerState
(
2460 [in] const D3D11_SAMPLER_DESC
*pSamplerDesc
,
2461 [out] ID3D11SamplerState
**ppSamplerState
);
2462 HRESULT CreateQuery
(
2463 [in] const D3D11_QUERY_DESC
*pQueryDesc
,
2464 [out] ID3D11Query
**ppQuery
);
2465 HRESULT CreatePredicate
(
2466 [in] const D3D11_QUERY_DESC
*pPredicateDesc
,
2467 [out] ID3D11Predicate
**ppPredicate
);
2468 HRESULT CreateCounter
(
2469 [in] const D3D11_COUNTER_DESC
*pCounterDesc
,
2470 [out] ID3D11Counter
**ppCounter
);
2471 HRESULT CreateDeferredContext
(
2473 [out] ID3D11DeviceContext
**ppDeferredContext
);
2474 HRESULT OpenSharedResource
(
2475 [in] HANDLE hResource
,
2476 [in] REFIID ReturnedInterface
,
2477 [out] void **ppResource
);
2478 HRESULT CheckFormatSupport
(
2479 [in] DXGI_FORMAT Format
,
2480 [out] UINT
*pFormatSupport
);
2481 HRESULT CheckMultisampleQualityLevels
(
2482 [in] DXGI_FORMAT Format
,
2483 [in] UINT SampleCount
,
2484 [out] UINT
*pNumQualityLevels
);
2485 void CheckCounterInfo
(
2486 [out] D3D11_COUNTER_INFO
*pCounterInfo
);
2487 HRESULT CheckCounter
(
2488 [in] const D3D11_COUNTER_DESC
*pDesc
,
2489 [out] D3D11_COUNTER_TYPE
*pType
,
2490 [out] UINT
*pActiveCounters
,
2492 [in, out] UINT
*pNameLength
,
2493 [out] LPSTR szUnits
,
2494 [in, out] UINT
*pUnitsLength
,
2495 [out] LPSTR szDescription
,
2496 [in, out] UINT
*pDescriptionLength
);
2497 HRESULT CheckFeatureSupport
(
2498 D3D11_FEATURE Feature
,
2499 [out] void *pFeatureSupportData
,
2500 UINT FeatureSupportDataSize
);
2501 HRESULT GetPrivateData
(
2503 [in, out] UINT
*pDataSize
,
2505 HRESULT SetPrivateData
(
2508 [in] const void *pData
);
2509 HRESULT SetPrivateDataInterface
(
2511 [in] const IUnknown
*pData
);
2512 D3D_FEATURE_LEVEL GetFeatureLevel
();
2513 UINT GetCreationFlags
();
2514 HRESULT GetDeviceRemovedReason
();
2515 void GetImmediateContext
(
2516 [out] ID3D11DeviceContext
**ppImmediateContext
);
2517 HRESULT SetExceptionMode
(UINT RaiseFlags
);
2518 UINT GetExceptionMode
();
2521 typedef enum D3D11_CREATE_DEVICE_FLAG
{
2522 D3D11_CREATE_DEVICE_SINGLETHREADED
= 0x0001,
2523 D3D11_CREATE_DEVICE_DEBUG
= 0x0002,
2524 D3D11_CREATE_DEVICE_SWITCH_TO_REF
= 0x0004,
2525 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
= 0x0008,
2526 D3D11_CREATE_DEVICE_BGRA_SUPPORT
= 0x0020,
2527 D3D11_CREATE_DEVICE_DEBUGGABLE
= 0x0040,
2528 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY
= 0x0080,
2529 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT
= 0x0100,
2530 D3D11_CREATE_DEVICE_VIDEO_SUPPORT
= 0x0800
2531 } D3D11_CREATE_DEVICE_FLAG
;
2533 const UINT D3D11_SDK_VERSION
= 7;
2535 cpp_quote
("#include <d3d10_1.h>")
2536 cpp_quote
("#ifndef D3D11_IGNORE_SDK_LAYERS")
2537 cpp_quote
("# include <d3d11sdklayers.h>")
2539 cpp_quote
("#include <d3d10misc.h>")
2540 cpp_quote
("#include <d3d10shader.h>")
2541 cpp_quote
("#include <d3d10effect.h>")
2542 cpp_quote
("#include <d3d10_1shader.h>")
2544 cpp_quote
("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2545 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2547 cpp_quote
("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
2548 cpp_quote
(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2550 cpp_quote
("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2551 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
2552 cpp_quote
(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2554 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain
(IDXGIAdapter
*adapter
, D3D_DRIVER_TYPE driver_type
,
2555 HMODULE swrast
, UINT flags
, const D3D_FEATURE_LEVEL
*feature_levels
, UINT levels
, UINT sdk_version
,
2556 const DXGI_SWAP_CHAIN_DESC
*swapchain_desc
, IDXGISwapChain
**swapchain
, ID3D11Device
**device
,
2557 D3D_FEATURE_LEVEL
*obtained_feature_level
, ID3D11DeviceContext
**immediate_context
);