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