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