dmime: Don't set DSBCAPS_CTRLPAN together with DSBCAPS_CTRL3D.
[wine.git] / include / d3d11.idl
blob605befd6e422a879b4eaf86e803e19ee70eaea02
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 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
31 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
32 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
33 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
34 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
35 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
39 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
40 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
41 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
42 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
43 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
44 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
45 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
46 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
47 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
48 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
49 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
50 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
51 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
52 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
53 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
54 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
55 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
56 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
57 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
58 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
59 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
60 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
61 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
62 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
63 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
64 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
66 const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
67 cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
68 const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
69 cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
70 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
71 const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
72 const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
73 const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
74 const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
75 const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
76 cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
77 const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
78 const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
79 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
80 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
81 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
82 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
83 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
84 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
85 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
86 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
88 cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
90 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
92 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
94 const UINT D3D11_MAX_MAXANISOTROPY = 16;
95 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
96 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
97 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
98 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
99 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
101 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
102 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
103 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
104 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
105 const UINT D3D11_SHADER_MAX_TYPES = 65535;
106 const UINT D3D11_SHADER_MINOR_VERSION = 0;
107 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
109 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
110 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
111 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
112 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
113 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
114 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
115 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
116 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
117 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
118 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
119 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
120 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
121 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
122 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
123 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
124 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
125 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
126 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
127 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
128 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
129 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
130 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
131 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
133 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
135 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
136 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
137 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
138 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
139 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
140 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
141 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
142 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
143 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
144 const UINT D3D11_REQ_MAXANISOTROPY = 16;
145 const UINT D3D11_REQ_MIP_LEVELS = 15;
146 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
147 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
148 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
149 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
150 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
151 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
152 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
153 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
154 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
155 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
156 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
157 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
158 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
159 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
161 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
163 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
164 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
166 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
167 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
168 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
169 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
170 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
171 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
172 const UINT D3D11_SO_STREAM_COUNT = 4;
174 const UINT D3D11_SPEC_DATE_DAY = 16;
175 const UINT D3D11_SPEC_DATE_MONTH = 05;
176 const UINT D3D11_SPEC_DATE_YEAR = 2011;
178 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
179 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
180 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
181 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
182 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
183 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
184 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
185 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
187 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
188 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
189 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
190 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
191 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
192 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
193 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
194 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
196 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
197 cpp_quote("struct CD3D11_DEFAULT {};")
198 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
199 cpp_quote("#endif")
201 typedef enum D3D11_BLEND
203 D3D11_BLEND_ZERO = 1,
204 D3D11_BLEND_ONE = 2,
205 D3D11_BLEND_SRC_COLOR = 3,
206 D3D11_BLEND_INV_SRC_COLOR = 4,
207 D3D11_BLEND_SRC_ALPHA = 5,
208 D3D11_BLEND_INV_SRC_ALPHA = 6,
209 D3D11_BLEND_DEST_ALPHA = 7,
210 D3D11_BLEND_INV_DEST_ALPHA = 8,
211 D3D11_BLEND_DEST_COLOR = 9,
212 D3D11_BLEND_INV_DEST_COLOR = 10,
213 D3D11_BLEND_SRC_ALPHA_SAT = 11,
214 D3D11_BLEND_BLEND_FACTOR = 14,
215 D3D11_BLEND_INV_BLEND_FACTOR = 15,
216 D3D11_BLEND_SRC1_COLOR = 16,
217 D3D11_BLEND_INV_SRC1_COLOR = 17,
218 D3D11_BLEND_SRC1_ALPHA = 18,
219 D3D11_BLEND_INV_SRC1_ALPHA = 19,
220 } D3D11_BLEND;
222 typedef enum D3D11_BLEND_OP
224 D3D11_BLEND_OP_ADD = 1,
225 D3D11_BLEND_OP_SUBTRACT,
226 D3D11_BLEND_OP_REV_SUBTRACT,
227 D3D11_BLEND_OP_MIN,
228 D3D11_BLEND_OP_MAX
229 } D3D11_BLEND_OP;
231 typedef struct D3D11_BOX
233 UINT left;
234 UINT top;
235 UINT front;
236 UINT right;
237 UINT bottom;
238 UINT back;
239 } D3D11_BOX;
241 typedef struct D3D11_BUFFER_RTV
243 union
245 UINT FirstElement;
246 UINT ElementOffset;
248 union
250 UINT NumElements;
251 UINT ElementWidth;
253 } D3D11_BUFFER_RTV;
255 typedef struct D3D11_BUFFER_SRV
257 union
259 UINT FirstElement;
260 UINT ElementOffset;
262 union
264 UINT NumElements;
265 UINT ElementWidth;
267 } D3D11_BUFFER_SRV;
269 typedef struct D3D11_BUFFER_UAV
271 UINT FirstElement;
272 UINT NumElements;
273 UINT Flags;
274 } D3D11_BUFFER_UAV;
276 typedef struct D3D11_BUFFEREX_SRV
278 UINT FirstElement;
279 UINT NumElements;
280 UINT Flags;
281 } D3D11_BUFFEREX_SRV;
283 typedef struct D3D11_CLASS_INSTANCE_DESC
285 UINT InstanceId;
286 UINT InstanceIndex;
287 UINT TypeId;
288 UINT ConstantBuffer;
289 UINT BaseConstantBufferOffset;
290 UINT BaseTexture;
291 UINT BaseSampler;
292 BOOL Created;
293 } D3D11_CLASS_INSTANCE_DESC;
295 typedef enum D3D11_COMPARISON_FUNC
297 D3D11_COMPARISON_NEVER = 1,
298 D3D11_COMPARISON_LESS,
299 D3D11_COMPARISON_EQUAL,
300 D3D11_COMPARISON_LESS_EQUAL,
301 D3D11_COMPARISON_GREATER,
302 D3D11_COMPARISON_NOT_EQUAL,
303 D3D11_COMPARISON_GREATER_EQUAL,
304 D3D11_COMPARISON_ALWAYS
305 } D3D11_COMPARISON_FUNC;
307 typedef enum D3D11_COUNTER
309 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
310 } D3D11_COUNTER;
312 typedef struct D3D11_COUNTER_DESC
314 D3D11_COUNTER Counter;
315 UINT MiscFlags;
316 } D3D11_COUNTER_DESC;
318 typedef struct D3D11_COUNTER_INFO
320 D3D11_COUNTER LastDeviceDependentCounter;
321 UINT NumSimultaneousCounters;
322 UINT8 NumDetectableParallelUnits;
323 } D3D11_COUNTER_INFO;
325 typedef enum D3D11_COUNTER_TYPE
327 D3D11_COUNTER_TYPE_FLOAT32,
328 D3D11_COUNTER_TYPE_UINT16,
329 D3D11_COUNTER_TYPE_UINT32,
330 D3D11_COUNTER_TYPE_UINT64,
331 } D3D11_COUNTER_TYPE;
333 typedef enum D3D11_CULL_MODE
335 D3D11_CULL_NONE = 1,
336 D3D11_CULL_FRONT,
337 D3D11_CULL_BACK
338 } D3D11_CULL_MODE;
340 typedef enum D3D11_DEPTH_WRITE_MASK
342 D3D11_DEPTH_WRITE_MASK_ZERO,
343 D3D11_DEPTH_WRITE_MASK_ALL,
344 } D3D11_DEPTH_WRITE_MASK;
346 typedef enum D3D11_DEVICE_CONTEXT_TYPE
348 D3D11_DEVICE_CONTEXT_IMMEDIATE,
349 D3D11_DEVICE_CONTEXT_DEFERRED,
350 } D3D11_DEVICE_CONTEXT_TYPE;
352 typedef enum D3D11_DSV_DIMENSION
354 D3D11_DSV_DIMENSION_UNKNOWN,
355 D3D11_DSV_DIMENSION_TEXTURE1D,
356 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
357 D3D11_DSV_DIMENSION_TEXTURE2D,
358 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
359 D3D11_DSV_DIMENSION_TEXTURE2DMS,
360 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
361 } D3D11_DSV_DIMENSION;
363 typedef enum D3D11_FEATURE
365 D3D11_FEATURE_THREADING,
366 D3D11_FEATURE_DOUBLES,
367 D3D11_FEATURE_FORMAT_SUPPORT,
368 D3D11_FEATURE_FORMAT_SUPPORT2,
369 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
370 D3D11_FEATURE_D3D11_OPTIONS,
371 D3D11_FEATURE_ARCHITECTURE_INFO,
372 D3D11_FEATURE_D3D9_OPTIONS,
373 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
374 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
375 } D3D11_FEATURE;
377 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
379 BOOL OutputMergerLogicOp;
380 BOOL UAVOnlyRenderingForcedSampleCount;
381 BOOL DiscardAPIsSeenByDriver;
382 BOOL FlagsForUpdateAndCopySeenByDriver;
383 BOOL ClearView;
384 BOOL CopyWithOverlap;
385 BOOL ConstantBufferPartialUpdate;
386 BOOL ConstantBufferOffsetting;
387 BOOL MapNoOverwriteOnDynamicConstantBuffer;
388 BOOL MapNoOverwriteOnDynamicBufferSRV;
389 BOOL MultisampleRTVWithForcedSampleCountOne;
390 BOOL SAD4ShaderInstructions;
391 BOOL ExtendedDoublesShaderInstructions;
392 BOOL ExtendedResourceSharing;
393 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
395 typedef enum D3D11_FILL_MODE
397 D3D11_FILL_WIREFRAME = 2,
398 D3D11_FILL_SOLID
399 } D3D11_FILL_MODE;
401 typedef enum D3D11_FILTER_TYPE
403 D3D11_FILTER_TYPE_POINT = 0,
404 D3D11_FILTER_TYPE_LINEAR = 1
405 } D3D11_FILTER_TYPE;
407 const UINT D3D11_MIN_FILTER_SHIFT = 4;
408 const UINT D3D11_MAG_FILTER_SHIFT = 2;
409 const UINT D3D11_MIP_FILTER_SHIFT = 0;
410 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
411 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
412 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
414 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
415 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
416 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
417 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
418 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
420 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
421 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
422 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
423 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
425 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
426 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
428 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
429 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
431 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
432 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
434 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
436 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
437 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
438 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
439 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
440 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
442 typedef enum D3D11_FILTER
444 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
445 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
446 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
447 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
448 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
449 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
450 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
451 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
452 D3D11_FILTER_ANISOTROPIC = 0x55,
453 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
454 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
455 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
456 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
457 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
458 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
459 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
460 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
461 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
462 } D3D11_FILTER;
464 typedef enum D3D11_DSV_FLAG
466 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
467 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
468 } D3D11_DSV_FLAG;
470 typedef enum D3D11_INPUT_CLASSIFICATION
472 D3D11_INPUT_PER_VERTEX_DATA,
473 D3D11_INPUT_PER_INSTANCE_DATA,
474 } D3D11_INPUT_CLASSIFICATION;
476 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
478 typedef struct D3D11_INPUT_ELEMENT_DESC
480 LPCSTR SemanticName;
481 UINT SemanticIndex;
482 DXGI_FORMAT Format;
483 UINT InputSlot;
484 UINT AlignedByteOffset;
485 D3D11_INPUT_CLASSIFICATION InputSlotClass;
486 UINT InstanceDataStepRate;
487 } D3D11_INPUT_ELEMENT_DESC;
489 typedef enum D3D11_MAP
491 D3D11_MAP_READ = 1,
492 D3D11_MAP_WRITE,
493 D3D11_MAP_READ_WRITE,
494 D3D11_MAP_WRITE_DISCARD,
495 D3D11_MAP_WRITE_NO_OVERWRITE
496 } D3D11_MAP;
498 typedef enum D3D11_MAP_FLAG
500 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
501 } D3D11_MAP_FLAG;
503 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
505 UINT64 NumPrimitivesWritten;
506 UINT64 PrimitivesStorageNeeded;
507 } D3D11_QUERY_DATA_SO_STATISTICS;
509 typedef struct D3D11_MAPPED_SUBRESOURCE
511 void *pData;
512 UINT RowPitch;
513 UINT DepthPitch;
514 } D3D11_MAPPED_SUBRESOURCE;
516 typedef enum D3D11_QUERY
518 D3D11_QUERY_EVENT,
519 D3D11_QUERY_OCCLUSION,
520 D3D11_QUERY_TIMESTAMP,
521 D3D11_QUERY_TIMESTAMP_DISJOINT,
522 D3D11_QUERY_PIPELINE_STATISTICS,
523 D3D11_QUERY_OCCLUSION_PREDICATE,
524 D3D11_QUERY_SO_STATISTICS,
525 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
526 D3D11_QUERY_SO_STATISTICS_STREAM0,
527 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
528 D3D11_QUERY_SO_STATISTICS_STREAM1,
529 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
530 D3D11_QUERY_SO_STATISTICS_STREAM2,
531 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
532 D3D11_QUERY_SO_STATISTICS_STREAM3,
533 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
534 } D3D11_QUERY;
536 typedef enum D3D11_QUERY_MISC_FLAG
538 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
539 } D3D11_QUERY_MISC_FLAG;
541 typedef enum D3D11_ASYNC_GETDATA_FLAG
543 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
544 } D3D11_ASYNC_GETDATA_FLAG;
546 typedef enum D3D11_RESOURCE_MISC_FLAG
548 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
549 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
550 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
551 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
552 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
553 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
554 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
555 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
556 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
557 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
558 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
559 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
560 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
561 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
562 } D3D11_RESOURCE_MISC_FLAG;
564 typedef struct D3D11_QUERY_DESC
566 D3D11_QUERY Query;
567 UINT MiscFlags;
568 } D3D11_QUERY_DESC;
570 typedef struct D3D11_RASTERIZER_DESC
572 D3D11_FILL_MODE FillMode;
573 D3D11_CULL_MODE CullMode;
574 BOOL FrontCounterClockwise;
575 INT DepthBias;
576 FLOAT DepthBiasClamp;
577 FLOAT SlopeScaledDepthBias;
578 BOOL DepthClipEnable;
579 BOOL ScissorEnable;
580 BOOL MultisampleEnable;
581 BOOL AntialiasedLineEnable;
582 } D3D11_RASTERIZER_DESC;
584 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
585 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
586 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
587 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
588 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
589 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
590 cpp_quote(" CullMode = D3D11_CULL_BACK;")
591 cpp_quote(" FrontCounterClockwise = FALSE;")
592 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
593 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
594 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
595 cpp_quote(" DepthClipEnable = TRUE;")
596 cpp_quote(" ScissorEnable = FALSE;")
597 cpp_quote(" MultisampleEnable = FALSE;")
598 cpp_quote(" AntialiasedLineEnable = FALSE;")
599 cpp_quote(" }")
600 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
601 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
602 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
603 cpp_quote(" FillMode = fillMode;")
604 cpp_quote(" CullMode = cullMode;")
605 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
606 cpp_quote(" DepthBias = depthBias;")
607 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
608 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
609 cpp_quote(" DepthClipEnable = depthClipEnable;")
610 cpp_quote(" ScissorEnable = scissorEnable;")
611 cpp_quote(" MultisampleEnable = multisampleEnable;")
612 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
613 cpp_quote(" }")
614 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
615 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
616 cpp_quote("};")
617 cpp_quote("#endif")
619 typedef enum D3D11_RESOURCE_DIMENSION
621 D3D11_RESOURCE_DIMENSION_UNKNOWN,
622 D3D11_RESOURCE_DIMENSION_BUFFER,
623 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
624 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
625 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
626 } D3D11_RESOURCE_DIMENSION;
628 typedef enum D3D11_RTV_DIMENSION
630 D3D11_RTV_DIMENSION_UNKNOWN,
631 D3D11_RTV_DIMENSION_BUFFER,
632 D3D11_RTV_DIMENSION_TEXTURE1D,
633 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
634 D3D11_RTV_DIMENSION_TEXTURE2D,
635 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
636 D3D11_RTV_DIMENSION_TEXTURE2DMS,
637 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
638 D3D11_RTV_DIMENSION_TEXTURE3D,
639 } D3D11_RTV_DIMENSION;
641 typedef struct D3D11_SO_DECLARATION_ENTRY
643 UINT Stream;
644 LPCSTR SemanticName;
645 UINT SemanticIndex;
646 BYTE StartComponent;
647 BYTE ComponentCount;
648 BYTE OutputSlot;
649 } D3D11_SO_DECLARATION_ENTRY;
651 typedef enum D3D11_STENCIL_OP
653 D3D11_STENCIL_OP_KEEP = 1,
654 D3D11_STENCIL_OP_ZERO,
655 D3D11_STENCIL_OP_REPLACE,
656 D3D11_STENCIL_OP_INCR_SAT,
657 D3D11_STENCIL_OP_DECR_SAT,
658 D3D11_STENCIL_OP_INVERT,
659 D3D11_STENCIL_OP_INCR,
660 D3D11_STENCIL_OP_DECR
661 } D3D11_STENCIL_OP;
663 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
664 cpp_quote("}")
665 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
666 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
667 cpp_quote("}")
668 cpp_quote("extern \"C\"{")
669 cpp_quote("#endif")
671 typedef struct D3D11_SUBRESOURCE_DATA
673 const void *pSysMem;
674 UINT SysMemPitch;
675 UINT SysMemSlicePitch;
676 } D3D11_SUBRESOURCE_DATA;
678 typedef struct D3D11_TEX1D_ARRAY_DSV
680 UINT MipSlice;
681 UINT FirstArraySlice;
682 UINT ArraySize;
683 } D3D11_TEX1D_ARRAY_DSV;
685 typedef struct D3D11_TEX1D_ARRAY_RTV
687 UINT MipSlice;
688 UINT FirstArraySlice;
689 UINT ArraySize;
690 } D3D11_TEX1D_ARRAY_RTV;
692 typedef struct D3D11_TEX1D_ARRAY_SRV
694 UINT MostDetailedMip;
695 UINT MipLevels;
696 UINT FirstArraySlice;
697 UINT ArraySize;
698 } D3D11_TEX1D_ARRAY_SRV;
700 typedef struct D3D11_TEX1D_ARRAY_UAV
702 UINT MipSlice;
703 UINT FirstArraySlice;
704 UINT ArraySize;
705 } D3D11_TEX1D_ARRAY_UAV;
707 typedef struct D3D11_TEX1D_DSV
709 UINT MipSlice;
710 } D3D11_TEX1D_DSV;
712 typedef struct D3D11_TEX1D_RTV
714 UINT MipSlice;
715 } D3D11_TEX1D_RTV;
717 typedef struct D3D11_TEX1D_SRV
719 UINT MostDetailedMip;
720 UINT MipLevels;
721 } D3D11_TEX1D_SRV;
723 typedef struct D3D11_TEX1D_UAV
725 UINT MipSlice;
726 } D3D11_TEX1D_UAV;
728 typedef struct D3D11_TEX2D_ARRAY_DSV
730 UINT MipSlice;
731 UINT FirstArraySlice;
732 UINT ArraySize;
733 } D3D11_TEX2D_ARRAY_DSV;
735 typedef struct D3D11_TEX2D_ARRAY_RTV
737 UINT MipSlice;
738 UINT FirstArraySlice;
739 UINT ArraySize;
740 } D3D11_TEX2D_ARRAY_RTV;
742 typedef struct D3D11_TEX2D_ARRAY_SRV
744 UINT MostDetailedMip;
745 UINT MipLevels;
746 UINT FirstArraySlice;
747 UINT ArraySize;
748 } D3D11_TEX2D_ARRAY_SRV;
750 typedef struct D3D11_TEX2D_ARRAY_UAV
752 UINT MipSlice;
753 UINT FirstArraySlice;
754 UINT ArraySize;
755 } D3D11_TEX2D_ARRAY_UAV;
757 typedef struct D3D11_TEX2D_DSV
759 UINT MipSlice;
760 } D3D11_TEX2D_DSV;
762 typedef struct D3D11_TEX2D_RTV
764 UINT MipSlice;
765 } D3D11_TEX2D_RTV;
767 typedef struct D3D11_TEX2D_SRV
769 UINT MostDetailedMip;
770 UINT MipLevels;
771 } D3D11_TEX2D_SRV;
773 typedef struct D3D11_TEX2D_UAV
775 UINT MipSlice;
776 } D3D11_TEX2D_UAV;
778 typedef struct D3D11_TEX2DMS_ARRAY_DSV
780 UINT FirstArraySlice;
781 UINT ArraySize;
782 } D3D11_TEX2DMS_ARRAY_DSV;
784 typedef struct D3D11_TEX2DMS_ARRAY_RTV
786 UINT FirstArraySlice;
787 UINT ArraySize;
788 } D3D11_TEX2DMS_ARRAY_RTV;
790 typedef struct D3D11_TEX2DMS_ARRAY_SRV
792 UINT FirstArraySlice;
793 UINT ArraySize;
794 } D3D11_TEX2DMS_ARRAY_SRV;
796 typedef struct D3D11_TEX2DMS_DSV
798 UINT UnusedField_NothingToDefine;
799 } D3D11_TEX2DMS_DSV;
801 typedef struct D3D11_TEX2DMS_RTV
803 UINT UnusedField_NothingToDefine;
804 } D3D11_TEX2DMS_RTV;
806 typedef struct D3D11_TEX2DMS_SRV
808 UINT UnusedField_NothingToDefine;
809 } D3D11_TEX2DMS_SRV;
811 typedef struct D3D11_TEX3D_RTV
813 UINT MipSlice;
814 UINT FirstWSlice;
815 UINT WSize;
816 } D3D11_TEX3D_RTV;
818 typedef struct D3D11_TEX3D_SRV
820 UINT MostDetailedMip;
821 UINT MipLevels;
822 } D3D11_TEX3D_SRV;
824 typedef struct D3D11_TEX3D_UAV
826 UINT MipSlice;
827 UINT FirstWSlice;
828 UINT WSize;
829 } D3D11_TEX3D_UAV;
831 typedef struct D3D11_TEXCUBE_ARRAY_SRV
833 UINT MostDetailedMip;
834 UINT MipLevels;
835 UINT First2DArrayFace;
836 UINT NumCubes;
837 } D3D11_TEXCUBE_ARRAY_SRV;
839 typedef struct D3D11_TEXCUBE_SRV
841 UINT MostDetailedMip;
842 UINT MipLevels;
843 } D3D11_TEXCUBE_SRV;
845 typedef enum D3D11_TEXTURE_ADDRESS_MODE
847 D3D11_TEXTURE_ADDRESS_WRAP = 1,
848 D3D11_TEXTURE_ADDRESS_MIRROR,
849 D3D11_TEXTURE_ADDRESS_CLAMP,
850 D3D11_TEXTURE_ADDRESS_BORDER,
851 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
852 } D3D11_TEXTURE_ADDRESS_MODE;
854 typedef enum D3D11_UAV_DIMENSION
856 D3D11_UAV_DIMENSION_UNKNOWN,
857 D3D11_UAV_DIMENSION_BUFFER,
858 D3D11_UAV_DIMENSION_TEXTURE1D,
859 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
860 D3D11_UAV_DIMENSION_TEXTURE2D,
861 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
862 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
863 } D3D11_UAV_DIMENSION;
865 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
867 DXGI_FORMAT Format;
868 D3D11_UAV_DIMENSION ViewDimension;
870 union
872 D3D11_BUFFER_UAV Buffer;
873 D3D11_TEX1D_UAV Texture1D;
874 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
875 D3D11_TEX2D_UAV Texture2D;
876 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
877 D3D11_TEX3D_UAV Texture3D;
879 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
881 typedef enum D3D11_USAGE
883 D3D11_USAGE_DEFAULT,
884 D3D11_USAGE_IMMUTABLE,
885 D3D11_USAGE_DYNAMIC,
886 D3D11_USAGE_STAGING,
887 } D3D11_USAGE;
889 typedef enum D3D11_BIND_FLAG
891 D3D11_BIND_VERTEX_BUFFER = 0x0001,
892 D3D11_BIND_INDEX_BUFFER = 0x0002,
893 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
894 D3D11_BIND_SHADER_RESOURCE = 0x0008,
895 D3D11_BIND_STREAM_OUTPUT = 0x0010,
896 D3D11_BIND_RENDER_TARGET = 0x0020,
897 D3D11_BIND_DEPTH_STENCIL = 0x0040,
898 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
899 D3D11_BIND_DECODER = 0x0200,
900 D3D11_BIND_VIDEO_ENCODER = 0x0400
901 } D3D11_BIND_FLAG;
903 typedef enum D3D11_CPU_ACCESS_FLAG
905 D3D11_CPU_ACCESS_WRITE = 0x00010000,
906 D3D11_CPU_ACCESS_READ = 0x00020000
907 } D3D11_CPU_ACCESS_FLAG;
909 typedef struct D3D11_VIEWPORT
911 FLOAT TopLeftX;
912 FLOAT TopLeftY;
913 FLOAT Width;
914 FLOAT Height;
915 FLOAT MinDepth;
916 FLOAT MaxDepth;
917 } D3D11_VIEWPORT;
919 typedef enum D3D11_COLOR_WRITE_ENABLE
921 D3D11_COLOR_WRITE_ENABLE_RED = 1,
922 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
923 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
924 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
925 D3D11_COLOR_WRITE_ENABLE_ALL =
926 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
927 } D3D11_COLOR_WRITE_ENABLE;
929 typedef enum D3D11_FORMAT_SUPPORT
931 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
932 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
933 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
934 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
935 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
936 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
937 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
938 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
939 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
940 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
941 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
942 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
943 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
944 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
945 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
946 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
947 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
948 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
949 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
950 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
951 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
952 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
953 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
954 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
955 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
956 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
957 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000
958 } D3D11_FORMAT_SUPPORT;
960 typedef enum D3D11_CLEAR_FLAG
962 D3D11_CLEAR_DEPTH = 0x0001L,
963 D3D11_CLEAR_STENCIL = 0x0002L
964 } D3D11_CLEAR_FLAG;
966 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
968 BOOL BlendEnable;
969 D3D11_BLEND SrcBlend;
970 D3D11_BLEND DestBlend;
971 D3D11_BLEND_OP BlendOp;
972 D3D11_BLEND SrcBlendAlpha;
973 D3D11_BLEND DestBlendAlpha;
974 D3D11_BLEND_OP BlendOpAlpha;
975 UINT8 RenderTargetWriteMask;
976 } D3D11_RENDER_TARGET_BLEND_DESC;
978 typedef struct D3D11_BLEND_DESC
980 BOOL AlphaToCoverageEnable;
981 BOOL IndependentBlendEnable;
982 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
983 } D3D11_BLEND_DESC;
985 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
986 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
987 cpp_quote(" CD3D11_BLEND_DESC() {}")
988 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
989 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
990 cpp_quote(" AlphaToCoverageEnable = FALSE;")
991 cpp_quote(" IndependentBlendEnable = FALSE;")
992 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
993 cpp_quote(" target->BlendEnable = FALSE;")
994 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
995 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
996 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
997 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
998 cpp_quote(" }")
999 cpp_quote(" }")
1000 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1001 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1002 cpp_quote("};" )
1003 cpp_quote("#endif" )
1005 typedef struct D3D11_BUFFER_DESC
1007 UINT ByteWidth;
1008 D3D11_USAGE Usage;
1009 UINT BindFlags;
1010 UINT CPUAccessFlags;
1011 UINT MiscFlags;
1012 UINT StructureByteStride;
1013 } D3D11_BUFFER_DESC;
1015 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1016 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1017 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1018 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1019 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1020 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1021 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1022 cpp_quote(" ByteWidth = byteWidth;")
1023 cpp_quote(" Usage = usage;")
1024 cpp_quote(" BindFlags = bindFlags;")
1025 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1026 cpp_quote(" MiscFlags = miscFlags;" )
1027 cpp_quote(" StructureByteStride = structureByteStride;")
1028 cpp_quote(" }")
1029 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1030 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1031 cpp_quote("};" )
1032 cpp_quote("#endif" )
1034 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1036 DXGI_FORMAT Format;
1037 D3D11_DSV_DIMENSION ViewDimension;
1038 UINT Flags;
1040 union
1042 D3D11_TEX1D_DSV Texture1D;
1043 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1044 D3D11_TEX2D_DSV Texture2D;
1045 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1046 D3D11_TEX2DMS_DSV Texture2DMS;
1047 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1049 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1051 typedef struct D3D11_DEPTH_STENCILOP_DESC
1053 D3D11_STENCIL_OP StencilFailOp;
1054 D3D11_STENCIL_OP StencilDepthFailOp;
1055 D3D11_STENCIL_OP StencilPassOp;
1056 D3D11_COMPARISON_FUNC StencilFunc;
1057 } D3D11_DEPTH_STENCILOP_DESC;
1059 typedef struct D3D11_DEPTH_STENCIL_DESC
1061 BOOL DepthEnable;
1062 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1063 D3D11_COMPARISON_FUNC DepthFunc;
1064 BOOL StencilEnable;
1065 UINT8 StencilReadMask;
1066 UINT8 StencilWriteMask;
1067 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1068 D3D11_DEPTH_STENCILOP_DESC BackFace;
1069 } D3D11_DEPTH_STENCIL_DESC;
1071 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1073 DXGI_FORMAT Format;
1074 D3D11_RTV_DIMENSION ViewDimension;
1076 union
1078 D3D11_BUFFER_RTV Buffer;
1079 D3D11_TEX1D_RTV Texture1D;
1080 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1081 D3D11_TEX2D_RTV Texture2D;
1082 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1083 D3D11_TEX2DMS_RTV Texture2DMS;
1084 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1085 D3D11_TEX3D_RTV Texture3D;
1087 } D3D11_RENDER_TARGET_VIEW_DESC;
1089 typedef struct D3D11_SAMPLER_DESC
1091 D3D11_FILTER Filter;
1092 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1093 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1094 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1095 FLOAT MipLODBias;
1096 UINT MaxAnisotropy;
1097 D3D11_COMPARISON_FUNC ComparisonFunc;
1098 FLOAT BorderColor[4];
1099 FLOAT MinLOD;
1100 FLOAT MaxLOD;
1101 } D3D11_SAMPLER_DESC;
1103 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1104 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1105 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1106 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1107 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1108 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1109 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1110 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1111 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1112 cpp_quote(" MipLODBias = 0;")
1113 cpp_quote(" MaxAnisotropy = 1;")
1114 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1115 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1116 cpp_quote(" MinLOD = -3.402823466e+38f;")
1117 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1118 cpp_quote(" }")
1119 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1120 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1121 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1122 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1123 cpp_quote(" Filter = filter;")
1124 cpp_quote(" AddressU = addressU;")
1125 cpp_quote(" AddressV = addressV;")
1126 cpp_quote(" AddressW = addressW;")
1127 cpp_quote(" MipLODBias = mipLODBias;")
1128 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1129 cpp_quote(" ComparisonFunc = comparisonFunc;")
1130 cpp_quote(" if(borderColor) {")
1131 cpp_quote(" BorderColor[0] = borderColor[0];")
1132 cpp_quote(" BorderColor[1] = borderColor[1];")
1133 cpp_quote(" BorderColor[2] = borderColor[2];")
1134 cpp_quote(" BorderColor[3] = borderColor[3];")
1135 cpp_quote(" }else {")
1136 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1137 cpp_quote(" }")
1138 cpp_quote(" MinLOD = minLOD;")
1139 cpp_quote(" MaxLOD = maxLOD;")
1140 cpp_quote(" }")
1141 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1142 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1143 cpp_quote("};")
1144 cpp_quote("#endif")
1146 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1148 DXGI_FORMAT Format;
1149 D3D11_SRV_DIMENSION ViewDimension;
1151 union
1153 D3D11_BUFFER_SRV Buffer;
1154 D3D11_TEX1D_SRV Texture1D;
1155 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1156 D3D11_TEX2D_SRV Texture2D;
1157 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1158 D3D11_TEX2DMS_SRV Texture2DMS;
1159 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1160 D3D11_TEX3D_SRV Texture3D;
1161 D3D11_TEXCUBE_SRV TextureCube;
1162 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1163 D3D11_BUFFEREX_SRV BufferEx;
1165 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1167 typedef struct D3D11_TEXTURE1D_DESC
1169 UINT Width;
1170 UINT MipLevels;
1171 UINT ArraySize;
1172 DXGI_FORMAT Format;
1173 D3D11_USAGE Usage;
1174 UINT BindFlags;
1175 UINT CPUAccessFlags;
1176 UINT MiscFlags;
1177 } D3D11_TEXTURE1D_DESC;
1179 typedef struct D3D11_TEXTURE2D_DESC
1181 UINT Width;
1182 UINT Height;
1183 UINT MipLevels;
1184 UINT ArraySize;
1185 DXGI_FORMAT Format;
1186 DXGI_SAMPLE_DESC SampleDesc;
1187 D3D11_USAGE Usage;
1188 UINT BindFlags;
1189 UINT CPUAccessFlags;
1190 UINT MiscFlags;
1191 } D3D11_TEXTURE2D_DESC;
1193 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1194 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1195 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1196 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1197 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1198 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1199 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1200 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1201 cpp_quote(" Width = width;")
1202 cpp_quote(" Height = height;")
1203 cpp_quote(" MipLevels = mipLevels;")
1204 cpp_quote(" ArraySize = arraySize;")
1205 cpp_quote(" Format = format;")
1206 cpp_quote(" SampleDesc.Count = sampleCount;")
1207 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1208 cpp_quote(" Usage = usage;")
1209 cpp_quote(" BindFlags = bindFlags;")
1210 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1211 cpp_quote(" MiscFlags = miscFlags;")
1212 cpp_quote(" }" )
1213 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1214 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1215 cpp_quote("};")
1216 cpp_quote("#endif")
1218 typedef struct D3D11_TEXTURE3D_DESC
1220 UINT Width;
1221 UINT Height;
1222 UINT Depth;
1223 UINT MipLevels;
1224 DXGI_FORMAT Format;
1225 D3D11_USAGE Usage;
1226 UINT BindFlags;
1227 UINT CPUAccessFlags;
1228 UINT MiscFlags;
1229 } D3D11_TEXTURE3D_DESC;
1231 typedef struct D3D11_VIDEO_DECODER_DESC
1233 GUID Guid;
1234 UINT SampleWidth;
1235 UINT SampleHeight;
1236 DXGI_FORMAT OutputFormat;
1237 } D3D11_VIDEO_DECODER_DESC;
1239 typedef struct D3D11_VIDEO_DECODER_CONFIG
1241 GUID guidConfigBitstreamEncryption;
1242 GUID guidConfigMBcontrolEncryption;
1243 GUID guidConfigResidDiffEncryption;
1244 UINT ConfigBitstreamRaw;
1245 UINT ConfigMBcontrolRasterOrder;
1246 UINT ConfigResidDiffHost;
1247 UINT ConfigSpatialResid8;
1248 UINT ConfigResid8Subtraction;
1249 UINT ConfigSpatialHost8or9Clipping;
1250 UINT ConfigSpatialResidInterleaved;
1251 UINT ConfigIntraResidUnsigned;
1252 UINT ConfigResidDiffAccelerator;
1253 UINT ConfigHostInverseScan;
1254 UINT ConfigSpecificIDCT;
1255 UINT Config4GroupedCoefs;
1256 USHORT ConfigMinRenderTargetBuffCount;
1257 USHORT ConfigDecoderSpecific;
1258 } D3D11_VIDEO_DECODER_CONFIG;
1260 typedef enum D3D11_VIDEO_FRAME_FORMAT
1262 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1263 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1264 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1265 } D3D11_VIDEO_FRAME_FORMAT;
1267 typedef enum D3D11_VIDEO_USAGE
1269 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1270 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1271 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1272 } D3D11_VIDEO_USAGE;
1274 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1276 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1277 DXGI_RATIONAL InputFrameRate;
1278 UINT InputWidth;
1279 UINT InputHeight;
1280 DXGI_RATIONAL OutputFrameRate;
1281 UINT OutputWidth;
1282 UINT OutputHeight;
1283 D3D11_VIDEO_USAGE Usage;
1284 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1286 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1288 UINT DeviceCaps;
1289 UINT FeatureCaps;
1290 UINT FilterCaps;
1291 UINT InputFormatCaps;
1292 UINT AutoStreamCaps;
1293 UINT StereoCaps;
1294 UINT RateConversionCapsCount;
1295 UINT MaxInputStreams;
1296 UINT MaxStreamStates;
1297 } D3D11_VIDEO_PROCESSOR_CAPS;
1299 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1301 UINT PastFrames;
1302 UINT FutureFrames;
1303 UINT ProcessorCaps;
1304 UINT ITelecineCaps;
1305 UINT CustomRateCount;
1306 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1308 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1310 DXGI_RATIONAL CustomRate;
1311 UINT OutputFrames;
1312 BOOL InputInterlaced;
1313 UINT InputFramesOrFields;
1314 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1316 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1318 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1319 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1320 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1321 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1322 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1323 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1324 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1325 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1326 } D3D11_VIDEO_PROCESSOR_FILTER;
1328 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1330 int Minimum;
1331 int Maximum;
1332 int Default;
1333 float Multiplier;
1334 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1336 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1338 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1339 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1340 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1341 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1343 typedef enum D3D11_VDOV_DIMENSION
1345 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1346 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1347 } D3D11_VDOV_DIMENSION;
1349 typedef struct D3D11_TEX2D_VDOV
1351 UINT ArraySlice;
1352 } D3D11_TEX2D_VDOV;
1354 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1356 GUID DecodeProfile;
1357 D3D11_VDOV_DIMENSION ViewDimension;
1358 union {
1359 D3D11_TEX2D_VDOV Texture2D;
1361 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1363 typedef enum D3D11_VPIV_DIMENSION
1365 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1366 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1367 } D3D11_VPIV_DIMENSION;
1369 typedef struct D3D11_TEX2D_VPIV
1371 UINT MipSlice;
1372 UINT ArraySlice;
1373 } D3D11_TEX2D_VPIV;
1375 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1377 UINT FourCC;
1378 D3D11_VPIV_DIMENSION ViewDimension;
1379 union {
1380 D3D11_TEX2D_VPIV Texture2D;
1382 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1384 typedef enum D3D11_VPOV_DIMENSION
1386 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1387 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1388 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1389 } D3D11_VPOV_DIMENSION;
1391 typedef struct D3D11_TEX2D_VPOV
1393 UINT MipSlice;
1394 } D3D11_TEX2D_VPOV;
1396 typedef struct D3D11_TEX2D_ARRAY_VPOV
1398 UINT MipSlice;
1399 UINT FirstArraySlice;
1400 UINT ArraySize;
1401 } D3D11_TEX2D_ARRAY_VPOV;
1403 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1405 D3D11_VPOV_DIMENSION ViewDimension;
1406 union {
1407 D3D11_TEX2D_VPOV Texture2D;
1408 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1410 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1412 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1414 UINT Caps;
1415 UINT KeyExchangeTypeCount;
1416 UINT BlockAlignmentSize;
1417 ULONGLONG ProtectedMemorySize;
1418 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1420 /* A couple forward declarations are needed */
1421 interface ID3D11Device;
1422 interface ID3D11ClassLinkage;
1425 object,
1426 local,
1427 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
1429 interface ID3D11DeviceChild : IUnknown
1431 void GetDevice(
1432 [out] ID3D11Device **ppDevice);
1433 HRESULT GetPrivateData(
1434 [in] REFGUID guid,
1435 [in, out] UINT *pDataSize,
1436 [out] void *pData);
1437 HRESULT SetPrivateData(
1438 [in] REFGUID guid,
1439 [in] UINT DataSize,
1440 [in] const void *pData);
1441 HRESULT SetPrivateDataInterface(
1442 [in] REFGUID guid,
1443 [in] const IUnknown *pData);
1447 object,
1448 local,
1449 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
1451 interface ID3D11Asynchronous : ID3D11DeviceChild
1453 UINT GetDataSize();
1457 object,
1458 local,
1459 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
1461 interface ID3D11Query : ID3D11Asynchronous
1463 void GetDesc(
1464 [out] D3D11_QUERY_DESC *pDesc);
1468 object,
1469 local,
1470 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
1472 interface ID3D11Resource : ID3D11DeviceChild
1474 void GetType(
1475 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
1476 void SetEvictionPriority(
1477 [in] UINT EvictionPriority);
1478 UINT GetEvictionPriority();
1482 object,
1483 local,
1484 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
1486 interface ID3D11View : ID3D11DeviceChild
1488 void GetResource(
1489 [out] ID3D11Resource **ppResource);
1493 object,
1494 local,
1495 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
1497 interface ID3D11BlendState : ID3D11DeviceChild
1499 void GetDesc(
1500 [out] D3D11_BLEND_DESC *pDesc);
1504 object,
1505 local,
1506 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
1508 interface ID3D11Buffer : ID3D11Resource
1510 void GetDesc(
1511 [out] D3D11_BUFFER_DESC *pDesc);
1515 object,
1516 local,
1517 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
1519 interface ID3D11ClassInstance : ID3D11DeviceChild
1521 void GetClassLinkage(
1522 [out] ID3D11ClassLinkage **ppLinkage);
1523 void GetDesc(
1524 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
1525 void GetInstanceName(
1526 [out] LPSTR pInstanceName,
1527 [in, out] SIZE_T *pBufferLength);
1528 void GetTypeName(
1529 [out] LPSTR pTypeName,
1530 [in, out] SIZE_T *pBufferLength);
1534 object,
1535 local,
1536 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
1538 interface ID3D11ClassLinkage : ID3D11DeviceChild
1540 HRESULT GetClassInstance(
1541 [in] LPCSTR pClassInstanceName,
1542 [in] UINT InstanceIndex,
1543 [out] ID3D11ClassInstance **ppInstance);
1544 HRESULT CreateClassInstance(
1545 [in] LPCSTR pClassTypeName,
1546 [in] UINT ConstantBufferOffset,
1547 [in] UINT ConstantVectorOffset,
1548 [in] UINT TextureOffset,
1549 [in] UINT SamplerOffset,
1550 [out] ID3D11ClassInstance **ppInstance);
1554 object,
1555 local,
1556 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
1558 interface ID3D11CommandList : ID3D11DeviceChild
1560 UINT GetContextFlags();
1564 object,
1565 local,
1566 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
1568 interface ID3D11ComputeShader : ID3D11DeviceChild
1573 object,
1574 local,
1575 uuid(6e8c49fb-a371-4770-b440-29086022b741)
1577 interface ID3D11Counter : ID3D11Asynchronous
1579 void GetDesc(
1580 [out] D3D11_COUNTER_DESC *pDesc);
1584 object,
1585 local,
1586 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
1588 interface ID3D11DepthStencilState : ID3D11DeviceChild
1590 void GetDesc(
1591 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
1595 object,
1596 local,
1597 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
1599 interface ID3D11DepthStencilView : ID3D11View
1601 void GetDesc(
1602 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
1606 object,
1607 local,
1608 uuid(f582c508-0f36-490c-9977-31eece268cfa)
1610 interface ID3D11DomainShader : ID3D11DeviceChild
1615 object,
1616 local,
1617 uuid(38325b96-effb-4022-ba02-2e795b70275c)
1619 interface ID3D11GeometryShader : ID3D11DeviceChild
1624 object,
1625 local,
1626 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
1628 interface ID3D11HullShader : ID3D11DeviceChild
1633 object,
1634 local,
1635 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
1637 interface ID3D11InputLayout : ID3D11DeviceChild
1642 object,
1643 local,
1644 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
1646 interface ID3D11PixelShader : ID3D11DeviceChild
1651 object,
1652 local,
1653 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
1655 interface ID3D11Predicate : ID3D11Query
1660 object,
1661 local,
1662 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
1664 interface ID3D11RasterizerState : ID3D11DeviceChild
1666 void GetDesc(
1667 [out] D3D11_RASTERIZER_DESC *pDesc);
1671 object,
1672 local,
1673 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
1675 interface ID3D11RenderTargetView : ID3D11View
1677 void GetDesc(
1678 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
1682 object,
1683 local,
1684 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
1686 interface ID3D11SamplerState : ID3D11DeviceChild
1688 void GetDesc(
1689 [out] D3D11_SAMPLER_DESC *pDesc);
1693 object,
1694 local,
1695 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
1697 interface ID3D11ShaderResourceView : ID3D11View
1699 void GetDesc(
1700 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
1704 object,
1705 local,
1706 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
1708 interface ID3D11Texture1D : ID3D11Resource
1710 void GetDesc(
1711 [out] D3D11_TEXTURE1D_DESC *pDesc);
1715 object,
1716 local,
1717 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
1719 interface ID3D11Texture2D : ID3D11Resource
1721 void GetDesc(
1722 [out] D3D11_TEXTURE2D_DESC *pDesc);
1726 object,
1727 local,
1728 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
1730 interface ID3D11Texture3D : ID3D11Resource
1732 void GetDesc(
1733 [out] D3D11_TEXTURE3D_DESC *pDesc);
1737 object,
1738 local,
1739 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
1741 interface ID3D11UnorderedAccessView : ID3D11View
1743 void GetDesc(
1744 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
1748 object,
1749 local,
1750 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
1752 interface ID3D11VertexShader : ID3D11DeviceChild
1757 object,
1758 local,
1759 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
1761 interface ID3D11DeviceContext : ID3D11DeviceChild
1763 void VSSetConstantBuffers(
1764 [in] UINT StartSlot,
1765 [in] UINT NumBuffers,
1766 [in] ID3D11Buffer *const *ppConstantBuffers);
1767 void PSSetShaderResources(
1768 [in] UINT StartSlot,
1769 [in] UINT NumViews,
1770 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1771 void PSSetShader(
1772 [in] ID3D11PixelShader *pPixelShader,
1773 [in] ID3D11ClassInstance *const *ppClassInstances,
1774 UINT NumClassInstances);
1775 void PSSetSamplers(
1776 [in] UINT StartSlot,
1777 [in] UINT NumSamplers,
1778 [in] ID3D11SamplerState *const *ppSamplers);
1779 void VSSetShader(
1780 [in] ID3D11VertexShader *pVertexShader,
1781 [in] ID3D11ClassInstance *const *ppClassInstances,
1782 UINT NumClassInstances);
1783 void DrawIndexed(
1784 [in] UINT IndexCount,
1785 [in] UINT StartIndexLocation,
1786 [in] INT BaseVertexLocation);
1787 void Draw(
1788 [in] UINT VertexCount,
1789 [in] UINT StartVertexLocation);
1790 HRESULT Map(
1791 [in] ID3D11Resource *pResource,
1792 [in] UINT Subresource,
1793 [in] D3D11_MAP MapType,
1794 [in] UINT MapFlags,
1795 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
1796 void Unmap(
1797 [in] ID3D11Resource *pResource,
1798 [in] UINT Subresource);
1799 void PSSetConstantBuffers(
1800 [in] UINT StartSlot,
1801 [in] UINT NumBuffers,
1802 [in] ID3D11Buffer *const *ppConstantBuffers);
1803 void IASetInputLayout(
1804 [in] ID3D11InputLayout *pInputLayout);
1805 void IASetVertexBuffers(
1806 [in] UINT StartSlot,
1807 [in] UINT NumBuffers,
1808 [in] ID3D11Buffer *const *ppVertexBuffers,
1809 [in] const UINT *pStrides,
1810 [in] const UINT *pOffsets);
1811 void IASetIndexBuffer(
1812 [in] ID3D11Buffer *pIndexBuffer,
1813 [in] DXGI_FORMAT Format,
1814 [in] UINT Offset);
1815 void DrawIndexedInstanced(
1816 [in] UINT IndexCountPerInstance,
1817 [in] UINT InstanceCount,
1818 [in] UINT StartIndexLocation,
1819 [in] INT BaseVertexLocation,
1820 [in] UINT StartInstanceLocation);
1821 void DrawInstanced(
1822 [in] UINT VertexCountPerInstance,
1823 [in] UINT InstanceCount,
1824 [in] UINT StartVertexLocation,
1825 [in] UINT StartInstanceLocation);
1826 void GSSetConstantBuffers(
1827 [in] UINT StartSlot,
1828 [in] UINT NumBuffers,
1829 [in] ID3D11Buffer *const *ppConstantBuffers);
1830 void GSSetShader(
1831 [in] ID3D11GeometryShader *pShader,
1832 [in] ID3D11ClassInstance *const *ppClassInstances,
1833 UINT NumClassInstances);
1834 void IASetPrimitiveTopology(
1835 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
1836 void VSSetShaderResources(
1837 [in] UINT StartSlot,
1838 [in] UINT NumViews,
1839 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1840 void VSSetSamplers(
1841 [in] UINT StartSlot,
1842 [in] UINT NumSamplers,
1843 [in] ID3D11SamplerState *const *ppSamplers);
1844 void Begin(
1845 [in] ID3D11Asynchronous *pAsync);
1846 void End(
1847 [in] ID3D11Asynchronous *pAsync);
1848 HRESULT GetData(
1849 [in] ID3D11Asynchronous *pAsync,
1850 [in] void *pData,
1851 [in] UINT DataSize,
1852 [in] UINT GetDataFlags);
1853 void SetPredication(
1854 [in] ID3D11Predicate *pPredicate,
1855 [in] BOOL PredicateValue);
1856 void GSSetShaderResources(
1857 [in] UINT StartSlot,
1858 [in] UINT NumViews,
1859 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1860 void GSSetSamplers(
1861 [in] UINT StartSlot,
1862 [in] UINT NumSamplers,
1863 [in] ID3D11SamplerState *const *ppSamplers);
1864 void OMSetRenderTargets(
1865 [in] UINT NumViews,
1866 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
1867 [in] ID3D11DepthStencilView *pDepthStencilView);
1868 void OMSetRenderTargetsAndUnorderedAccessViews(
1869 [in] UINT NumRTVs,
1870 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
1871 [in] ID3D11DepthStencilView *pDepthStencilView,
1872 [in] UINT UAVStartSlot,
1873 [in] UINT NumUAVs,
1874 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
1875 [in] const UINT *pUAVInitialCounts);
1876 void OMSetBlendState(
1877 [in] ID3D11BlendState *pBlendState,
1878 [in] const FLOAT BlendFactor[4],
1879 [in] UINT SampleMask);
1880 void OMSetDepthStencilState(
1881 [in] ID3D11DepthStencilState *pDepthStencilState,
1882 [in] UINT StencilRef);
1883 void SOSetTargets(
1884 [in] UINT NumBuffers,
1885 [in] ID3D11Buffer *const *ppSOTargets,
1886 [in] const UINT *pOffsets);
1887 void DrawAuto();
1888 void DrawIndexedInstancedIndirect(
1889 [in] ID3D11Buffer *pBufferForArgs,
1890 [in] UINT AlignedByteOffsetForArgs);
1891 void DrawInstancedIndirect(
1892 [in] ID3D11Buffer *pBufferForArgs,
1893 [in] UINT AlignedByteOffsetForArgs);
1894 void Dispatch(
1895 [in] UINT ThreadGroupCountX,
1896 [in] UINT ThreadGroupCountY,
1897 [in] UINT ThreadGroupCountZ);
1898 void DispatchIndirect(
1899 [in] ID3D11Buffer *pBufferForArgs,
1900 [in] UINT AlignedByteOffsetForArgs);
1901 void RSSetState(
1902 [in] ID3D11RasterizerState *pRasterizerState);
1903 void RSSetViewports(
1904 [in] UINT NumViewports,
1905 [in] const D3D11_VIEWPORT *pViewports);
1906 void RSSetScissorRects(
1907 [in] UINT NumRects,
1908 [in] const D3D11_RECT *pRects);
1909 void CopySubresourceRegion(
1910 [in] ID3D11Resource *pDstResource,
1911 [in] UINT DstSubresource,
1912 [in] UINT DstX,
1913 [in] UINT DstY,
1914 [in] UINT DstZ,
1915 [in] ID3D11Resource *pSrcResource,
1916 [in] UINT SrcSubresource,
1917 [in] const D3D11_BOX *pSrcBox);
1918 void CopyResource(
1919 [in] ID3D11Resource *pDstResource,
1920 [in] ID3D11Resource *pSrcResource);
1921 void UpdateSubresource(
1922 [in] ID3D11Resource *pDstResource,
1923 [in] UINT DstSubresource,
1924 [in] const D3D11_BOX *pDstBox,
1925 [in] const void *pSrcData,
1926 [in] UINT SrcRowPitch,
1927 [in] UINT SrcDepthPitch);
1928 void CopyStructureCount(
1929 [in] ID3D11Buffer *pDstBuffer,
1930 [in] UINT DstAlignedByteOffset,
1931 [in] ID3D11UnorderedAccessView *pSrcView);
1932 void ClearRenderTargetView(
1933 [in] ID3D11RenderTargetView *pRenderTargetView,
1934 [in] const FLOAT ColorRGBA[4]);
1935 void ClearUnorderedAccessViewUint(
1936 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
1937 [in] const UINT Values[4]);
1938 void ClearUnorderedAccessViewFloat(
1939 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
1940 [in] const FLOAT Values[4]);
1941 void ClearDepthStencilView(
1942 [in] ID3D11DepthStencilView *pDepthStencilView,
1943 [in] UINT ClearFlags,
1944 [in] FLOAT Depth,
1945 [in] UINT8 Stencil);
1946 void GenerateMips(
1947 [in] ID3D11ShaderResourceView *pShaderResourceView);
1948 void SetResourceMinLOD(
1949 [in] ID3D11Resource *pResource, FLOAT MinLOD);
1950 FLOAT GetResourceMinLOD(
1951 [in] ID3D11Resource *pResource);
1952 void ResolveSubresource(
1953 [in] ID3D11Resource *pDstResource,
1954 [in] UINT DstSubresource,
1955 [in] ID3D11Resource *pSrcResource,
1956 [in] UINT SrcSubresource,
1957 [in] DXGI_FORMAT Format);
1958 void ExecuteCommandList(
1959 [in] ID3D11CommandList *pCommandList,
1960 BOOL RestoreContextState);
1961 void HSSetShaderResources(
1962 [in] UINT StartSlot,
1963 [in] UINT NumViews,
1964 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1965 void HSSetShader(
1966 [in] ID3D11HullShader *pHullShader,
1967 [in] ID3D11ClassInstance *const *ppClassInstances,
1968 UINT NumClassInstances);
1969 void HSSetSamplers(
1970 [in] UINT StartSlot,
1971 [in] UINT NumSamplers,
1972 [in] ID3D11SamplerState *const *ppSamplers);
1973 void HSSetConstantBuffers(
1974 [in] UINT StartSlot,
1975 [in] UINT NumBuffers,
1976 [in] ID3D11Buffer *const *ppConstantBuffers);
1977 void DSSetShaderResources(
1978 [in] UINT StartSlot,
1979 [in] UINT NumViews,
1980 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1981 void DSSetShader(
1982 [in] ID3D11DomainShader *pDomainShader,
1983 [in] ID3D11ClassInstance *const *ppClassInstances,
1984 UINT NumClassInstances);
1985 void DSSetSamplers(
1986 [in] UINT StartSlot,
1987 [in] UINT NumSamplers,
1988 [in] ID3D11SamplerState *const *ppSamplers);
1989 void DSSetConstantBuffers(
1990 [in] UINT StartSlot,
1991 [in] UINT NumBuffers,
1992 [in] ID3D11Buffer *const *ppConstantBuffers);
1993 void CSSetShaderResources(
1994 [in] UINT StartSlot,
1995 [in] UINT NumViews,
1996 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1997 void CSSetUnorderedAccessViews(
1998 [in] UINT StartSlot,
1999 [in] UINT NumUAVs,
2000 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2001 [in] const UINT *pUAVInitialCounts);
2002 void CSSetShader(
2003 [in] ID3D11ComputeShader *pComputeShader,
2004 [in] ID3D11ClassInstance *const *ppClassInstances,
2005 UINT NumClassInstances);
2006 void CSSetSamplers(
2007 [in] UINT StartSlot,
2008 [in] UINT NumSamplers,
2009 [in] ID3D11SamplerState *const *ppSamplers);
2010 void CSSetConstantBuffers(
2011 [in] UINT StartSlot,
2012 [in] UINT NumBuffers,
2013 [in] ID3D11Buffer *const *ppConstantBuffers);
2014 void VSGetConstantBuffers(
2015 [in] UINT StartSlot,
2016 [in] UINT NumBuffers,
2017 [out] ID3D11Buffer **ppConstantBuffers);
2018 void PSGetShaderResources(
2019 [in] UINT StartSlot,
2020 [in] UINT NumViews,
2021 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2022 void PSGetShader(
2023 [out] ID3D11PixelShader **ppPixelShader,
2024 [out] ID3D11ClassInstance **ppClassInstances,
2025 [in, out] UINT *pNumClassInstances);
2026 void PSGetSamplers(
2027 [in] UINT StartSlot,
2028 [in] UINT NumSamplers,
2029 [out] ID3D11SamplerState **ppSamplers);
2030 void VSGetShader(
2031 [out] ID3D11VertexShader **ppVertexShader,
2032 [out] ID3D11ClassInstance **ppClassInstances,
2033 [in, out] UINT *pNumClassInstances);
2034 void PSGetConstantBuffers(
2035 [in] UINT StartSlot,
2036 [in] UINT NumBuffers,
2037 [out] ID3D11Buffer **ppConstantBuffers);
2038 void IAGetInputLayout(
2039 [out] ID3D11InputLayout **ppInputLayout);
2040 void IAGetVertexBuffers(
2041 [in] UINT StartSlot,
2042 [in] UINT NumBuffers,
2043 [out] ID3D11Buffer **ppVertexBuffers,
2044 [out] UINT *pStrides,
2045 [out] UINT *pOffsets);
2046 void IAGetIndexBuffer(
2047 [out] ID3D11Buffer **pIndexBuffer,
2048 [out] DXGI_FORMAT* Format,
2049 [out] UINT* Offset);
2050 void GSGetConstantBuffers(
2051 [in] UINT StartSlot,
2052 [in] UINT NumBuffers,
2053 [out] ID3D11Buffer **ppConstantBuffers);
2054 void GSGetShader(
2055 [out] ID3D11GeometryShader **ppGeometryShader,
2056 [out] ID3D11ClassInstance **ppClassInstances,
2057 [in, out] UINT *pNumClassInstances);
2058 void IAGetPrimitiveTopology(
2059 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2060 void VSGetShaderResources(
2061 [in] UINT StartSlot,
2062 [in] UINT NumViews,
2063 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2064 void VSGetSamplers(
2065 [in] UINT StartSlot,
2066 [in] UINT NumSamplers,
2067 [out] ID3D11SamplerState **ppSamplers);
2068 void GetPredication(
2069 [out] ID3D11Predicate **ppPredicate,
2070 [out] BOOL *pPredicateValue);
2071 void GSGetShaderResources(
2072 [in] UINT StartSlot,
2073 [in] UINT NumViews,
2074 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2075 void GSGetSamplers(
2076 [in] UINT StartSlot,
2077 [in] UINT NumSamplers,
2078 [out] ID3D11SamplerState **ppSamplers);
2079 void OMGetRenderTargets(
2080 [in] UINT NumViews,
2081 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2082 [out] ID3D11DepthStencilView **ppDepthStencilView);
2083 void OMGetRenderTargetsAndUnorderedAccessViews(
2084 [in] UINT NumRTVs,
2085 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2086 [out] ID3D11DepthStencilView **ppDepthStencilView,
2087 [in] UINT UAVStartSlot,
2088 [in] UINT NumUAVs,
2089 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2090 void OMGetBlendState(
2091 [out] ID3D11BlendState **ppBlendState,
2092 [out] FLOAT BlendFactor[4],
2093 [out] UINT *pSampleMask);
2094 void OMGetDepthStencilState(
2095 [out] ID3D11DepthStencilState **ppDepthStencilState,
2096 [out] UINT *pStencilRef);
2097 void SOGetTargets(
2098 [in] UINT NumBuffers,
2099 [out] ID3D11Buffer **ppSOTargets);
2100 void RSGetState(
2101 [out] ID3D11RasterizerState **ppRasterizerState);
2102 void RSGetViewports(
2103 [in, out] UINT *pNumViewports,
2104 [out] D3D11_VIEWPORT *pViewports);
2105 void RSGetScissorRects(
2106 [in, out] UINT *pNumRects,
2107 [out] D3D11_RECT *pRects);
2108 void HSGetShaderResources(
2109 [in] UINT StartSlot,
2110 [in] UINT NumViews,
2111 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2112 void HSGetShader(
2113 [out] ID3D11HullShader **ppHullShader,
2114 [out] ID3D11ClassInstance **ppClassInstances,
2115 [in, out] UINT *pNumClassInstances);
2116 void HSGetSamplers(
2117 [in] UINT StartSlot,
2118 [in] UINT NumSamplers,
2119 [out] ID3D11SamplerState **ppSamplers);
2120 void HSGetConstantBuffers(
2121 [in] UINT StartSlot,
2122 [in] UINT NumBuffers,
2123 [out] ID3D11Buffer **ppConstantBuffers);
2124 void DSGetShaderResources(
2125 [in] UINT StartSlot,
2126 [in] UINT NumViews,
2127 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2128 void DSGetShader(
2129 [out] ID3D11DomainShader **ppDomainShader,
2130 [out] ID3D11ClassInstance **ppClassInstances,
2131 [in, out] UINT *pNumClassInstances);
2132 void DSGetSamplers(
2133 [in] UINT StartSlot,
2134 [in] UINT NumSamplers,
2135 [out] ID3D11SamplerState **ppSamplers);
2136 void DSGetConstantBuffers(
2137 [in] UINT StartSlot,
2138 [in] UINT NumBuffers,
2139 [out] ID3D11Buffer **ppConstantBuffers);
2140 void CSGetShaderResources(
2141 [in] UINT StartSlot,
2142 [in] UINT NumViews,
2143 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2144 void CSGetUnorderedAccessViews(
2145 [in] UINT StartSlot,
2146 [in] UINT NumUAVs,
2147 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2148 void CSGetShader(
2149 [out] ID3D11ComputeShader **ppComputeShader,
2150 [out] ID3D11ClassInstance **ppClassInstances,
2151 [in, out] UINT *pNumClassInstances);
2152 void CSGetSamplers(
2153 [in] UINT StartSlot,
2154 [in] UINT NumSamplers,
2155 [out] ID3D11SamplerState **ppSamplers);
2156 void CSGetConstantBuffers(
2157 [in] UINT StartSlot,
2158 [in] UINT NumBuffers,
2159 [out] ID3D11Buffer **ppConstantBuffers);
2160 void ClearState();
2161 void Flush();
2162 D3D11_DEVICE_CONTEXT_TYPE GetType();
2163 UINT GetContextFlags();
2164 HRESULT FinishCommandList(
2165 BOOL RestoreDeferredContextState,
2166 [out] ID3D11CommandList **ppCommandList);
2170 object,
2171 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
2172 local,
2173 pointer_default(unique)
2175 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
2177 HRESULT GetCertificateSize(
2178 UINT *pCertificateSize);
2179 HRESULT GetCertificate(
2180 UINT CertificateSize,
2181 BYTE *pCertificate);
2182 void GetChannelHandle(
2183 HANDLE *pChannelHandle);
2187 object,
2188 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
2189 local,
2190 pointer_default(unique)
2192 interface ID3D11CryptoSession : ID3D11DeviceChild
2194 void GetCryptoType(
2195 GUID *pCryptoType);
2196 void GetDecoderProfile(
2197 GUID *pDecoderProfile);
2198 HRESULT GetCertificateSize(
2199 UINT *pCertificateSize);
2200 HRESULT GetCertificate(
2201 UINT CertificateSize,
2202 BYTE *pCertificate);
2203 void GetCryptoSessionHandle(
2204 HANDLE *pCryptoSessionHandle);
2208 object,
2209 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
2210 local,
2211 pointer_default(unique)
2213 interface ID3D11VideoDecoder : ID3D11DeviceChild
2215 HRESULT GetCreationParameters(
2216 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2217 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2218 HRESULT GetDriverHandle(
2219 HANDLE *pDriverHandle);
2223 object,
2224 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
2225 local,
2226 pointer_default(unique)
2228 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
2230 HRESULT GetVideoProcessorContentDesc(
2231 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
2232 HRESULT CheckVideoProcessorFormat(
2233 DXGI_FORMAT Format,
2234 UINT *pFlags);
2235 HRESULT GetVideoProcessorCaps(
2236 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
2237 HRESULT GetVideoProcessorRateConversionCaps(
2238 UINT TypeIndex,
2239 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2240 HRESULT GetVideoProcessorCustomRate(
2241 UINT TypeIndex,
2242 UINT CustomRateIndex,
2243 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
2244 HRESULT GetVideoProcessorFilterRange(
2245 D3D11_VIDEO_PROCESSOR_FILTER Filter,
2246 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
2250 object,
2251 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
2252 local,
2253 pointer_default(unique)
2255 interface ID3D11VideoProcessor : ID3D11DeviceChild
2257 void GetContentDesc(
2258 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
2259 void GetRateConversionCaps(
2260 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2264 object,
2265 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
2266 local,
2267 pointer_default(unique)
2269 interface ID3D11VideoDecoderOutputView : ID3D11View
2271 void GetDesc(
2272 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
2276 object,
2277 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
2278 local,
2279 pointer_default(unique)
2281 interface ID3D11VideoProcessorInputView : ID3D11View
2283 void GetDesc(
2284 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
2288 object,
2289 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
2290 local,
2291 pointer_default(unique)
2293 interface ID3D11VideoProcessorOutputView : ID3D11View
2295 void GetDesc(
2296 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
2300 object,
2301 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
2302 local,
2303 pointer_default(unique)
2305 interface ID3D11VideoDevice : IUnknown
2307 HRESULT CreateVideoDecoder(
2308 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2309 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
2310 ID3D11VideoDecoder **ppDecoder);
2311 HRESULT CreateVideoProcessor(
2312 ID3D11VideoProcessorEnumerator *pEnum,
2313 UINT RateConversionIndex,
2314 ID3D11VideoProcessor **ppVideoProcessor);
2315 HRESULT CreateAuthenticatedChannel(
2316 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
2317 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
2318 HRESULT CreateCryptoSession(
2319 const GUID *pCryptoType,
2320 const GUID *pDecoderProfile,
2321 const GUID *pKeyExchangeType,
2322 ID3D11CryptoSession **ppCryptoSession);
2323 HRESULT CreateVideoDecoderOutputView(
2324 ID3D11Resource *pResource,
2325 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
2326 ID3D11VideoDecoderOutputView **ppVDOVView);
2327 HRESULT CreateVideoProcessorInputView(
2328 ID3D11Resource *pResource,
2329 ID3D11VideoProcessorEnumerator *pEnum,
2330 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
2331 ID3D11VideoProcessorInputView **ppVPIView);
2332 HRESULT CreateVideoProcessorOutputView(
2333 ID3D11Resource *pResource,
2334 ID3D11VideoProcessorEnumerator *pEnum,
2335 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
2336 ID3D11VideoProcessorOutputView **ppVPOView);
2337 HRESULT CreateVideoProcessorEnumerator(
2338 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
2339 ID3D11VideoProcessorEnumerator **ppEnum);
2340 UINT GetVideoDecoderProfileCount();
2341 HRESULT GetVideoDecoderProfile(
2342 UINT Index,
2343 GUID *pDecoderProfile);
2344 HRESULT CheckVideoDecoderFormat(
2345 const GUID *pDecoderProfile,
2346 DXGI_FORMAT Format,
2347 BOOL *pSupported);
2348 HRESULT GetVideoDecoderConfigCount(
2349 const D3D11_VIDEO_DECODER_DESC *pDesc,
2350 UINT *pCount);
2351 HRESULT GetVideoDecoderConfig(
2352 const D3D11_VIDEO_DECODER_DESC *pDesc,
2353 UINT Index,
2354 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2355 HRESULT GetContentProtectionCaps(
2356 const GUID *pCryptoType,
2357 const GUID *pDecoderProfile,
2358 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
2359 HRESULT CheckCryptoKeyExchange(
2360 const GUID *pCryptoType,
2361 const GUID *pDecoderProfile,
2362 UINT Index,
2363 GUID *pKeyExchangeType);
2364 HRESULT SetPrivateData(
2365 REFGUID guid,
2366 UINT DataSize,
2367 const void *pData);
2368 HRESULT SetPrivateDataInterface(
2369 REFGUID guid,
2370 const IUnknown *pData);
2374 object,
2375 local,
2376 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
2378 interface ID3D11Device : IUnknown
2380 HRESULT CreateBuffer(
2381 [in] const D3D11_BUFFER_DESC *pDesc,
2382 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
2383 [out] ID3D11Buffer **ppBuffer);
2384 HRESULT CreateTexture1D(
2385 [in] const D3D11_TEXTURE1D_DESC *pDesc,
2386 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
2387 [out] ID3D11Texture1D **ppTexture1D);
2388 HRESULT CreateTexture2D(
2389 [in] const D3D11_TEXTURE2D_DESC *pDesc,
2390 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
2391 [out] ID3D11Texture2D **ppTexture2D);
2392 HRESULT CreateTexture3D(
2393 [in] const D3D11_TEXTURE3D_DESC *pDesc,
2394 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
2395 [out] ID3D11Texture3D **ppTexture3D);
2396 HRESULT CreateShaderResourceView(
2397 [in] ID3D11Resource *pResource,
2398 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
2399 [out] ID3D11ShaderResourceView **ppSRView);
2400 HRESULT CreateUnorderedAccessView(
2401 [in] ID3D11Resource *pResource,
2402 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
2403 [out] ID3D11UnorderedAccessView **ppUAView);
2404 HRESULT CreateRenderTargetView(
2405 [in] ID3D11Resource *pResource,
2406 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
2407 [out] ID3D11RenderTargetView **ppRTView);
2408 HRESULT CreateDepthStencilView(
2409 [in] ID3D11Resource *pResource,
2410 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
2411 [out] ID3D11DepthStencilView **ppDepthStencilView);
2412 HRESULT CreateInputLayout(
2413 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
2414 [in] UINT NumElements,
2415 [in] const void *pShaderBytecodeWithInputSignature,
2416 [in] SIZE_T BytecodeLength,
2417 [out] ID3D11InputLayout **ppInputLayout);
2418 HRESULT CreateVertexShader(
2419 [in] const void *pShaderBytecode,
2420 [in] SIZE_T BytecodeLength,
2421 [in] ID3D11ClassLinkage *pClassLinkage,
2422 [out] ID3D11VertexShader **ppVertexShader);
2423 HRESULT CreateGeometryShader(
2424 [in] const void *pShaderBytecode,
2425 [in] SIZE_T BytecodeLength,
2426 [in] ID3D11ClassLinkage *pClassLinkage,
2427 [out] ID3D11GeometryShader **ppGeometryShader);
2428 HRESULT CreateGeometryShaderWithStreamOutput(
2429 [in] const void *pShaderBytecode,
2430 [in] SIZE_T BytecodeLength,
2431 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
2432 [in] UINT NumEntries,
2433 [in] const UINT *pBufferStrides,
2434 [in] UINT NumStrides,
2435 [in] UINT RasterizedStream,
2436 [in] ID3D11ClassLinkage *pClassLinkage,
2437 [out] ID3D11GeometryShader **ppGeometryShader);
2438 HRESULT CreatePixelShader(
2439 [in] const void *pShaderBytecode,
2440 [in] SIZE_T BytecodeLength,
2441 [in] ID3D11ClassLinkage *pClassLinkage,
2442 [out] ID3D11PixelShader **ppPixelShader);
2443 HRESULT CreateHullShader(
2444 [in] const void *pShaderBytecode,
2445 [in] SIZE_T BytecodeLength,
2446 [in] ID3D11ClassLinkage *pClassLinkage,
2447 [out] ID3D11HullShader **ppHullShader);
2448 HRESULT CreateDomainShader(
2449 [in] const void *pShaderBytecode,
2450 [in] SIZE_T BytecodeLength,
2451 [in] ID3D11ClassLinkage *pClassLinkage,
2452 [out] ID3D11DomainShader **ppDomainShader);
2453 HRESULT CreateComputeShader(
2454 [in] const void *pShaderBytecode,
2455 [in] SIZE_T BytecodeLength,
2456 [in] ID3D11ClassLinkage *pClassLinkage,
2457 [out] ID3D11ComputeShader **ppComputeShader);
2458 HRESULT CreateClassLinkage(
2459 [out] ID3D11ClassLinkage **ppLinkage);
2460 HRESULT CreateBlendState(
2461 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
2462 [out] ID3D11BlendState **ppBlendState);
2463 HRESULT CreateDepthStencilState(
2464 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
2465 [out] ID3D11DepthStencilState **ppDepthStencilState);
2466 HRESULT CreateRasterizerState(
2467 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
2468 [out] ID3D11RasterizerState **ppRasterizerState);
2469 HRESULT CreateSamplerState(
2470 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
2471 [out] ID3D11SamplerState **ppSamplerState);
2472 HRESULT CreateQuery(
2473 [in] const D3D11_QUERY_DESC *pQueryDesc,
2474 [out] ID3D11Query **ppQuery);
2475 HRESULT CreatePredicate(
2476 [in] const D3D11_QUERY_DESC *pPredicateDesc,
2477 [out] ID3D11Predicate **ppPredicate);
2478 HRESULT CreateCounter(
2479 [in] const D3D11_COUNTER_DESC *pCounterDesc,
2480 [out] ID3D11Counter **ppCounter);
2481 HRESULT CreateDeferredContext(
2482 UINT ContextFlags,
2483 [out] ID3D11DeviceContext **ppDeferredContext);
2484 HRESULT OpenSharedResource(
2485 [in] HANDLE hResource,
2486 [in] REFIID ReturnedInterface,
2487 [out] void **ppResource);
2488 HRESULT CheckFormatSupport(
2489 [in] DXGI_FORMAT Format,
2490 [out] UINT *pFormatSupport);
2491 HRESULT CheckMultisampleQualityLevels(
2492 [in] DXGI_FORMAT Format,
2493 [in] UINT SampleCount,
2494 [out] UINT *pNumQualityLevels);
2495 void CheckCounterInfo(
2496 [out] D3D11_COUNTER_INFO *pCounterInfo);
2497 HRESULT CheckCounter(
2498 [in] const D3D11_COUNTER_DESC *pDesc,
2499 [out] D3D11_COUNTER_TYPE *pType,
2500 [out] UINT *pActiveCounters,
2501 [out] LPSTR szName,
2502 [in, out] UINT *pNameLength,
2503 [out] LPSTR szUnits,
2504 [in, out] UINT *pUnitsLength,
2505 [out] LPSTR szDescription,
2506 [in, out] UINT *pDescriptionLength);
2507 HRESULT CheckFeatureSupport(
2508 D3D11_FEATURE Feature,
2509 [out] void *pFeatureSupportData,
2510 UINT FeatureSupportDataSize);
2511 HRESULT GetPrivateData(
2512 [in] REFGUID guid,
2513 [in, out] UINT *pDataSize,
2514 [out] void *pData);
2515 HRESULT SetPrivateData(
2516 [in] REFGUID guid,
2517 [in] UINT DataSize,
2518 [in] const void *pData);
2519 HRESULT SetPrivateDataInterface(
2520 [in] REFGUID guid,
2521 [in] const IUnknown *pData);
2522 D3D_FEATURE_LEVEL GetFeatureLevel();
2523 UINT GetCreationFlags();
2524 HRESULT GetDeviceRemovedReason();
2525 void GetImmediateContext(
2526 [out] ID3D11DeviceContext **ppImmediateContext);
2527 HRESULT SetExceptionMode(UINT RaiseFlags);
2528 UINT GetExceptionMode();
2531 typedef enum D3D11_CREATE_DEVICE_FLAG {
2532 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
2533 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
2534 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
2535 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
2536 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
2537 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
2538 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
2539 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
2540 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
2541 } D3D11_CREATE_DEVICE_FLAG;
2543 const UINT D3D11_SDK_VERSION = 7;
2545 cpp_quote("#include <d3d10_1.h>")
2546 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
2547 cpp_quote("# include <d3d11sdklayers.h>")
2548 cpp_quote("#endif")
2549 cpp_quote("#include <d3d10misc.h>")
2550 cpp_quote("#include <d3d10shader.h>")
2551 cpp_quote("#include <d3d10effect.h>")
2552 cpp_quote("#include <d3d10_1shader.h>")
2554 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2555 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2557 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
2558 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2560 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2561 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
2562 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2564 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
2565 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
2566 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
2567 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);