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 interface ID3D11Device
;
31 interface ID3D11ClassLinkage
;
32 interface ID3D11Resource
;
33 interface ID3D11VideoProcessorInputView
;
35 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
= 14;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS
= 4;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT
= 32;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT
= 15;
39 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT
= 16;
40 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
41 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT
= 15;
42 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
43 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
44 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT
= 64;
45 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
46 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT
= 1;
47 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
48 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
49 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT
= 32;
50 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS
= 1;
51 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT
= 128;
52 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST
= 1;
53 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS
= 1;
54 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
= 128;
55 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS
= 1;
56 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT
= 16;
57 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST
= 1;
58 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS
= 1;
59 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT
= 16;
60 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT
= 32;
61 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS
= 4;
62 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT
= 32;
63 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT
= 4096;
64 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST
= 3;
65 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS
= 3;
66 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX
= 10;
67 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN
= -10;
68 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE
= -8;
69 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE
= 7;
71 const UINT D3D11_DEFAULT_DEPTH_BIAS
= 0;
72 cpp_quote
("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
73 const UINT D3D11_DEFAULT_MAX_ANISOTROPY
= 16;
74 cpp_quote
("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
75 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX
= 0;
76 const UINT D3D11_DEFAULT_SAMPLE_MASK
= 0xffffffff;
77 const UINT D3D11_DEFAULT_SCISSOR_ENDX
= 0;
78 const UINT D3D11_DEFAULT_SCISSOR_ENDY
= 0;
79 const UINT D3D11_DEFAULT_SCISSOR_STARTX
= 0;
80 const UINT D3D11_DEFAULT_SCISSOR_STARTY
= 0;
81 cpp_quote
("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
82 const UINT D3D11_DEFAULT_STENCIL_READ_MASK
= 0xff;
83 const UINT D3D11_DEFAULT_STENCIL_REFERENCE
= 0;
84 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK
= 0xff;
85 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX
= 0;
86 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT
= 0;
87 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
88 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
89 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX
= 0;
90 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY
= 0;
91 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH
= 0;
93 cpp_quote
("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
95 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
= 32;
97 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
= 8;
99 const UINT D3D11_MAX_MAXANISOTROPY
= 16;
100 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT
= 32;
101 const UINT D3D11_VIEWPORT_BOUNDS_MAX
= 32767;
102 const INT D3D11_VIEWPORT_BOUNDS_MIN
= -32768;
103 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX
= 15;
104 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE
= 16;
106 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL
= 0xffffffff;
107 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS
= 0xffffffff;
109 const UINT D3D11_SHADER_MAJOR_VERSION
= 5;
110 const UINT D3D11_SHADER_MAX_INSTANCES
= 65535;
111 const UINT D3D11_SHADER_MAX_INTERFACES
= 253;
112 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES
= 4096;
113 const UINT D3D11_SHADER_MAX_TYPES
= 65535;
114 const UINT D3D11_SHADER_MINOR_VERSION
= 0;
115 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT
= 32;
117 const UINT D3D11_OMAC_SIZE
= 16;
119 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS
= 1;
120 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT
= 8;
121 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST
= 1;
122 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS
= 1;
123 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE
= 0xffffffff;
124 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE
= 0;
125 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE
= 0xffffffff;
126 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS
= 4;
127 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
128 const UINT D3D11_PS_INPUT_REGISTER_COUNT
= 32;
129 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST
= 2;
130 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS
= 1;
131 cpp_quote
("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
132 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS
= 1;
133 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT
= 32;
134 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT
= 1;
135 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS
= 1;
136 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT
= 32;
137 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT
= 1;
138 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS
= 4;
139 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
140 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT
= 8;
141 cpp_quote
("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
143 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT
= 16;
145 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE
= 4096;
146 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP
= 27;
147 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
148 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE
= 4096;
149 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP
= 32;
150 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP
= 32;
151 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION
= 16384;
152 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT
= 1024;
153 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
154 const UINT D3D11_REQ_MAXANISOTROPY
= 16;
155 const UINT D3D11_REQ_MIP_LEVELS
= 15;
156 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES
= 2048;
157 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE
= 4096;
158 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH
= 16384;
159 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM
= 128;
160 cpp_quote
("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
161 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM
= 2048;
162 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP
= 20;
163 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE
= 4096;
164 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION
= 2048;
165 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION
= 16384;
166 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION
= 2048;
167 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION
= 16384;
168 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION
= 2048;
169 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION
= 16384;
171 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL
= 0;
173 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE
= 0;
174 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT
= 5;
176 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES
= 2048;
177 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES
= 512;
178 const UINT D3D11_SO_BUFFER_SLOT_COUNT
= 4;
179 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP
= 0xffffffff;
180 const UINT D3D11_SO_NO_RASTERIZED_STREAM
= 0xffffffff;
181 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT
= 128;
182 const UINT D3D11_SO_STREAM_COUNT
= 4;
184 const UINT D3D11_SPEC_DATE_DAY
= 16;
185 const UINT D3D11_SPEC_DATE_MONTH
= 05;
186 const UINT D3D11_SPEC_DATE_YEAR
= 2011;
188 cpp_quote
("#define D3D11_SPEC_VERSION (1.07)")
189 cpp_quote
("#define D3D11_SRGB_GAMMA (2.2f)")
190 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
191 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
192 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
193 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
194 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
195 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
197 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT
= 32;
198 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED
= 64;
199 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE
= 4;
200 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT
= 128;
201 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT
= 32;
202 const UINT D3D11_STANDARD_VECTOR_SIZE
= 4;
203 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT
= 32;
204 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT
= 64;
206 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
207 cpp_quote
("struct CD3D11_DEFAULT {};")
208 cpp_quote
("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
211 typedef enum D3D11_BLEND
213 D3D11_BLEND_ZERO
= 1,
215 D3D11_BLEND_SRC_COLOR
= 3,
216 D3D11_BLEND_INV_SRC_COLOR
= 4,
217 D3D11_BLEND_SRC_ALPHA
= 5,
218 D3D11_BLEND_INV_SRC_ALPHA
= 6,
219 D3D11_BLEND_DEST_ALPHA
= 7,
220 D3D11_BLEND_INV_DEST_ALPHA
= 8,
221 D3D11_BLEND_DEST_COLOR
= 9,
222 D3D11_BLEND_INV_DEST_COLOR
= 10,
223 D3D11_BLEND_SRC_ALPHA_SAT
= 11,
224 D3D11_BLEND_BLEND_FACTOR
= 14,
225 D3D11_BLEND_INV_BLEND_FACTOR
= 15,
226 D3D11_BLEND_SRC1_COLOR
= 16,
227 D3D11_BLEND_INV_SRC1_COLOR
= 17,
228 D3D11_BLEND_SRC1_ALPHA
= 18,
229 D3D11_BLEND_INV_SRC1_ALPHA
= 19,
232 typedef enum D3D11_BLEND_OP
234 D3D11_BLEND_OP_ADD
= 1,
235 D3D11_BLEND_OP_SUBTRACT
,
236 D3D11_BLEND_OP_REV_SUBTRACT
,
241 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
243 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS
= 0,
244 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL
= 1,
245 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE
= 2,
246 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL
= 3,
247 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX
= 4,
248 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL
= 5,
249 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM
= 6,
250 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR
= 7,
251 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN
= 8,
252 } D3D11_VIDEO_DECODER_BUFFER_TYPE
;
254 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
256 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE
= 0,
257 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND
= 1,
258 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION
= 2,
259 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM
= 3,
260 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
;
262 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
264 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL
= 0,
265 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF
= 1,
266 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM
= 2,
267 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
;
269 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
271 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO
= 0,
272 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL
= 1,
273 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL
= 2,
274 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE
= 3,
275 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET
= 4,
276 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED
= 5,
277 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED
= 6,
278 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD
= 7,
279 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
;
281 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
283 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE
= 0,
284 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0
= 1,
285 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1
= 2,
286 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
;
288 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
290 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY
= 0,
291 D3D11_VIDEO_PROCESSOR_ROTATION_90
= 1,
292 D3D11_VIDEO_PROCESSOR_ROTATION_180
= 2,
293 D3D11_VIDEO_PROCESSOR_ROTATION_270
= 3,
294 } D3D11_VIDEO_PROCESSOR_ROTATION
;
296 typedef struct D3D11_BOX
306 typedef struct D3D11_BUFFER_RTV
320 typedef struct D3D11_BUFFER_SRV
334 typedef struct D3D11_BUFFER_UAV
341 typedef struct D3D11_BUFFEREX_SRV
346 } D3D11_BUFFEREX_SRV
;
348 typedef struct D3D11_CLASS_INSTANCE_DESC
354 UINT BaseConstantBufferOffset
;
358 } D3D11_CLASS_INSTANCE_DESC
;
360 typedef enum D3D11_COMPARISON_FUNC
362 D3D11_COMPARISON_NEVER
= 1,
363 D3D11_COMPARISON_LESS
,
364 D3D11_COMPARISON_EQUAL
,
365 D3D11_COMPARISON_LESS_EQUAL
,
366 D3D11_COMPARISON_GREATER
,
367 D3D11_COMPARISON_NOT_EQUAL
,
368 D3D11_COMPARISON_GREATER_EQUAL
,
369 D3D11_COMPARISON_ALWAYS
370 } D3D11_COMPARISON_FUNC
;
372 typedef enum D3D11_COUNTER
374 D3D11_COUNTER_DEVICE_DEPENDENT_0
= 0x40000000,
377 typedef struct D3D11_COUNTER_DESC
379 D3D11_COUNTER Counter
;
381 } D3D11_COUNTER_DESC
;
383 typedef struct D3D11_COUNTER_INFO
385 D3D11_COUNTER LastDeviceDependentCounter
;
386 UINT NumSimultaneousCounters
;
387 UINT8 NumDetectableParallelUnits
;
388 } D3D11_COUNTER_INFO
;
390 typedef enum D3D11_COUNTER_TYPE
392 D3D11_COUNTER_TYPE_FLOAT32
,
393 D3D11_COUNTER_TYPE_UINT16
,
394 D3D11_COUNTER_TYPE_UINT32
,
395 D3D11_COUNTER_TYPE_UINT64
,
396 } D3D11_COUNTER_TYPE
;
398 typedef enum D3D11_CULL_MODE
405 typedef enum D3D11_DEPTH_WRITE_MASK
407 D3D11_DEPTH_WRITE_MASK_ZERO
,
408 D3D11_DEPTH_WRITE_MASK_ALL
,
409 } D3D11_DEPTH_WRITE_MASK
;
411 typedef enum D3D11_DEVICE_CONTEXT_TYPE
413 D3D11_DEVICE_CONTEXT_IMMEDIATE
,
414 D3D11_DEVICE_CONTEXT_DEFERRED
,
415 } D3D11_DEVICE_CONTEXT_TYPE
;
417 typedef enum D3D11_DSV_DIMENSION
419 D3D11_DSV_DIMENSION_UNKNOWN
,
420 D3D11_DSV_DIMENSION_TEXTURE1D
,
421 D3D11_DSV_DIMENSION_TEXTURE1DARRAY
,
422 D3D11_DSV_DIMENSION_TEXTURE2D
,
423 D3D11_DSV_DIMENSION_TEXTURE2DARRAY
,
424 D3D11_DSV_DIMENSION_TEXTURE2DMS
,
425 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY
,
426 } D3D11_DSV_DIMENSION
;
428 typedef enum D3D11_FEATURE
430 D3D11_FEATURE_THREADING
,
431 D3D11_FEATURE_DOUBLES
,
432 D3D11_FEATURE_FORMAT_SUPPORT
,
433 D3D11_FEATURE_FORMAT_SUPPORT2
,
434 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS
,
435 D3D11_FEATURE_D3D11_OPTIONS
,
436 D3D11_FEATURE_ARCHITECTURE_INFO
,
437 D3D11_FEATURE_D3D9_OPTIONS
,
438 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT
,
439 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
442 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
444 BOOL OutputMergerLogicOp
;
445 BOOL UAVOnlyRenderingForcedSampleCount
;
446 BOOL DiscardAPIsSeenByDriver
;
447 BOOL FlagsForUpdateAndCopySeenByDriver
;
449 BOOL CopyWithOverlap
;
450 BOOL ConstantBufferPartialUpdate
;
451 BOOL ConstantBufferOffsetting
;
452 BOOL MapNoOverwriteOnDynamicConstantBuffer
;
453 BOOL MapNoOverwriteOnDynamicBufferSRV
;
454 BOOL MultisampleRTVWithForcedSampleCountOne
;
455 BOOL SAD4ShaderInstructions
;
456 BOOL ExtendedDoublesShaderInstructions
;
457 BOOL ExtendedResourceSharing
;
458 } D3D11_FEATURE_DATA_D3D11_OPTIONS
;
460 typedef enum D3D11_FILL_MODE
462 D3D11_FILL_WIREFRAME
= 2,
466 typedef enum D3D11_FILTER_TYPE
468 D3D11_FILTER_TYPE_POINT
= 0,
469 D3D11_FILTER_TYPE_LINEAR
= 1
472 const UINT D3D11_MIN_FILTER_SHIFT
= 4;
473 const UINT D3D11_MAG_FILTER_SHIFT
= 2;
474 const UINT D3D11_MIP_FILTER_SHIFT
= 0;
475 const UINT D3D11_FILTER_TYPE_MASK
= 0x00000003;
476 const UINT D3D11_COMPARISON_FILTERING_BIT
= 0x00000080;
477 const UINT D3D11_ANISOTROPIC_FILTERING_BIT
= 0x00000040;
479 cpp_quote
("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
480 cpp_quote
(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
481 cpp_quote
(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
482 cpp_quote
(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
483 cpp_quote
(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
485 cpp_quote
("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
486 cpp_quote
(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
487 cpp_quote
(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
488 cpp_quote
(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
490 cpp_quote
("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
491 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
493 cpp_quote
("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
494 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
496 cpp_quote
("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
497 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
499 cpp_quote
("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
501 cpp_quote
("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
502 cpp_quote
(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
503 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
504 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
505 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
507 typedef enum D3D11_FILTER
509 D3D11_FILTER_MIN_MAG_MIP_POINT
= 0x00,
510 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR
= 0x01,
511 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x04,
512 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR
= 0x05,
513 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT
= 0x10,
514 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x11,
515 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT
= 0x14,
516 D3D11_FILTER_MIN_MAG_MIP_LINEAR
= 0x15,
517 D3D11_FILTER_ANISOTROPIC
= 0x55,
518 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT
= 0x80,
519 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR
= 0x81,
520 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x84,
521 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR
= 0x85,
522 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT
= 0x90,
523 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x91,
524 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT
= 0x94,
525 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR
= 0x95,
526 D3D11_FILTER_COMPARISON_ANISOTROPIC
= 0xd5
529 typedef enum D3D11_DSV_FLAG
531 D3D11_DSV_READ_ONLY_DEPTH
= 0x1,
532 D3D11_DSV_READ_ONLY_STENCIL
= 0x2,
535 typedef enum D3D11_INPUT_CLASSIFICATION
537 D3D11_INPUT_PER_VERTEX_DATA
,
538 D3D11_INPUT_PER_INSTANCE_DATA
,
539 } D3D11_INPUT_CLASSIFICATION
;
541 const UINT D3D11_APPEND_ALIGNED_ELEMENT
= 0xffffffff;
543 typedef struct D3D11_INPUT_ELEMENT_DESC
549 UINT AlignedByteOffset
;
550 D3D11_INPUT_CLASSIFICATION InputSlotClass
;
551 UINT InstanceDataStepRate
;
552 } D3D11_INPUT_ELEMENT_DESC
;
554 typedef enum D3D11_MAP
558 D3D11_MAP_READ_WRITE
,
559 D3D11_MAP_WRITE_DISCARD
,
560 D3D11_MAP_WRITE_NO_OVERWRITE
563 typedef enum D3D11_MAP_FLAG
565 D3D11_MAP_FLAG_DO_NOT_WAIT
= 0x00100000
568 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
570 UINT64 NumPrimitivesWritten
;
571 UINT64 PrimitivesStorageNeeded
;
572 } D3D11_QUERY_DATA_SO_STATISTICS
;
574 typedef struct D3D11_MAPPED_SUBRESOURCE
579 } D3D11_MAPPED_SUBRESOURCE
;
581 typedef enum D3D11_QUERY
584 D3D11_QUERY_OCCLUSION
,
585 D3D11_QUERY_TIMESTAMP
,
586 D3D11_QUERY_TIMESTAMP_DISJOINT
,
587 D3D11_QUERY_PIPELINE_STATISTICS
,
588 D3D11_QUERY_OCCLUSION_PREDICATE
,
589 D3D11_QUERY_SO_STATISTICS
,
590 D3D11_QUERY_SO_OVERFLOW_PREDICATE
,
591 D3D11_QUERY_SO_STATISTICS_STREAM0
,
592 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0
,
593 D3D11_QUERY_SO_STATISTICS_STREAM1
,
594 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1
,
595 D3D11_QUERY_SO_STATISTICS_STREAM2
,
596 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2
,
597 D3D11_QUERY_SO_STATISTICS_STREAM3
,
598 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3
,
601 typedef enum D3D11_QUERY_MISC_FLAG
603 D3D11_QUERY_MISC_PREDICATEHINT
= 0x1,
604 } D3D11_QUERY_MISC_FLAG
;
606 typedef enum D3D11_ASYNC_GETDATA_FLAG
608 D3D11_ASYNC_GETDATA_DONOTFLUSH
= 0x0001,
609 } D3D11_ASYNC_GETDATA_FLAG
;
611 typedef enum D3D11_RESOURCE_MISC_FLAG
613 D3D11_RESOURCE_MISC_GENERATE_MIPS
= 0x00000001L
,
614 D3D11_RESOURCE_MISC_SHARED
= 0x00000002L
,
615 D3D11_RESOURCE_MISC_TEXTURECUBE
= 0x00000004L
,
616 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
= 0x00000010L
,
617 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
= 0x00000020L
,
618 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
= 0x00000040L
,
619 D3D11_RESOURCE_MISC_RESOURCE_CLAMP
= 0x00000080L
,
620 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
= 0x00000100L
,
621 D3D11_RESOURCE_MISC_GDI_COMPATIBLE
= 0x00000200L
,
622 D3D11_RESOURCE_MISC_SHARED_NTHANDLE
= 0x00000800L
,
623 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
= 0x00001000L
,
624 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
= 0x00002000L
,
625 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
= 0x00004000L
,
626 D3D11_RESOURCE_MISC_GUARDED
= 0x00008000L
627 } D3D11_RESOURCE_MISC_FLAG
;
629 typedef struct D3D11_QUERY_DESC
635 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
636 cpp_quote
("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
637 cpp_quote
(" CD3D11_QUERY_DESC() {}")
638 cpp_quote
(" ~CD3D11_QUERY_DESC() {}")
639 cpp_quote
(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
640 cpp_quote
(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
641 cpp_quote
(" Query = query;")
642 cpp_quote
(" MiscFlags = misc_flags;")
644 cpp_quote
(" operator const D3D11_QUERY_DESC&() const {")
645 cpp_quote
(" return *this;")
650 typedef struct D3D11_RASTERIZER_DESC
652 D3D11_FILL_MODE FillMode
;
653 D3D11_CULL_MODE CullMode
;
654 BOOL FrontCounterClockwise
;
656 FLOAT DepthBiasClamp
;
657 FLOAT SlopeScaledDepthBias
;
658 BOOL DepthClipEnable
;
660 BOOL MultisampleEnable
;
661 BOOL AntialiasedLineEnable
;
662 } D3D11_RASTERIZER_DESC
;
664 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
665 cpp_quote
("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
666 cpp_quote
(" CD3D11_RASTERIZER_DESC() {}")
667 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
668 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
669 cpp_quote
(" FillMode = D3D11_FILL_SOLID;")
670 cpp_quote
(" CullMode = D3D11_CULL_BACK;")
671 cpp_quote
(" FrontCounterClockwise = FALSE;")
672 cpp_quote
(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
673 cpp_quote
(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
674 cpp_quote
(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
675 cpp_quote
(" DepthClipEnable = TRUE;")
676 cpp_quote
(" ScissorEnable = FALSE;")
677 cpp_quote
(" MultisampleEnable = FALSE;")
678 cpp_quote
(" AntialiasedLineEnable = FALSE;")
680 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
681 cpp_quote
(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
682 cpp_quote
(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
683 cpp_quote
(" FillMode = fillMode;")
684 cpp_quote
(" CullMode = cullMode;")
685 cpp_quote
(" FrontCounterClockwise = frontCounterClockwise;")
686 cpp_quote
(" DepthBias = depthBias;")
687 cpp_quote
(" DepthBiasClamp = depthBiasClamp;")
688 cpp_quote
(" SlopeScaledDepthBias = slopeScaledDepthBias;")
689 cpp_quote
(" DepthClipEnable = depthClipEnable;")
690 cpp_quote
(" ScissorEnable = scissorEnable;")
691 cpp_quote
(" MultisampleEnable = multisampleEnable;")
692 cpp_quote
(" AntialiasedLineEnable = antialiasedLineEnable;")
694 cpp_quote
(" ~CD3D11_RASTERIZER_DESC() {}")
695 cpp_quote
(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
699 typedef enum D3D11_RESOURCE_DIMENSION
701 D3D11_RESOURCE_DIMENSION_UNKNOWN
,
702 D3D11_RESOURCE_DIMENSION_BUFFER
,
703 D3D11_RESOURCE_DIMENSION_TEXTURE1D
,
704 D3D11_RESOURCE_DIMENSION_TEXTURE2D
,
705 D3D11_RESOURCE_DIMENSION_TEXTURE3D
,
706 } D3D11_RESOURCE_DIMENSION
;
708 typedef enum D3D11_RTV_DIMENSION
710 D3D11_RTV_DIMENSION_UNKNOWN
,
711 D3D11_RTV_DIMENSION_BUFFER
,
712 D3D11_RTV_DIMENSION_TEXTURE1D
,
713 D3D11_RTV_DIMENSION_TEXTURE1DARRAY
,
714 D3D11_RTV_DIMENSION_TEXTURE2D
,
715 D3D11_RTV_DIMENSION_TEXTURE2DARRAY
,
716 D3D11_RTV_DIMENSION_TEXTURE2DMS
,
717 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY
,
718 D3D11_RTV_DIMENSION_TEXTURE3D
,
719 } D3D11_RTV_DIMENSION
;
721 typedef struct D3D11_SO_DECLARATION_ENTRY
729 } D3D11_SO_DECLARATION_ENTRY
;
731 typedef enum D3D11_STENCIL_OP
733 D3D11_STENCIL_OP_KEEP
= 1,
734 D3D11_STENCIL_OP_ZERO
,
735 D3D11_STENCIL_OP_REPLACE
,
736 D3D11_STENCIL_OP_INCR_SAT
,
737 D3D11_STENCIL_OP_DECR_SAT
,
738 D3D11_STENCIL_OP_INVERT
,
739 D3D11_STENCIL_OP_INCR
,
740 D3D11_STENCIL_OP_DECR
743 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
745 cpp_quote
("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
746 cpp_quote
(" return MipSlice + ArraySlice * MipLevels;")
748 cpp_quote
("extern \"C\"{")
751 typedef struct D3D11_SUBRESOURCE_DATA
755 UINT SysMemSlicePitch
;
756 } D3D11_SUBRESOURCE_DATA
;
758 typedef struct D3D11_TEX1D_ARRAY_DSV
761 UINT FirstArraySlice
;
763 } D3D11_TEX1D_ARRAY_DSV
;
765 typedef struct D3D11_TEX1D_ARRAY_RTV
768 UINT FirstArraySlice
;
770 } D3D11_TEX1D_ARRAY_RTV
;
772 typedef struct D3D11_TEX1D_ARRAY_SRV
774 UINT MostDetailedMip
;
776 UINT FirstArraySlice
;
778 } D3D11_TEX1D_ARRAY_SRV
;
780 typedef struct D3D11_TEX1D_ARRAY_UAV
783 UINT FirstArraySlice
;
785 } D3D11_TEX1D_ARRAY_UAV
;
787 typedef struct D3D11_TEX1D_DSV
792 typedef struct D3D11_TEX1D_RTV
797 typedef struct D3D11_TEX1D_SRV
799 UINT MostDetailedMip
;
803 typedef struct D3D11_TEX1D_UAV
808 typedef struct D3D11_TEX2D_ARRAY_DSV
811 UINT FirstArraySlice
;
813 } D3D11_TEX2D_ARRAY_DSV
;
815 typedef struct D3D11_TEX2D_ARRAY_RTV
818 UINT FirstArraySlice
;
820 } D3D11_TEX2D_ARRAY_RTV
;
822 typedef struct D3D11_TEX2D_ARRAY_SRV
824 UINT MostDetailedMip
;
826 UINT FirstArraySlice
;
828 } D3D11_TEX2D_ARRAY_SRV
;
830 typedef struct D3D11_TEX2D_ARRAY_UAV
833 UINT FirstArraySlice
;
835 } D3D11_TEX2D_ARRAY_UAV
;
837 typedef struct D3D11_TEX2D_DSV
842 typedef struct D3D11_TEX2D_RTV
847 typedef struct D3D11_TEX2D_SRV
849 UINT MostDetailedMip
;
853 typedef struct D3D11_TEX2D_UAV
858 typedef struct D3D11_TEX2DMS_ARRAY_DSV
860 UINT FirstArraySlice
;
862 } D3D11_TEX2DMS_ARRAY_DSV
;
864 typedef struct D3D11_TEX2DMS_ARRAY_RTV
866 UINT FirstArraySlice
;
868 } D3D11_TEX2DMS_ARRAY_RTV
;
870 typedef struct D3D11_TEX2DMS_ARRAY_SRV
872 UINT FirstArraySlice
;
874 } D3D11_TEX2DMS_ARRAY_SRV
;
876 typedef struct D3D11_TEX2DMS_DSV
878 UINT UnusedField_NothingToDefine
;
881 typedef struct D3D11_TEX2DMS_RTV
883 UINT UnusedField_NothingToDefine
;
886 typedef struct D3D11_TEX2DMS_SRV
888 UINT UnusedField_NothingToDefine
;
891 typedef struct D3D11_TEX3D_RTV
898 typedef struct D3D11_TEX3D_SRV
900 UINT MostDetailedMip
;
904 typedef struct D3D11_TEX3D_UAV
911 typedef struct D3D11_TEXCUBE_ARRAY_SRV
913 UINT MostDetailedMip
;
915 UINT First2DArrayFace
;
917 } D3D11_TEXCUBE_ARRAY_SRV
;
919 typedef struct D3D11_TEXCUBE_SRV
921 UINT MostDetailedMip
;
925 typedef enum D3D11_TEXTURE_ADDRESS_MODE
927 D3D11_TEXTURE_ADDRESS_WRAP
= 1,
928 D3D11_TEXTURE_ADDRESS_MIRROR
,
929 D3D11_TEXTURE_ADDRESS_CLAMP
,
930 D3D11_TEXTURE_ADDRESS_BORDER
,
931 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
932 } D3D11_TEXTURE_ADDRESS_MODE
;
934 typedef enum D3D11_UAV_DIMENSION
936 D3D11_UAV_DIMENSION_UNKNOWN
,
937 D3D11_UAV_DIMENSION_BUFFER
,
938 D3D11_UAV_DIMENSION_TEXTURE1D
,
939 D3D11_UAV_DIMENSION_TEXTURE1DARRAY
,
940 D3D11_UAV_DIMENSION_TEXTURE2D
,
941 D3D11_UAV_DIMENSION_TEXTURE2DARRAY
,
942 D3D11_UAV_DIMENSION_TEXTURE3D
= 8,
943 } D3D11_UAV_DIMENSION
;
945 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
948 D3D11_UAV_DIMENSION ViewDimension
;
952 D3D11_BUFFER_UAV Buffer
;
953 D3D11_TEX1D_UAV Texture1D
;
954 D3D11_TEX1D_ARRAY_UAV Texture1DArray
;
955 D3D11_TEX2D_UAV Texture2D
;
956 D3D11_TEX2D_ARRAY_UAV Texture2DArray
;
957 D3D11_TEX3D_UAV Texture3D
;
959 } D3D11_UNORDERED_ACCESS_VIEW_DESC
;
961 typedef enum D3D11_USAGE
964 D3D11_USAGE_IMMUTABLE
,
969 typedef enum D3D11_BIND_FLAG
971 D3D11_BIND_VERTEX_BUFFER
= 0x0001,
972 D3D11_BIND_INDEX_BUFFER
= 0x0002,
973 D3D11_BIND_CONSTANT_BUFFER
= 0x0004,
974 D3D11_BIND_SHADER_RESOURCE
= 0x0008,
975 D3D11_BIND_STREAM_OUTPUT
= 0x0010,
976 D3D11_BIND_RENDER_TARGET
= 0x0020,
977 D3D11_BIND_DEPTH_STENCIL
= 0x0040,
978 D3D11_BIND_UNORDERED_ACCESS
= 0x0080,
979 D3D11_BIND_DECODER
= 0x0200,
980 D3D11_BIND_VIDEO_ENCODER
= 0x0400
983 typedef enum D3D11_CPU_ACCESS_FLAG
985 D3D11_CPU_ACCESS_WRITE
= 0x00010000,
986 D3D11_CPU_ACCESS_READ
= 0x00020000
987 } D3D11_CPU_ACCESS_FLAG
;
989 typedef struct D3D11_VIEWPORT
999 typedef enum D3D11_COLOR_WRITE_ENABLE
1001 D3D11_COLOR_WRITE_ENABLE_RED
= 1,
1002 D3D11_COLOR_WRITE_ENABLE_GREEN
= 2,
1003 D3D11_COLOR_WRITE_ENABLE_BLUE
= 4,
1004 D3D11_COLOR_WRITE_ENABLE_ALPHA
= 8,
1005 D3D11_COLOR_WRITE_ENABLE_ALL
=
1006 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA
)
1007 } D3D11_COLOR_WRITE_ENABLE
;
1009 typedef enum D3D11_FORMAT_SUPPORT
1011 D3D11_FORMAT_SUPPORT_BUFFER
= 0x00000001,
1012 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
= 0x00000002,
1013 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
= 0x00000004,
1014 D3D11_FORMAT_SUPPORT_SO_BUFFER
= 0x00000008,
1015 D3D11_FORMAT_SUPPORT_TEXTURE1D
= 0x00000010,
1016 D3D11_FORMAT_SUPPORT_TEXTURE2D
= 0x00000020,
1017 D3D11_FORMAT_SUPPORT_TEXTURE3D
= 0x00000040,
1018 D3D11_FORMAT_SUPPORT_TEXTURECUBE
= 0x00000080,
1019 D3D11_FORMAT_SUPPORT_SHADER_LOAD
= 0x00000100,
1020 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE
= 0x00000200,
1021 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON
= 0x00000400,
1022 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT
= 0x00000800,
1023 D3D11_FORMAT_SUPPORT_MIP
= 0x00001000,
1024 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
= 0x00002000,
1025 D3D11_FORMAT_SUPPORT_RENDER_TARGET
= 0x00004000,
1026 D3D11_FORMAT_SUPPORT_BLENDABLE
= 0x00008000,
1027 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL
= 0x00010000,
1028 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE
= 0x00020000,
1029 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
= 0x00040000,
1030 D3D11_FORMAT_SUPPORT_DISPLAY
= 0x00080000,
1031 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT
= 0x00100000,
1032 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
= 0x00200000,
1033 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
= 0x00400000,
1034 D3D11_FORMAT_SUPPORT_SHADER_GATHER
= 0x00800000,
1035 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST
= 0x01000000,
1036 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW
= 0x02000000,
1037 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON
= 0x04000000,
1038 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT
= 0x08000000,
1039 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT
= 0x10000000,
1040 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT
= 0x20000000,
1041 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER
= 0x40000000,
1042 } D3D11_FORMAT_SUPPORT
;
1044 typedef enum D3D11_CLEAR_FLAG
1046 D3D11_CLEAR_DEPTH
= 0x0001L
,
1047 D3D11_CLEAR_STENCIL
= 0x0002L
1050 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1053 D3D11_BLEND SrcBlend
;
1054 D3D11_BLEND DestBlend
;
1055 D3D11_BLEND_OP BlendOp
;
1056 D3D11_BLEND SrcBlendAlpha
;
1057 D3D11_BLEND DestBlendAlpha
;
1058 D3D11_BLEND_OP BlendOpAlpha
;
1059 UINT8 RenderTargetWriteMask
;
1060 } D3D11_RENDER_TARGET_BLEND_DESC
;
1062 typedef struct D3D11_BLEND_DESC
1064 BOOL AlphaToCoverageEnable
;
1065 BOOL IndependentBlendEnable
;
1066 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget
[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
];
1069 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1070 cpp_quote
("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1071 cpp_quote
(" CD3D11_BLEND_DESC() {}")
1072 cpp_quote
(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1073 cpp_quote
(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1074 cpp_quote
(" AlphaToCoverageEnable = FALSE;")
1075 cpp_quote
(" IndependentBlendEnable = FALSE;")
1076 cpp_quote
(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1077 cpp_quote
(" target->BlendEnable = FALSE;")
1078 cpp_quote
(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1079 cpp_quote
(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1080 cpp_quote
(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1081 cpp_quote
(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1084 cpp_quote
(" ~CD3D11_BLEND_DESC() {}")
1085 cpp_quote
(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1087 cpp_quote
("#endif" )
1089 typedef struct D3D11_BUFFER_DESC
1094 UINT CPUAccessFlags
;
1096 UINT StructureByteStride
;
1097 } D3D11_BUFFER_DESC
;
1099 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1100 cpp_quote
("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1101 cpp_quote
(" CD3D11_BUFFER_DESC() {}" )
1102 cpp_quote
(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1103 cpp_quote
(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1104 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1105 cpp_quote
(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1106 cpp_quote
(" ByteWidth = byteWidth;")
1107 cpp_quote
(" Usage = usage;")
1108 cpp_quote
(" BindFlags = bindFlags;")
1109 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1110 cpp_quote
(" MiscFlags = miscFlags;" )
1111 cpp_quote
(" StructureByteStride = structureByteStride;")
1113 cpp_quote
(" ~CD3D11_BUFFER_DESC() {}")
1114 cpp_quote
(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1116 cpp_quote
("#endif" )
1118 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1121 D3D11_DSV_DIMENSION ViewDimension
;
1126 D3D11_TEX1D_DSV Texture1D
;
1127 D3D11_TEX1D_ARRAY_DSV Texture1DArray
;
1128 D3D11_TEX2D_DSV Texture2D
;
1129 D3D11_TEX2D_ARRAY_DSV Texture2DArray
;
1130 D3D11_TEX2DMS_DSV Texture2DMS
;
1131 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray
;
1133 } D3D11_DEPTH_STENCIL_VIEW_DESC
;
1135 typedef struct D3D11_DEPTH_STENCILOP_DESC
1137 D3D11_STENCIL_OP StencilFailOp
;
1138 D3D11_STENCIL_OP StencilDepthFailOp
;
1139 D3D11_STENCIL_OP StencilPassOp
;
1140 D3D11_COMPARISON_FUNC StencilFunc
;
1141 } D3D11_DEPTH_STENCILOP_DESC
;
1143 typedef struct D3D11_DEPTH_STENCIL_DESC
1146 D3D11_DEPTH_WRITE_MASK DepthWriteMask
;
1147 D3D11_COMPARISON_FUNC DepthFunc
;
1149 UINT8 StencilReadMask
;
1150 UINT8 StencilWriteMask
;
1151 D3D11_DEPTH_STENCILOP_DESC FrontFace
;
1152 D3D11_DEPTH_STENCILOP_DESC BackFace
;
1153 } D3D11_DEPTH_STENCIL_DESC
;
1155 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1158 D3D11_RTV_DIMENSION ViewDimension
;
1162 D3D11_BUFFER_RTV Buffer
;
1163 D3D11_TEX1D_RTV Texture1D
;
1164 D3D11_TEX1D_ARRAY_RTV Texture1DArray
;
1165 D3D11_TEX2D_RTV Texture2D
;
1166 D3D11_TEX2D_ARRAY_RTV Texture2DArray
;
1167 D3D11_TEX2DMS_RTV Texture2DMS
;
1168 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray
;
1169 D3D11_TEX3D_RTV Texture3D
;
1171 } D3D11_RENDER_TARGET_VIEW_DESC
;
1173 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1174 cpp_quote
("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1175 cpp_quote
(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1176 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1177 cpp_quote
(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1178 cpp_quote
(" Format = format;")
1179 cpp_quote
(" ViewDimension = dim;")
1180 cpp_quote
(" switch(dim) {")
1181 cpp_quote
(" case D3D11_RTV_DIMENSION_BUFFER:")
1182 cpp_quote
(" Buffer.FirstElement = mip_slice;")
1183 cpp_quote
(" Buffer.NumElements = first_slice;")
1184 cpp_quote
(" break;")
1185 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1186 cpp_quote
(" Texture1D.MipSlice = mip_slice;")
1187 cpp_quote
(" break;")
1188 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1189 cpp_quote
(" Texture1DArray.MipSlice = mip_slice;")
1190 cpp_quote
(" Texture1DArray.FirstArraySlice = first_slice;")
1191 cpp_quote
(" Texture1DArray.ArraySize = array_size;")
1192 cpp_quote
(" break;")
1193 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1194 cpp_quote
(" Texture2D.MipSlice = mip_slice;")
1195 cpp_quote
(" break;")
1196 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1197 cpp_quote
(" Texture2DArray.MipSlice = mip_slice;")
1198 cpp_quote
(" Texture2DArray.FirstArraySlice = first_slice;")
1199 cpp_quote
(" Texture2DArray.ArraySize = array_size;")
1200 cpp_quote
(" break;")
1201 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1202 cpp_quote
(" Texture2DMSArray.FirstArraySlice = first_slice;")
1203 cpp_quote
(" Texture2DMSArray.ArraySize = array_size;")
1204 cpp_quote
(" break;")
1205 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1206 cpp_quote
(" Texture3D.MipSlice = mip_slice;")
1207 cpp_quote
(" Texture3D.FirstWSlice = first_slice;")
1208 cpp_quote
(" Texture3D.WSize = array_size;")
1209 cpp_quote
(" break;")
1210 cpp_quote
(" default:")
1211 cpp_quote
(" break;")
1214 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1215 cpp_quote
(" UINT elem_cnt) {")
1216 cpp_quote
(" Format = format;")
1217 cpp_quote
(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1218 cpp_quote
(" Buffer.FirstElement = first_elem;")
1219 cpp_quote
(" Buffer.NumElements = elem_cnt;")
1221 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1222 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1223 cpp_quote
(" UINT array_size = -1);") /* FIXME: implement */
1224 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1225 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1226 cpp_quote
(" UINT array_size = -1);") /* FIXME: implement */
1227 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1228 cpp_quote
(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1229 cpp_quote
(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1230 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1231 cpp_quote
(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1232 cpp_quote
(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1233 cpp_quote
(" return *this;")
1239 typedef struct D3D11_SAMPLER_DESC
1241 D3D11_FILTER Filter
;
1242 D3D11_TEXTURE_ADDRESS_MODE AddressU
;
1243 D3D11_TEXTURE_ADDRESS_MODE AddressV
;
1244 D3D11_TEXTURE_ADDRESS_MODE AddressW
;
1247 D3D11_COMPARISON_FUNC ComparisonFunc
;
1248 FLOAT BorderColor
[4];
1251 } D3D11_SAMPLER_DESC
;
1253 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1254 cpp_quote
("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1255 cpp_quote
(" CD3D11_SAMPLER_DESC() {}")
1256 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1257 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1258 cpp_quote
(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1259 cpp_quote
(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1260 cpp_quote
(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1261 cpp_quote
(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1262 cpp_quote
(" MipLODBias = 0;")
1263 cpp_quote
(" MaxAnisotropy = 1;")
1264 cpp_quote
(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1265 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1266 cpp_quote
(" MinLOD = -3.402823466e+38f;")
1267 cpp_quote
(" MaxLOD = 3.402823466e+38f;")
1269 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1270 cpp_quote
(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1271 cpp_quote
(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1272 cpp_quote
(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1273 cpp_quote
(" Filter = filter;")
1274 cpp_quote
(" AddressU = addressU;")
1275 cpp_quote
(" AddressV = addressV;")
1276 cpp_quote
(" AddressW = addressW;")
1277 cpp_quote
(" MipLODBias = mipLODBias;")
1278 cpp_quote
(" MaxAnisotropy = maxAnisotropy;")
1279 cpp_quote
(" ComparisonFunc = comparisonFunc;")
1280 cpp_quote
(" if(borderColor) {")
1281 cpp_quote
(" BorderColor[0] = borderColor[0];")
1282 cpp_quote
(" BorderColor[1] = borderColor[1];")
1283 cpp_quote
(" BorderColor[2] = borderColor[2];")
1284 cpp_quote
(" BorderColor[3] = borderColor[3];")
1285 cpp_quote
(" }else {")
1286 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1288 cpp_quote
(" MinLOD = minLOD;")
1289 cpp_quote
(" MaxLOD = maxLOD;")
1291 cpp_quote
(" ~CD3D11_SAMPLER_DESC() {}")
1292 cpp_quote
(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1296 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1299 D3D11_SRV_DIMENSION ViewDimension
;
1303 D3D11_BUFFER_SRV Buffer
;
1304 D3D11_TEX1D_SRV Texture1D
;
1305 D3D11_TEX1D_ARRAY_SRV Texture1DArray
;
1306 D3D11_TEX2D_SRV Texture2D
;
1307 D3D11_TEX2D_ARRAY_SRV Texture2DArray
;
1308 D3D11_TEX2DMS_SRV Texture2DMS
;
1309 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray
;
1310 D3D11_TEX3D_SRV Texture3D
;
1311 D3D11_TEXCUBE_SRV TextureCube
;
1312 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray
;
1313 D3D11_BUFFEREX_SRV BufferEx
;
1315 } D3D11_SHADER_RESOURCE_VIEW_DESC
;
1317 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1318 cpp_quote
("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1319 cpp_quote
(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1320 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1321 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1322 cpp_quote
(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1323 cpp_quote
(" Format = format;")
1324 cpp_quote
(" ViewDimension = dim;")
1325 cpp_quote
(" switch(ViewDimension) {")
1326 cpp_quote
(" case D3D11_SRV_DIMENSION_BUFFER:")
1327 cpp_quote
(" Buffer.FirstElement = most_detailed_mip;")
1328 cpp_quote
(" Buffer.NumElements = mip_levels;")
1329 cpp_quote
(" break;")
1330 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1331 cpp_quote
(" Texture1D.MostDetailedMip = most_detailed_mip;")
1332 cpp_quote
(" Texture1D.MipLevels = mip_levels;")
1333 cpp_quote
(" break;")
1334 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1335 cpp_quote
(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1336 cpp_quote
(" Texture1DArray.MipLevels = mip_levels;")
1337 cpp_quote
(" Texture1DArray.FirstArraySlice = first_slice;")
1338 cpp_quote
(" Texture1DArray.ArraySize = array_size;")
1339 cpp_quote
(" break;")
1340 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1341 cpp_quote
(" Texture2D.MostDetailedMip = most_detailed_mip;")
1342 cpp_quote
(" Texture2D.MipLevels = mip_levels;")
1343 cpp_quote
(" break;")
1344 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1345 cpp_quote
(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1346 cpp_quote
(" Texture2DArray.MipLevels = mip_levels;")
1347 cpp_quote
(" Texture2DArray.FirstArraySlice = first_slice;")
1348 cpp_quote
(" Texture2DArray.ArraySize = array_size;")
1349 cpp_quote
(" break;")
1350 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1351 cpp_quote
(" Texture2DMSArray.FirstArraySlice = first_slice;")
1352 cpp_quote
(" Texture2DMSArray.ArraySize = array_size;")
1353 cpp_quote
(" break;")
1354 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1355 cpp_quote
(" Texture3D.MostDetailedMip = most_detailed_mip;")
1356 cpp_quote
(" Texture3D.MipLevels = mip_levels;")
1357 cpp_quote
(" break;")
1358 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1359 cpp_quote
(" TextureCube.MostDetailedMip = most_detailed_mip;")
1360 cpp_quote
(" TextureCube.MipLevels = mip_levels;")
1361 cpp_quote
(" break;")
1362 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1363 cpp_quote
(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1364 cpp_quote
(" TextureCubeArray.MipLevels = mip_levels;")
1365 cpp_quote
(" TextureCubeArray.First2DArrayFace = first_slice;")
1366 cpp_quote
(" TextureCubeArray.NumCubes = array_size;")
1367 cpp_quote
(" break;")
1368 cpp_quote
(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1369 cpp_quote
(" BufferEx.FirstElement = most_detailed_mip;")
1370 cpp_quote
(" BufferEx.NumElements = mip_levels;")
1371 cpp_quote
(" BufferEx.Flags = flags;")
1372 cpp_quote
(" break;")
1373 cpp_quote
(" default:")
1374 cpp_quote
(" break;")
1377 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1378 cpp_quote
(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1379 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1380 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1381 cpp_quote
(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1382 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1383 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1384 cpp_quote
(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1385 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1386 cpp_quote
(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1387 cpp_quote
(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1388 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1389 cpp_quote
(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1390 cpp_quote
(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1391 cpp_quote
(" return *this;")
1396 typedef struct D3D11_TEXTURE1D_DESC
1404 UINT CPUAccessFlags
;
1406 } D3D11_TEXTURE1D_DESC
;
1408 typedef struct D3D11_TEXTURE2D_DESC
1415 DXGI_SAMPLE_DESC SampleDesc
;
1418 UINT CPUAccessFlags
;
1420 } D3D11_TEXTURE2D_DESC
;
1422 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1423 cpp_quote
("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1424 cpp_quote
(" CD3D11_TEXTURE2D_DESC() {}")
1425 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1426 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1427 cpp_quote
(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1428 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1429 cpp_quote
(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1430 cpp_quote
(" Width = width;")
1431 cpp_quote
(" Height = height;")
1432 cpp_quote
(" MipLevels = mipLevels;")
1433 cpp_quote
(" ArraySize = arraySize;")
1434 cpp_quote
(" Format = format;")
1435 cpp_quote
(" SampleDesc.Count = sampleCount;")
1436 cpp_quote
(" SampleDesc.Quality = sampleQuality;")
1437 cpp_quote
(" Usage = usage;")
1438 cpp_quote
(" BindFlags = bindFlags;")
1439 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1440 cpp_quote
(" MiscFlags = miscFlags;")
1442 cpp_quote
(" ~CD3D11_TEXTURE2D_DESC() {}")
1443 cpp_quote
(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1447 typedef struct D3D11_TEXTURE3D_DESC
1456 UINT CPUAccessFlags
;
1458 } D3D11_TEXTURE3D_DESC
;
1460 typedef struct D3D11_VIDEO_DECODER_DESC
1465 DXGI_FORMAT OutputFormat
;
1466 } D3D11_VIDEO_DECODER_DESC
;
1468 typedef struct D3D11_VIDEO_DECODER_CONFIG
1470 GUID guidConfigBitstreamEncryption
;
1471 GUID guidConfigMBcontrolEncryption
;
1472 GUID guidConfigResidDiffEncryption
;
1473 UINT ConfigBitstreamRaw
;
1474 UINT ConfigMBcontrolRasterOrder
;
1475 UINT ConfigResidDiffHost
;
1476 UINT ConfigSpatialResid8
;
1477 UINT ConfigResid8Subtraction
;
1478 UINT ConfigSpatialHost8or9Clipping
;
1479 UINT ConfigSpatialResidInterleaved
;
1480 UINT ConfigIntraResidUnsigned
;
1481 UINT ConfigResidDiffAccelerator
;
1482 UINT ConfigHostInverseScan
;
1483 UINT ConfigSpecificIDCT
;
1484 UINT Config4GroupedCoefs
;
1485 USHORT ConfigMinRenderTargetBuffCount
;
1486 USHORT ConfigDecoderSpecific
;
1487 } D3D11_VIDEO_DECODER_CONFIG
;
1489 typedef enum D3D11_VIDEO_FRAME_FORMAT
1491 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE
= 0,
1492 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST
= 1,
1493 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST
= 2
1494 } D3D11_VIDEO_FRAME_FORMAT
;
1496 typedef enum D3D11_VIDEO_USAGE
1498 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL
= 0,
1499 D3D11_VIDEO_USAGE_OPTIMAL_SPEED
= 1,
1500 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY
= 2
1501 } D3D11_VIDEO_USAGE
;
1503 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1505 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat
;
1506 DXGI_RATIONAL InputFrameRate
;
1509 DXGI_RATIONAL OutputFrameRate
;
1512 D3D11_VIDEO_USAGE Usage
;
1513 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC
;
1515 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1520 UINT InputFormatCaps
;
1521 UINT AutoStreamCaps
;
1523 UINT RateConversionCapsCount
;
1524 UINT MaxInputStreams
;
1525 UINT MaxStreamStates
;
1526 } D3D11_VIDEO_PROCESSOR_CAPS
;
1528 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1534 UINT CustomRateCount
;
1535 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
;
1537 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1539 DXGI_RATIONAL CustomRate
;
1541 BOOL InputInterlaced
;
1542 UINT InputFramesOrFields
;
1543 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
;
1545 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1547 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS
= 0,
1548 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST
= 1,
1549 D3D11_VIDEO_PROCESSOR_FILTER_HUE
= 2,
1550 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION
= 3,
1551 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION
= 4,
1552 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT
= 5,
1553 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING
= 6,
1554 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT
= 7
1555 } D3D11_VIDEO_PROCESSOR_FILTER
;
1557 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1563 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE
;
1565 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1567 D3D11_AUTHENTICATED_CHANNEL_D3D11
= 1,
1568 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE
= 2,
1569 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE
= 3
1570 } D3D11_AUTHENTICATED_CHANNEL_TYPE
;
1572 typedef enum D3D11_VDOV_DIMENSION
1574 D3D11_VDOV_DIMENSION_UNKNOWN
= 0,
1575 D3D11_VDOV_DIMENSION_TEXTURE2D
= 1
1576 } D3D11_VDOV_DIMENSION
;
1578 typedef struct D3D11_TEX2D_VDOV
1583 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1586 D3D11_VDOV_DIMENSION ViewDimension
;
1588 D3D11_TEX2D_VDOV Texture2D
;
1590 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
;
1592 typedef enum D3D11_VPIV_DIMENSION
1594 D3D11_VPIV_DIMENSION_UNKNOWN
= 0,
1595 D3D11_VPIV_DIMENSION_TEXTURE2D
= 1
1596 } D3D11_VPIV_DIMENSION
;
1598 typedef struct D3D11_TEX2D_VPIV
1604 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1607 D3D11_VPIV_DIMENSION ViewDimension
;
1609 D3D11_TEX2D_VPIV Texture2D
;
1611 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
;
1613 typedef enum D3D11_VPOV_DIMENSION
1615 D3D11_VPOV_DIMENSION_UNKNOWN
= 0,
1616 D3D11_VPOV_DIMENSION_TEXTURE2D
= 1,
1617 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY
= 2
1618 } D3D11_VPOV_DIMENSION
;
1620 typedef struct D3D11_TEX2D_VPOV
1625 typedef struct D3D11_TEX2D_ARRAY_VPOV
1628 UINT FirstArraySlice
;
1630 } D3D11_TEX2D_ARRAY_VPOV
;
1632 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1634 D3D11_VPOV_DIMENSION ViewDimension
;
1636 D3D11_TEX2D_VPOV Texture2D
;
1637 D3D11_TEX2D_ARRAY_VPOV Texture2DArray
;
1639 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
;
1641 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1644 UINT KeyExchangeTypeCount
;
1645 UINT BlockAlignmentSize
;
1646 ULONGLONG ProtectedMemorySize
;
1647 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS
;
1649 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1651 UINT NumEncryptedBytesAtBeginning
;
1652 UINT NumBytesInSkipPattern
;
1653 UINT NumBytesInEncryptPattern
;
1654 } D3D11_ENCRYPTED_BLOCK_INFO
;
1656 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
1658 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType
;
1662 UINT FirstMBaddress
;
1663 UINT NumMBsInBuffer
;
1670 BOOL PartialEncryption
;
1671 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo
;
1672 } D3D11_VIDEO_DECODER_BUFFER_DESC
;
1674 typedef struct D3D11_VIDEO_DECODER_EXTENSION
1677 void *pPrivateInputData
;
1678 UINT PrivateInputDataSize
;
1679 void *pPrivateOutputData
;
1680 UINT PrivateOutputDataSize
;
1682 ID3D11Resource
**ppResourceList
;
1683 } D3D11_VIDEO_DECODER_EXTENSION
;
1685 typedef struct D3D11_VIDEO_COLOR_YCbCrA
1691 } D3D11_VIDEO_COLOR_YCbCrA
;
1693 typedef struct D3D11_VIDEO_COLOR_RGBA
1699 } D3D11_VIDEO_COLOR_RGBA
;
1701 typedef struct D3D11_VIDEO_COLOR
1705 D3D11_VIDEO_COLOR_YCbCrA YCbCr
;
1706 D3D11_VIDEO_COLOR_RGBA RGBA
;
1708 } D3D11_VIDEO_COLOR
;
1710 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
1714 UINT YCbCr_Matrix
: 1;
1715 UINT YCbCr_xvYCC
: 1;
1716 UINT Nominal_Range
: 2;
1718 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE
;
1720 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
1724 UINT InputFrameOrField
;
1727 ID3D11VideoProcessorInputView
**ppPastSurfaces
;
1728 ID3D11VideoProcessorInputView
*pInputSurface
;
1729 ID3D11VideoProcessorInputView
**ppFutureSurfaces
;
1730 ID3D11VideoProcessorInputView
**ppPastSurfacesRight
;
1731 ID3D11VideoProcessorInputView
*pInputSurfaceRight
;
1732 ID3D11VideoProcessorInputView
**ppFutureSurfacesRight
;
1733 } D3D11_VIDEO_PROCESSOR_STREAM
;
1735 typedef struct D3D11_OMAC
1737 BYTE Omac
[D3D11_OMAC_SIZE
];
1740 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
1745 UINT SequenceNumber
;
1747 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
;
1749 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
1753 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
;
1758 uuid(1841e5c8
-16b0
-489b
-bcc8
-44cfb0d5deae
)
1760 interface ID3D11DeviceChild
: IUnknown
1763 [out] ID3D11Device
**ppDevice
);
1764 HRESULT GetPrivateData
(
1766 [in, out] UINT
*pDataSize
,
1768 HRESULT SetPrivateData
(
1771 [in] const void *pData
);
1772 HRESULT SetPrivateDataInterface
(
1774 [in] const IUnknown
*pData
);
1780 uuid(4b35d0cd
-1e15
-4258-9c98
-1b1333f6dd3b
)
1782 interface ID3D11Asynchronous
: ID3D11DeviceChild
1790 uuid(d6c00747
-87b7
-425e
-b84d
-44d108560afd
)
1792 interface ID3D11Query
: ID3D11Asynchronous
1795 [out] D3D11_QUERY_DESC
*pDesc
);
1801 uuid(dc8e63f3
-d12b
-4952-b47b
-5e45026a862d
)
1803 interface ID3D11Resource
: ID3D11DeviceChild
1806 [out] D3D11_RESOURCE_DIMENSION
*pResourceDimension
);
1807 void SetEvictionPriority
(
1808 [in] UINT EvictionPriority
);
1809 UINT GetEvictionPriority
();
1815 uuid(839d1216
-bb2e
-412b
-b7f4
-a9dbebe08ed1
)
1817 interface ID3D11View
: ID3D11DeviceChild
1820 [out] ID3D11Resource
**ppResource
);
1826 uuid(75b68faa
-347d
-4159-8f45
-a0640f01cd9a
)
1828 interface ID3D11BlendState
: ID3D11DeviceChild
1831 [out] D3D11_BLEND_DESC
*pDesc
);
1837 uuid(48570b85
-d1ee
-4fcd
-a250
-eb350722b037
)
1839 interface ID3D11Buffer
: ID3D11Resource
1842 [out] D3D11_BUFFER_DESC
*pDesc
);
1848 uuid(a6cd7faa
-b0b7
-4a2f
-9436-8662a65797cb
)
1850 interface ID3D11ClassInstance
: ID3D11DeviceChild
1852 void GetClassLinkage
(
1853 [out] ID3D11ClassLinkage
**ppLinkage
);
1855 [out] D3D11_CLASS_INSTANCE_DESC
*pDesc
);
1856 void GetInstanceName
(
1857 [out] LPSTR pInstanceName
,
1858 [in, out] SIZE_T
*pBufferLength
);
1860 [out] LPSTR pTypeName
,
1861 [in, out] SIZE_T
*pBufferLength
);
1867 uuid(ddf57cba
-9543-46e4
-a12b
-f207a0fe7fed
)
1869 interface ID3D11ClassLinkage
: ID3D11DeviceChild
1871 HRESULT GetClassInstance
(
1872 [in] LPCSTR pClassInstanceName
,
1873 [in] UINT InstanceIndex
,
1874 [out] ID3D11ClassInstance
**ppInstance
);
1875 HRESULT CreateClassInstance
(
1876 [in] LPCSTR pClassTypeName
,
1877 [in] UINT ConstantBufferOffset
,
1878 [in] UINT ConstantVectorOffset
,
1879 [in] UINT TextureOffset
,
1880 [in] UINT SamplerOffset
,
1881 [out] ID3D11ClassInstance
**ppInstance
);
1887 uuid(a24bc4d1
-769e-43f7
-8013-98ff566c18e2
)
1889 interface ID3D11CommandList
: ID3D11DeviceChild
1891 UINT GetContextFlags
();
1897 uuid(4f5b196e
-c2bd
-495e
-bd01
-1fded38e4969
)
1899 interface ID3D11ComputeShader
: ID3D11DeviceChild
1906 uuid(6e8c49fb
-a371
-4770-b440
-29086022b741
)
1908 interface ID3D11Counter
: ID3D11Asynchronous
1911 [out] D3D11_COUNTER_DESC
*pDesc
);
1917 uuid(03823efb
-8d8f
-4e1c
-9aa2
-f64bb2cbfdf1
)
1919 interface ID3D11DepthStencilState
: ID3D11DeviceChild
1922 [out] D3D11_DEPTH_STENCIL_DESC
*pDesc
);
1928 uuid(9fdac92a
-1876-48c3
-afad
-25b94f84a9b6
)
1930 interface ID3D11DepthStencilView
: ID3D11View
1933 [out] D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
);
1939 uuid(f582c508
-0f36
-490c
-9977-31eece268cfa
)
1941 interface ID3D11DomainShader
: ID3D11DeviceChild
1948 uuid(38325b96
-effb
-4022-ba02
-2e795b70275c
)
1950 interface ID3D11GeometryShader
: ID3D11DeviceChild
1957 uuid(8e5c6061
-628a
-4c8e
-8264
-bbe45cb3d5dd
)
1959 interface ID3D11HullShader
: ID3D11DeviceChild
1966 uuid(e4819ddc
-4cf0
-4025-bd26
-5de82a3e07b7
)
1968 interface ID3D11InputLayout
: ID3D11DeviceChild
1975 uuid(ea82e40d
-51dc
-4f33
-93d4
-db7c9125ae8c
)
1977 interface ID3D11PixelShader
: ID3D11DeviceChild
1984 uuid(9eb576dd
-9f77
-4d86
-81aa
-8bab5fe490e2
)
1986 interface ID3D11Predicate
: ID3D11Query
1993 uuid(9bb4ab81
-ab1a
-4d8f
-b506
-fc04200b6ee7
)
1995 interface ID3D11RasterizerState
: ID3D11DeviceChild
1998 [out] D3D11_RASTERIZER_DESC
*pDesc
);
2004 uuid(dfdba067
-0b8d
-4865-875b
-d7b4516cc164
)
2006 interface ID3D11RenderTargetView
: ID3D11View
2009 [out] D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
);
2015 uuid(da6fea51
-564c
-4487-9810-f0d0f9b4e3a5
)
2017 interface ID3D11SamplerState
: ID3D11DeviceChild
2020 [out] D3D11_SAMPLER_DESC
*pDesc
);
2026 uuid(b0e06fe0
-8192-4e1a
-b1ca
-36d7414710b2
)
2028 interface ID3D11ShaderResourceView
: ID3D11View
2031 [out] D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
);
2037 uuid(f8fb5c27
-c6b3
-4f75
-a4c8
-439af2ef564c
),
2039 interface ID3D11Texture1D
: ID3D11Resource
2042 [out] D3D11_TEXTURE1D_DESC
*pDesc
);
2048 uuid(6f15aaf2
-d208
-4e89
-9ab4
-489535d34f9c
)
2050 interface ID3D11Texture2D
: ID3D11Resource
2053 [out] D3D11_TEXTURE2D_DESC
*pDesc
);
2059 uuid(037e866e
-f56d
-4357-a8af
-9dabbe6e250e
)
2061 interface ID3D11Texture3D
: ID3D11Resource
2064 [out] D3D11_TEXTURE3D_DESC
*pDesc
);
2070 uuid(28acf509
-7f5c
-48f6
-8611-f316010a6380
)
2072 interface ID3D11UnorderedAccessView
: ID3D11View
2075 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
);
2081 uuid(3b301d64
-d678
-4289-8897-22f8928b72f3
)
2083 interface ID3D11VertexShader
: ID3D11DeviceChild
2090 uuid(c0bfa96c
-e089
-44fb
-8eaf
-26f8796190da
)
2092 interface ID3D11DeviceContext
: ID3D11DeviceChild
2094 void VSSetConstantBuffers
(
2095 [in] UINT StartSlot
,
2096 [in] UINT NumBuffers
,
2097 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2098 void PSSetShaderResources
(
2099 [in] UINT StartSlot
,
2101 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2103 [in] ID3D11PixelShader
*pPixelShader
,
2104 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2105 UINT NumClassInstances
);
2107 [in] UINT StartSlot
,
2108 [in] UINT NumSamplers
,
2109 [in] ID3D11SamplerState
*const *ppSamplers
);
2111 [in] ID3D11VertexShader
*pVertexShader
,
2112 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2113 UINT NumClassInstances
);
2115 [in] UINT IndexCount
,
2116 [in] UINT StartIndexLocation
,
2117 [in] INT BaseVertexLocation
);
2119 [in] UINT VertexCount
,
2120 [in] UINT StartVertexLocation
);
2122 [in] ID3D11Resource
*pResource
,
2123 [in] UINT Subresource
,
2124 [in] D3D11_MAP MapType
,
2126 [out] D3D11_MAPPED_SUBRESOURCE
*pMappedResource
);
2128 [in] ID3D11Resource
*pResource
,
2129 [in] UINT Subresource
);
2130 void PSSetConstantBuffers
(
2131 [in] UINT StartSlot
,
2132 [in] UINT NumBuffers
,
2133 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2134 void IASetInputLayout
(
2135 [in] ID3D11InputLayout
*pInputLayout
);
2136 void IASetVertexBuffers
(
2137 [in] UINT StartSlot
,
2138 [in] UINT NumBuffers
,
2139 [in] ID3D11Buffer
*const *ppVertexBuffers
,
2140 [in] const UINT
*pStrides
,
2141 [in] const UINT
*pOffsets
);
2142 void IASetIndexBuffer
(
2143 [in] ID3D11Buffer
*pIndexBuffer
,
2144 [in] DXGI_FORMAT Format
,
2146 void DrawIndexedInstanced
(
2147 [in] UINT IndexCountPerInstance
,
2148 [in] UINT InstanceCount
,
2149 [in] UINT StartIndexLocation
,
2150 [in] INT BaseVertexLocation
,
2151 [in] UINT StartInstanceLocation
);
2153 [in] UINT VertexCountPerInstance
,
2154 [in] UINT InstanceCount
,
2155 [in] UINT StartVertexLocation
,
2156 [in] UINT StartInstanceLocation
);
2157 void GSSetConstantBuffers
(
2158 [in] UINT StartSlot
,
2159 [in] UINT NumBuffers
,
2160 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2162 [in] ID3D11GeometryShader
*pShader
,
2163 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2164 UINT NumClassInstances
);
2165 void IASetPrimitiveTopology
(
2166 [in] D3D11_PRIMITIVE_TOPOLOGY Topology
);
2167 void VSSetShaderResources
(
2168 [in] UINT StartSlot
,
2170 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2172 [in] UINT StartSlot
,
2173 [in] UINT NumSamplers
,
2174 [in] ID3D11SamplerState
*const *ppSamplers
);
2176 [in] ID3D11Asynchronous
*pAsync
);
2178 [in] ID3D11Asynchronous
*pAsync
);
2180 [in] ID3D11Asynchronous
*pAsync
,
2183 [in] UINT GetDataFlags
);
2184 void SetPredication
(
2185 [in] ID3D11Predicate
*pPredicate
,
2186 [in] BOOL PredicateValue
);
2187 void GSSetShaderResources
(
2188 [in] UINT StartSlot
,
2190 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2192 [in] UINT StartSlot
,
2193 [in] UINT NumSamplers
,
2194 [in] ID3D11SamplerState
*const *ppSamplers
);
2195 void OMSetRenderTargets
(
2197 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
2198 [in] ID3D11DepthStencilView
*pDepthStencilView
);
2199 void OMSetRenderTargetsAndUnorderedAccessViews
(
2201 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
2202 [in] ID3D11DepthStencilView
*pDepthStencilView
,
2203 [in] UINT UAVStartSlot
,
2205 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
2206 [in] const UINT
*pUAVInitialCounts
);
2207 void OMSetBlendState
(
2208 [in] ID3D11BlendState
*pBlendState
,
2209 [in] const FLOAT BlendFactor
[4],
2210 [in] UINT SampleMask
);
2211 void OMSetDepthStencilState
(
2212 [in] ID3D11DepthStencilState
*pDepthStencilState
,
2213 [in] UINT StencilRef
);
2215 [in] UINT NumBuffers
,
2216 [in] ID3D11Buffer
*const *ppSOTargets
,
2217 [in] const UINT
*pOffsets
);
2219 void DrawIndexedInstancedIndirect
(
2220 [in] ID3D11Buffer
*pBufferForArgs
,
2221 [in] UINT AlignedByteOffsetForArgs
);
2222 void DrawInstancedIndirect
(
2223 [in] ID3D11Buffer
*pBufferForArgs
,
2224 [in] UINT AlignedByteOffsetForArgs
);
2226 [in] UINT ThreadGroupCountX
,
2227 [in] UINT ThreadGroupCountY
,
2228 [in] UINT ThreadGroupCountZ
);
2229 void DispatchIndirect
(
2230 [in] ID3D11Buffer
*pBufferForArgs
,
2231 [in] UINT AlignedByteOffsetForArgs
);
2233 [in] ID3D11RasterizerState
*pRasterizerState
);
2234 void RSSetViewports
(
2235 [in] UINT NumViewports
,
2236 [in] const D3D11_VIEWPORT
*pViewports
);
2237 void RSSetScissorRects
(
2239 [in] const D3D11_RECT
*pRects
);
2240 void CopySubresourceRegion
(
2241 [in] ID3D11Resource
*pDstResource
,
2242 [in] UINT DstSubresource
,
2246 [in] ID3D11Resource
*pSrcResource
,
2247 [in] UINT SrcSubresource
,
2248 [in] const D3D11_BOX
*pSrcBox
);
2250 [in] ID3D11Resource
*pDstResource
,
2251 [in] ID3D11Resource
*pSrcResource
);
2252 void UpdateSubresource
(
2253 [in] ID3D11Resource
*pDstResource
,
2254 [in] UINT DstSubresource
,
2255 [in] const D3D11_BOX
*pDstBox
,
2256 [in] const void *pSrcData
,
2257 [in] UINT SrcRowPitch
,
2258 [in] UINT SrcDepthPitch
);
2259 void CopyStructureCount
(
2260 [in] ID3D11Buffer
*pDstBuffer
,
2261 [in] UINT DstAlignedByteOffset
,
2262 [in] ID3D11UnorderedAccessView
*pSrcView
);
2263 void ClearRenderTargetView
(
2264 [in] ID3D11RenderTargetView
*pRenderTargetView
,
2265 [in] const FLOAT ColorRGBA
[4]);
2266 void ClearUnorderedAccessViewUint
(
2267 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
2268 [in] const UINT Values
[4]);
2269 void ClearUnorderedAccessViewFloat
(
2270 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
2271 [in] const FLOAT Values
[4]);
2272 void ClearDepthStencilView
(
2273 [in] ID3D11DepthStencilView
*pDepthStencilView
,
2274 [in] UINT ClearFlags
,
2276 [in] UINT8 Stencil
);
2278 [in] ID3D11ShaderResourceView
*pShaderResourceView
);
2279 void SetResourceMinLOD
(
2280 [in] ID3D11Resource
*pResource
, FLOAT MinLOD
);
2281 FLOAT GetResourceMinLOD
(
2282 [in] ID3D11Resource
*pResource
);
2283 void ResolveSubresource
(
2284 [in] ID3D11Resource
*pDstResource
,
2285 [in] UINT DstSubresource
,
2286 [in] ID3D11Resource
*pSrcResource
,
2287 [in] UINT SrcSubresource
,
2288 [in] DXGI_FORMAT Format
);
2289 void ExecuteCommandList
(
2290 [in] ID3D11CommandList
*pCommandList
,
2291 BOOL RestoreContextState
);
2292 void HSSetShaderResources
(
2293 [in] UINT StartSlot
,
2295 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2297 [in] ID3D11HullShader
*pHullShader
,
2298 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2299 UINT NumClassInstances
);
2301 [in] UINT StartSlot
,
2302 [in] UINT NumSamplers
,
2303 [in] ID3D11SamplerState
*const *ppSamplers
);
2304 void HSSetConstantBuffers
(
2305 [in] UINT StartSlot
,
2306 [in] UINT NumBuffers
,
2307 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2308 void DSSetShaderResources
(
2309 [in] UINT StartSlot
,
2311 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2313 [in] ID3D11DomainShader
*pDomainShader
,
2314 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2315 UINT NumClassInstances
);
2317 [in] UINT StartSlot
,
2318 [in] UINT NumSamplers
,
2319 [in] ID3D11SamplerState
*const *ppSamplers
);
2320 void DSSetConstantBuffers
(
2321 [in] UINT StartSlot
,
2322 [in] UINT NumBuffers
,
2323 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2324 void CSSetShaderResources
(
2325 [in] UINT StartSlot
,
2327 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2328 void CSSetUnorderedAccessViews
(
2329 [in] UINT StartSlot
,
2331 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
2332 [in] const UINT
*pUAVInitialCounts
);
2334 [in] ID3D11ComputeShader
*pComputeShader
,
2335 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2336 UINT NumClassInstances
);
2338 [in] UINT StartSlot
,
2339 [in] UINT NumSamplers
,
2340 [in] ID3D11SamplerState
*const *ppSamplers
);
2341 void CSSetConstantBuffers
(
2342 [in] UINT StartSlot
,
2343 [in] UINT NumBuffers
,
2344 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2345 void VSGetConstantBuffers
(
2346 [in] UINT StartSlot
,
2347 [in] UINT NumBuffers
,
2348 [out] ID3D11Buffer
**ppConstantBuffers
);
2349 void PSGetShaderResources
(
2350 [in] UINT StartSlot
,
2352 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2354 [out] ID3D11PixelShader
**ppPixelShader
,
2355 [out] ID3D11ClassInstance
**ppClassInstances
,
2356 [in, out] UINT
*pNumClassInstances
);
2358 [in] UINT StartSlot
,
2359 [in] UINT NumSamplers
,
2360 [out] ID3D11SamplerState
**ppSamplers
);
2362 [out] ID3D11VertexShader
**ppVertexShader
,
2363 [out] ID3D11ClassInstance
**ppClassInstances
,
2364 [in, out] UINT
*pNumClassInstances
);
2365 void PSGetConstantBuffers
(
2366 [in] UINT StartSlot
,
2367 [in] UINT NumBuffers
,
2368 [out] ID3D11Buffer
**ppConstantBuffers
);
2369 void IAGetInputLayout
(
2370 [out] ID3D11InputLayout
**ppInputLayout
);
2371 void IAGetVertexBuffers
(
2372 [in] UINT StartSlot
,
2373 [in] UINT NumBuffers
,
2374 [out] ID3D11Buffer
**ppVertexBuffers
,
2375 [out] UINT
*pStrides
,
2376 [out] UINT
*pOffsets
);
2377 void IAGetIndexBuffer
(
2378 [out] ID3D11Buffer
**pIndexBuffer
,
2379 [out] DXGI_FORMAT
* Format
,
2380 [out] UINT
* Offset
);
2381 void GSGetConstantBuffers
(
2382 [in] UINT StartSlot
,
2383 [in] UINT NumBuffers
,
2384 [out] ID3D11Buffer
**ppConstantBuffers
);
2386 [out] ID3D11GeometryShader
**ppGeometryShader
,
2387 [out] ID3D11ClassInstance
**ppClassInstances
,
2388 [in, out] UINT
*pNumClassInstances
);
2389 void IAGetPrimitiveTopology
(
2390 [out] D3D11_PRIMITIVE_TOPOLOGY
*pTopology
);
2391 void VSGetShaderResources
(
2392 [in] UINT StartSlot
,
2394 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2396 [in] UINT StartSlot
,
2397 [in] UINT NumSamplers
,
2398 [out] ID3D11SamplerState
**ppSamplers
);
2399 void GetPredication
(
2400 [out] ID3D11Predicate
**ppPredicate
,
2401 [out] BOOL
*pPredicateValue
);
2402 void GSGetShaderResources
(
2403 [in] UINT StartSlot
,
2405 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2407 [in] UINT StartSlot
,
2408 [in] UINT NumSamplers
,
2409 [out] ID3D11SamplerState
**ppSamplers
);
2410 void OMGetRenderTargets
(
2412 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2413 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2414 void OMGetRenderTargetsAndUnorderedAccessViews
(
2416 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2417 [out] ID3D11DepthStencilView
**ppDepthStencilView
,
2418 [in] UINT UAVStartSlot
,
2420 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2421 void OMGetBlendState
(
2422 [out] ID3D11BlendState
**ppBlendState
,
2423 [out] FLOAT BlendFactor
[4],
2424 [out] UINT
*pSampleMask
);
2425 void OMGetDepthStencilState
(
2426 [out] ID3D11DepthStencilState
**ppDepthStencilState
,
2427 [out] UINT
*pStencilRef
);
2429 [in] UINT NumBuffers
,
2430 [out] ID3D11Buffer
**ppSOTargets
);
2432 [out] ID3D11RasterizerState
**ppRasterizerState
);
2433 void RSGetViewports
(
2434 [in, out] UINT
*pNumViewports
,
2435 [out] D3D11_VIEWPORT
*pViewports
);
2436 void RSGetScissorRects
(
2437 [in, out] UINT
*pNumRects
,
2438 [out] D3D11_RECT
*pRects
);
2439 void HSGetShaderResources
(
2440 [in] UINT StartSlot
,
2442 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2444 [out] ID3D11HullShader
**ppHullShader
,
2445 [out] ID3D11ClassInstance
**ppClassInstances
,
2446 [in, out] UINT
*pNumClassInstances
);
2448 [in] UINT StartSlot
,
2449 [in] UINT NumSamplers
,
2450 [out] ID3D11SamplerState
**ppSamplers
);
2451 void HSGetConstantBuffers
(
2452 [in] UINT StartSlot
,
2453 [in] UINT NumBuffers
,
2454 [out] ID3D11Buffer
**ppConstantBuffers
);
2455 void DSGetShaderResources
(
2456 [in] UINT StartSlot
,
2458 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2460 [out] ID3D11DomainShader
**ppDomainShader
,
2461 [out] ID3D11ClassInstance
**ppClassInstances
,
2462 [in, out] UINT
*pNumClassInstances
);
2464 [in] UINT StartSlot
,
2465 [in] UINT NumSamplers
,
2466 [out] ID3D11SamplerState
**ppSamplers
);
2467 void DSGetConstantBuffers
(
2468 [in] UINT StartSlot
,
2469 [in] UINT NumBuffers
,
2470 [out] ID3D11Buffer
**ppConstantBuffers
);
2471 void CSGetShaderResources
(
2472 [in] UINT StartSlot
,
2474 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2475 void CSGetUnorderedAccessViews
(
2476 [in] UINT StartSlot
,
2478 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2480 [out] ID3D11ComputeShader
**ppComputeShader
,
2481 [out] ID3D11ClassInstance
**ppClassInstances
,
2482 [in, out] UINT
*pNumClassInstances
);
2484 [in] UINT StartSlot
,
2485 [in] UINT NumSamplers
,
2486 [out] ID3D11SamplerState
**ppSamplers
);
2487 void CSGetConstantBuffers
(
2488 [in] UINT StartSlot
,
2489 [in] UINT NumBuffers
,
2490 [out] ID3D11Buffer
**ppConstantBuffers
);
2493 D3D11_DEVICE_CONTEXT_TYPE GetType
();
2494 UINT GetContextFlags
();
2495 HRESULT FinishCommandList
(
2496 BOOL RestoreDeferredContextState
,
2497 [out] ID3D11CommandList
**ppCommandList
);
2502 uuid(3015a308
-dcbd
-47aa
-a747
-192486d14d4a
),
2504 pointer_default(unique)
2506 interface ID3D11AuthenticatedChannel
: ID3D11DeviceChild
2508 HRESULT GetCertificateSize
(
2509 UINT
*pCertificateSize
);
2510 HRESULT GetCertificate
(
2511 UINT CertificateSize
,
2512 BYTE *pCertificate
);
2513 void GetChannelHandle
(
2514 HANDLE *pChannelHandle
);
2519 uuid(9b32f9ad
-bdcc
-40a6
-a39d
-d5c865845720
),
2521 pointer_default(unique)
2523 interface ID3D11CryptoSession
: ID3D11DeviceChild
2527 void GetDecoderProfile
(
2528 GUID
*pDecoderProfile
);
2529 HRESULT GetCertificateSize
(
2530 UINT
*pCertificateSize
);
2531 HRESULT GetCertificate
(
2532 UINT CertificateSize
,
2533 BYTE *pCertificate
);
2534 void GetCryptoSessionHandle
(
2535 HANDLE *pCryptoSessionHandle
);
2540 uuid(3c9c5b51
-995d
-48d1
-9b8d
-fa5caeded65c
),
2542 pointer_default(unique)
2544 interface ID3D11VideoDecoder
: ID3D11DeviceChild
2546 HRESULT GetCreationParameters
(
2547 D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2548 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2549 HRESULT GetDriverHandle
(
2550 HANDLE *pDriverHandle
);
2555 uuid(31627037-53ab
-4200-9061-05faa9ab45f9
),
2557 pointer_default(unique)
2559 interface ID3D11VideoProcessorEnumerator
: ID3D11DeviceChild
2561 HRESULT GetVideoProcessorContentDesc
(
2562 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pContentDesc
);
2563 HRESULT CheckVideoProcessorFormat
(
2566 HRESULT GetVideoProcessorCaps
(
2567 D3D11_VIDEO_PROCESSOR_CAPS
*pCaps
);
2568 HRESULT GetVideoProcessorRateConversionCaps
(
2570 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2571 HRESULT GetVideoProcessorCustomRate
(
2573 UINT CustomRateIndex
,
2574 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
*pRate
);
2575 HRESULT GetVideoProcessorFilterRange
(
2576 D3D11_VIDEO_PROCESSOR_FILTER Filter
,
2577 D3D11_VIDEO_PROCESSOR_FILTER_RANGE
*pRange
);
2582 uuid(1d7b0652
-185f
-41c6
-85ce
-0c5be3d4ae6c
),
2584 pointer_default(unique)
2586 interface ID3D11VideoProcessor
: ID3D11DeviceChild
2588 void GetContentDesc
(
2589 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
);
2590 void GetRateConversionCaps
(
2591 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2596 uuid(c2931aea
-2a85
-4f20
-860f
-fba1fd256e18
),
2598 pointer_default(unique)
2600 interface ID3D11VideoDecoderOutputView
: ID3D11View
2603 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
);
2608 uuid(11ec5a5f
-51dc
-4945-ab34
-6e8c21300ea5
),
2610 pointer_default(unique)
2612 interface ID3D11VideoProcessorInputView
: ID3D11View
2615 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
);
2620 uuid(a048285e
-25a9
-4527-bd93
-d68b68c44254
),
2622 pointer_default(unique)
2624 interface ID3D11VideoProcessorOutputView
: ID3D11View
2627 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
);
2632 uuid(10ec4d5b
-975a
-4689-b9e4
-d0aac30fe333
),
2634 pointer_default(unique)
2636 interface ID3D11VideoDevice
: IUnknown
2638 HRESULT CreateVideoDecoder
(
2639 const D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2640 const D3D11_VIDEO_DECODER_CONFIG
*pConfig
,
2641 ID3D11VideoDecoder
**ppDecoder
);
2642 HRESULT CreateVideoProcessor
(
2643 ID3D11VideoProcessorEnumerator
*pEnum
,
2644 UINT RateConversionIndex
,
2645 ID3D11VideoProcessor
**ppVideoProcessor
);
2646 HRESULT CreateAuthenticatedChannel
(
2647 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType
,
2648 ID3D11AuthenticatedChannel
**ppAuthenticatedChannel
);
2649 HRESULT CreateCryptoSession
(
2650 const GUID
*pCryptoType
,
2651 const GUID
*pDecoderProfile
,
2652 const GUID
*pKeyExchangeType
,
2653 ID3D11CryptoSession
**ppCryptoSession
);
2654 HRESULT CreateVideoDecoderOutputView
(
2655 ID3D11Resource
*pResource
,
2656 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
,
2657 ID3D11VideoDecoderOutputView
**ppVDOVView
);
2658 HRESULT CreateVideoProcessorInputView
(
2659 ID3D11Resource
*pResource
,
2660 ID3D11VideoProcessorEnumerator
*pEnum
,
2661 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
,
2662 ID3D11VideoProcessorInputView
**ppVPIView
);
2663 HRESULT CreateVideoProcessorOutputView
(
2664 ID3D11Resource
*pResource
,
2665 ID3D11VideoProcessorEnumerator
*pEnum
,
2666 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
,
2667 ID3D11VideoProcessorOutputView
**ppVPOView
);
2668 HRESULT CreateVideoProcessorEnumerator
(
2669 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
,
2670 ID3D11VideoProcessorEnumerator
**ppEnum
);
2671 UINT GetVideoDecoderProfileCount
();
2672 HRESULT GetVideoDecoderProfile
(
2674 GUID
*pDecoderProfile
);
2675 HRESULT CheckVideoDecoderFormat
(
2676 const GUID
*pDecoderProfile
,
2679 HRESULT GetVideoDecoderConfigCount
(
2680 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2682 HRESULT GetVideoDecoderConfig
(
2683 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2685 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2686 HRESULT GetContentProtectionCaps
(
2687 const GUID
*pCryptoType
,
2688 const GUID
*pDecoderProfile
,
2689 D3D11_VIDEO_CONTENT_PROTECTION_CAPS
*pCaps
);
2690 HRESULT CheckCryptoKeyExchange
(
2691 const GUID
*pCryptoType
,
2692 const GUID
*pDecoderProfile
,
2694 GUID
*pKeyExchangeType
);
2695 HRESULT SetPrivateData
(
2699 HRESULT SetPrivateDataInterface
(
2701 const IUnknown
*pData
);
2706 uuid(61f21c45
-3c0e
-4a74
-9cea
-67100d9ad5e4
),
2708 pointer_default(unique)
2710 interface ID3D11VideoContext
: ID3D11DeviceChild
2712 HRESULT GetDecoderBuffer
(
2713 [in] ID3D11VideoDecoder
*decoder
,
2714 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
,
2715 [out] UINT
*buffer_size
,
2718 HRESULT ReleaseDecoderBuffer
(
2719 [in] ID3D11VideoDecoder
*decoder
,
2720 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
2722 HRESULT DecoderBeginFrame
(
2723 [in] ID3D11VideoDecoder
*decoder
,
2724 [in] ID3D11VideoDecoderOutputView
*view
,
2726 [in] const void *key
2728 HRESULT DecoderEndFrame
(
2729 [in] ID3D11VideoDecoder
*decoder
2731 HRESULT SubmitDecoderBuffers
(
2732 [in] ID3D11VideoDecoder
*decoder
,
2733 [in] UINT buffers_count
,
2734 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC
*buffer_desc
2736 HRESULT DecoderExtension
(
2737 [in] ID3D11VideoDecoder
*decoder
,
2738 [in] const D3D11_VIDEO_DECODER_EXTENSION
*extension
2740 void VideoProcessorSetOutputTargetRect
(
2741 [in] ID3D11VideoProcessor
*processor
,
2743 [in] const RECT
*rect
2745 void VideoProcessorSetOutputBackgroundColor
(
2746 [in] ID3D11VideoProcessor
*processor
,
2748 [in] const D3D11_VIDEO_COLOR
*color
2750 void VideoProcessorSetOutputColorSpace
(
2751 [in] ID3D11VideoProcessor
*processor
,
2752 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2754 void VideoProcessorSetOutputAlphaFillMode
(
2755 [in] ID3D11VideoProcessor
*processor
,
2756 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode
,
2757 [in] UINT stream_idx
2759 void VideoProcessorSetOutputConstriction
(
2760 [in] ID3D11VideoProcessor
*processor
,
2764 void VideoProcessorSetOutputStereoMode
(
2765 [in] ID3D11VideoProcessor
*processor
,
2768 HRESULT VideoProcessorSetOutputExtension
(
2769 [in] ID3D11VideoProcessor
*processor
,
2770 [in] const GUID
*guid
,
2771 [in] UINT data_size
,
2774 void VideoProcessorGetOutputTargetRect
(
2775 [in] ID3D11VideoProcessor
*processor
,
2776 [out] BOOL
*enabled
,
2779 void VideoProcessorGetOutputBackgroundColor
(
2780 [in] ID3D11VideoProcessor
*processor
,
2781 [out] BOOL
*y_cb_cr
,
2782 [out] D3D11_VIDEO_COLOR
*color
2784 void VideoProcessorGetOutputColorSpace
(
2785 [in] ID3D11VideoProcessor
*processor
,
2786 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2788 void VideoProcessorGetOutputAlphaFillMode
(
2789 [in] ID3D11VideoProcessor
*processor
,
2790 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
*alpha_fill_mode
,
2791 [out] UINT
*stream_idx
2793 void VideoProcessorGetOutputConstriction
(
2794 [in] ID3D11VideoProcessor
*processor
,
2795 [out] BOOL
*enabled
,
2798 void VideoProcessorGetOutputStereoMode
(
2799 [in] ID3D11VideoProcessor
*processor
,
2802 HRESULT VideoProcessorGetOutputExtension
(
2803 [in] ID3D11VideoProcessor
*processor
,
2804 [in] const GUID
*guid
,
2805 [in] UINT data_size
,
2808 void VideoProcessorSetStreamFrameFormat
(
2809 [in] ID3D11VideoProcessor
*processor
,
2810 [in] UINT stream_idx
,
2811 [in] D3D11_VIDEO_FRAME_FORMAT format
2813 void VideoProcessorSetStreamColorSpace
(
2814 [in] ID3D11VideoProcessor
*processor
,
2815 [in] UINT stream_idx
,
2816 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2818 void VideoProcessorSetStreamOutputRate
(
2819 [in] ID3D11VideoProcessor
*processor
,
2820 [in] UINT stream_idx
,
2821 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate
,
2823 [in] const DXGI_RATIONAL
*custom_rate
2825 void VideoProcessorSetStreamSourceRect
(
2826 [in] ID3D11VideoProcessor
*processor
,
2827 [in] UINT stream_idx
,
2829 [in] const RECT
*rect
2831 void VideoProcessorSetStreamDestRect
(
2832 [in] ID3D11VideoProcessor
*processor
,
2833 [in] UINT stream_idx
,
2835 [in] const RECT
*rect
2837 void VideoProcessorSetStreamAlpha
(
2838 [in] ID3D11VideoProcessor
*processor
,
2839 [in] UINT stream_idx
,
2843 void VideoProcessorSetStreamPalette
(
2844 [in] ID3D11VideoProcessor
*processor
,
2845 [in] UINT stream_idx
,
2846 [in] UINT entry_count
,
2847 [in] const UINT
*entries
2849 void VideoProcessorSetStreamPixelAspectRatio
(
2850 [in] ID3D11VideoProcessor
*processor
,
2851 [in] UINT stream_idx
,
2853 [in] const DXGI_RATIONAL
*src_aspect_ratio
,
2854 [in] const DXGI_RATIONAL
*dst_aspect_ratio
2856 void VideoProcessorSetStreamLumaKey
(
2857 [in] ID3D11VideoProcessor
*processor
,
2858 [in] UINT stream_idx
,
2863 void VideoProcessorSetStreamStereoFormat
(
2864 [in] ID3D11VideoProcessor
*processor
,
2865 [in] UINT stream_idx
,
2867 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format
,
2868 [in] BOOL left_view_frame0
,
2869 [in] BOOL base_view_frame0
,
2870 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode
,
2871 [in] int mono_offset
2873 void VideoProcessorSetStreamAutoProcessingMode
(
2874 [in] ID3D11VideoProcessor
*processor
,
2875 [in] UINT stream_idx
,
2878 void VideoProcessorSetStreamFilter
(
2879 [in] ID3D11VideoProcessor
*processor
,
2880 [in] UINT stream_idx
,
2881 [in] D3D11_VIDEO_PROCESSOR_FILTER filter
,
2885 HRESULT VideoProcessorSetStreamExtension
(
2886 [in] ID3D11VideoProcessor
*processor
,
2887 [in] UINT stream_idx
,
2888 [in] const GUID
*guid
,
2889 [in] UINT data_size
,
2892 void VideoProcessorGetStreamFrameFormat
(
2893 [in] ID3D11VideoProcessor
*processor
,
2894 [in] UINT stream_idx
,
2895 [out] D3D11_VIDEO_FRAME_FORMAT
*format
2897 void VideoProcessorGetStreamColorSpace
(
2898 [in] ID3D11VideoProcessor
*processor
,
2899 [in] UINT stream_idx
,
2900 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2902 void VideoProcessorGetStreamOutputRate
(
2903 [in] ID3D11VideoProcessor
*processor
,
2904 [in] UINT stream_idx
,
2905 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
*rate
,
2907 [out] DXGI_RATIONAL
*custom_rate
2909 void VideoProcessorGetStreamSourceRect
(
2910 [in] ID3D11VideoProcessor
*processor
,
2911 [in] UINT stream_idx
,
2912 [out] BOOL
*enabled
,
2915 void VideoProcessorGetStreamDestRect
(
2916 [in] ID3D11VideoProcessor
*processor
,
2917 [in] UINT stream_idx
,
2918 [out] BOOL
*enabled
,
2921 void VideoProcessorGetStreamAlpha
(
2922 [in] ID3D11VideoProcessor
*processor
,
2923 [in] UINT stream_idx
,
2924 [out] BOOL
*enabled
,
2927 void VideoProcessorGetStreamPalette
(
2928 [in] ID3D11VideoProcessor
*processor
,
2929 [in] UINT stream_idx
,
2930 [in] UINT entry_count
,
2933 void VideoProcessorGetStreamPixelAspectRatio
(
2934 [in] ID3D11VideoProcessor
*processor
,
2935 [in] UINT stream_idx
,
2936 [out] BOOL
*enabled
,
2937 [out] DXGI_RATIONAL
*src_aspect_ratio
,
2938 [out] DXGI_RATIONAL
*dst_aspect_ratio
2940 void VideoProcessorGetStreamLumaKey
(
2941 [in] ID3D11VideoProcessor
*processor
,
2942 [in] UINT stream_idx
,
2943 [out] BOOL
*enabled
,
2947 void VideoProcessorGetStreamStereoFormat
(
2948 [in] ID3D11VideoProcessor
*processor
,
2949 [in] UINT stream_idx
,
2950 [out] BOOL
*enabled
,
2951 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
*format
,
2952 [out] BOOL
*left_view_frame0
,
2953 [out] BOOL
*base_view_frame0
,
2954 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
*flip_mode
,
2955 [out] int *mono_offset
2957 void VideoProcessorGetStreamAutoProcessingMode
(
2958 [in] ID3D11VideoProcessor
*processor
,
2959 [in] UINT stream_idx
,
2962 void VideoProcessorGetStreamFilter
(
2963 [in] ID3D11VideoProcessor
*processor
,
2964 [in] UINT stream_idx
,
2965 [in] D3D11_VIDEO_PROCESSOR_FILTER filter
,
2966 [out] BOOL
*enabled
,
2969 HRESULT VideoProcessorGetStreamExtension
(
2970 [in] ID3D11VideoProcessor
*processor
,
2971 [in] UINT stream_idx
,
2972 [in] const GUID
*guid
,
2973 [in] UINT data_size
,
2976 HRESULT VideoProcessorBlt
(
2977 [in] ID3D11VideoProcessor
*processor
,
2978 [in] ID3D11VideoProcessorOutputView
*view
,
2979 [in] UINT frame_idx
,
2980 [in] UINT stream_count
,
2981 [in] const D3D11_VIDEO_PROCESSOR_STREAM
*streams
2983 HRESULT NegotiateCryptoSessionKeyExchange
(
2984 [in] ID3D11CryptoSession
*session
,
2985 [in] UINT data_size
,
2986 [in, out] void *data
2989 [in] ID3D11CryptoSession
*session
,
2990 [in] ID3D11Texture2D
*src_surface
,
2991 [in] ID3D11Texture2D
*dst_surface
,
2996 [in] ID3D11CryptoSession
*session
,
2997 [in] ID3D11Texture2D
*src_surface
,
2998 [in] ID3D11Texture2D
*dst_surface
,
2999 [in] D3D11_ENCRYPTED_BLOCK_INFO
*block_info
,
3001 [in] const void *key
,
3005 void StartSessionKeyRefresh
(
3006 [in] ID3D11CryptoSession
*session
,
3007 [in] UINT random_number_size
,
3008 [out] void *random_number
3010 void FinishSessionKeyRefresh
(
3011 [in] ID3D11CryptoSession
*session
3013 HRESULT GetEncryptionBltKey
(
3014 [in] ID3D11CryptoSession
*session
,
3018 HRESULT NegotiateAuthenticatedChannelKeyExchange
(
3019 [in] ID3D11AuthenticatedChannel
*channel
,
3020 [in] UINT data_size
,
3021 [in, out] void *data
3023 HRESULT QueryAuthenticatedChannel
(
3024 [in] ID3D11AuthenticatedChannel
*channel
,
3025 [in] UINT input_size
,
3026 [in] const void *input
,
3027 [in] UINT output_size
,
3030 HRESULT ConfigureAuthenticatedChannel
(
3031 [in] ID3D11AuthenticatedChannel
*channel
,
3032 [in] UINT input_size
,
3033 [in] const void *input
,
3034 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
*output
3036 void VideoProcessorSetStreamRotation
(
3037 [in] ID3D11VideoProcessor
*processor
,
3038 [in] UINT stream_idx
,
3040 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3042 void VideoProcessorGetStreamRotation
(
3043 [in] ID3D11VideoProcessor
*processor
,
3044 [in] UINT stream_idx
,
3046 [out] D3D11_VIDEO_PROCESSOR_ROTATION
*rotation
3053 uuid(db6f6ddb
-ac77
-4e88
-8253-819df9bbf140
)
3055 interface ID3D11Device
: IUnknown
3057 HRESULT CreateBuffer
(
3058 [in] const D3D11_BUFFER_DESC
*pDesc
,
3059 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3060 [out] ID3D11Buffer
**ppBuffer
);
3061 HRESULT CreateTexture1D
(
3062 [in] const D3D11_TEXTURE1D_DESC
*pDesc
,
3063 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3064 [out] ID3D11Texture1D
**ppTexture1D
);
3065 HRESULT CreateTexture2D
(
3066 [in] const D3D11_TEXTURE2D_DESC
*pDesc
,
3067 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3068 [out] ID3D11Texture2D
**ppTexture2D
);
3069 HRESULT CreateTexture3D
(
3070 [in] const D3D11_TEXTURE3D_DESC
*pDesc
,
3071 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3072 [out] ID3D11Texture3D
**ppTexture3D
);
3073 HRESULT CreateShaderResourceView
(
3074 [in] ID3D11Resource
*pResource
,
3075 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
,
3076 [out] ID3D11ShaderResourceView
**ppSRView
);
3077 HRESULT CreateUnorderedAccessView
(
3078 [in] ID3D11Resource
*pResource
,
3079 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
,
3080 [out] ID3D11UnorderedAccessView
**ppUAView
);
3081 HRESULT CreateRenderTargetView
(
3082 [in] ID3D11Resource
*pResource
,
3083 [in] const D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
,
3084 [out] ID3D11RenderTargetView
**ppRTView
);
3085 HRESULT CreateDepthStencilView
(
3086 [in] ID3D11Resource
*pResource
,
3087 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
,
3088 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
3089 HRESULT CreateInputLayout
(
3090 [in] const D3D11_INPUT_ELEMENT_DESC
*pInputElementDescs
,
3091 [in] UINT NumElements
,
3092 [in] const void *pShaderBytecodeWithInputSignature
,
3093 [in] SIZE_T BytecodeLength
,
3094 [out] ID3D11InputLayout
**ppInputLayout
);
3095 HRESULT CreateVertexShader
(
3096 [in] const void *pShaderBytecode
,
3097 [in] SIZE_T BytecodeLength
,
3098 [in] ID3D11ClassLinkage
*pClassLinkage
,
3099 [out] ID3D11VertexShader
**ppVertexShader
);
3100 HRESULT CreateGeometryShader
(
3101 [in] const void *pShaderBytecode
,
3102 [in] SIZE_T BytecodeLength
,
3103 [in] ID3D11ClassLinkage
*pClassLinkage
,
3104 [out] ID3D11GeometryShader
**ppGeometryShader
);
3105 HRESULT CreateGeometryShaderWithStreamOutput
(
3106 [in] const void *pShaderBytecode
,
3107 [in] SIZE_T BytecodeLength
,
3108 [in] const D3D11_SO_DECLARATION_ENTRY
*pSODeclaration
,
3109 [in] UINT NumEntries
,
3110 [in] const UINT
*pBufferStrides
,
3111 [in] UINT NumStrides
,
3112 [in] UINT RasterizedStream
,
3113 [in] ID3D11ClassLinkage
*pClassLinkage
,
3114 [out] ID3D11GeometryShader
**ppGeometryShader
);
3115 HRESULT CreatePixelShader
(
3116 [in] const void *pShaderBytecode
,
3117 [in] SIZE_T BytecodeLength
,
3118 [in] ID3D11ClassLinkage
*pClassLinkage
,
3119 [out] ID3D11PixelShader
**ppPixelShader
);
3120 HRESULT CreateHullShader
(
3121 [in] const void *pShaderBytecode
,
3122 [in] SIZE_T BytecodeLength
,
3123 [in] ID3D11ClassLinkage
*pClassLinkage
,
3124 [out] ID3D11HullShader
**ppHullShader
);
3125 HRESULT CreateDomainShader
(
3126 [in] const void *pShaderBytecode
,
3127 [in] SIZE_T BytecodeLength
,
3128 [in] ID3D11ClassLinkage
*pClassLinkage
,
3129 [out] ID3D11DomainShader
**ppDomainShader
);
3130 HRESULT CreateComputeShader
(
3131 [in] const void *pShaderBytecode
,
3132 [in] SIZE_T BytecodeLength
,
3133 [in] ID3D11ClassLinkage
*pClassLinkage
,
3134 [out] ID3D11ComputeShader
**ppComputeShader
);
3135 HRESULT CreateClassLinkage
(
3136 [out] ID3D11ClassLinkage
**ppLinkage
);
3137 HRESULT CreateBlendState
(
3138 [in] const D3D11_BLEND_DESC
*pBlendStateDesc
,
3139 [out] ID3D11BlendState
**ppBlendState
);
3140 HRESULT CreateDepthStencilState
(
3141 [in] const D3D11_DEPTH_STENCIL_DESC
*pDepthStencilDesc
,
3142 [out] ID3D11DepthStencilState
**ppDepthStencilState
);
3143 HRESULT CreateRasterizerState
(
3144 [in] const D3D11_RASTERIZER_DESC
*pRasterizerDesc
,
3145 [out] ID3D11RasterizerState
**ppRasterizerState
);
3146 HRESULT CreateSamplerState
(
3147 [in] const D3D11_SAMPLER_DESC
*pSamplerDesc
,
3148 [out] ID3D11SamplerState
**ppSamplerState
);
3149 HRESULT CreateQuery
(
3150 [in] const D3D11_QUERY_DESC
*pQueryDesc
,
3151 [out] ID3D11Query
**ppQuery
);
3152 HRESULT CreatePredicate
(
3153 [in] const D3D11_QUERY_DESC
*pPredicateDesc
,
3154 [out] ID3D11Predicate
**ppPredicate
);
3155 HRESULT CreateCounter
(
3156 [in] const D3D11_COUNTER_DESC
*pCounterDesc
,
3157 [out] ID3D11Counter
**ppCounter
);
3158 HRESULT CreateDeferredContext
(
3160 [out] ID3D11DeviceContext
**ppDeferredContext
);
3161 HRESULT OpenSharedResource
(
3162 [in] HANDLE hResource
,
3163 [in] REFIID ReturnedInterface
,
3164 [out] void **ppResource
);
3165 HRESULT CheckFormatSupport
(
3166 [in] DXGI_FORMAT Format
,
3167 [out] UINT
*pFormatSupport
);
3168 HRESULT CheckMultisampleQualityLevels
(
3169 [in] DXGI_FORMAT Format
,
3170 [in] UINT SampleCount
,
3171 [out] UINT
*pNumQualityLevels
);
3172 void CheckCounterInfo
(
3173 [out] D3D11_COUNTER_INFO
*pCounterInfo
);
3174 HRESULT CheckCounter
(
3175 [in] const D3D11_COUNTER_DESC
*pDesc
,
3176 [out] D3D11_COUNTER_TYPE
*pType
,
3177 [out] UINT
*pActiveCounters
,
3179 [in, out] UINT
*pNameLength
,
3180 [out] LPSTR szUnits
,
3181 [in, out] UINT
*pUnitsLength
,
3182 [out] LPSTR szDescription
,
3183 [in, out] UINT
*pDescriptionLength
);
3184 HRESULT CheckFeatureSupport
(
3185 D3D11_FEATURE Feature
,
3186 [out] void *pFeatureSupportData
,
3187 UINT FeatureSupportDataSize
);
3188 HRESULT GetPrivateData
(
3190 [in, out] UINT
*pDataSize
,
3192 HRESULT SetPrivateData
(
3195 [in] const void *pData
);
3196 HRESULT SetPrivateDataInterface
(
3198 [in] const IUnknown
*pData
);
3199 D3D_FEATURE_LEVEL GetFeatureLevel
();
3200 UINT GetCreationFlags
();
3201 HRESULT GetDeviceRemovedReason
();
3202 void GetImmediateContext
(
3203 [out] ID3D11DeviceContext
**ppImmediateContext
);
3204 HRESULT SetExceptionMode
(UINT RaiseFlags
);
3205 UINT GetExceptionMode
();
3208 typedef enum D3D11_CREATE_DEVICE_FLAG
{
3209 D3D11_CREATE_DEVICE_SINGLETHREADED
= 0x0001,
3210 D3D11_CREATE_DEVICE_DEBUG
= 0x0002,
3211 D3D11_CREATE_DEVICE_SWITCH_TO_REF
= 0x0004,
3212 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
= 0x0008,
3213 D3D11_CREATE_DEVICE_BGRA_SUPPORT
= 0x0020,
3214 D3D11_CREATE_DEVICE_DEBUGGABLE
= 0x0040,
3215 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY
= 0x0080,
3216 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT
= 0x0100,
3217 D3D11_CREATE_DEVICE_VIDEO_SUPPORT
= 0x0800
3218 } D3D11_CREATE_DEVICE_FLAG
;
3220 const UINT D3D11_SDK_VERSION
= 7;
3222 cpp_quote
("#include <d3d10_1.h>")
3223 cpp_quote
("#ifndef D3D11_IGNORE_SDK_LAYERS")
3224 cpp_quote
("# include <d3d11sdklayers.h>")
3226 cpp_quote
("#include <d3d10misc.h>")
3227 cpp_quote
("#include <d3d10shader.h>")
3228 cpp_quote
("#include <d3d10effect.h>")
3229 cpp_quote
("#include <d3d10_1shader.h>")
3231 cpp_quote
("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3232 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3234 cpp_quote
("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3235 cpp_quote
(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3237 cpp_quote
("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3238 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3239 cpp_quote
(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3241 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain
(IDXGIAdapter
*adapter
, D3D_DRIVER_TYPE driver_type
,
3242 HMODULE swrast
, UINT flags
, const D3D_FEATURE_LEVEL
*feature_levels
, UINT levels
, UINT sdk_version
,
3243 const DXGI_SWAP_CHAIN_DESC
*swapchain_desc
, IDXGISwapChain
**swapchain
, ID3D11Device
**device
,
3244 D3D_FEATURE_LEVEL
*obtained_feature_level
, ID3D11DeviceContext
**immediate_context
);