comctl32/treeview: Set hot item when hovering over item, not entire row.
[wine.git] / include / d3d11.idl
blobcd177c2c495b203dcf4c92c6b95e8a4a983922ec
1 /*
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
20 import "oaidl.idl";
21 import "ocidl.idl";
22 import "dxgi.idl";
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;")
209 cpp_quote("#endif")
211 typedef enum D3D11_BLEND
213 D3D11_BLEND_ZERO = 1,
214 D3D11_BLEND_ONE = 2,
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,
230 } D3D11_BLEND;
232 typedef enum D3D11_BLEND_OP
234 D3D11_BLEND_OP_ADD = 1,
235 D3D11_BLEND_OP_SUBTRACT,
236 D3D11_BLEND_OP_REV_SUBTRACT,
237 D3D11_BLEND_OP_MIN,
238 D3D11_BLEND_OP_MAX
239 } D3D11_BLEND_OP;
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
298 UINT left;
299 UINT top;
300 UINT front;
301 UINT right;
302 UINT bottom;
303 UINT back;
304 } D3D11_BOX;
306 typedef struct D3D11_BUFFER_RTV
308 union
310 UINT FirstElement;
311 UINT ElementOffset;
313 union
315 UINT NumElements;
316 UINT ElementWidth;
318 } D3D11_BUFFER_RTV;
320 typedef struct D3D11_BUFFER_SRV
322 union
324 UINT FirstElement;
325 UINT ElementOffset;
327 union
329 UINT NumElements;
330 UINT ElementWidth;
332 } D3D11_BUFFER_SRV;
334 typedef struct D3D11_BUFFER_UAV
336 UINT FirstElement;
337 UINT NumElements;
338 UINT Flags;
339 } D3D11_BUFFER_UAV;
341 typedef struct D3D11_BUFFEREX_SRV
343 UINT FirstElement;
344 UINT NumElements;
345 UINT Flags;
346 } D3D11_BUFFEREX_SRV;
348 typedef struct D3D11_CLASS_INSTANCE_DESC
350 UINT InstanceId;
351 UINT InstanceIndex;
352 UINT TypeId;
353 UINT ConstantBuffer;
354 UINT BaseConstantBufferOffset;
355 UINT BaseTexture;
356 UINT BaseSampler;
357 BOOL Created;
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,
375 } D3D11_COUNTER;
377 typedef struct D3D11_COUNTER_DESC
379 D3D11_COUNTER Counter;
380 UINT MiscFlags;
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
400 D3D11_CULL_NONE = 1,
401 D3D11_CULL_FRONT,
402 D3D11_CULL_BACK
403 } 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
440 } D3D11_FEATURE;
442 typedef struct D3D11_FEATURE_DATA_THREADING
444 BOOL DriverConcurrentCreates;
445 BOOL DriverCommandLists;
446 } D3D11_FEATURE_DATA_THREADING;
448 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
450 BOOL OutputMergerLogicOp;
451 BOOL UAVOnlyRenderingForcedSampleCount;
452 BOOL DiscardAPIsSeenByDriver;
453 BOOL FlagsForUpdateAndCopySeenByDriver;
454 BOOL ClearView;
455 BOOL CopyWithOverlap;
456 BOOL ConstantBufferPartialUpdate;
457 BOOL ConstantBufferOffsetting;
458 BOOL MapNoOverwriteOnDynamicConstantBuffer;
459 BOOL MapNoOverwriteOnDynamicBufferSRV;
460 BOOL MultisampleRTVWithForcedSampleCountOne;
461 BOOL SAD4ShaderInstructions;
462 BOOL ExtendedDoublesShaderInstructions;
463 BOOL ExtendedResourceSharing;
464 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
466 typedef enum D3D11_FILL_MODE
468 D3D11_FILL_WIREFRAME = 2,
469 D3D11_FILL_SOLID
470 } D3D11_FILL_MODE;
472 typedef enum D3D11_FILTER_TYPE
474 D3D11_FILTER_TYPE_POINT = 0,
475 D3D11_FILTER_TYPE_LINEAR = 1
476 } D3D11_FILTER_TYPE;
478 const UINT D3D11_MIN_FILTER_SHIFT = 4;
479 const UINT D3D11_MAG_FILTER_SHIFT = 2;
480 const UINT D3D11_MIP_FILTER_SHIFT = 0;
481 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
482 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
483 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
485 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
486 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
487 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
488 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
489 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
491 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
492 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
493 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
494 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
496 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
497 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
499 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
500 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
502 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
503 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
505 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
507 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
508 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
509 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
510 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
511 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
513 typedef enum D3D11_FILTER
515 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
516 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
517 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
518 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
519 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
520 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
521 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
522 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
523 D3D11_FILTER_ANISOTROPIC = 0x55,
524 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
525 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
526 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
527 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
528 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
529 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
530 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
531 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
532 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
533 } D3D11_FILTER;
535 typedef enum D3D11_DSV_FLAG
537 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
538 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
539 } D3D11_DSV_FLAG;
541 typedef enum D3D11_INPUT_CLASSIFICATION
543 D3D11_INPUT_PER_VERTEX_DATA,
544 D3D11_INPUT_PER_INSTANCE_DATA,
545 } D3D11_INPUT_CLASSIFICATION;
547 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
549 typedef struct D3D11_INPUT_ELEMENT_DESC
551 LPCSTR SemanticName;
552 UINT SemanticIndex;
553 DXGI_FORMAT Format;
554 UINT InputSlot;
555 UINT AlignedByteOffset;
556 D3D11_INPUT_CLASSIFICATION InputSlotClass;
557 UINT InstanceDataStepRate;
558 } D3D11_INPUT_ELEMENT_DESC;
560 typedef enum D3D11_MAP
562 D3D11_MAP_READ = 1,
563 D3D11_MAP_WRITE,
564 D3D11_MAP_READ_WRITE,
565 D3D11_MAP_WRITE_DISCARD,
566 D3D11_MAP_WRITE_NO_OVERWRITE
567 } D3D11_MAP;
569 typedef enum D3D11_MAP_FLAG
571 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
572 } D3D11_MAP_FLAG;
574 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
576 UINT64 NumPrimitivesWritten;
577 UINT64 PrimitivesStorageNeeded;
578 } D3D11_QUERY_DATA_SO_STATISTICS;
580 typedef struct D3D11_MAPPED_SUBRESOURCE
582 void *pData;
583 UINT RowPitch;
584 UINT DepthPitch;
585 } D3D11_MAPPED_SUBRESOURCE;
587 typedef enum D3D11_QUERY
589 D3D11_QUERY_EVENT,
590 D3D11_QUERY_OCCLUSION,
591 D3D11_QUERY_TIMESTAMP,
592 D3D11_QUERY_TIMESTAMP_DISJOINT,
593 D3D11_QUERY_PIPELINE_STATISTICS,
594 D3D11_QUERY_OCCLUSION_PREDICATE,
595 D3D11_QUERY_SO_STATISTICS,
596 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
597 D3D11_QUERY_SO_STATISTICS_STREAM0,
598 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
599 D3D11_QUERY_SO_STATISTICS_STREAM1,
600 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
601 D3D11_QUERY_SO_STATISTICS_STREAM2,
602 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
603 D3D11_QUERY_SO_STATISTICS_STREAM3,
604 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
605 } D3D11_QUERY;
607 typedef enum D3D11_QUERY_MISC_FLAG
609 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
610 } D3D11_QUERY_MISC_FLAG;
612 typedef enum D3D11_ASYNC_GETDATA_FLAG
614 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
615 } D3D11_ASYNC_GETDATA_FLAG;
617 typedef enum D3D11_RESOURCE_MISC_FLAG
619 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
620 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
621 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
622 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
623 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
624 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
625 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
626 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
627 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
628 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
629 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
630 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
631 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
632 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
633 } D3D11_RESOURCE_MISC_FLAG;
635 typedef struct D3D11_QUERY_DESC
637 D3D11_QUERY Query;
638 UINT MiscFlags;
639 } D3D11_QUERY_DESC;
641 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
642 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
643 cpp_quote(" CD3D11_QUERY_DESC() {}")
644 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
645 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
646 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
647 cpp_quote(" Query = query;")
648 cpp_quote(" MiscFlags = misc_flags;")
649 cpp_quote(" }")
650 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
651 cpp_quote(" return *this;")
652 cpp_quote(" }")
653 cpp_quote("};")
654 cpp_quote("#endif")
656 typedef struct D3D11_RASTERIZER_DESC
658 D3D11_FILL_MODE FillMode;
659 D3D11_CULL_MODE CullMode;
660 BOOL FrontCounterClockwise;
661 INT DepthBias;
662 FLOAT DepthBiasClamp;
663 FLOAT SlopeScaledDepthBias;
664 BOOL DepthClipEnable;
665 BOOL ScissorEnable;
666 BOOL MultisampleEnable;
667 BOOL AntialiasedLineEnable;
668 } D3D11_RASTERIZER_DESC;
670 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
671 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
672 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
673 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
674 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
675 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
676 cpp_quote(" CullMode = D3D11_CULL_BACK;")
677 cpp_quote(" FrontCounterClockwise = FALSE;")
678 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
679 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
680 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
681 cpp_quote(" DepthClipEnable = TRUE;")
682 cpp_quote(" ScissorEnable = FALSE;")
683 cpp_quote(" MultisampleEnable = FALSE;")
684 cpp_quote(" AntialiasedLineEnable = FALSE;")
685 cpp_quote(" }")
686 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
687 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
688 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
689 cpp_quote(" FillMode = fillMode;")
690 cpp_quote(" CullMode = cullMode;")
691 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
692 cpp_quote(" DepthBias = depthBias;")
693 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
694 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
695 cpp_quote(" DepthClipEnable = depthClipEnable;")
696 cpp_quote(" ScissorEnable = scissorEnable;")
697 cpp_quote(" MultisampleEnable = multisampleEnable;")
698 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
699 cpp_quote(" }")
700 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
701 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
702 cpp_quote("};")
703 cpp_quote("#endif")
705 typedef enum D3D11_RESOURCE_DIMENSION
707 D3D11_RESOURCE_DIMENSION_UNKNOWN,
708 D3D11_RESOURCE_DIMENSION_BUFFER,
709 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
710 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
711 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
712 } D3D11_RESOURCE_DIMENSION;
714 typedef enum D3D11_RTV_DIMENSION
716 D3D11_RTV_DIMENSION_UNKNOWN,
717 D3D11_RTV_DIMENSION_BUFFER,
718 D3D11_RTV_DIMENSION_TEXTURE1D,
719 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
720 D3D11_RTV_DIMENSION_TEXTURE2D,
721 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
722 D3D11_RTV_DIMENSION_TEXTURE2DMS,
723 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
724 D3D11_RTV_DIMENSION_TEXTURE3D,
725 } D3D11_RTV_DIMENSION;
727 typedef struct D3D11_SO_DECLARATION_ENTRY
729 UINT Stream;
730 LPCSTR SemanticName;
731 UINT SemanticIndex;
732 BYTE StartComponent;
733 BYTE ComponentCount;
734 BYTE OutputSlot;
735 } D3D11_SO_DECLARATION_ENTRY;
737 typedef enum D3D11_STENCIL_OP
739 D3D11_STENCIL_OP_KEEP = 1,
740 D3D11_STENCIL_OP_ZERO,
741 D3D11_STENCIL_OP_REPLACE,
742 D3D11_STENCIL_OP_INCR_SAT,
743 D3D11_STENCIL_OP_DECR_SAT,
744 D3D11_STENCIL_OP_INVERT,
745 D3D11_STENCIL_OP_INCR,
746 D3D11_STENCIL_OP_DECR
747 } D3D11_STENCIL_OP;
749 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
750 cpp_quote("}")
751 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
752 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
753 cpp_quote("}")
754 cpp_quote("extern \"C\"{")
755 cpp_quote("#endif")
757 typedef struct D3D11_SUBRESOURCE_DATA
759 const void *pSysMem;
760 UINT SysMemPitch;
761 UINT SysMemSlicePitch;
762 } D3D11_SUBRESOURCE_DATA;
764 typedef struct D3D11_TEX1D_ARRAY_DSV
766 UINT MipSlice;
767 UINT FirstArraySlice;
768 UINT ArraySize;
769 } D3D11_TEX1D_ARRAY_DSV;
771 typedef struct D3D11_TEX1D_ARRAY_RTV
773 UINT MipSlice;
774 UINT FirstArraySlice;
775 UINT ArraySize;
776 } D3D11_TEX1D_ARRAY_RTV;
778 typedef struct D3D11_TEX1D_ARRAY_SRV
780 UINT MostDetailedMip;
781 UINT MipLevels;
782 UINT FirstArraySlice;
783 UINT ArraySize;
784 } D3D11_TEX1D_ARRAY_SRV;
786 typedef struct D3D11_TEX1D_ARRAY_UAV
788 UINT MipSlice;
789 UINT FirstArraySlice;
790 UINT ArraySize;
791 } D3D11_TEX1D_ARRAY_UAV;
793 typedef struct D3D11_TEX1D_DSV
795 UINT MipSlice;
796 } D3D11_TEX1D_DSV;
798 typedef struct D3D11_TEX1D_RTV
800 UINT MipSlice;
801 } D3D11_TEX1D_RTV;
803 typedef struct D3D11_TEX1D_SRV
805 UINT MostDetailedMip;
806 UINT MipLevels;
807 } D3D11_TEX1D_SRV;
809 typedef struct D3D11_TEX1D_UAV
811 UINT MipSlice;
812 } D3D11_TEX1D_UAV;
814 typedef struct D3D11_TEX2D_ARRAY_DSV
816 UINT MipSlice;
817 UINT FirstArraySlice;
818 UINT ArraySize;
819 } D3D11_TEX2D_ARRAY_DSV;
821 typedef struct D3D11_TEX2D_ARRAY_RTV
823 UINT MipSlice;
824 UINT FirstArraySlice;
825 UINT ArraySize;
826 } D3D11_TEX2D_ARRAY_RTV;
828 typedef struct D3D11_TEX2D_ARRAY_SRV
830 UINT MostDetailedMip;
831 UINT MipLevels;
832 UINT FirstArraySlice;
833 UINT ArraySize;
834 } D3D11_TEX2D_ARRAY_SRV;
836 typedef struct D3D11_TEX2D_ARRAY_UAV
838 UINT MipSlice;
839 UINT FirstArraySlice;
840 UINT ArraySize;
841 } D3D11_TEX2D_ARRAY_UAV;
843 typedef struct D3D11_TEX2D_DSV
845 UINT MipSlice;
846 } D3D11_TEX2D_DSV;
848 typedef struct D3D11_TEX2D_RTV
850 UINT MipSlice;
851 } D3D11_TEX2D_RTV;
853 typedef struct D3D11_TEX2D_SRV
855 UINT MostDetailedMip;
856 UINT MipLevels;
857 } D3D11_TEX2D_SRV;
859 typedef struct D3D11_TEX2D_UAV
861 UINT MipSlice;
862 } D3D11_TEX2D_UAV;
864 typedef struct D3D11_TEX2DMS_ARRAY_DSV
866 UINT FirstArraySlice;
867 UINT ArraySize;
868 } D3D11_TEX2DMS_ARRAY_DSV;
870 typedef struct D3D11_TEX2DMS_ARRAY_RTV
872 UINT FirstArraySlice;
873 UINT ArraySize;
874 } D3D11_TEX2DMS_ARRAY_RTV;
876 typedef struct D3D11_TEX2DMS_ARRAY_SRV
878 UINT FirstArraySlice;
879 UINT ArraySize;
880 } D3D11_TEX2DMS_ARRAY_SRV;
882 typedef struct D3D11_TEX2DMS_DSV
884 UINT UnusedField_NothingToDefine;
885 } D3D11_TEX2DMS_DSV;
887 typedef struct D3D11_TEX2DMS_RTV
889 UINT UnusedField_NothingToDefine;
890 } D3D11_TEX2DMS_RTV;
892 typedef struct D3D11_TEX2DMS_SRV
894 UINT UnusedField_NothingToDefine;
895 } D3D11_TEX2DMS_SRV;
897 typedef struct D3D11_TEX3D_RTV
899 UINT MipSlice;
900 UINT FirstWSlice;
901 UINT WSize;
902 } D3D11_TEX3D_RTV;
904 typedef struct D3D11_TEX3D_SRV
906 UINT MostDetailedMip;
907 UINT MipLevels;
908 } D3D11_TEX3D_SRV;
910 typedef struct D3D11_TEX3D_UAV
912 UINT MipSlice;
913 UINT FirstWSlice;
914 UINT WSize;
915 } D3D11_TEX3D_UAV;
917 typedef struct D3D11_TEXCUBE_ARRAY_SRV
919 UINT MostDetailedMip;
920 UINT MipLevels;
921 UINT First2DArrayFace;
922 UINT NumCubes;
923 } D3D11_TEXCUBE_ARRAY_SRV;
925 typedef struct D3D11_TEXCUBE_SRV
927 UINT MostDetailedMip;
928 UINT MipLevels;
929 } D3D11_TEXCUBE_SRV;
931 typedef enum D3D11_TEXTURE_ADDRESS_MODE
933 D3D11_TEXTURE_ADDRESS_WRAP = 1,
934 D3D11_TEXTURE_ADDRESS_MIRROR,
935 D3D11_TEXTURE_ADDRESS_CLAMP,
936 D3D11_TEXTURE_ADDRESS_BORDER,
937 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
938 } D3D11_TEXTURE_ADDRESS_MODE;
940 typedef enum D3D11_UAV_DIMENSION
942 D3D11_UAV_DIMENSION_UNKNOWN,
943 D3D11_UAV_DIMENSION_BUFFER,
944 D3D11_UAV_DIMENSION_TEXTURE1D,
945 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
946 D3D11_UAV_DIMENSION_TEXTURE2D,
947 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
948 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
949 } D3D11_UAV_DIMENSION;
951 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
953 DXGI_FORMAT Format;
954 D3D11_UAV_DIMENSION ViewDimension;
956 union
958 D3D11_BUFFER_UAV Buffer;
959 D3D11_TEX1D_UAV Texture1D;
960 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
961 D3D11_TEX2D_UAV Texture2D;
962 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
963 D3D11_TEX3D_UAV Texture3D;
965 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
967 typedef enum D3D11_USAGE
969 D3D11_USAGE_DEFAULT,
970 D3D11_USAGE_IMMUTABLE,
971 D3D11_USAGE_DYNAMIC,
972 D3D11_USAGE_STAGING,
973 } D3D11_USAGE;
975 typedef enum D3D11_BIND_FLAG
977 D3D11_BIND_VERTEX_BUFFER = 0x0001,
978 D3D11_BIND_INDEX_BUFFER = 0x0002,
979 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
980 D3D11_BIND_SHADER_RESOURCE = 0x0008,
981 D3D11_BIND_STREAM_OUTPUT = 0x0010,
982 D3D11_BIND_RENDER_TARGET = 0x0020,
983 D3D11_BIND_DEPTH_STENCIL = 0x0040,
984 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
985 D3D11_BIND_DECODER = 0x0200,
986 D3D11_BIND_VIDEO_ENCODER = 0x0400
987 } D3D11_BIND_FLAG;
989 typedef enum D3D11_CPU_ACCESS_FLAG
991 D3D11_CPU_ACCESS_WRITE = 0x00010000,
992 D3D11_CPU_ACCESS_READ = 0x00020000
993 } D3D11_CPU_ACCESS_FLAG;
995 typedef struct D3D11_VIEWPORT
997 FLOAT TopLeftX;
998 FLOAT TopLeftY;
999 FLOAT Width;
1000 FLOAT Height;
1001 FLOAT MinDepth;
1002 FLOAT MaxDepth;
1003 } D3D11_VIEWPORT;
1005 typedef enum D3D11_COLOR_WRITE_ENABLE
1007 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1008 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1009 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1010 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1011 D3D11_COLOR_WRITE_ENABLE_ALL =
1012 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1013 } D3D11_COLOR_WRITE_ENABLE;
1015 typedef enum D3D11_FORMAT_SUPPORT
1017 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1018 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1019 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1020 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1021 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1022 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1023 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1024 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1025 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1026 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1027 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1028 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1029 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1030 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1031 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1032 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1033 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1034 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1035 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1036 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1037 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1038 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1039 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1040 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1041 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1042 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1043 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1044 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1045 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1046 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1047 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1048 } D3D11_FORMAT_SUPPORT;
1050 typedef enum D3D11_CLEAR_FLAG
1052 D3D11_CLEAR_DEPTH = 0x0001L,
1053 D3D11_CLEAR_STENCIL = 0x0002L
1054 } D3D11_CLEAR_FLAG;
1056 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1058 BOOL BlendEnable;
1059 D3D11_BLEND SrcBlend;
1060 D3D11_BLEND DestBlend;
1061 D3D11_BLEND_OP BlendOp;
1062 D3D11_BLEND SrcBlendAlpha;
1063 D3D11_BLEND DestBlendAlpha;
1064 D3D11_BLEND_OP BlendOpAlpha;
1065 UINT8 RenderTargetWriteMask;
1066 } D3D11_RENDER_TARGET_BLEND_DESC;
1068 typedef struct D3D11_BLEND_DESC
1070 BOOL AlphaToCoverageEnable;
1071 BOOL IndependentBlendEnable;
1072 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1073 } D3D11_BLEND_DESC;
1075 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1076 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1077 cpp_quote(" CD3D11_BLEND_DESC() {}")
1078 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1079 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1080 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1081 cpp_quote(" IndependentBlendEnable = FALSE;")
1082 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1083 cpp_quote(" target->BlendEnable = FALSE;")
1084 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1085 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1086 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1087 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1088 cpp_quote(" }")
1089 cpp_quote(" }")
1090 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1091 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1092 cpp_quote("};" )
1093 cpp_quote("#endif" )
1095 typedef struct D3D11_BUFFER_DESC
1097 UINT ByteWidth;
1098 D3D11_USAGE Usage;
1099 UINT BindFlags;
1100 UINT CPUAccessFlags;
1101 UINT MiscFlags;
1102 UINT StructureByteStride;
1103 } D3D11_BUFFER_DESC;
1105 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1106 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1107 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1108 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1109 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1110 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1111 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1112 cpp_quote(" ByteWidth = byteWidth;")
1113 cpp_quote(" Usage = usage;")
1114 cpp_quote(" BindFlags = bindFlags;")
1115 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1116 cpp_quote(" MiscFlags = miscFlags;" )
1117 cpp_quote(" StructureByteStride = structureByteStride;")
1118 cpp_quote(" }")
1119 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1120 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1121 cpp_quote("};" )
1122 cpp_quote("#endif" )
1124 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1126 DXGI_FORMAT Format;
1127 D3D11_DSV_DIMENSION ViewDimension;
1128 UINT Flags;
1130 union
1132 D3D11_TEX1D_DSV Texture1D;
1133 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1134 D3D11_TEX2D_DSV Texture2D;
1135 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1136 D3D11_TEX2DMS_DSV Texture2DMS;
1137 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1139 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1141 typedef struct D3D11_DEPTH_STENCILOP_DESC
1143 D3D11_STENCIL_OP StencilFailOp;
1144 D3D11_STENCIL_OP StencilDepthFailOp;
1145 D3D11_STENCIL_OP StencilPassOp;
1146 D3D11_COMPARISON_FUNC StencilFunc;
1147 } D3D11_DEPTH_STENCILOP_DESC;
1149 typedef struct D3D11_DEPTH_STENCIL_DESC
1151 BOOL DepthEnable;
1152 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1153 D3D11_COMPARISON_FUNC DepthFunc;
1154 BOOL StencilEnable;
1155 UINT8 StencilReadMask;
1156 UINT8 StencilWriteMask;
1157 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1158 D3D11_DEPTH_STENCILOP_DESC BackFace;
1159 } D3D11_DEPTH_STENCIL_DESC;
1161 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1163 DXGI_FORMAT Format;
1164 D3D11_RTV_DIMENSION ViewDimension;
1166 union
1168 D3D11_BUFFER_RTV Buffer;
1169 D3D11_TEX1D_RTV Texture1D;
1170 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1171 D3D11_TEX2D_RTV Texture2D;
1172 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1173 D3D11_TEX2DMS_RTV Texture2DMS;
1174 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1175 D3D11_TEX3D_RTV Texture3D;
1177 } D3D11_RENDER_TARGET_VIEW_DESC;
1179 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1180 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1181 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1182 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1183 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1184 cpp_quote(" Format = format;")
1185 cpp_quote(" ViewDimension = dim;")
1186 cpp_quote(" switch(dim) {")
1187 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1188 cpp_quote(" Buffer.FirstElement = mip_slice;")
1189 cpp_quote(" Buffer.NumElements = first_slice;")
1190 cpp_quote(" break;")
1191 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1192 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1193 cpp_quote(" break;")
1194 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1195 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1196 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1197 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1198 cpp_quote(" break;")
1199 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1200 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1201 cpp_quote(" break;")
1202 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1203 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1204 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1205 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1206 cpp_quote(" break;")
1207 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1208 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1209 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1210 cpp_quote(" break;")
1211 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1212 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1213 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1214 cpp_quote(" Texture3D.WSize = array_size;")
1215 cpp_quote(" break;")
1216 cpp_quote(" default:")
1217 cpp_quote(" break;")
1218 cpp_quote(" }")
1219 cpp_quote(" }")
1220 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1221 cpp_quote(" UINT elem_cnt) {")
1222 cpp_quote(" Format = format;")
1223 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1224 cpp_quote(" Buffer.FirstElement = first_elem;")
1225 cpp_quote(" Buffer.NumElements = elem_cnt;")
1226 cpp_quote(" }")
1227 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1228 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1229 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1230 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1231 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1232 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1233 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1234 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1235 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1236 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1237 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1238 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1239 cpp_quote(" return *this;")
1240 cpp_quote(" }")
1241 cpp_quote("};")
1242 cpp_quote("#endif")
1245 typedef struct D3D11_SAMPLER_DESC
1247 D3D11_FILTER Filter;
1248 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1249 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1250 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1251 FLOAT MipLODBias;
1252 UINT MaxAnisotropy;
1253 D3D11_COMPARISON_FUNC ComparisonFunc;
1254 FLOAT BorderColor[4];
1255 FLOAT MinLOD;
1256 FLOAT MaxLOD;
1257 } D3D11_SAMPLER_DESC;
1259 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1260 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1261 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1262 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1263 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1264 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1265 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1266 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1267 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1268 cpp_quote(" MipLODBias = 0;")
1269 cpp_quote(" MaxAnisotropy = 1;")
1270 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1271 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1272 cpp_quote(" MinLOD = -3.402823466e+38f;")
1273 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1274 cpp_quote(" }")
1275 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1276 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1277 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1278 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1279 cpp_quote(" Filter = filter;")
1280 cpp_quote(" AddressU = addressU;")
1281 cpp_quote(" AddressV = addressV;")
1282 cpp_quote(" AddressW = addressW;")
1283 cpp_quote(" MipLODBias = mipLODBias;")
1284 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1285 cpp_quote(" ComparisonFunc = comparisonFunc;")
1286 cpp_quote(" if(borderColor) {")
1287 cpp_quote(" BorderColor[0] = borderColor[0];")
1288 cpp_quote(" BorderColor[1] = borderColor[1];")
1289 cpp_quote(" BorderColor[2] = borderColor[2];")
1290 cpp_quote(" BorderColor[3] = borderColor[3];")
1291 cpp_quote(" }else {")
1292 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1293 cpp_quote(" }")
1294 cpp_quote(" MinLOD = minLOD;")
1295 cpp_quote(" MaxLOD = maxLOD;")
1296 cpp_quote(" }")
1297 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1298 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1299 cpp_quote("};")
1300 cpp_quote("#endif")
1302 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1304 DXGI_FORMAT Format;
1305 D3D11_SRV_DIMENSION ViewDimension;
1307 union
1309 D3D11_BUFFER_SRV Buffer;
1310 D3D11_TEX1D_SRV Texture1D;
1311 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1312 D3D11_TEX2D_SRV Texture2D;
1313 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1314 D3D11_TEX2DMS_SRV Texture2DMS;
1315 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1316 D3D11_TEX3D_SRV Texture3D;
1317 D3D11_TEXCUBE_SRV TextureCube;
1318 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1319 D3D11_BUFFEREX_SRV BufferEx;
1321 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1323 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1324 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1325 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1326 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1327 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1328 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1329 cpp_quote(" Format = format;")
1330 cpp_quote(" ViewDimension = dim;")
1331 cpp_quote(" switch(ViewDimension) {")
1332 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1333 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1334 cpp_quote(" Buffer.NumElements = mip_levels;")
1335 cpp_quote(" break;")
1336 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1337 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1338 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1339 cpp_quote(" break;")
1340 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1341 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1342 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1343 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1344 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1345 cpp_quote(" break;")
1346 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1347 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1348 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1349 cpp_quote(" break;")
1350 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1351 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1352 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1353 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1354 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1355 cpp_quote(" break;")
1356 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1357 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1358 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1359 cpp_quote(" break;")
1360 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1361 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1362 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1363 cpp_quote(" break;")
1364 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1365 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1366 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1367 cpp_quote(" break;")
1368 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1369 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1370 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1371 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1372 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1373 cpp_quote(" break;")
1374 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1375 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1376 cpp_quote(" BufferEx.NumElements = mip_levels;")
1377 cpp_quote(" BufferEx.Flags = flags;")
1378 cpp_quote(" break;")
1379 cpp_quote(" default:")
1380 cpp_quote(" break;")
1381 cpp_quote(" }")
1382 cpp_quote(" }")
1383 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1384 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1385 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1386 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1387 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1388 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1389 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1390 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1391 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1392 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1393 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1394 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1395 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1396 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1397 cpp_quote(" return *this;")
1398 cpp_quote(" }")
1399 cpp_quote("};")
1400 cpp_quote("#endif")
1402 typedef struct D3D11_TEXTURE1D_DESC
1404 UINT Width;
1405 UINT MipLevels;
1406 UINT ArraySize;
1407 DXGI_FORMAT Format;
1408 D3D11_USAGE Usage;
1409 UINT BindFlags;
1410 UINT CPUAccessFlags;
1411 UINT MiscFlags;
1412 } D3D11_TEXTURE1D_DESC;
1414 typedef struct D3D11_TEXTURE2D_DESC
1416 UINT Width;
1417 UINT Height;
1418 UINT MipLevels;
1419 UINT ArraySize;
1420 DXGI_FORMAT Format;
1421 DXGI_SAMPLE_DESC SampleDesc;
1422 D3D11_USAGE Usage;
1423 UINT BindFlags;
1424 UINT CPUAccessFlags;
1425 UINT MiscFlags;
1426 } D3D11_TEXTURE2D_DESC;
1428 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1429 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1430 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1431 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1432 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1433 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1434 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1435 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1436 cpp_quote(" Width = width;")
1437 cpp_quote(" Height = height;")
1438 cpp_quote(" MipLevels = mipLevels;")
1439 cpp_quote(" ArraySize = arraySize;")
1440 cpp_quote(" Format = format;")
1441 cpp_quote(" SampleDesc.Count = sampleCount;")
1442 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1443 cpp_quote(" Usage = usage;")
1444 cpp_quote(" BindFlags = bindFlags;")
1445 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1446 cpp_quote(" MiscFlags = miscFlags;")
1447 cpp_quote(" }" )
1448 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1449 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1450 cpp_quote("};")
1451 cpp_quote("#endif")
1453 typedef struct D3D11_TEXTURE3D_DESC
1455 UINT Width;
1456 UINT Height;
1457 UINT Depth;
1458 UINT MipLevels;
1459 DXGI_FORMAT Format;
1460 D3D11_USAGE Usage;
1461 UINT BindFlags;
1462 UINT CPUAccessFlags;
1463 UINT MiscFlags;
1464 } D3D11_TEXTURE3D_DESC;
1466 typedef struct D3D11_VIDEO_DECODER_DESC
1468 GUID Guid;
1469 UINT SampleWidth;
1470 UINT SampleHeight;
1471 DXGI_FORMAT OutputFormat;
1472 } D3D11_VIDEO_DECODER_DESC;
1474 typedef struct D3D11_VIDEO_DECODER_CONFIG
1476 GUID guidConfigBitstreamEncryption;
1477 GUID guidConfigMBcontrolEncryption;
1478 GUID guidConfigResidDiffEncryption;
1479 UINT ConfigBitstreamRaw;
1480 UINT ConfigMBcontrolRasterOrder;
1481 UINT ConfigResidDiffHost;
1482 UINT ConfigSpatialResid8;
1483 UINT ConfigResid8Subtraction;
1484 UINT ConfigSpatialHost8or9Clipping;
1485 UINT ConfigSpatialResidInterleaved;
1486 UINT ConfigIntraResidUnsigned;
1487 UINT ConfigResidDiffAccelerator;
1488 UINT ConfigHostInverseScan;
1489 UINT ConfigSpecificIDCT;
1490 UINT Config4GroupedCoefs;
1491 USHORT ConfigMinRenderTargetBuffCount;
1492 USHORT ConfigDecoderSpecific;
1493 } D3D11_VIDEO_DECODER_CONFIG;
1495 typedef enum D3D11_VIDEO_FRAME_FORMAT
1497 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1498 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1499 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1500 } D3D11_VIDEO_FRAME_FORMAT;
1502 typedef enum D3D11_VIDEO_USAGE
1504 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1505 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1506 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1507 } D3D11_VIDEO_USAGE;
1509 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1511 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1512 DXGI_RATIONAL InputFrameRate;
1513 UINT InputWidth;
1514 UINT InputHeight;
1515 DXGI_RATIONAL OutputFrameRate;
1516 UINT OutputWidth;
1517 UINT OutputHeight;
1518 D3D11_VIDEO_USAGE Usage;
1519 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1521 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1523 UINT DeviceCaps;
1524 UINT FeatureCaps;
1525 UINT FilterCaps;
1526 UINT InputFormatCaps;
1527 UINT AutoStreamCaps;
1528 UINT StereoCaps;
1529 UINT RateConversionCapsCount;
1530 UINT MaxInputStreams;
1531 UINT MaxStreamStates;
1532 } D3D11_VIDEO_PROCESSOR_CAPS;
1534 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1536 UINT PastFrames;
1537 UINT FutureFrames;
1538 UINT ProcessorCaps;
1539 UINT ITelecineCaps;
1540 UINT CustomRateCount;
1541 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1543 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1545 DXGI_RATIONAL CustomRate;
1546 UINT OutputFrames;
1547 BOOL InputInterlaced;
1548 UINT InputFramesOrFields;
1549 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1551 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1553 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1554 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1555 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1556 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1557 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1558 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1559 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1560 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1561 } D3D11_VIDEO_PROCESSOR_FILTER;
1563 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1565 int Minimum;
1566 int Maximum;
1567 int Default;
1568 float Multiplier;
1569 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1571 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1573 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1574 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1575 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1576 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1578 typedef enum D3D11_VDOV_DIMENSION
1580 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1581 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1582 } D3D11_VDOV_DIMENSION;
1584 typedef struct D3D11_TEX2D_VDOV
1586 UINT ArraySlice;
1587 } D3D11_TEX2D_VDOV;
1589 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1591 GUID DecodeProfile;
1592 D3D11_VDOV_DIMENSION ViewDimension;
1593 union {
1594 D3D11_TEX2D_VDOV Texture2D;
1596 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1598 typedef enum D3D11_VPIV_DIMENSION
1600 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1601 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1602 } D3D11_VPIV_DIMENSION;
1604 typedef struct D3D11_TEX2D_VPIV
1606 UINT MipSlice;
1607 UINT ArraySlice;
1608 } D3D11_TEX2D_VPIV;
1610 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1612 UINT FourCC;
1613 D3D11_VPIV_DIMENSION ViewDimension;
1614 union {
1615 D3D11_TEX2D_VPIV Texture2D;
1617 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1619 typedef enum D3D11_VPOV_DIMENSION
1621 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1622 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1623 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1624 } D3D11_VPOV_DIMENSION;
1626 typedef struct D3D11_TEX2D_VPOV
1628 UINT MipSlice;
1629 } D3D11_TEX2D_VPOV;
1631 typedef struct D3D11_TEX2D_ARRAY_VPOV
1633 UINT MipSlice;
1634 UINT FirstArraySlice;
1635 UINT ArraySize;
1636 } D3D11_TEX2D_ARRAY_VPOV;
1638 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1640 D3D11_VPOV_DIMENSION ViewDimension;
1641 union {
1642 D3D11_TEX2D_VPOV Texture2D;
1643 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1645 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1647 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1649 UINT Caps;
1650 UINT KeyExchangeTypeCount;
1651 UINT BlockAlignmentSize;
1652 ULONGLONG ProtectedMemorySize;
1653 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1655 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1657 UINT NumEncryptedBytesAtBeginning;
1658 UINT NumBytesInSkipPattern;
1659 UINT NumBytesInEncryptPattern;
1660 } D3D11_ENCRYPTED_BLOCK_INFO;
1662 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
1664 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
1665 UINT BufferIndex;
1666 UINT DataOffset;
1667 UINT DataSize;
1668 UINT FirstMBaddress;
1669 UINT NumMBsInBuffer;
1670 UINT Width;
1671 UINT Height;
1672 UINT Stride;
1673 UINT ReservedBits;
1674 void *pIV;
1675 UINT IVSize;
1676 BOOL PartialEncryption;
1677 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
1678 } D3D11_VIDEO_DECODER_BUFFER_DESC;
1680 typedef struct D3D11_VIDEO_DECODER_EXTENSION
1682 UINT Function;
1683 void *pPrivateInputData;
1684 UINT PrivateInputDataSize;
1685 void *pPrivateOutputData;
1686 UINT PrivateOutputDataSize;
1687 UINT ResourceCount;
1688 ID3D11Resource **ppResourceList;
1689 } D3D11_VIDEO_DECODER_EXTENSION;
1691 typedef struct D3D11_VIDEO_COLOR_YCbCrA
1693 float Y;
1694 float Cb;
1695 float Cr;
1696 float A;
1697 } D3D11_VIDEO_COLOR_YCbCrA;
1699 typedef struct D3D11_VIDEO_COLOR_RGBA
1701 float R;
1702 float G;
1703 float B;
1704 float A;
1705 } D3D11_VIDEO_COLOR_RGBA;
1707 typedef struct D3D11_VIDEO_COLOR
1709 union
1711 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
1712 D3D11_VIDEO_COLOR_RGBA RGBA;
1714 } D3D11_VIDEO_COLOR;
1716 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
1718 UINT Usage : 1;
1719 UINT RGB_Range : 1;
1720 UINT YCbCr_Matrix : 1;
1721 UINT YCbCr_xvYCC : 1;
1722 UINT Nominal_Range : 2;
1723 UINT Reserved : 26;
1724 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
1726 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
1728 BOOL Enable;
1729 UINT OutputIndex;
1730 UINT InputFrameOrField;
1731 UINT PastFrames;
1732 UINT FutureFrames;
1733 ID3D11VideoProcessorInputView **ppPastSurfaces;
1734 ID3D11VideoProcessorInputView *pInputSurface;
1735 ID3D11VideoProcessorInputView **ppFutureSurfaces;
1736 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
1737 ID3D11VideoProcessorInputView *pInputSurfaceRight;
1738 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
1739 } D3D11_VIDEO_PROCESSOR_STREAM;
1741 typedef struct D3D11_OMAC
1743 BYTE Omac[D3D11_OMAC_SIZE];
1744 } D3D11_OMAC;
1746 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
1748 D3D11_OMAC omac;
1749 GUID ConfigureType;
1750 HANDLE hChannel;
1751 UINT SequenceNumber;
1752 HRESULT ReturnCode;
1753 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
1755 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
1757 UINT64 Frequency;
1758 BOOL Disjoint;
1759 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
1762 object,
1763 local,
1764 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
1766 interface ID3D11DeviceChild : IUnknown
1768 void GetDevice(
1769 [out] ID3D11Device **ppDevice);
1770 HRESULT GetPrivateData(
1771 [in] REFGUID guid,
1772 [in, out] UINT *pDataSize,
1773 [out] void *pData);
1774 HRESULT SetPrivateData(
1775 [in] REFGUID guid,
1776 [in] UINT DataSize,
1777 [in] const void *pData);
1778 HRESULT SetPrivateDataInterface(
1779 [in] REFGUID guid,
1780 [in] const IUnknown *pData);
1784 object,
1785 local,
1786 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
1788 interface ID3D11Asynchronous : ID3D11DeviceChild
1790 UINT GetDataSize();
1794 object,
1795 local,
1796 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
1798 interface ID3D11Query : ID3D11Asynchronous
1800 void GetDesc(
1801 [out] D3D11_QUERY_DESC *pDesc);
1805 object,
1806 local,
1807 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
1809 interface ID3D11Resource : ID3D11DeviceChild
1811 void GetType(
1812 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
1813 void SetEvictionPriority(
1814 [in] UINT EvictionPriority);
1815 UINT GetEvictionPriority();
1819 object,
1820 local,
1821 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
1823 interface ID3D11View : ID3D11DeviceChild
1825 void GetResource(
1826 [out] ID3D11Resource **ppResource);
1830 object,
1831 local,
1832 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
1834 interface ID3D11BlendState : ID3D11DeviceChild
1836 void GetDesc(
1837 [out] D3D11_BLEND_DESC *pDesc);
1841 object,
1842 local,
1843 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
1845 interface ID3D11Buffer : ID3D11Resource
1847 void GetDesc(
1848 [out] D3D11_BUFFER_DESC *pDesc);
1852 object,
1853 local,
1854 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
1856 interface ID3D11ClassInstance : ID3D11DeviceChild
1858 void GetClassLinkage(
1859 [out] ID3D11ClassLinkage **ppLinkage);
1860 void GetDesc(
1861 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
1862 void GetInstanceName(
1863 [out] LPSTR pInstanceName,
1864 [in, out] SIZE_T *pBufferLength);
1865 void GetTypeName(
1866 [out] LPSTR pTypeName,
1867 [in, out] SIZE_T *pBufferLength);
1871 object,
1872 local,
1873 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
1875 interface ID3D11ClassLinkage : ID3D11DeviceChild
1877 HRESULT GetClassInstance(
1878 [in] LPCSTR pClassInstanceName,
1879 [in] UINT InstanceIndex,
1880 [out] ID3D11ClassInstance **ppInstance);
1881 HRESULT CreateClassInstance(
1882 [in] LPCSTR pClassTypeName,
1883 [in] UINT ConstantBufferOffset,
1884 [in] UINT ConstantVectorOffset,
1885 [in] UINT TextureOffset,
1886 [in] UINT SamplerOffset,
1887 [out] ID3D11ClassInstance **ppInstance);
1891 object,
1892 local,
1893 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
1895 interface ID3D11CommandList : ID3D11DeviceChild
1897 UINT GetContextFlags();
1901 object,
1902 local,
1903 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
1905 interface ID3D11ComputeShader : ID3D11DeviceChild
1910 object,
1911 local,
1912 uuid(6e8c49fb-a371-4770-b440-29086022b741)
1914 interface ID3D11Counter : ID3D11Asynchronous
1916 void GetDesc(
1917 [out] D3D11_COUNTER_DESC *pDesc);
1921 object,
1922 local,
1923 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
1925 interface ID3D11DepthStencilState : ID3D11DeviceChild
1927 void GetDesc(
1928 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
1932 object,
1933 local,
1934 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
1936 interface ID3D11DepthStencilView : ID3D11View
1938 void GetDesc(
1939 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
1943 object,
1944 local,
1945 uuid(f582c508-0f36-490c-9977-31eece268cfa)
1947 interface ID3D11DomainShader : ID3D11DeviceChild
1952 object,
1953 local,
1954 uuid(38325b96-effb-4022-ba02-2e795b70275c)
1956 interface ID3D11GeometryShader : ID3D11DeviceChild
1961 object,
1962 local,
1963 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
1965 interface ID3D11HullShader : ID3D11DeviceChild
1970 object,
1971 local,
1972 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
1974 interface ID3D11InputLayout : ID3D11DeviceChild
1979 object,
1980 local,
1981 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
1983 interface ID3D11PixelShader : ID3D11DeviceChild
1988 object,
1989 local,
1990 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
1992 interface ID3D11Predicate : ID3D11Query
1997 object,
1998 local,
1999 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2001 interface ID3D11RasterizerState : ID3D11DeviceChild
2003 void GetDesc(
2004 [out] D3D11_RASTERIZER_DESC *pDesc);
2008 object,
2009 local,
2010 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2012 interface ID3D11RenderTargetView : ID3D11View
2014 void GetDesc(
2015 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2019 object,
2020 local,
2021 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2023 interface ID3D11SamplerState : ID3D11DeviceChild
2025 void GetDesc(
2026 [out] D3D11_SAMPLER_DESC *pDesc);
2030 object,
2031 local,
2032 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2034 interface ID3D11ShaderResourceView : ID3D11View
2036 void GetDesc(
2037 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2041 object,
2042 local,
2043 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2045 interface ID3D11Texture1D : ID3D11Resource
2047 void GetDesc(
2048 [out] D3D11_TEXTURE1D_DESC *pDesc);
2052 object,
2053 local,
2054 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2056 interface ID3D11Texture2D : ID3D11Resource
2058 void GetDesc(
2059 [out] D3D11_TEXTURE2D_DESC *pDesc);
2063 object,
2064 local,
2065 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2067 interface ID3D11Texture3D : ID3D11Resource
2069 void GetDesc(
2070 [out] D3D11_TEXTURE3D_DESC *pDesc);
2074 object,
2075 local,
2076 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2078 interface ID3D11UnorderedAccessView : ID3D11View
2080 void GetDesc(
2081 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2085 object,
2086 local,
2087 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2089 interface ID3D11VertexShader : ID3D11DeviceChild
2094 object,
2095 local,
2096 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2098 interface ID3D11DeviceContext : ID3D11DeviceChild
2100 void VSSetConstantBuffers(
2101 [in] UINT StartSlot,
2102 [in] UINT NumBuffers,
2103 [in] ID3D11Buffer *const *ppConstantBuffers);
2104 void PSSetShaderResources(
2105 [in] UINT StartSlot,
2106 [in] UINT NumViews,
2107 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2108 void PSSetShader(
2109 [in] ID3D11PixelShader *pPixelShader,
2110 [in] ID3D11ClassInstance *const *ppClassInstances,
2111 UINT NumClassInstances);
2112 void PSSetSamplers(
2113 [in] UINT StartSlot,
2114 [in] UINT NumSamplers,
2115 [in] ID3D11SamplerState *const *ppSamplers);
2116 void VSSetShader(
2117 [in] ID3D11VertexShader *pVertexShader,
2118 [in] ID3D11ClassInstance *const *ppClassInstances,
2119 UINT NumClassInstances);
2120 void DrawIndexed(
2121 [in] UINT IndexCount,
2122 [in] UINT StartIndexLocation,
2123 [in] INT BaseVertexLocation);
2124 void Draw(
2125 [in] UINT VertexCount,
2126 [in] UINT StartVertexLocation);
2127 HRESULT Map(
2128 [in] ID3D11Resource *pResource,
2129 [in] UINT Subresource,
2130 [in] D3D11_MAP MapType,
2131 [in] UINT MapFlags,
2132 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2133 void Unmap(
2134 [in] ID3D11Resource *pResource,
2135 [in] UINT Subresource);
2136 void PSSetConstantBuffers(
2137 [in] UINT StartSlot,
2138 [in] UINT NumBuffers,
2139 [in] ID3D11Buffer *const *ppConstantBuffers);
2140 void IASetInputLayout(
2141 [in] ID3D11InputLayout *pInputLayout);
2142 void IASetVertexBuffers(
2143 [in] UINT StartSlot,
2144 [in] UINT NumBuffers,
2145 [in] ID3D11Buffer *const *ppVertexBuffers,
2146 [in] const UINT *pStrides,
2147 [in] const UINT *pOffsets);
2148 void IASetIndexBuffer(
2149 [in] ID3D11Buffer *pIndexBuffer,
2150 [in] DXGI_FORMAT Format,
2151 [in] UINT Offset);
2152 void DrawIndexedInstanced(
2153 [in] UINT IndexCountPerInstance,
2154 [in] UINT InstanceCount,
2155 [in] UINT StartIndexLocation,
2156 [in] INT BaseVertexLocation,
2157 [in] UINT StartInstanceLocation);
2158 void DrawInstanced(
2159 [in] UINT VertexCountPerInstance,
2160 [in] UINT InstanceCount,
2161 [in] UINT StartVertexLocation,
2162 [in] UINT StartInstanceLocation);
2163 void GSSetConstantBuffers(
2164 [in] UINT StartSlot,
2165 [in] UINT NumBuffers,
2166 [in] ID3D11Buffer *const *ppConstantBuffers);
2167 void GSSetShader(
2168 [in] ID3D11GeometryShader *pShader,
2169 [in] ID3D11ClassInstance *const *ppClassInstances,
2170 UINT NumClassInstances);
2171 void IASetPrimitiveTopology(
2172 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2173 void VSSetShaderResources(
2174 [in] UINT StartSlot,
2175 [in] UINT NumViews,
2176 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2177 void VSSetSamplers(
2178 [in] UINT StartSlot,
2179 [in] UINT NumSamplers,
2180 [in] ID3D11SamplerState *const *ppSamplers);
2181 void Begin(
2182 [in] ID3D11Asynchronous *pAsync);
2183 void End(
2184 [in] ID3D11Asynchronous *pAsync);
2185 HRESULT GetData(
2186 [in] ID3D11Asynchronous *pAsync,
2187 [in] void *pData,
2188 [in] UINT DataSize,
2189 [in] UINT GetDataFlags);
2190 void SetPredication(
2191 [in] ID3D11Predicate *pPredicate,
2192 [in] BOOL PredicateValue);
2193 void GSSetShaderResources(
2194 [in] UINT StartSlot,
2195 [in] UINT NumViews,
2196 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2197 void GSSetSamplers(
2198 [in] UINT StartSlot,
2199 [in] UINT NumSamplers,
2200 [in] ID3D11SamplerState *const *ppSamplers);
2201 void OMSetRenderTargets(
2202 [in] UINT NumViews,
2203 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2204 [in] ID3D11DepthStencilView *pDepthStencilView);
2205 void OMSetRenderTargetsAndUnorderedAccessViews(
2206 [in] UINT NumRTVs,
2207 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2208 [in] ID3D11DepthStencilView *pDepthStencilView,
2209 [in] UINT UAVStartSlot,
2210 [in] UINT NumUAVs,
2211 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2212 [in] const UINT *pUAVInitialCounts);
2213 void OMSetBlendState(
2214 [in] ID3D11BlendState *pBlendState,
2215 [in] const FLOAT BlendFactor[4],
2216 [in] UINT SampleMask);
2217 void OMSetDepthStencilState(
2218 [in] ID3D11DepthStencilState *pDepthStencilState,
2219 [in] UINT StencilRef);
2220 void SOSetTargets(
2221 [in] UINT NumBuffers,
2222 [in] ID3D11Buffer *const *ppSOTargets,
2223 [in] const UINT *pOffsets);
2224 void DrawAuto();
2225 void DrawIndexedInstancedIndirect(
2226 [in] ID3D11Buffer *pBufferForArgs,
2227 [in] UINT AlignedByteOffsetForArgs);
2228 void DrawInstancedIndirect(
2229 [in] ID3D11Buffer *pBufferForArgs,
2230 [in] UINT AlignedByteOffsetForArgs);
2231 void Dispatch(
2232 [in] UINT ThreadGroupCountX,
2233 [in] UINT ThreadGroupCountY,
2234 [in] UINT ThreadGroupCountZ);
2235 void DispatchIndirect(
2236 [in] ID3D11Buffer *pBufferForArgs,
2237 [in] UINT AlignedByteOffsetForArgs);
2238 void RSSetState(
2239 [in] ID3D11RasterizerState *pRasterizerState);
2240 void RSSetViewports(
2241 [in] UINT NumViewports,
2242 [in] const D3D11_VIEWPORT *pViewports);
2243 void RSSetScissorRects(
2244 [in] UINT NumRects,
2245 [in] const D3D11_RECT *pRects);
2246 void CopySubresourceRegion(
2247 [in] ID3D11Resource *pDstResource,
2248 [in] UINT DstSubresource,
2249 [in] UINT DstX,
2250 [in] UINT DstY,
2251 [in] UINT DstZ,
2252 [in] ID3D11Resource *pSrcResource,
2253 [in] UINT SrcSubresource,
2254 [in] const D3D11_BOX *pSrcBox);
2255 void CopyResource(
2256 [in] ID3D11Resource *pDstResource,
2257 [in] ID3D11Resource *pSrcResource);
2258 void UpdateSubresource(
2259 [in] ID3D11Resource *pDstResource,
2260 [in] UINT DstSubresource,
2261 [in] const D3D11_BOX *pDstBox,
2262 [in] const void *pSrcData,
2263 [in] UINT SrcRowPitch,
2264 [in] UINT SrcDepthPitch);
2265 void CopyStructureCount(
2266 [in] ID3D11Buffer *pDstBuffer,
2267 [in] UINT DstAlignedByteOffset,
2268 [in] ID3D11UnorderedAccessView *pSrcView);
2269 void ClearRenderTargetView(
2270 [in] ID3D11RenderTargetView *pRenderTargetView,
2271 [in] const FLOAT ColorRGBA[4]);
2272 void ClearUnorderedAccessViewUint(
2273 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2274 [in] const UINT Values[4]);
2275 void ClearUnorderedAccessViewFloat(
2276 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2277 [in] const FLOAT Values[4]);
2278 void ClearDepthStencilView(
2279 [in] ID3D11DepthStencilView *pDepthStencilView,
2280 [in] UINT ClearFlags,
2281 [in] FLOAT Depth,
2282 [in] UINT8 Stencil);
2283 void GenerateMips(
2284 [in] ID3D11ShaderResourceView *pShaderResourceView);
2285 void SetResourceMinLOD(
2286 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2287 FLOAT GetResourceMinLOD(
2288 [in] ID3D11Resource *pResource);
2289 void ResolveSubresource(
2290 [in] ID3D11Resource *pDstResource,
2291 [in] UINT DstSubresource,
2292 [in] ID3D11Resource *pSrcResource,
2293 [in] UINT SrcSubresource,
2294 [in] DXGI_FORMAT Format);
2295 void ExecuteCommandList(
2296 [in] ID3D11CommandList *pCommandList,
2297 BOOL RestoreContextState);
2298 void HSSetShaderResources(
2299 [in] UINT StartSlot,
2300 [in] UINT NumViews,
2301 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2302 void HSSetShader(
2303 [in] ID3D11HullShader *pHullShader,
2304 [in] ID3D11ClassInstance *const *ppClassInstances,
2305 UINT NumClassInstances);
2306 void HSSetSamplers(
2307 [in] UINT StartSlot,
2308 [in] UINT NumSamplers,
2309 [in] ID3D11SamplerState *const *ppSamplers);
2310 void HSSetConstantBuffers(
2311 [in] UINT StartSlot,
2312 [in] UINT NumBuffers,
2313 [in] ID3D11Buffer *const *ppConstantBuffers);
2314 void DSSetShaderResources(
2315 [in] UINT StartSlot,
2316 [in] UINT NumViews,
2317 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2318 void DSSetShader(
2319 [in] ID3D11DomainShader *pDomainShader,
2320 [in] ID3D11ClassInstance *const *ppClassInstances,
2321 UINT NumClassInstances);
2322 void DSSetSamplers(
2323 [in] UINT StartSlot,
2324 [in] UINT NumSamplers,
2325 [in] ID3D11SamplerState *const *ppSamplers);
2326 void DSSetConstantBuffers(
2327 [in] UINT StartSlot,
2328 [in] UINT NumBuffers,
2329 [in] ID3D11Buffer *const *ppConstantBuffers);
2330 void CSSetShaderResources(
2331 [in] UINT StartSlot,
2332 [in] UINT NumViews,
2333 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2334 void CSSetUnorderedAccessViews(
2335 [in] UINT StartSlot,
2336 [in] UINT NumUAVs,
2337 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2338 [in] const UINT *pUAVInitialCounts);
2339 void CSSetShader(
2340 [in] ID3D11ComputeShader *pComputeShader,
2341 [in] ID3D11ClassInstance *const *ppClassInstances,
2342 UINT NumClassInstances);
2343 void CSSetSamplers(
2344 [in] UINT StartSlot,
2345 [in] UINT NumSamplers,
2346 [in] ID3D11SamplerState *const *ppSamplers);
2347 void CSSetConstantBuffers(
2348 [in] UINT StartSlot,
2349 [in] UINT NumBuffers,
2350 [in] ID3D11Buffer *const *ppConstantBuffers);
2351 void VSGetConstantBuffers(
2352 [in] UINT StartSlot,
2353 [in] UINT NumBuffers,
2354 [out] ID3D11Buffer **ppConstantBuffers);
2355 void PSGetShaderResources(
2356 [in] UINT StartSlot,
2357 [in] UINT NumViews,
2358 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2359 void PSGetShader(
2360 [out] ID3D11PixelShader **ppPixelShader,
2361 [out] ID3D11ClassInstance **ppClassInstances,
2362 [in, out] UINT *pNumClassInstances);
2363 void PSGetSamplers(
2364 [in] UINT StartSlot,
2365 [in] UINT NumSamplers,
2366 [out] ID3D11SamplerState **ppSamplers);
2367 void VSGetShader(
2368 [out] ID3D11VertexShader **ppVertexShader,
2369 [out] ID3D11ClassInstance **ppClassInstances,
2370 [in, out] UINT *pNumClassInstances);
2371 void PSGetConstantBuffers(
2372 [in] UINT StartSlot,
2373 [in] UINT NumBuffers,
2374 [out] ID3D11Buffer **ppConstantBuffers);
2375 void IAGetInputLayout(
2376 [out] ID3D11InputLayout **ppInputLayout);
2377 void IAGetVertexBuffers(
2378 [in] UINT StartSlot,
2379 [in] UINT NumBuffers,
2380 [out] ID3D11Buffer **ppVertexBuffers,
2381 [out] UINT *pStrides,
2382 [out] UINT *pOffsets);
2383 void IAGetIndexBuffer(
2384 [out] ID3D11Buffer **pIndexBuffer,
2385 [out] DXGI_FORMAT* Format,
2386 [out] UINT* Offset);
2387 void GSGetConstantBuffers(
2388 [in] UINT StartSlot,
2389 [in] UINT NumBuffers,
2390 [out] ID3D11Buffer **ppConstantBuffers);
2391 void GSGetShader(
2392 [out] ID3D11GeometryShader **ppGeometryShader,
2393 [out] ID3D11ClassInstance **ppClassInstances,
2394 [in, out] UINT *pNumClassInstances);
2395 void IAGetPrimitiveTopology(
2396 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2397 void VSGetShaderResources(
2398 [in] UINT StartSlot,
2399 [in] UINT NumViews,
2400 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2401 void VSGetSamplers(
2402 [in] UINT StartSlot,
2403 [in] UINT NumSamplers,
2404 [out] ID3D11SamplerState **ppSamplers);
2405 void GetPredication(
2406 [out] ID3D11Predicate **ppPredicate,
2407 [out] BOOL *pPredicateValue);
2408 void GSGetShaderResources(
2409 [in] UINT StartSlot,
2410 [in] UINT NumViews,
2411 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2412 void GSGetSamplers(
2413 [in] UINT StartSlot,
2414 [in] UINT NumSamplers,
2415 [out] ID3D11SamplerState **ppSamplers);
2416 void OMGetRenderTargets(
2417 [in] UINT NumViews,
2418 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2419 [out] ID3D11DepthStencilView **ppDepthStencilView);
2420 void OMGetRenderTargetsAndUnorderedAccessViews(
2421 [in] UINT NumRTVs,
2422 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2423 [out] ID3D11DepthStencilView **ppDepthStencilView,
2424 [in] UINT UAVStartSlot,
2425 [in] UINT NumUAVs,
2426 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2427 void OMGetBlendState(
2428 [out] ID3D11BlendState **ppBlendState,
2429 [out] FLOAT BlendFactor[4],
2430 [out] UINT *pSampleMask);
2431 void OMGetDepthStencilState(
2432 [out] ID3D11DepthStencilState **ppDepthStencilState,
2433 [out] UINT *pStencilRef);
2434 void SOGetTargets(
2435 [in] UINT NumBuffers,
2436 [out] ID3D11Buffer **ppSOTargets);
2437 void RSGetState(
2438 [out] ID3D11RasterizerState **ppRasterizerState);
2439 void RSGetViewports(
2440 [in, out] UINT *pNumViewports,
2441 [out] D3D11_VIEWPORT *pViewports);
2442 void RSGetScissorRects(
2443 [in, out] UINT *pNumRects,
2444 [out] D3D11_RECT *pRects);
2445 void HSGetShaderResources(
2446 [in] UINT StartSlot,
2447 [in] UINT NumViews,
2448 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2449 void HSGetShader(
2450 [out] ID3D11HullShader **ppHullShader,
2451 [out] ID3D11ClassInstance **ppClassInstances,
2452 [in, out] UINT *pNumClassInstances);
2453 void HSGetSamplers(
2454 [in] UINT StartSlot,
2455 [in] UINT NumSamplers,
2456 [out] ID3D11SamplerState **ppSamplers);
2457 void HSGetConstantBuffers(
2458 [in] UINT StartSlot,
2459 [in] UINT NumBuffers,
2460 [out] ID3D11Buffer **ppConstantBuffers);
2461 void DSGetShaderResources(
2462 [in] UINT StartSlot,
2463 [in] UINT NumViews,
2464 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2465 void DSGetShader(
2466 [out] ID3D11DomainShader **ppDomainShader,
2467 [out] ID3D11ClassInstance **ppClassInstances,
2468 [in, out] UINT *pNumClassInstances);
2469 void DSGetSamplers(
2470 [in] UINT StartSlot,
2471 [in] UINT NumSamplers,
2472 [out] ID3D11SamplerState **ppSamplers);
2473 void DSGetConstantBuffers(
2474 [in] UINT StartSlot,
2475 [in] UINT NumBuffers,
2476 [out] ID3D11Buffer **ppConstantBuffers);
2477 void CSGetShaderResources(
2478 [in] UINT StartSlot,
2479 [in] UINT NumViews,
2480 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2481 void CSGetUnorderedAccessViews(
2482 [in] UINT StartSlot,
2483 [in] UINT NumUAVs,
2484 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2485 void CSGetShader(
2486 [out] ID3D11ComputeShader **ppComputeShader,
2487 [out] ID3D11ClassInstance **ppClassInstances,
2488 [in, out] UINT *pNumClassInstances);
2489 void CSGetSamplers(
2490 [in] UINT StartSlot,
2491 [in] UINT NumSamplers,
2492 [out] ID3D11SamplerState **ppSamplers);
2493 void CSGetConstantBuffers(
2494 [in] UINT StartSlot,
2495 [in] UINT NumBuffers,
2496 [out] ID3D11Buffer **ppConstantBuffers);
2497 void ClearState();
2498 void Flush();
2499 D3D11_DEVICE_CONTEXT_TYPE GetType();
2500 UINT GetContextFlags();
2501 HRESULT FinishCommandList(
2502 BOOL RestoreDeferredContextState,
2503 [out] ID3D11CommandList **ppCommandList);
2507 object,
2508 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
2509 local,
2510 pointer_default(unique)
2512 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
2514 HRESULT GetCertificateSize(
2515 UINT *pCertificateSize);
2516 HRESULT GetCertificate(
2517 UINT CertificateSize,
2518 BYTE *pCertificate);
2519 void GetChannelHandle(
2520 HANDLE *pChannelHandle);
2524 object,
2525 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
2526 local,
2527 pointer_default(unique)
2529 interface ID3D11CryptoSession : ID3D11DeviceChild
2531 void GetCryptoType(
2532 GUID *pCryptoType);
2533 void GetDecoderProfile(
2534 GUID *pDecoderProfile);
2535 HRESULT GetCertificateSize(
2536 UINT *pCertificateSize);
2537 HRESULT GetCertificate(
2538 UINT CertificateSize,
2539 BYTE *pCertificate);
2540 void GetCryptoSessionHandle(
2541 HANDLE *pCryptoSessionHandle);
2545 object,
2546 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
2547 local,
2548 pointer_default(unique)
2550 interface ID3D11VideoDecoder : ID3D11DeviceChild
2552 HRESULT GetCreationParameters(
2553 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2554 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2555 HRESULT GetDriverHandle(
2556 HANDLE *pDriverHandle);
2560 object,
2561 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
2562 local,
2563 pointer_default(unique)
2565 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
2567 HRESULT GetVideoProcessorContentDesc(
2568 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
2569 HRESULT CheckVideoProcessorFormat(
2570 DXGI_FORMAT Format,
2571 UINT *pFlags);
2572 HRESULT GetVideoProcessorCaps(
2573 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
2574 HRESULT GetVideoProcessorRateConversionCaps(
2575 UINT TypeIndex,
2576 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2577 HRESULT GetVideoProcessorCustomRate(
2578 UINT TypeIndex,
2579 UINT CustomRateIndex,
2580 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
2581 HRESULT GetVideoProcessorFilterRange(
2582 D3D11_VIDEO_PROCESSOR_FILTER Filter,
2583 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
2587 object,
2588 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
2589 local,
2590 pointer_default(unique)
2592 interface ID3D11VideoProcessor : ID3D11DeviceChild
2594 void GetContentDesc(
2595 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
2596 void GetRateConversionCaps(
2597 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2601 object,
2602 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
2603 local,
2604 pointer_default(unique)
2606 interface ID3D11VideoDecoderOutputView : ID3D11View
2608 void GetDesc(
2609 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
2613 object,
2614 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
2615 local,
2616 pointer_default(unique)
2618 interface ID3D11VideoProcessorInputView : ID3D11View
2620 void GetDesc(
2621 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
2625 object,
2626 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
2627 local,
2628 pointer_default(unique)
2630 interface ID3D11VideoProcessorOutputView : ID3D11View
2632 void GetDesc(
2633 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
2637 object,
2638 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
2639 local,
2640 pointer_default(unique)
2642 interface ID3D11VideoDevice : IUnknown
2644 HRESULT CreateVideoDecoder(
2645 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2646 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
2647 ID3D11VideoDecoder **ppDecoder);
2648 HRESULT CreateVideoProcessor(
2649 ID3D11VideoProcessorEnumerator *pEnum,
2650 UINT RateConversionIndex,
2651 ID3D11VideoProcessor **ppVideoProcessor);
2652 HRESULT CreateAuthenticatedChannel(
2653 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
2654 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
2655 HRESULT CreateCryptoSession(
2656 const GUID *pCryptoType,
2657 const GUID *pDecoderProfile,
2658 const GUID *pKeyExchangeType,
2659 ID3D11CryptoSession **ppCryptoSession);
2660 HRESULT CreateVideoDecoderOutputView(
2661 ID3D11Resource *pResource,
2662 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
2663 ID3D11VideoDecoderOutputView **ppVDOVView);
2664 HRESULT CreateVideoProcessorInputView(
2665 ID3D11Resource *pResource,
2666 ID3D11VideoProcessorEnumerator *pEnum,
2667 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
2668 ID3D11VideoProcessorInputView **ppVPIView);
2669 HRESULT CreateVideoProcessorOutputView(
2670 ID3D11Resource *pResource,
2671 ID3D11VideoProcessorEnumerator *pEnum,
2672 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
2673 ID3D11VideoProcessorOutputView **ppVPOView);
2674 HRESULT CreateVideoProcessorEnumerator(
2675 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
2676 ID3D11VideoProcessorEnumerator **ppEnum);
2677 UINT GetVideoDecoderProfileCount();
2678 HRESULT GetVideoDecoderProfile(
2679 UINT Index,
2680 GUID *pDecoderProfile);
2681 HRESULT CheckVideoDecoderFormat(
2682 const GUID *pDecoderProfile,
2683 DXGI_FORMAT Format,
2684 BOOL *pSupported);
2685 HRESULT GetVideoDecoderConfigCount(
2686 const D3D11_VIDEO_DECODER_DESC *pDesc,
2687 UINT *pCount);
2688 HRESULT GetVideoDecoderConfig(
2689 const D3D11_VIDEO_DECODER_DESC *pDesc,
2690 UINT Index,
2691 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2692 HRESULT GetContentProtectionCaps(
2693 const GUID *pCryptoType,
2694 const GUID *pDecoderProfile,
2695 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
2696 HRESULT CheckCryptoKeyExchange(
2697 const GUID *pCryptoType,
2698 const GUID *pDecoderProfile,
2699 UINT Index,
2700 GUID *pKeyExchangeType);
2701 HRESULT SetPrivateData(
2702 REFGUID guid,
2703 UINT DataSize,
2704 const void *pData);
2705 HRESULT SetPrivateDataInterface(
2706 REFGUID guid,
2707 const IUnknown *pData);
2711 object,
2712 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
2713 local,
2714 pointer_default(unique)
2716 interface ID3D11VideoContext : ID3D11DeviceChild
2718 HRESULT GetDecoderBuffer(
2719 [in] ID3D11VideoDecoder *decoder,
2720 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
2721 [out] UINT *buffer_size,
2722 [out] void **buffer
2724 HRESULT ReleaseDecoderBuffer(
2725 [in] ID3D11VideoDecoder *decoder,
2726 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
2728 HRESULT DecoderBeginFrame(
2729 [in] ID3D11VideoDecoder *decoder,
2730 [in] ID3D11VideoDecoderOutputView *view,
2731 [in] UINT key_size,
2732 [in] const void *key
2734 HRESULT DecoderEndFrame(
2735 [in] ID3D11VideoDecoder *decoder
2737 HRESULT SubmitDecoderBuffers(
2738 [in] ID3D11VideoDecoder *decoder,
2739 [in] UINT buffers_count,
2740 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
2742 HRESULT DecoderExtension(
2743 [in] ID3D11VideoDecoder *decoder,
2744 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
2746 void VideoProcessorSetOutputTargetRect(
2747 [in] ID3D11VideoProcessor *processor,
2748 [in] BOOL enable,
2749 [in] const RECT *rect
2751 void VideoProcessorSetOutputBackgroundColor(
2752 [in] ID3D11VideoProcessor *processor,
2753 [in] BOOL y_cb_cr,
2754 [in] const D3D11_VIDEO_COLOR *color
2756 void VideoProcessorSetOutputColorSpace(
2757 [in] ID3D11VideoProcessor *processor,
2758 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2760 void VideoProcessorSetOutputAlphaFillMode(
2761 [in] ID3D11VideoProcessor *processor,
2762 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
2763 [in] UINT stream_idx
2765 void VideoProcessorSetOutputConstriction(
2766 [in] ID3D11VideoProcessor *processor,
2767 [in] BOOL enable,
2768 [in] SIZE size
2770 void VideoProcessorSetOutputStereoMode(
2771 [in] ID3D11VideoProcessor *processor,
2772 [in] BOOL enable
2774 HRESULT VideoProcessorSetOutputExtension(
2775 [in] ID3D11VideoProcessor *processor,
2776 [in] const GUID *guid,
2777 [in] UINT data_size,
2778 [in] void *data
2780 void VideoProcessorGetOutputTargetRect(
2781 [in] ID3D11VideoProcessor *processor,
2782 [out] BOOL *enabled,
2783 [out] RECT *rect
2785 void VideoProcessorGetOutputBackgroundColor(
2786 [in] ID3D11VideoProcessor *processor,
2787 [out] BOOL *y_cb_cr,
2788 [out] D3D11_VIDEO_COLOR *color
2790 void VideoProcessorGetOutputColorSpace(
2791 [in] ID3D11VideoProcessor *processor,
2792 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2794 void VideoProcessorGetOutputAlphaFillMode(
2795 [in] ID3D11VideoProcessor *processor,
2796 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
2797 [out] UINT *stream_idx
2799 void VideoProcessorGetOutputConstriction(
2800 [in] ID3D11VideoProcessor *processor,
2801 [out] BOOL *enabled,
2802 [out] SIZE *size
2804 void VideoProcessorGetOutputStereoMode(
2805 [in] ID3D11VideoProcessor *processor,
2806 [out] BOOL *enabled
2808 HRESULT VideoProcessorGetOutputExtension(
2809 [in] ID3D11VideoProcessor *processor,
2810 [in] const GUID *guid,
2811 [in] UINT data_size,
2812 [out] void *data
2814 void VideoProcessorSetStreamFrameFormat(
2815 [in] ID3D11VideoProcessor *processor,
2816 [in] UINT stream_idx,
2817 [in] D3D11_VIDEO_FRAME_FORMAT format
2819 void VideoProcessorSetStreamColorSpace(
2820 [in] ID3D11VideoProcessor *processor,
2821 [in] UINT stream_idx,
2822 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2824 void VideoProcessorSetStreamOutputRate(
2825 [in] ID3D11VideoProcessor *processor,
2826 [in] UINT stream_idx,
2827 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
2828 [in] BOOL repeat,
2829 [in] const DXGI_RATIONAL *custom_rate
2831 void VideoProcessorSetStreamSourceRect(
2832 [in] ID3D11VideoProcessor *processor,
2833 [in] UINT stream_idx,
2834 [in] BOOL enable,
2835 [in] const RECT *rect
2837 void VideoProcessorSetStreamDestRect(
2838 [in] ID3D11VideoProcessor *processor,
2839 [in] UINT stream_idx,
2840 [in] BOOL enable,
2841 [in] const RECT *rect
2843 void VideoProcessorSetStreamAlpha(
2844 [in] ID3D11VideoProcessor *processor,
2845 [in] UINT stream_idx,
2846 [in] BOOL enable,
2847 [in] float alpha
2849 void VideoProcessorSetStreamPalette(
2850 [in] ID3D11VideoProcessor *processor,
2851 [in] UINT stream_idx,
2852 [in] UINT entry_count,
2853 [in] const UINT *entries
2855 void VideoProcessorSetStreamPixelAspectRatio(
2856 [in] ID3D11VideoProcessor *processor,
2857 [in] UINT stream_idx,
2858 [in] BOOL enable,
2859 [in] const DXGI_RATIONAL *src_aspect_ratio,
2860 [in] const DXGI_RATIONAL *dst_aspect_ratio
2862 void VideoProcessorSetStreamLumaKey(
2863 [in] ID3D11VideoProcessor *processor,
2864 [in] UINT stream_idx,
2865 [in] BOOL enable,
2866 [in] float lower,
2867 [in] float upper
2869 void VideoProcessorSetStreamStereoFormat(
2870 [in] ID3D11VideoProcessor *processor,
2871 [in] UINT stream_idx,
2872 [in] BOOL enable,
2873 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
2874 [in] BOOL left_view_frame0,
2875 [in] BOOL base_view_frame0,
2876 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
2877 [in] int mono_offset
2879 void VideoProcessorSetStreamAutoProcessingMode(
2880 [in] ID3D11VideoProcessor *processor,
2881 [in] UINT stream_idx,
2882 [in] BOOL enable
2884 void VideoProcessorSetStreamFilter(
2885 [in] ID3D11VideoProcessor *processor,
2886 [in] UINT stream_idx,
2887 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
2888 [in] BOOL enable,
2889 [in] int level
2891 HRESULT VideoProcessorSetStreamExtension(
2892 [in] ID3D11VideoProcessor *processor,
2893 [in] UINT stream_idx,
2894 [in] const GUID *guid,
2895 [in] UINT data_size,
2896 [in] void *data
2898 void VideoProcessorGetStreamFrameFormat(
2899 [in] ID3D11VideoProcessor *processor,
2900 [in] UINT stream_idx,
2901 [out] D3D11_VIDEO_FRAME_FORMAT *format
2903 void VideoProcessorGetStreamColorSpace(
2904 [in] ID3D11VideoProcessor *processor,
2905 [in] UINT stream_idx,
2906 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2908 void VideoProcessorGetStreamOutputRate(
2909 [in] ID3D11VideoProcessor *processor,
2910 [in] UINT stream_idx,
2911 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
2912 [out] BOOL *repeat,
2913 [out] DXGI_RATIONAL *custom_rate
2915 void VideoProcessorGetStreamSourceRect(
2916 [in] ID3D11VideoProcessor *processor,
2917 [in] UINT stream_idx,
2918 [out] BOOL *enabled,
2919 [out] RECT *rect
2921 void VideoProcessorGetStreamDestRect(
2922 [in] ID3D11VideoProcessor *processor,
2923 [in] UINT stream_idx,
2924 [out] BOOL *enabled,
2925 [out] RECT *rect
2927 void VideoProcessorGetStreamAlpha(
2928 [in] ID3D11VideoProcessor *processor,
2929 [in] UINT stream_idx,
2930 [out] BOOL *enabled,
2931 [out] float *alpha
2933 void VideoProcessorGetStreamPalette(
2934 [in] ID3D11VideoProcessor *processor,
2935 [in] UINT stream_idx,
2936 [in] UINT entry_count,
2937 [out] UINT *entries
2939 void VideoProcessorGetStreamPixelAspectRatio(
2940 [in] ID3D11VideoProcessor *processor,
2941 [in] UINT stream_idx,
2942 [out] BOOL *enabled,
2943 [out] DXGI_RATIONAL *src_aspect_ratio,
2944 [out] DXGI_RATIONAL *dst_aspect_ratio
2946 void VideoProcessorGetStreamLumaKey(
2947 [in] ID3D11VideoProcessor *processor,
2948 [in] UINT stream_idx,
2949 [out] BOOL *enabled,
2950 [out] float *lower,
2951 [out] float *upper
2953 void VideoProcessorGetStreamStereoFormat(
2954 [in] ID3D11VideoProcessor *processor,
2955 [in] UINT stream_idx,
2956 [out] BOOL *enabled,
2957 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
2958 [out] BOOL *left_view_frame0,
2959 [out] BOOL *base_view_frame0,
2960 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
2961 [out] int *mono_offset
2963 void VideoProcessorGetStreamAutoProcessingMode(
2964 [in] ID3D11VideoProcessor *processor,
2965 [in] UINT stream_idx,
2966 [out] BOOL *enabled
2968 void VideoProcessorGetStreamFilter(
2969 [in] ID3D11VideoProcessor *processor,
2970 [in] UINT stream_idx,
2971 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
2972 [out] BOOL *enabled,
2973 [out] int *level
2975 HRESULT VideoProcessorGetStreamExtension(
2976 [in] ID3D11VideoProcessor *processor,
2977 [in] UINT stream_idx,
2978 [in] const GUID *guid,
2979 [in] UINT data_size,
2980 [out] void *data
2982 HRESULT VideoProcessorBlt(
2983 [in] ID3D11VideoProcessor *processor,
2984 [in] ID3D11VideoProcessorOutputView *view,
2985 [in] UINT frame_idx,
2986 [in] UINT stream_count,
2987 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
2989 HRESULT NegotiateCryptoSessionKeyExchange(
2990 [in] ID3D11CryptoSession *session,
2991 [in] UINT data_size,
2992 [in, out] void *data
2994 void EncryptionBlt(
2995 [in] ID3D11CryptoSession *session,
2996 [in] ID3D11Texture2D *src_surface,
2997 [in] ID3D11Texture2D *dst_surface,
2998 [in] UINT iv_size,
2999 [in, out] void *iv
3001 void DecryptionBlt(
3002 [in] ID3D11CryptoSession *session,
3003 [in] ID3D11Texture2D *src_surface,
3004 [in] ID3D11Texture2D *dst_surface,
3005 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3006 [in] UINT key_size,
3007 [in] const void *key,
3008 [in] UINT iv_size,
3009 [in, out] void *iv
3011 void StartSessionKeyRefresh(
3012 [in] ID3D11CryptoSession *session,
3013 [in] UINT random_number_size,
3014 [out] void *random_number
3016 void FinishSessionKeyRefresh(
3017 [in] ID3D11CryptoSession *session
3019 HRESULT GetEncryptionBltKey(
3020 [in] ID3D11CryptoSession *session,
3021 [in] UINT key_size,
3022 [out] void *key
3024 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3025 [in] ID3D11AuthenticatedChannel *channel,
3026 [in] UINT data_size,
3027 [in, out] void *data
3029 HRESULT QueryAuthenticatedChannel(
3030 [in] ID3D11AuthenticatedChannel *channel,
3031 [in] UINT input_size,
3032 [in] const void *input,
3033 [in] UINT output_size,
3034 [out] void *output
3036 HRESULT ConfigureAuthenticatedChannel(
3037 [in] ID3D11AuthenticatedChannel *channel,
3038 [in] UINT input_size,
3039 [in] const void *input,
3040 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3042 void VideoProcessorSetStreamRotation(
3043 [in] ID3D11VideoProcessor *processor,
3044 [in] UINT stream_idx,
3045 [in] BOOL enable,
3046 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3048 void VideoProcessorGetStreamRotation(
3049 [in] ID3D11VideoProcessor *processor,
3050 [in] UINT stream_idx,
3051 [out] BOOL *enable,
3052 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3057 object,
3058 local,
3059 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3061 interface ID3D11Device : IUnknown
3063 HRESULT CreateBuffer(
3064 [in] const D3D11_BUFFER_DESC *pDesc,
3065 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3066 [out] ID3D11Buffer **ppBuffer);
3067 HRESULT CreateTexture1D(
3068 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3069 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3070 [out] ID3D11Texture1D **ppTexture1D);
3071 HRESULT CreateTexture2D(
3072 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3073 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3074 [out] ID3D11Texture2D **ppTexture2D);
3075 HRESULT CreateTexture3D(
3076 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3077 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3078 [out] ID3D11Texture3D **ppTexture3D);
3079 HRESULT CreateShaderResourceView(
3080 [in] ID3D11Resource *pResource,
3081 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3082 [out] ID3D11ShaderResourceView **ppSRView);
3083 HRESULT CreateUnorderedAccessView(
3084 [in] ID3D11Resource *pResource,
3085 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3086 [out] ID3D11UnorderedAccessView **ppUAView);
3087 HRESULT CreateRenderTargetView(
3088 [in] ID3D11Resource *pResource,
3089 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3090 [out] ID3D11RenderTargetView **ppRTView);
3091 HRESULT CreateDepthStencilView(
3092 [in] ID3D11Resource *pResource,
3093 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3094 [out] ID3D11DepthStencilView **ppDepthStencilView);
3095 HRESULT CreateInputLayout(
3096 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3097 [in] UINT NumElements,
3098 [in] const void *pShaderBytecodeWithInputSignature,
3099 [in] SIZE_T BytecodeLength,
3100 [out] ID3D11InputLayout **ppInputLayout);
3101 HRESULT CreateVertexShader(
3102 [in] const void *pShaderBytecode,
3103 [in] SIZE_T BytecodeLength,
3104 [in] ID3D11ClassLinkage *pClassLinkage,
3105 [out] ID3D11VertexShader **ppVertexShader);
3106 HRESULT CreateGeometryShader(
3107 [in] const void *pShaderBytecode,
3108 [in] SIZE_T BytecodeLength,
3109 [in] ID3D11ClassLinkage *pClassLinkage,
3110 [out] ID3D11GeometryShader **ppGeometryShader);
3111 HRESULT CreateGeometryShaderWithStreamOutput(
3112 [in] const void *pShaderBytecode,
3113 [in] SIZE_T BytecodeLength,
3114 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3115 [in] UINT NumEntries,
3116 [in] const UINT *pBufferStrides,
3117 [in] UINT NumStrides,
3118 [in] UINT RasterizedStream,
3119 [in] ID3D11ClassLinkage *pClassLinkage,
3120 [out] ID3D11GeometryShader **ppGeometryShader);
3121 HRESULT CreatePixelShader(
3122 [in] const void *pShaderBytecode,
3123 [in] SIZE_T BytecodeLength,
3124 [in] ID3D11ClassLinkage *pClassLinkage,
3125 [out] ID3D11PixelShader **ppPixelShader);
3126 HRESULT CreateHullShader(
3127 [in] const void *pShaderBytecode,
3128 [in] SIZE_T BytecodeLength,
3129 [in] ID3D11ClassLinkage *pClassLinkage,
3130 [out] ID3D11HullShader **ppHullShader);
3131 HRESULT CreateDomainShader(
3132 [in] const void *pShaderBytecode,
3133 [in] SIZE_T BytecodeLength,
3134 [in] ID3D11ClassLinkage *pClassLinkage,
3135 [out] ID3D11DomainShader **ppDomainShader);
3136 HRESULT CreateComputeShader(
3137 [in] const void *pShaderBytecode,
3138 [in] SIZE_T BytecodeLength,
3139 [in] ID3D11ClassLinkage *pClassLinkage,
3140 [out] ID3D11ComputeShader **ppComputeShader);
3141 HRESULT CreateClassLinkage(
3142 [out] ID3D11ClassLinkage **ppLinkage);
3143 HRESULT CreateBlendState(
3144 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3145 [out] ID3D11BlendState **ppBlendState);
3146 HRESULT CreateDepthStencilState(
3147 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3148 [out] ID3D11DepthStencilState **ppDepthStencilState);
3149 HRESULT CreateRasterizerState(
3150 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3151 [out] ID3D11RasterizerState **ppRasterizerState);
3152 HRESULT CreateSamplerState(
3153 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3154 [out] ID3D11SamplerState **ppSamplerState);
3155 HRESULT CreateQuery(
3156 [in] const D3D11_QUERY_DESC *pQueryDesc,
3157 [out] ID3D11Query **ppQuery);
3158 HRESULT CreatePredicate(
3159 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3160 [out] ID3D11Predicate **ppPredicate);
3161 HRESULT CreateCounter(
3162 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3163 [out] ID3D11Counter **ppCounter);
3164 HRESULT CreateDeferredContext(
3165 UINT ContextFlags,
3166 [out] ID3D11DeviceContext **ppDeferredContext);
3167 HRESULT OpenSharedResource(
3168 [in] HANDLE hResource,
3169 [in] REFIID ReturnedInterface,
3170 [out] void **ppResource);
3171 HRESULT CheckFormatSupport(
3172 [in] DXGI_FORMAT Format,
3173 [out] UINT *pFormatSupport);
3174 HRESULT CheckMultisampleQualityLevels(
3175 [in] DXGI_FORMAT Format,
3176 [in] UINT SampleCount,
3177 [out] UINT *pNumQualityLevels);
3178 void CheckCounterInfo(
3179 [out] D3D11_COUNTER_INFO *pCounterInfo);
3180 HRESULT CheckCounter(
3181 [in] const D3D11_COUNTER_DESC *pDesc,
3182 [out] D3D11_COUNTER_TYPE *pType,
3183 [out] UINT *pActiveCounters,
3184 [out] LPSTR szName,
3185 [in, out] UINT *pNameLength,
3186 [out] LPSTR szUnits,
3187 [in, out] UINT *pUnitsLength,
3188 [out] LPSTR szDescription,
3189 [in, out] UINT *pDescriptionLength);
3190 HRESULT CheckFeatureSupport(
3191 D3D11_FEATURE Feature,
3192 [out] void *pFeatureSupportData,
3193 UINT FeatureSupportDataSize);
3194 HRESULT GetPrivateData(
3195 [in] REFGUID guid,
3196 [in, out] UINT *pDataSize,
3197 [out] void *pData);
3198 HRESULT SetPrivateData(
3199 [in] REFGUID guid,
3200 [in] UINT DataSize,
3201 [in] const void *pData);
3202 HRESULT SetPrivateDataInterface(
3203 [in] REFGUID guid,
3204 [in] const IUnknown *pData);
3205 D3D_FEATURE_LEVEL GetFeatureLevel();
3206 UINT GetCreationFlags();
3207 HRESULT GetDeviceRemovedReason();
3208 void GetImmediateContext(
3209 [out] ID3D11DeviceContext **ppImmediateContext);
3210 HRESULT SetExceptionMode(UINT RaiseFlags);
3211 UINT GetExceptionMode();
3214 typedef enum D3D11_CREATE_DEVICE_FLAG {
3215 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3216 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3217 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3218 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3219 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3220 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3221 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3222 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3223 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3224 } D3D11_CREATE_DEVICE_FLAG;
3226 const UINT D3D11_SDK_VERSION = 7;
3228 cpp_quote("#include <d3d10_1.h>")
3229 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3230 cpp_quote("# include <d3d11sdklayers.h>")
3231 cpp_quote("#endif")
3232 cpp_quote("#include <d3d10misc.h>")
3233 cpp_quote("#include <d3d10shader.h>")
3234 cpp_quote("#include <d3d10effect.h>")
3235 cpp_quote("#include <d3d10_1shader.h>")
3237 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3238 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3240 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3241 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3243 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3244 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3245 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3247 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3248 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3249 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3250 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);