jscript: Do not include terminating \0 in result returned by Date_toLocale{Date,Time...
[wine.git] / include / d3d11.idl
blob767321be1fcbf461760a13cc0cdc8e19a7eccbfb
1 /*
2 * Copyright 2010 Rico Schüller
3 * Copyright 2013 Austin English
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 import "oaidl.idl";
21 import "ocidl.idl";
22 import "dxgi.idl";
23 import "d3dcommon.idl";
25 typedef D3D_PRIMITIVE D3D11_PRIMITIVE;
26 typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY;
27 typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION;
28 typedef RECT D3D11_RECT;
30 interface ID3D11Device;
31 interface ID3D11ClassLinkage;
32 interface ID3D11Resource;
33 interface ID3D11VideoProcessorInputView;
35 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
39 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
40 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
41 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
42 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
43 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
44 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
45 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
46 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
47 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
48 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
49 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
50 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
51 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
52 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
53 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
54 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
55 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
56 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
57 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
58 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
59 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
60 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
61 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
62 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
63 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
64 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
65 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
66 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
67 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
68 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
69 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
71 const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
72 cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
73 const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
74 cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
75 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
76 const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
77 const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
78 const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
79 const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
80 const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
81 cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
82 const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
83 const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
84 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
85 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
86 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
87 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
88 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
89 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
90 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
91 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
93 cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
95 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
97 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
99 const UINT D3D11_MAX_MAXANISOTROPY = 16;
100 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
101 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
102 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
103 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
104 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
106 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff;
107 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff;
109 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
110 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
111 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
112 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
113 const UINT D3D11_SHADER_MAX_TYPES = 65535;
114 const UINT D3D11_SHADER_MINOR_VERSION = 0;
115 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
117 const UINT D3D11_OMAC_SIZE = 16;
119 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
120 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
121 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
122 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
123 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
124 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
125 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
126 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
127 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
128 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
129 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
130 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
131 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
132 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
133 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
134 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
135 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
136 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
137 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
138 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
139 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
140 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
141 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
143 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
145 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
146 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
147 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
148 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
149 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
150 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
151 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
152 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
153 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
154 const UINT D3D11_REQ_MAXANISOTROPY = 16;
155 const UINT D3D11_REQ_MIP_LEVELS = 15;
156 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
157 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
158 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
159 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
160 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
161 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
162 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
163 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
164 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
165 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
166 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
167 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
168 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
169 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
171 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
173 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
174 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
176 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
177 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
178 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
179 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
180 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
181 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
182 const UINT D3D11_SO_STREAM_COUNT = 4;
184 const UINT D3D11_SPEC_DATE_DAY = 16;
185 const UINT D3D11_SPEC_DATE_MONTH = 05;
186 const UINT D3D11_SPEC_DATE_YEAR = 2011;
188 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
189 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
190 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
191 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
192 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
193 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
194 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
195 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
197 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
198 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
199 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
200 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
201 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
202 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
203 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
204 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
206 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
207 cpp_quote("struct CD3D11_DEFAULT {};")
208 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
209 cpp_quote("#endif")
211 typedef enum D3D11_BLEND
213 D3D11_BLEND_ZERO = 1,
214 D3D11_BLEND_ONE = 2,
215 D3D11_BLEND_SRC_COLOR = 3,
216 D3D11_BLEND_INV_SRC_COLOR = 4,
217 D3D11_BLEND_SRC_ALPHA = 5,
218 D3D11_BLEND_INV_SRC_ALPHA = 6,
219 D3D11_BLEND_DEST_ALPHA = 7,
220 D3D11_BLEND_INV_DEST_ALPHA = 8,
221 D3D11_BLEND_DEST_COLOR = 9,
222 D3D11_BLEND_INV_DEST_COLOR = 10,
223 D3D11_BLEND_SRC_ALPHA_SAT = 11,
224 D3D11_BLEND_BLEND_FACTOR = 14,
225 D3D11_BLEND_INV_BLEND_FACTOR = 15,
226 D3D11_BLEND_SRC1_COLOR = 16,
227 D3D11_BLEND_INV_SRC1_COLOR = 17,
228 D3D11_BLEND_SRC1_ALPHA = 18,
229 D3D11_BLEND_INV_SRC1_ALPHA = 19,
230 } D3D11_BLEND;
232 typedef enum D3D11_BLEND_OP
234 D3D11_BLEND_OP_ADD = 1,
235 D3D11_BLEND_OP_SUBTRACT,
236 D3D11_BLEND_OP_REV_SUBTRACT,
237 D3D11_BLEND_OP_MIN,
238 D3D11_BLEND_OP_MAX
239 } D3D11_BLEND_OP;
241 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
243 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
244 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
245 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
246 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
247 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
248 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
249 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
250 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
251 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
252 } D3D11_VIDEO_DECODER_BUFFER_TYPE;
254 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
256 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
257 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
258 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
259 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
260 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
262 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
264 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
265 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
266 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
267 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
269 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
271 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
272 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
273 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
274 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
275 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
276 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
277 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
278 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
279 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
281 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
283 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
284 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
285 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
286 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
288 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
290 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
291 D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
292 D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
293 D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
294 } D3D11_VIDEO_PROCESSOR_ROTATION;
296 typedef struct D3D11_BOX
298 UINT left;
299 UINT top;
300 UINT front;
301 UINT right;
302 UINT bottom;
303 UINT back;
304 } D3D11_BOX;
306 typedef struct D3D11_BUFFER_RTV
308 union
310 UINT FirstElement;
311 UINT ElementOffset;
313 union
315 UINT NumElements;
316 UINT ElementWidth;
318 } D3D11_BUFFER_RTV;
320 typedef struct D3D11_BUFFER_SRV
322 union
324 UINT FirstElement;
325 UINT ElementOffset;
327 union
329 UINT NumElements;
330 UINT ElementWidth;
332 } D3D11_BUFFER_SRV;
334 typedef struct D3D11_BUFFER_UAV
336 UINT FirstElement;
337 UINT NumElements;
338 UINT Flags;
339 } D3D11_BUFFER_UAV;
341 typedef struct D3D11_BUFFEREX_SRV
343 UINT FirstElement;
344 UINT NumElements;
345 UINT Flags;
346 } D3D11_BUFFEREX_SRV;
348 typedef struct D3D11_CLASS_INSTANCE_DESC
350 UINT InstanceId;
351 UINT InstanceIndex;
352 UINT TypeId;
353 UINT ConstantBuffer;
354 UINT BaseConstantBufferOffset;
355 UINT BaseTexture;
356 UINT BaseSampler;
357 BOOL Created;
358 } D3D11_CLASS_INSTANCE_DESC;
360 typedef enum D3D11_COMPARISON_FUNC
362 D3D11_COMPARISON_NEVER = 1,
363 D3D11_COMPARISON_LESS,
364 D3D11_COMPARISON_EQUAL,
365 D3D11_COMPARISON_LESS_EQUAL,
366 D3D11_COMPARISON_GREATER,
367 D3D11_COMPARISON_NOT_EQUAL,
368 D3D11_COMPARISON_GREATER_EQUAL,
369 D3D11_COMPARISON_ALWAYS
370 } D3D11_COMPARISON_FUNC;
372 typedef enum D3D11_COUNTER
374 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
375 } D3D11_COUNTER;
377 typedef struct D3D11_COUNTER_DESC
379 D3D11_COUNTER Counter;
380 UINT MiscFlags;
381 } D3D11_COUNTER_DESC;
383 typedef struct D3D11_COUNTER_INFO
385 D3D11_COUNTER LastDeviceDependentCounter;
386 UINT NumSimultaneousCounters;
387 UINT8 NumDetectableParallelUnits;
388 } D3D11_COUNTER_INFO;
390 typedef enum D3D11_COUNTER_TYPE
392 D3D11_COUNTER_TYPE_FLOAT32,
393 D3D11_COUNTER_TYPE_UINT16,
394 D3D11_COUNTER_TYPE_UINT32,
395 D3D11_COUNTER_TYPE_UINT64,
396 } D3D11_COUNTER_TYPE;
398 typedef enum D3D11_CULL_MODE
400 D3D11_CULL_NONE = 1,
401 D3D11_CULL_FRONT,
402 D3D11_CULL_BACK
403 } D3D11_CULL_MODE;
405 typedef enum D3D11_DEPTH_WRITE_MASK
407 D3D11_DEPTH_WRITE_MASK_ZERO,
408 D3D11_DEPTH_WRITE_MASK_ALL,
409 } D3D11_DEPTH_WRITE_MASK;
411 typedef enum D3D11_DEVICE_CONTEXT_TYPE
413 D3D11_DEVICE_CONTEXT_IMMEDIATE,
414 D3D11_DEVICE_CONTEXT_DEFERRED,
415 } D3D11_DEVICE_CONTEXT_TYPE;
417 typedef enum D3D11_DSV_DIMENSION
419 D3D11_DSV_DIMENSION_UNKNOWN,
420 D3D11_DSV_DIMENSION_TEXTURE1D,
421 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
422 D3D11_DSV_DIMENSION_TEXTURE2D,
423 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
424 D3D11_DSV_DIMENSION_TEXTURE2DMS,
425 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
426 } D3D11_DSV_DIMENSION;
428 typedef enum D3D11_FEATURE
430 D3D11_FEATURE_THREADING,
431 D3D11_FEATURE_DOUBLES,
432 D3D11_FEATURE_FORMAT_SUPPORT,
433 D3D11_FEATURE_FORMAT_SUPPORT2,
434 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
435 D3D11_FEATURE_D3D11_OPTIONS,
436 D3D11_FEATURE_ARCHITECTURE_INFO,
437 D3D11_FEATURE_D3D9_OPTIONS,
438 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
439 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
440 } D3D11_FEATURE;
442 typedef struct D3D11_FEATURE_DATA_THREADING
444 BOOL DriverConcurrentCreates;
445 BOOL DriverCommandLists;
446 } D3D11_FEATURE_DATA_THREADING;
448 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
450 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
451 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
453 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
455 BOOL OutputMergerLogicOp;
456 BOOL UAVOnlyRenderingForcedSampleCount;
457 BOOL DiscardAPIsSeenByDriver;
458 BOOL FlagsForUpdateAndCopySeenByDriver;
459 BOOL ClearView;
460 BOOL CopyWithOverlap;
461 BOOL ConstantBufferPartialUpdate;
462 BOOL ConstantBufferOffsetting;
463 BOOL MapNoOverwriteOnDynamicConstantBuffer;
464 BOOL MapNoOverwriteOnDynamicBufferSRV;
465 BOOL MultisampleRTVWithForcedSampleCountOne;
466 BOOL SAD4ShaderInstructions;
467 BOOL ExtendedDoublesShaderInstructions;
468 BOOL ExtendedResourceSharing;
469 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
471 typedef enum D3D11_FILL_MODE
473 D3D11_FILL_WIREFRAME = 2,
474 D3D11_FILL_SOLID
475 } D3D11_FILL_MODE;
477 typedef enum D3D11_FILTER_TYPE
479 D3D11_FILTER_TYPE_POINT = 0,
480 D3D11_FILTER_TYPE_LINEAR = 1
481 } D3D11_FILTER_TYPE;
483 const UINT D3D11_MIN_FILTER_SHIFT = 4;
484 const UINT D3D11_MAG_FILTER_SHIFT = 2;
485 const UINT D3D11_MIP_FILTER_SHIFT = 0;
486 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
487 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
488 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
490 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
491 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
492 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
493 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
494 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
496 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
497 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
498 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
499 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
501 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
502 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
504 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
505 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
507 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
508 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
510 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
512 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
513 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
514 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
515 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
516 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
518 typedef enum D3D11_FILTER
520 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
521 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
522 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
523 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
524 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
525 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
526 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
527 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
528 D3D11_FILTER_ANISOTROPIC = 0x55,
529 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
530 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
531 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
532 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
533 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
534 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
535 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
536 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
537 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
538 } D3D11_FILTER;
540 typedef enum D3D11_DSV_FLAG
542 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
543 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
544 } D3D11_DSV_FLAG;
546 typedef enum D3D11_INPUT_CLASSIFICATION
548 D3D11_INPUT_PER_VERTEX_DATA,
549 D3D11_INPUT_PER_INSTANCE_DATA,
550 } D3D11_INPUT_CLASSIFICATION;
552 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
554 typedef struct D3D11_INPUT_ELEMENT_DESC
556 LPCSTR SemanticName;
557 UINT SemanticIndex;
558 DXGI_FORMAT Format;
559 UINT InputSlot;
560 UINT AlignedByteOffset;
561 D3D11_INPUT_CLASSIFICATION InputSlotClass;
562 UINT InstanceDataStepRate;
563 } D3D11_INPUT_ELEMENT_DESC;
565 typedef enum D3D11_MAP
567 D3D11_MAP_READ = 1,
568 D3D11_MAP_WRITE,
569 D3D11_MAP_READ_WRITE,
570 D3D11_MAP_WRITE_DISCARD,
571 D3D11_MAP_WRITE_NO_OVERWRITE
572 } D3D11_MAP;
574 typedef enum D3D11_MAP_FLAG
576 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
577 } D3D11_MAP_FLAG;
579 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
581 UINT64 NumPrimitivesWritten;
582 UINT64 PrimitivesStorageNeeded;
583 } D3D11_QUERY_DATA_SO_STATISTICS;
585 typedef struct D3D11_MAPPED_SUBRESOURCE
587 void *pData;
588 UINT RowPitch;
589 UINT DepthPitch;
590 } D3D11_MAPPED_SUBRESOURCE;
592 typedef enum D3D11_QUERY
594 D3D11_QUERY_EVENT,
595 D3D11_QUERY_OCCLUSION,
596 D3D11_QUERY_TIMESTAMP,
597 D3D11_QUERY_TIMESTAMP_DISJOINT,
598 D3D11_QUERY_PIPELINE_STATISTICS,
599 D3D11_QUERY_OCCLUSION_PREDICATE,
600 D3D11_QUERY_SO_STATISTICS,
601 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
602 D3D11_QUERY_SO_STATISTICS_STREAM0,
603 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
604 D3D11_QUERY_SO_STATISTICS_STREAM1,
605 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
606 D3D11_QUERY_SO_STATISTICS_STREAM2,
607 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
608 D3D11_QUERY_SO_STATISTICS_STREAM3,
609 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
610 } D3D11_QUERY;
612 typedef enum D3D11_QUERY_MISC_FLAG
614 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
615 } D3D11_QUERY_MISC_FLAG;
617 typedef enum D3D11_ASYNC_GETDATA_FLAG
619 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
620 } D3D11_ASYNC_GETDATA_FLAG;
622 typedef enum D3D11_RESOURCE_MISC_FLAG
624 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
625 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
626 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
627 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
628 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
629 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
630 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
631 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
632 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
633 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
634 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
635 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
636 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
637 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
638 } D3D11_RESOURCE_MISC_FLAG;
640 typedef struct D3D11_QUERY_DESC
642 D3D11_QUERY Query;
643 UINT MiscFlags;
644 } D3D11_QUERY_DESC;
646 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
647 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
648 cpp_quote(" CD3D11_QUERY_DESC() {}")
649 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
650 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
651 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
652 cpp_quote(" Query = query;")
653 cpp_quote(" MiscFlags = misc_flags;")
654 cpp_quote(" }")
655 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
656 cpp_quote(" return *this;")
657 cpp_quote(" }")
658 cpp_quote("};")
659 cpp_quote("#endif")
661 typedef struct D3D11_RASTERIZER_DESC
663 D3D11_FILL_MODE FillMode;
664 D3D11_CULL_MODE CullMode;
665 BOOL FrontCounterClockwise;
666 INT DepthBias;
667 FLOAT DepthBiasClamp;
668 FLOAT SlopeScaledDepthBias;
669 BOOL DepthClipEnable;
670 BOOL ScissorEnable;
671 BOOL MultisampleEnable;
672 BOOL AntialiasedLineEnable;
673 } D3D11_RASTERIZER_DESC;
675 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
676 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
677 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
678 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
679 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
680 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
681 cpp_quote(" CullMode = D3D11_CULL_BACK;")
682 cpp_quote(" FrontCounterClockwise = FALSE;")
683 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
684 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
685 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
686 cpp_quote(" DepthClipEnable = TRUE;")
687 cpp_quote(" ScissorEnable = FALSE;")
688 cpp_quote(" MultisampleEnable = FALSE;")
689 cpp_quote(" AntialiasedLineEnable = FALSE;")
690 cpp_quote(" }")
691 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
692 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
693 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
694 cpp_quote(" FillMode = fillMode;")
695 cpp_quote(" CullMode = cullMode;")
696 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
697 cpp_quote(" DepthBias = depthBias;")
698 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
699 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
700 cpp_quote(" DepthClipEnable = depthClipEnable;")
701 cpp_quote(" ScissorEnable = scissorEnable;")
702 cpp_quote(" MultisampleEnable = multisampleEnable;")
703 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
704 cpp_quote(" }")
705 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
706 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
707 cpp_quote("};")
708 cpp_quote("#endif")
710 typedef enum D3D11_RESOURCE_DIMENSION
712 D3D11_RESOURCE_DIMENSION_UNKNOWN,
713 D3D11_RESOURCE_DIMENSION_BUFFER,
714 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
715 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
716 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
717 } D3D11_RESOURCE_DIMENSION;
719 typedef enum D3D11_RTV_DIMENSION
721 D3D11_RTV_DIMENSION_UNKNOWN,
722 D3D11_RTV_DIMENSION_BUFFER,
723 D3D11_RTV_DIMENSION_TEXTURE1D,
724 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
725 D3D11_RTV_DIMENSION_TEXTURE2D,
726 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
727 D3D11_RTV_DIMENSION_TEXTURE2DMS,
728 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
729 D3D11_RTV_DIMENSION_TEXTURE3D,
730 } D3D11_RTV_DIMENSION;
732 typedef struct D3D11_SO_DECLARATION_ENTRY
734 UINT Stream;
735 LPCSTR SemanticName;
736 UINT SemanticIndex;
737 BYTE StartComponent;
738 BYTE ComponentCount;
739 BYTE OutputSlot;
740 } D3D11_SO_DECLARATION_ENTRY;
742 typedef enum D3D11_STENCIL_OP
744 D3D11_STENCIL_OP_KEEP = 1,
745 D3D11_STENCIL_OP_ZERO,
746 D3D11_STENCIL_OP_REPLACE,
747 D3D11_STENCIL_OP_INCR_SAT,
748 D3D11_STENCIL_OP_DECR_SAT,
749 D3D11_STENCIL_OP_INVERT,
750 D3D11_STENCIL_OP_INCR,
751 D3D11_STENCIL_OP_DECR
752 } D3D11_STENCIL_OP;
754 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
755 cpp_quote("}")
756 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
757 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
758 cpp_quote("}")
759 cpp_quote("extern \"C\"{")
760 cpp_quote("#endif")
762 typedef struct D3D11_SUBRESOURCE_DATA
764 const void *pSysMem;
765 UINT SysMemPitch;
766 UINT SysMemSlicePitch;
767 } D3D11_SUBRESOURCE_DATA;
769 typedef struct D3D11_TEX1D_ARRAY_DSV
771 UINT MipSlice;
772 UINT FirstArraySlice;
773 UINT ArraySize;
774 } D3D11_TEX1D_ARRAY_DSV;
776 typedef struct D3D11_TEX1D_ARRAY_RTV
778 UINT MipSlice;
779 UINT FirstArraySlice;
780 UINT ArraySize;
781 } D3D11_TEX1D_ARRAY_RTV;
783 typedef struct D3D11_TEX1D_ARRAY_SRV
785 UINT MostDetailedMip;
786 UINT MipLevels;
787 UINT FirstArraySlice;
788 UINT ArraySize;
789 } D3D11_TEX1D_ARRAY_SRV;
791 typedef struct D3D11_TEX1D_ARRAY_UAV
793 UINT MipSlice;
794 UINT FirstArraySlice;
795 UINT ArraySize;
796 } D3D11_TEX1D_ARRAY_UAV;
798 typedef struct D3D11_TEX1D_DSV
800 UINT MipSlice;
801 } D3D11_TEX1D_DSV;
803 typedef struct D3D11_TEX1D_RTV
805 UINT MipSlice;
806 } D3D11_TEX1D_RTV;
808 typedef struct D3D11_TEX1D_SRV
810 UINT MostDetailedMip;
811 UINT MipLevels;
812 } D3D11_TEX1D_SRV;
814 typedef struct D3D11_TEX1D_UAV
816 UINT MipSlice;
817 } D3D11_TEX1D_UAV;
819 typedef struct D3D11_TEX2D_ARRAY_DSV
821 UINT MipSlice;
822 UINT FirstArraySlice;
823 UINT ArraySize;
824 } D3D11_TEX2D_ARRAY_DSV;
826 typedef struct D3D11_TEX2D_ARRAY_RTV
828 UINT MipSlice;
829 UINT FirstArraySlice;
830 UINT ArraySize;
831 } D3D11_TEX2D_ARRAY_RTV;
833 typedef struct D3D11_TEX2D_ARRAY_SRV
835 UINT MostDetailedMip;
836 UINT MipLevels;
837 UINT FirstArraySlice;
838 UINT ArraySize;
839 } D3D11_TEX2D_ARRAY_SRV;
841 typedef struct D3D11_TEX2D_ARRAY_UAV
843 UINT MipSlice;
844 UINT FirstArraySlice;
845 UINT ArraySize;
846 } D3D11_TEX2D_ARRAY_UAV;
848 typedef struct D3D11_TEX2D_DSV
850 UINT MipSlice;
851 } D3D11_TEX2D_DSV;
853 typedef struct D3D11_TEX2D_RTV
855 UINT MipSlice;
856 } D3D11_TEX2D_RTV;
858 typedef struct D3D11_TEX2D_SRV
860 UINT MostDetailedMip;
861 UINT MipLevels;
862 } D3D11_TEX2D_SRV;
864 typedef struct D3D11_TEX2D_UAV
866 UINT MipSlice;
867 } D3D11_TEX2D_UAV;
869 typedef struct D3D11_TEX2DMS_ARRAY_DSV
871 UINT FirstArraySlice;
872 UINT ArraySize;
873 } D3D11_TEX2DMS_ARRAY_DSV;
875 typedef struct D3D11_TEX2DMS_ARRAY_RTV
877 UINT FirstArraySlice;
878 UINT ArraySize;
879 } D3D11_TEX2DMS_ARRAY_RTV;
881 typedef struct D3D11_TEX2DMS_ARRAY_SRV
883 UINT FirstArraySlice;
884 UINT ArraySize;
885 } D3D11_TEX2DMS_ARRAY_SRV;
887 typedef struct D3D11_TEX2DMS_DSV
889 UINT UnusedField_NothingToDefine;
890 } D3D11_TEX2DMS_DSV;
892 typedef struct D3D11_TEX2DMS_RTV
894 UINT UnusedField_NothingToDefine;
895 } D3D11_TEX2DMS_RTV;
897 typedef struct D3D11_TEX2DMS_SRV
899 UINT UnusedField_NothingToDefine;
900 } D3D11_TEX2DMS_SRV;
902 typedef struct D3D11_TEX3D_RTV
904 UINT MipSlice;
905 UINT FirstWSlice;
906 UINT WSize;
907 } D3D11_TEX3D_RTV;
909 typedef struct D3D11_TEX3D_SRV
911 UINT MostDetailedMip;
912 UINT MipLevels;
913 } D3D11_TEX3D_SRV;
915 typedef struct D3D11_TEX3D_UAV
917 UINT MipSlice;
918 UINT FirstWSlice;
919 UINT WSize;
920 } D3D11_TEX3D_UAV;
922 typedef struct D3D11_TEXCUBE_ARRAY_SRV
924 UINT MostDetailedMip;
925 UINT MipLevels;
926 UINT First2DArrayFace;
927 UINT NumCubes;
928 } D3D11_TEXCUBE_ARRAY_SRV;
930 typedef struct D3D11_TEXCUBE_SRV
932 UINT MostDetailedMip;
933 UINT MipLevels;
934 } D3D11_TEXCUBE_SRV;
936 typedef enum D3D11_TEXTURE_ADDRESS_MODE
938 D3D11_TEXTURE_ADDRESS_WRAP = 1,
939 D3D11_TEXTURE_ADDRESS_MIRROR,
940 D3D11_TEXTURE_ADDRESS_CLAMP,
941 D3D11_TEXTURE_ADDRESS_BORDER,
942 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
943 } D3D11_TEXTURE_ADDRESS_MODE;
945 typedef enum D3D11_UAV_DIMENSION
947 D3D11_UAV_DIMENSION_UNKNOWN,
948 D3D11_UAV_DIMENSION_BUFFER,
949 D3D11_UAV_DIMENSION_TEXTURE1D,
950 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
951 D3D11_UAV_DIMENSION_TEXTURE2D,
952 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
953 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
954 } D3D11_UAV_DIMENSION;
956 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
958 DXGI_FORMAT Format;
959 D3D11_UAV_DIMENSION ViewDimension;
961 union
963 D3D11_BUFFER_UAV Buffer;
964 D3D11_TEX1D_UAV Texture1D;
965 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
966 D3D11_TEX2D_UAV Texture2D;
967 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
968 D3D11_TEX3D_UAV Texture3D;
970 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
972 typedef enum D3D11_USAGE
974 D3D11_USAGE_DEFAULT,
975 D3D11_USAGE_IMMUTABLE,
976 D3D11_USAGE_DYNAMIC,
977 D3D11_USAGE_STAGING,
978 } D3D11_USAGE;
980 typedef enum D3D11_BIND_FLAG
982 D3D11_BIND_VERTEX_BUFFER = 0x0001,
983 D3D11_BIND_INDEX_BUFFER = 0x0002,
984 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
985 D3D11_BIND_SHADER_RESOURCE = 0x0008,
986 D3D11_BIND_STREAM_OUTPUT = 0x0010,
987 D3D11_BIND_RENDER_TARGET = 0x0020,
988 D3D11_BIND_DEPTH_STENCIL = 0x0040,
989 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
990 D3D11_BIND_DECODER = 0x0200,
991 D3D11_BIND_VIDEO_ENCODER = 0x0400
992 } D3D11_BIND_FLAG;
994 typedef enum D3D11_CPU_ACCESS_FLAG
996 D3D11_CPU_ACCESS_WRITE = 0x00010000,
997 D3D11_CPU_ACCESS_READ = 0x00020000
998 } D3D11_CPU_ACCESS_FLAG;
1000 typedef struct D3D11_VIEWPORT
1002 FLOAT TopLeftX;
1003 FLOAT TopLeftY;
1004 FLOAT Width;
1005 FLOAT Height;
1006 FLOAT MinDepth;
1007 FLOAT MaxDepth;
1008 } D3D11_VIEWPORT;
1010 typedef enum D3D11_COLOR_WRITE_ENABLE
1012 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1013 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1014 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1015 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1016 D3D11_COLOR_WRITE_ENABLE_ALL =
1017 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1018 } D3D11_COLOR_WRITE_ENABLE;
1020 typedef enum D3D11_FORMAT_SUPPORT
1022 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1023 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1024 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1025 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1026 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1027 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1028 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1029 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1030 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1031 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1032 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1033 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1034 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1035 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1036 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1037 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1038 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1039 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1040 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1041 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1042 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1043 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1044 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1045 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1046 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1047 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1048 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1049 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1050 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1051 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1052 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1053 } D3D11_FORMAT_SUPPORT;
1055 typedef enum D3D11_CLEAR_FLAG
1057 D3D11_CLEAR_DEPTH = 0x0001L,
1058 D3D11_CLEAR_STENCIL = 0x0002L
1059 } D3D11_CLEAR_FLAG;
1061 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1063 BOOL BlendEnable;
1064 D3D11_BLEND SrcBlend;
1065 D3D11_BLEND DestBlend;
1066 D3D11_BLEND_OP BlendOp;
1067 D3D11_BLEND SrcBlendAlpha;
1068 D3D11_BLEND DestBlendAlpha;
1069 D3D11_BLEND_OP BlendOpAlpha;
1070 UINT8 RenderTargetWriteMask;
1071 } D3D11_RENDER_TARGET_BLEND_DESC;
1073 typedef struct D3D11_BLEND_DESC
1075 BOOL AlphaToCoverageEnable;
1076 BOOL IndependentBlendEnable;
1077 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1078 } D3D11_BLEND_DESC;
1080 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1081 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1082 cpp_quote(" CD3D11_BLEND_DESC() {}")
1083 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1084 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1085 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1086 cpp_quote(" IndependentBlendEnable = FALSE;")
1087 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1088 cpp_quote(" target->BlendEnable = FALSE;")
1089 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1090 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1091 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1092 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1093 cpp_quote(" }")
1094 cpp_quote(" }")
1095 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1096 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1097 cpp_quote("};" )
1098 cpp_quote("#endif" )
1100 typedef struct D3D11_BUFFER_DESC
1102 UINT ByteWidth;
1103 D3D11_USAGE Usage;
1104 UINT BindFlags;
1105 UINT CPUAccessFlags;
1106 UINT MiscFlags;
1107 UINT StructureByteStride;
1108 } D3D11_BUFFER_DESC;
1110 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1111 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1112 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1113 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1114 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1115 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1116 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1117 cpp_quote(" ByteWidth = byteWidth;")
1118 cpp_quote(" Usage = usage;")
1119 cpp_quote(" BindFlags = bindFlags;")
1120 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1121 cpp_quote(" MiscFlags = miscFlags;" )
1122 cpp_quote(" StructureByteStride = structureByteStride;")
1123 cpp_quote(" }")
1124 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1125 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1126 cpp_quote("};" )
1127 cpp_quote("#endif" )
1129 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1131 DXGI_FORMAT Format;
1132 D3D11_DSV_DIMENSION ViewDimension;
1133 UINT Flags;
1135 union
1137 D3D11_TEX1D_DSV Texture1D;
1138 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1139 D3D11_TEX2D_DSV Texture2D;
1140 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1141 D3D11_TEX2DMS_DSV Texture2DMS;
1142 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1144 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1146 typedef struct D3D11_DEPTH_STENCILOP_DESC
1148 D3D11_STENCIL_OP StencilFailOp;
1149 D3D11_STENCIL_OP StencilDepthFailOp;
1150 D3D11_STENCIL_OP StencilPassOp;
1151 D3D11_COMPARISON_FUNC StencilFunc;
1152 } D3D11_DEPTH_STENCILOP_DESC;
1154 typedef struct D3D11_DEPTH_STENCIL_DESC
1156 BOOL DepthEnable;
1157 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1158 D3D11_COMPARISON_FUNC DepthFunc;
1159 BOOL StencilEnable;
1160 UINT8 StencilReadMask;
1161 UINT8 StencilWriteMask;
1162 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1163 D3D11_DEPTH_STENCILOP_DESC BackFace;
1164 } D3D11_DEPTH_STENCIL_DESC;
1166 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1168 DXGI_FORMAT Format;
1169 D3D11_RTV_DIMENSION ViewDimension;
1171 union
1173 D3D11_BUFFER_RTV Buffer;
1174 D3D11_TEX1D_RTV Texture1D;
1175 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1176 D3D11_TEX2D_RTV Texture2D;
1177 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1178 D3D11_TEX2DMS_RTV Texture2DMS;
1179 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1180 D3D11_TEX3D_RTV Texture3D;
1182 } D3D11_RENDER_TARGET_VIEW_DESC;
1184 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1185 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1186 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1187 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1188 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1189 cpp_quote(" Format = format;")
1190 cpp_quote(" ViewDimension = dim;")
1191 cpp_quote(" switch(dim) {")
1192 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1193 cpp_quote(" Buffer.FirstElement = mip_slice;")
1194 cpp_quote(" Buffer.NumElements = first_slice;")
1195 cpp_quote(" break;")
1196 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1197 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1198 cpp_quote(" break;")
1199 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1200 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1201 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1202 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1203 cpp_quote(" break;")
1204 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1205 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1206 cpp_quote(" break;")
1207 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1208 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1209 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1210 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1211 cpp_quote(" break;")
1212 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1213 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1214 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1215 cpp_quote(" break;")
1216 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1217 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1218 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1219 cpp_quote(" Texture3D.WSize = array_size;")
1220 cpp_quote(" break;")
1221 cpp_quote(" default:")
1222 cpp_quote(" break;")
1223 cpp_quote(" }")
1224 cpp_quote(" }")
1225 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1226 cpp_quote(" UINT elem_cnt) {")
1227 cpp_quote(" Format = format;")
1228 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1229 cpp_quote(" Buffer.FirstElement = first_elem;")
1230 cpp_quote(" Buffer.NumElements = elem_cnt;")
1231 cpp_quote(" }")
1232 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1233 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1234 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1235 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1236 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1237 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1238 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1239 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1240 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1241 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1242 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1243 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1244 cpp_quote(" return *this;")
1245 cpp_quote(" }")
1246 cpp_quote("};")
1247 cpp_quote("#endif")
1250 typedef struct D3D11_SAMPLER_DESC
1252 D3D11_FILTER Filter;
1253 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1254 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1255 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1256 FLOAT MipLODBias;
1257 UINT MaxAnisotropy;
1258 D3D11_COMPARISON_FUNC ComparisonFunc;
1259 FLOAT BorderColor[4];
1260 FLOAT MinLOD;
1261 FLOAT MaxLOD;
1262 } D3D11_SAMPLER_DESC;
1264 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1265 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1266 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1267 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1268 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1269 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1270 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1271 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1272 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1273 cpp_quote(" MipLODBias = 0;")
1274 cpp_quote(" MaxAnisotropy = 1;")
1275 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1276 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1277 cpp_quote(" MinLOD = -3.402823466e+38f;")
1278 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1279 cpp_quote(" }")
1280 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1281 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1282 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1283 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1284 cpp_quote(" Filter = filter;")
1285 cpp_quote(" AddressU = addressU;")
1286 cpp_quote(" AddressV = addressV;")
1287 cpp_quote(" AddressW = addressW;")
1288 cpp_quote(" MipLODBias = mipLODBias;")
1289 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1290 cpp_quote(" ComparisonFunc = comparisonFunc;")
1291 cpp_quote(" if(borderColor) {")
1292 cpp_quote(" BorderColor[0] = borderColor[0];")
1293 cpp_quote(" BorderColor[1] = borderColor[1];")
1294 cpp_quote(" BorderColor[2] = borderColor[2];")
1295 cpp_quote(" BorderColor[3] = borderColor[3];")
1296 cpp_quote(" }else {")
1297 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1298 cpp_quote(" }")
1299 cpp_quote(" MinLOD = minLOD;")
1300 cpp_quote(" MaxLOD = maxLOD;")
1301 cpp_quote(" }")
1302 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1303 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1304 cpp_quote("};")
1305 cpp_quote("#endif")
1307 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1309 DXGI_FORMAT Format;
1310 D3D11_SRV_DIMENSION ViewDimension;
1312 union
1314 D3D11_BUFFER_SRV Buffer;
1315 D3D11_TEX1D_SRV Texture1D;
1316 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1317 D3D11_TEX2D_SRV Texture2D;
1318 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1319 D3D11_TEX2DMS_SRV Texture2DMS;
1320 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1321 D3D11_TEX3D_SRV Texture3D;
1322 D3D11_TEXCUBE_SRV TextureCube;
1323 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1324 D3D11_BUFFEREX_SRV BufferEx;
1326 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1328 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1329 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1330 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1331 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1332 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1333 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1334 cpp_quote(" Format = format;")
1335 cpp_quote(" ViewDimension = dim;")
1336 cpp_quote(" switch(ViewDimension) {")
1337 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1338 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1339 cpp_quote(" Buffer.NumElements = mip_levels;")
1340 cpp_quote(" break;")
1341 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1342 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1343 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1344 cpp_quote(" break;")
1345 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1346 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1347 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1348 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1349 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1350 cpp_quote(" break;")
1351 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1352 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1353 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1354 cpp_quote(" break;")
1355 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1356 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1357 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1358 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1359 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1360 cpp_quote(" break;")
1361 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1362 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1363 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1364 cpp_quote(" break;")
1365 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1366 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1367 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1368 cpp_quote(" break;")
1369 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1370 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1371 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1372 cpp_quote(" break;")
1373 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1374 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1375 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1376 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1377 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1378 cpp_quote(" break;")
1379 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1380 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1381 cpp_quote(" BufferEx.NumElements = mip_levels;")
1382 cpp_quote(" BufferEx.Flags = flags;")
1383 cpp_quote(" break;")
1384 cpp_quote(" default:")
1385 cpp_quote(" break;")
1386 cpp_quote(" }")
1387 cpp_quote(" }")
1388 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1389 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1390 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1391 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1392 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1393 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1394 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1395 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1396 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1397 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1398 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1399 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1400 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1401 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1402 cpp_quote(" return *this;")
1403 cpp_quote(" }")
1404 cpp_quote("};")
1405 cpp_quote("#endif")
1407 typedef struct D3D11_TEXTURE1D_DESC
1409 UINT Width;
1410 UINT MipLevels;
1411 UINT ArraySize;
1412 DXGI_FORMAT Format;
1413 D3D11_USAGE Usage;
1414 UINT BindFlags;
1415 UINT CPUAccessFlags;
1416 UINT MiscFlags;
1417 } D3D11_TEXTURE1D_DESC;
1419 typedef struct D3D11_TEXTURE2D_DESC
1421 UINT Width;
1422 UINT Height;
1423 UINT MipLevels;
1424 UINT ArraySize;
1425 DXGI_FORMAT Format;
1426 DXGI_SAMPLE_DESC SampleDesc;
1427 D3D11_USAGE Usage;
1428 UINT BindFlags;
1429 UINT CPUAccessFlags;
1430 UINT MiscFlags;
1431 } D3D11_TEXTURE2D_DESC;
1433 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1434 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1435 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1436 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1437 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1438 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1439 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1440 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1441 cpp_quote(" Width = width;")
1442 cpp_quote(" Height = height;")
1443 cpp_quote(" MipLevels = mipLevels;")
1444 cpp_quote(" ArraySize = arraySize;")
1445 cpp_quote(" Format = format;")
1446 cpp_quote(" SampleDesc.Count = sampleCount;")
1447 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1448 cpp_quote(" Usage = usage;")
1449 cpp_quote(" BindFlags = bindFlags;")
1450 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1451 cpp_quote(" MiscFlags = miscFlags;")
1452 cpp_quote(" }" )
1453 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1454 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1455 cpp_quote("};")
1456 cpp_quote("#endif")
1458 typedef struct D3D11_TEXTURE3D_DESC
1460 UINT Width;
1461 UINT Height;
1462 UINT Depth;
1463 UINT MipLevels;
1464 DXGI_FORMAT Format;
1465 D3D11_USAGE Usage;
1466 UINT BindFlags;
1467 UINT CPUAccessFlags;
1468 UINT MiscFlags;
1469 } D3D11_TEXTURE3D_DESC;
1471 typedef struct D3D11_VIDEO_DECODER_DESC
1473 GUID Guid;
1474 UINT SampleWidth;
1475 UINT SampleHeight;
1476 DXGI_FORMAT OutputFormat;
1477 } D3D11_VIDEO_DECODER_DESC;
1479 typedef struct D3D11_VIDEO_DECODER_CONFIG
1481 GUID guidConfigBitstreamEncryption;
1482 GUID guidConfigMBcontrolEncryption;
1483 GUID guidConfigResidDiffEncryption;
1484 UINT ConfigBitstreamRaw;
1485 UINT ConfigMBcontrolRasterOrder;
1486 UINT ConfigResidDiffHost;
1487 UINT ConfigSpatialResid8;
1488 UINT ConfigResid8Subtraction;
1489 UINT ConfigSpatialHost8or9Clipping;
1490 UINT ConfigSpatialResidInterleaved;
1491 UINT ConfigIntraResidUnsigned;
1492 UINT ConfigResidDiffAccelerator;
1493 UINT ConfigHostInverseScan;
1494 UINT ConfigSpecificIDCT;
1495 UINT Config4GroupedCoefs;
1496 USHORT ConfigMinRenderTargetBuffCount;
1497 USHORT ConfigDecoderSpecific;
1498 } D3D11_VIDEO_DECODER_CONFIG;
1500 typedef enum D3D11_VIDEO_FRAME_FORMAT
1502 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1503 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1504 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1505 } D3D11_VIDEO_FRAME_FORMAT;
1507 typedef enum D3D11_VIDEO_USAGE
1509 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1510 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1511 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1512 } D3D11_VIDEO_USAGE;
1514 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1516 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1517 DXGI_RATIONAL InputFrameRate;
1518 UINT InputWidth;
1519 UINT InputHeight;
1520 DXGI_RATIONAL OutputFrameRate;
1521 UINT OutputWidth;
1522 UINT OutputHeight;
1523 D3D11_VIDEO_USAGE Usage;
1524 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1526 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1528 UINT DeviceCaps;
1529 UINT FeatureCaps;
1530 UINT FilterCaps;
1531 UINT InputFormatCaps;
1532 UINT AutoStreamCaps;
1533 UINT StereoCaps;
1534 UINT RateConversionCapsCount;
1535 UINT MaxInputStreams;
1536 UINT MaxStreamStates;
1537 } D3D11_VIDEO_PROCESSOR_CAPS;
1539 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1541 UINT PastFrames;
1542 UINT FutureFrames;
1543 UINT ProcessorCaps;
1544 UINT ITelecineCaps;
1545 UINT CustomRateCount;
1546 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1548 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1550 DXGI_RATIONAL CustomRate;
1551 UINT OutputFrames;
1552 BOOL InputInterlaced;
1553 UINT InputFramesOrFields;
1554 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1556 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1558 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1559 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1560 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1561 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1562 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1563 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1564 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1565 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1566 } D3D11_VIDEO_PROCESSOR_FILTER;
1568 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1570 int Minimum;
1571 int Maximum;
1572 int Default;
1573 float Multiplier;
1574 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1576 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1578 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1579 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1580 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1581 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1583 typedef enum D3D11_VDOV_DIMENSION
1585 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1586 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1587 } D3D11_VDOV_DIMENSION;
1589 typedef struct D3D11_TEX2D_VDOV
1591 UINT ArraySlice;
1592 } D3D11_TEX2D_VDOV;
1594 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1596 GUID DecodeProfile;
1597 D3D11_VDOV_DIMENSION ViewDimension;
1598 union {
1599 D3D11_TEX2D_VDOV Texture2D;
1601 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1603 typedef enum D3D11_VPIV_DIMENSION
1605 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1606 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1607 } D3D11_VPIV_DIMENSION;
1609 typedef struct D3D11_TEX2D_VPIV
1611 UINT MipSlice;
1612 UINT ArraySlice;
1613 } D3D11_TEX2D_VPIV;
1615 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1617 UINT FourCC;
1618 D3D11_VPIV_DIMENSION ViewDimension;
1619 union {
1620 D3D11_TEX2D_VPIV Texture2D;
1622 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1624 typedef enum D3D11_VPOV_DIMENSION
1626 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1627 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1628 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1629 } D3D11_VPOV_DIMENSION;
1631 typedef struct D3D11_TEX2D_VPOV
1633 UINT MipSlice;
1634 } D3D11_TEX2D_VPOV;
1636 typedef struct D3D11_TEX2D_ARRAY_VPOV
1638 UINT MipSlice;
1639 UINT FirstArraySlice;
1640 UINT ArraySize;
1641 } D3D11_TEX2D_ARRAY_VPOV;
1643 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1645 D3D11_VPOV_DIMENSION ViewDimension;
1646 union {
1647 D3D11_TEX2D_VPOV Texture2D;
1648 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1650 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1652 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1654 UINT Caps;
1655 UINT KeyExchangeTypeCount;
1656 UINT BlockAlignmentSize;
1657 ULONGLONG ProtectedMemorySize;
1658 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1660 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1662 UINT NumEncryptedBytesAtBeginning;
1663 UINT NumBytesInSkipPattern;
1664 UINT NumBytesInEncryptPattern;
1665 } D3D11_ENCRYPTED_BLOCK_INFO;
1667 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
1669 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
1670 UINT BufferIndex;
1671 UINT DataOffset;
1672 UINT DataSize;
1673 UINT FirstMBaddress;
1674 UINT NumMBsInBuffer;
1675 UINT Width;
1676 UINT Height;
1677 UINT Stride;
1678 UINT ReservedBits;
1679 void *pIV;
1680 UINT IVSize;
1681 BOOL PartialEncryption;
1682 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
1683 } D3D11_VIDEO_DECODER_BUFFER_DESC;
1685 typedef struct D3D11_VIDEO_DECODER_EXTENSION
1687 UINT Function;
1688 void *pPrivateInputData;
1689 UINT PrivateInputDataSize;
1690 void *pPrivateOutputData;
1691 UINT PrivateOutputDataSize;
1692 UINT ResourceCount;
1693 ID3D11Resource **ppResourceList;
1694 } D3D11_VIDEO_DECODER_EXTENSION;
1696 typedef struct D3D11_VIDEO_COLOR_YCbCrA
1698 float Y;
1699 float Cb;
1700 float Cr;
1701 float A;
1702 } D3D11_VIDEO_COLOR_YCbCrA;
1704 typedef struct D3D11_VIDEO_COLOR_RGBA
1706 float R;
1707 float G;
1708 float B;
1709 float A;
1710 } D3D11_VIDEO_COLOR_RGBA;
1712 typedef struct D3D11_VIDEO_COLOR
1714 union
1716 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
1717 D3D11_VIDEO_COLOR_RGBA RGBA;
1719 } D3D11_VIDEO_COLOR;
1721 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
1723 UINT Usage : 1;
1724 UINT RGB_Range : 1;
1725 UINT YCbCr_Matrix : 1;
1726 UINT YCbCr_xvYCC : 1;
1727 UINT Nominal_Range : 2;
1728 UINT Reserved : 26;
1729 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
1731 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
1733 BOOL Enable;
1734 UINT OutputIndex;
1735 UINT InputFrameOrField;
1736 UINT PastFrames;
1737 UINT FutureFrames;
1738 ID3D11VideoProcessorInputView **ppPastSurfaces;
1739 ID3D11VideoProcessorInputView *pInputSurface;
1740 ID3D11VideoProcessorInputView **ppFutureSurfaces;
1741 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
1742 ID3D11VideoProcessorInputView *pInputSurfaceRight;
1743 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
1744 } D3D11_VIDEO_PROCESSOR_STREAM;
1746 typedef struct D3D11_OMAC
1748 BYTE Omac[D3D11_OMAC_SIZE];
1749 } D3D11_OMAC;
1751 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
1753 D3D11_OMAC omac;
1754 GUID ConfigureType;
1755 HANDLE hChannel;
1756 UINT SequenceNumber;
1757 HRESULT ReturnCode;
1758 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
1760 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
1762 UINT64 Frequency;
1763 BOOL Disjoint;
1764 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
1767 object,
1768 local,
1769 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
1771 interface ID3D11DeviceChild : IUnknown
1773 void GetDevice(
1774 [out] ID3D11Device **ppDevice);
1775 HRESULT GetPrivateData(
1776 [in] REFGUID guid,
1777 [in, out] UINT *pDataSize,
1778 [out] void *pData);
1779 HRESULT SetPrivateData(
1780 [in] REFGUID guid,
1781 [in] UINT DataSize,
1782 [in] const void *pData);
1783 HRESULT SetPrivateDataInterface(
1784 [in] REFGUID guid,
1785 [in] const IUnknown *pData);
1789 object,
1790 local,
1791 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
1793 interface ID3D11Asynchronous : ID3D11DeviceChild
1795 UINT GetDataSize();
1799 object,
1800 local,
1801 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
1803 interface ID3D11Query : ID3D11Asynchronous
1805 void GetDesc(
1806 [out] D3D11_QUERY_DESC *pDesc);
1810 object,
1811 local,
1812 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
1814 interface ID3D11Resource : ID3D11DeviceChild
1816 void GetType(
1817 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
1818 void SetEvictionPriority(
1819 [in] UINT EvictionPriority);
1820 UINT GetEvictionPriority();
1824 object,
1825 local,
1826 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
1828 interface ID3D11View : ID3D11DeviceChild
1830 void GetResource(
1831 [out] ID3D11Resource **ppResource);
1835 object,
1836 local,
1837 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
1839 interface ID3D11BlendState : ID3D11DeviceChild
1841 void GetDesc(
1842 [out] D3D11_BLEND_DESC *pDesc);
1846 object,
1847 local,
1848 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
1850 interface ID3D11Buffer : ID3D11Resource
1852 void GetDesc(
1853 [out] D3D11_BUFFER_DESC *pDesc);
1857 object,
1858 local,
1859 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
1861 interface ID3D11ClassInstance : ID3D11DeviceChild
1863 void GetClassLinkage(
1864 [out] ID3D11ClassLinkage **ppLinkage);
1865 void GetDesc(
1866 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
1867 void GetInstanceName(
1868 [out] LPSTR pInstanceName,
1869 [in, out] SIZE_T *pBufferLength);
1870 void GetTypeName(
1871 [out] LPSTR pTypeName,
1872 [in, out] SIZE_T *pBufferLength);
1876 object,
1877 local,
1878 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
1880 interface ID3D11ClassLinkage : ID3D11DeviceChild
1882 HRESULT GetClassInstance(
1883 [in] LPCSTR pClassInstanceName,
1884 [in] UINT InstanceIndex,
1885 [out] ID3D11ClassInstance **ppInstance);
1886 HRESULT CreateClassInstance(
1887 [in] LPCSTR pClassTypeName,
1888 [in] UINT ConstantBufferOffset,
1889 [in] UINT ConstantVectorOffset,
1890 [in] UINT TextureOffset,
1891 [in] UINT SamplerOffset,
1892 [out] ID3D11ClassInstance **ppInstance);
1896 object,
1897 local,
1898 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
1900 interface ID3D11CommandList : ID3D11DeviceChild
1902 UINT GetContextFlags();
1906 object,
1907 local,
1908 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
1910 interface ID3D11ComputeShader : ID3D11DeviceChild
1915 object,
1916 local,
1917 uuid(6e8c49fb-a371-4770-b440-29086022b741)
1919 interface ID3D11Counter : ID3D11Asynchronous
1921 void GetDesc(
1922 [out] D3D11_COUNTER_DESC *pDesc);
1926 object,
1927 local,
1928 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
1930 interface ID3D11DepthStencilState : ID3D11DeviceChild
1932 void GetDesc(
1933 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
1937 object,
1938 local,
1939 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
1941 interface ID3D11DepthStencilView : ID3D11View
1943 void GetDesc(
1944 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
1948 object,
1949 local,
1950 uuid(f582c508-0f36-490c-9977-31eece268cfa)
1952 interface ID3D11DomainShader : ID3D11DeviceChild
1957 object,
1958 local,
1959 uuid(38325b96-effb-4022-ba02-2e795b70275c)
1961 interface ID3D11GeometryShader : ID3D11DeviceChild
1966 object,
1967 local,
1968 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
1970 interface ID3D11HullShader : ID3D11DeviceChild
1975 object,
1976 local,
1977 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
1979 interface ID3D11InputLayout : ID3D11DeviceChild
1984 object,
1985 local,
1986 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
1988 interface ID3D11PixelShader : ID3D11DeviceChild
1993 object,
1994 local,
1995 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
1997 interface ID3D11Predicate : ID3D11Query
2002 object,
2003 local,
2004 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2006 interface ID3D11RasterizerState : ID3D11DeviceChild
2008 void GetDesc(
2009 [out] D3D11_RASTERIZER_DESC *pDesc);
2013 object,
2014 local,
2015 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2017 interface ID3D11RenderTargetView : ID3D11View
2019 void GetDesc(
2020 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2024 object,
2025 local,
2026 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2028 interface ID3D11SamplerState : ID3D11DeviceChild
2030 void GetDesc(
2031 [out] D3D11_SAMPLER_DESC *pDesc);
2035 object,
2036 local,
2037 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2039 interface ID3D11ShaderResourceView : ID3D11View
2041 void GetDesc(
2042 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2046 object,
2047 local,
2048 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2050 interface ID3D11Texture1D : ID3D11Resource
2052 void GetDesc(
2053 [out] D3D11_TEXTURE1D_DESC *pDesc);
2057 object,
2058 local,
2059 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2061 interface ID3D11Texture2D : ID3D11Resource
2063 void GetDesc(
2064 [out] D3D11_TEXTURE2D_DESC *pDesc);
2068 object,
2069 local,
2070 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2072 interface ID3D11Texture3D : ID3D11Resource
2074 void GetDesc(
2075 [out] D3D11_TEXTURE3D_DESC *pDesc);
2079 object,
2080 local,
2081 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2083 interface ID3D11UnorderedAccessView : ID3D11View
2085 void GetDesc(
2086 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2090 object,
2091 local,
2092 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2094 interface ID3D11VertexShader : ID3D11DeviceChild
2099 object,
2100 local,
2101 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2103 interface ID3D11DeviceContext : ID3D11DeviceChild
2105 void VSSetConstantBuffers(
2106 [in] UINT StartSlot,
2107 [in] UINT NumBuffers,
2108 [in] ID3D11Buffer *const *ppConstantBuffers);
2109 void PSSetShaderResources(
2110 [in] UINT StartSlot,
2111 [in] UINT NumViews,
2112 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2113 void PSSetShader(
2114 [in] ID3D11PixelShader *pPixelShader,
2115 [in] ID3D11ClassInstance *const *ppClassInstances,
2116 UINT NumClassInstances);
2117 void PSSetSamplers(
2118 [in] UINT StartSlot,
2119 [in] UINT NumSamplers,
2120 [in] ID3D11SamplerState *const *ppSamplers);
2121 void VSSetShader(
2122 [in] ID3D11VertexShader *pVertexShader,
2123 [in] ID3D11ClassInstance *const *ppClassInstances,
2124 UINT NumClassInstances);
2125 void DrawIndexed(
2126 [in] UINT IndexCount,
2127 [in] UINT StartIndexLocation,
2128 [in] INT BaseVertexLocation);
2129 void Draw(
2130 [in] UINT VertexCount,
2131 [in] UINT StartVertexLocation);
2132 HRESULT Map(
2133 [in] ID3D11Resource *pResource,
2134 [in] UINT Subresource,
2135 [in] D3D11_MAP MapType,
2136 [in] UINT MapFlags,
2137 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2138 void Unmap(
2139 [in] ID3D11Resource *pResource,
2140 [in] UINT Subresource);
2141 void PSSetConstantBuffers(
2142 [in] UINT StartSlot,
2143 [in] UINT NumBuffers,
2144 [in] ID3D11Buffer *const *ppConstantBuffers);
2145 void IASetInputLayout(
2146 [in] ID3D11InputLayout *pInputLayout);
2147 void IASetVertexBuffers(
2148 [in] UINT StartSlot,
2149 [in] UINT NumBuffers,
2150 [in] ID3D11Buffer *const *ppVertexBuffers,
2151 [in] const UINT *pStrides,
2152 [in] const UINT *pOffsets);
2153 void IASetIndexBuffer(
2154 [in] ID3D11Buffer *pIndexBuffer,
2155 [in] DXGI_FORMAT Format,
2156 [in] UINT Offset);
2157 void DrawIndexedInstanced(
2158 [in] UINT IndexCountPerInstance,
2159 [in] UINT InstanceCount,
2160 [in] UINT StartIndexLocation,
2161 [in] INT BaseVertexLocation,
2162 [in] UINT StartInstanceLocation);
2163 void DrawInstanced(
2164 [in] UINT VertexCountPerInstance,
2165 [in] UINT InstanceCount,
2166 [in] UINT StartVertexLocation,
2167 [in] UINT StartInstanceLocation);
2168 void GSSetConstantBuffers(
2169 [in] UINT StartSlot,
2170 [in] UINT NumBuffers,
2171 [in] ID3D11Buffer *const *ppConstantBuffers);
2172 void GSSetShader(
2173 [in] ID3D11GeometryShader *pShader,
2174 [in] ID3D11ClassInstance *const *ppClassInstances,
2175 UINT NumClassInstances);
2176 void IASetPrimitiveTopology(
2177 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2178 void VSSetShaderResources(
2179 [in] UINT StartSlot,
2180 [in] UINT NumViews,
2181 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2182 void VSSetSamplers(
2183 [in] UINT StartSlot,
2184 [in] UINT NumSamplers,
2185 [in] ID3D11SamplerState *const *ppSamplers);
2186 void Begin(
2187 [in] ID3D11Asynchronous *pAsync);
2188 void End(
2189 [in] ID3D11Asynchronous *pAsync);
2190 HRESULT GetData(
2191 [in] ID3D11Asynchronous *pAsync,
2192 [in] void *pData,
2193 [in] UINT DataSize,
2194 [in] UINT GetDataFlags);
2195 void SetPredication(
2196 [in] ID3D11Predicate *pPredicate,
2197 [in] BOOL PredicateValue);
2198 void GSSetShaderResources(
2199 [in] UINT StartSlot,
2200 [in] UINT NumViews,
2201 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2202 void GSSetSamplers(
2203 [in] UINT StartSlot,
2204 [in] UINT NumSamplers,
2205 [in] ID3D11SamplerState *const *ppSamplers);
2206 void OMSetRenderTargets(
2207 [in] UINT NumViews,
2208 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2209 [in] ID3D11DepthStencilView *pDepthStencilView);
2210 void OMSetRenderTargetsAndUnorderedAccessViews(
2211 [in] UINT NumRTVs,
2212 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2213 [in] ID3D11DepthStencilView *pDepthStencilView,
2214 [in] UINT UAVStartSlot,
2215 [in] UINT NumUAVs,
2216 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2217 [in] const UINT *pUAVInitialCounts);
2218 void OMSetBlendState(
2219 [in] ID3D11BlendState *pBlendState,
2220 [in] const FLOAT BlendFactor[4],
2221 [in] UINT SampleMask);
2222 void OMSetDepthStencilState(
2223 [in] ID3D11DepthStencilState *pDepthStencilState,
2224 [in] UINT StencilRef);
2225 void SOSetTargets(
2226 [in] UINT NumBuffers,
2227 [in] ID3D11Buffer *const *ppSOTargets,
2228 [in] const UINT *pOffsets);
2229 void DrawAuto();
2230 void DrawIndexedInstancedIndirect(
2231 [in] ID3D11Buffer *pBufferForArgs,
2232 [in] UINT AlignedByteOffsetForArgs);
2233 void DrawInstancedIndirect(
2234 [in] ID3D11Buffer *pBufferForArgs,
2235 [in] UINT AlignedByteOffsetForArgs);
2236 void Dispatch(
2237 [in] UINT ThreadGroupCountX,
2238 [in] UINT ThreadGroupCountY,
2239 [in] UINT ThreadGroupCountZ);
2240 void DispatchIndirect(
2241 [in] ID3D11Buffer *pBufferForArgs,
2242 [in] UINT AlignedByteOffsetForArgs);
2243 void RSSetState(
2244 [in] ID3D11RasterizerState *pRasterizerState);
2245 void RSSetViewports(
2246 [in] UINT NumViewports,
2247 [in] const D3D11_VIEWPORT *pViewports);
2248 void RSSetScissorRects(
2249 [in] UINT NumRects,
2250 [in] const D3D11_RECT *pRects);
2251 void CopySubresourceRegion(
2252 [in] ID3D11Resource *pDstResource,
2253 [in] UINT DstSubresource,
2254 [in] UINT DstX,
2255 [in] UINT DstY,
2256 [in] UINT DstZ,
2257 [in] ID3D11Resource *pSrcResource,
2258 [in] UINT SrcSubresource,
2259 [in] const D3D11_BOX *pSrcBox);
2260 void CopyResource(
2261 [in] ID3D11Resource *pDstResource,
2262 [in] ID3D11Resource *pSrcResource);
2263 void UpdateSubresource(
2264 [in] ID3D11Resource *pDstResource,
2265 [in] UINT DstSubresource,
2266 [in] const D3D11_BOX *pDstBox,
2267 [in] const void *pSrcData,
2268 [in] UINT SrcRowPitch,
2269 [in] UINT SrcDepthPitch);
2270 void CopyStructureCount(
2271 [in] ID3D11Buffer *pDstBuffer,
2272 [in] UINT DstAlignedByteOffset,
2273 [in] ID3D11UnorderedAccessView *pSrcView);
2274 void ClearRenderTargetView(
2275 [in] ID3D11RenderTargetView *pRenderTargetView,
2276 [in] const FLOAT ColorRGBA[4]);
2277 void ClearUnorderedAccessViewUint(
2278 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2279 [in] const UINT Values[4]);
2280 void ClearUnorderedAccessViewFloat(
2281 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2282 [in] const FLOAT Values[4]);
2283 void ClearDepthStencilView(
2284 [in] ID3D11DepthStencilView *pDepthStencilView,
2285 [in] UINT ClearFlags,
2286 [in] FLOAT Depth,
2287 [in] UINT8 Stencil);
2288 void GenerateMips(
2289 [in] ID3D11ShaderResourceView *pShaderResourceView);
2290 void SetResourceMinLOD(
2291 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2292 FLOAT GetResourceMinLOD(
2293 [in] ID3D11Resource *pResource);
2294 void ResolveSubresource(
2295 [in] ID3D11Resource *pDstResource,
2296 [in] UINT DstSubresource,
2297 [in] ID3D11Resource *pSrcResource,
2298 [in] UINT SrcSubresource,
2299 [in] DXGI_FORMAT Format);
2300 void ExecuteCommandList(
2301 [in] ID3D11CommandList *pCommandList,
2302 BOOL RestoreContextState);
2303 void HSSetShaderResources(
2304 [in] UINT StartSlot,
2305 [in] UINT NumViews,
2306 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2307 void HSSetShader(
2308 [in] ID3D11HullShader *pHullShader,
2309 [in] ID3D11ClassInstance *const *ppClassInstances,
2310 UINT NumClassInstances);
2311 void HSSetSamplers(
2312 [in] UINT StartSlot,
2313 [in] UINT NumSamplers,
2314 [in] ID3D11SamplerState *const *ppSamplers);
2315 void HSSetConstantBuffers(
2316 [in] UINT StartSlot,
2317 [in] UINT NumBuffers,
2318 [in] ID3D11Buffer *const *ppConstantBuffers);
2319 void DSSetShaderResources(
2320 [in] UINT StartSlot,
2321 [in] UINT NumViews,
2322 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2323 void DSSetShader(
2324 [in] ID3D11DomainShader *pDomainShader,
2325 [in] ID3D11ClassInstance *const *ppClassInstances,
2326 UINT NumClassInstances);
2327 void DSSetSamplers(
2328 [in] UINT StartSlot,
2329 [in] UINT NumSamplers,
2330 [in] ID3D11SamplerState *const *ppSamplers);
2331 void DSSetConstantBuffers(
2332 [in] UINT StartSlot,
2333 [in] UINT NumBuffers,
2334 [in] ID3D11Buffer *const *ppConstantBuffers);
2335 void CSSetShaderResources(
2336 [in] UINT StartSlot,
2337 [in] UINT NumViews,
2338 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2339 void CSSetUnorderedAccessViews(
2340 [in] UINT StartSlot,
2341 [in] UINT NumUAVs,
2342 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2343 [in] const UINT *pUAVInitialCounts);
2344 void CSSetShader(
2345 [in] ID3D11ComputeShader *pComputeShader,
2346 [in] ID3D11ClassInstance *const *ppClassInstances,
2347 UINT NumClassInstances);
2348 void CSSetSamplers(
2349 [in] UINT StartSlot,
2350 [in] UINT NumSamplers,
2351 [in] ID3D11SamplerState *const *ppSamplers);
2352 void CSSetConstantBuffers(
2353 [in] UINT StartSlot,
2354 [in] UINT NumBuffers,
2355 [in] ID3D11Buffer *const *ppConstantBuffers);
2356 void VSGetConstantBuffers(
2357 [in] UINT StartSlot,
2358 [in] UINT NumBuffers,
2359 [out] ID3D11Buffer **ppConstantBuffers);
2360 void PSGetShaderResources(
2361 [in] UINT StartSlot,
2362 [in] UINT NumViews,
2363 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2364 void PSGetShader(
2365 [out] ID3D11PixelShader **ppPixelShader,
2366 [out] ID3D11ClassInstance **ppClassInstances,
2367 [in, out] UINT *pNumClassInstances);
2368 void PSGetSamplers(
2369 [in] UINT StartSlot,
2370 [in] UINT NumSamplers,
2371 [out] ID3D11SamplerState **ppSamplers);
2372 void VSGetShader(
2373 [out] ID3D11VertexShader **ppVertexShader,
2374 [out] ID3D11ClassInstance **ppClassInstances,
2375 [in, out] UINT *pNumClassInstances);
2376 void PSGetConstantBuffers(
2377 [in] UINT StartSlot,
2378 [in] UINT NumBuffers,
2379 [out] ID3D11Buffer **ppConstantBuffers);
2380 void IAGetInputLayout(
2381 [out] ID3D11InputLayout **ppInputLayout);
2382 void IAGetVertexBuffers(
2383 [in] UINT StartSlot,
2384 [in] UINT NumBuffers,
2385 [out] ID3D11Buffer **ppVertexBuffers,
2386 [out] UINT *pStrides,
2387 [out] UINT *pOffsets);
2388 void IAGetIndexBuffer(
2389 [out] ID3D11Buffer **pIndexBuffer,
2390 [out] DXGI_FORMAT* Format,
2391 [out] UINT* Offset);
2392 void GSGetConstantBuffers(
2393 [in] UINT StartSlot,
2394 [in] UINT NumBuffers,
2395 [out] ID3D11Buffer **ppConstantBuffers);
2396 void GSGetShader(
2397 [out] ID3D11GeometryShader **ppGeometryShader,
2398 [out] ID3D11ClassInstance **ppClassInstances,
2399 [in, out] UINT *pNumClassInstances);
2400 void IAGetPrimitiveTopology(
2401 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2402 void VSGetShaderResources(
2403 [in] UINT StartSlot,
2404 [in] UINT NumViews,
2405 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2406 void VSGetSamplers(
2407 [in] UINT StartSlot,
2408 [in] UINT NumSamplers,
2409 [out] ID3D11SamplerState **ppSamplers);
2410 void GetPredication(
2411 [out] ID3D11Predicate **ppPredicate,
2412 [out] BOOL *pPredicateValue);
2413 void GSGetShaderResources(
2414 [in] UINT StartSlot,
2415 [in] UINT NumViews,
2416 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2417 void GSGetSamplers(
2418 [in] UINT StartSlot,
2419 [in] UINT NumSamplers,
2420 [out] ID3D11SamplerState **ppSamplers);
2421 void OMGetRenderTargets(
2422 [in] UINT NumViews,
2423 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2424 [out] ID3D11DepthStencilView **ppDepthStencilView);
2425 void OMGetRenderTargetsAndUnorderedAccessViews(
2426 [in] UINT NumRTVs,
2427 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2428 [out] ID3D11DepthStencilView **ppDepthStencilView,
2429 [in] UINT UAVStartSlot,
2430 [in] UINT NumUAVs,
2431 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2432 void OMGetBlendState(
2433 [out] ID3D11BlendState **ppBlendState,
2434 [out] FLOAT BlendFactor[4],
2435 [out] UINT *pSampleMask);
2436 void OMGetDepthStencilState(
2437 [out] ID3D11DepthStencilState **ppDepthStencilState,
2438 [out] UINT *pStencilRef);
2439 void SOGetTargets(
2440 [in] UINT NumBuffers,
2441 [out] ID3D11Buffer **ppSOTargets);
2442 void RSGetState(
2443 [out] ID3D11RasterizerState **ppRasterizerState);
2444 void RSGetViewports(
2445 [in, out] UINT *pNumViewports,
2446 [out] D3D11_VIEWPORT *pViewports);
2447 void RSGetScissorRects(
2448 [in, out] UINT *pNumRects,
2449 [out] D3D11_RECT *pRects);
2450 void HSGetShaderResources(
2451 [in] UINT StartSlot,
2452 [in] UINT NumViews,
2453 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2454 void HSGetShader(
2455 [out] ID3D11HullShader **ppHullShader,
2456 [out] ID3D11ClassInstance **ppClassInstances,
2457 [in, out] UINT *pNumClassInstances);
2458 void HSGetSamplers(
2459 [in] UINT StartSlot,
2460 [in] UINT NumSamplers,
2461 [out] ID3D11SamplerState **ppSamplers);
2462 void HSGetConstantBuffers(
2463 [in] UINT StartSlot,
2464 [in] UINT NumBuffers,
2465 [out] ID3D11Buffer **ppConstantBuffers);
2466 void DSGetShaderResources(
2467 [in] UINT StartSlot,
2468 [in] UINT NumViews,
2469 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2470 void DSGetShader(
2471 [out] ID3D11DomainShader **ppDomainShader,
2472 [out] ID3D11ClassInstance **ppClassInstances,
2473 [in, out] UINT *pNumClassInstances);
2474 void DSGetSamplers(
2475 [in] UINT StartSlot,
2476 [in] UINT NumSamplers,
2477 [out] ID3D11SamplerState **ppSamplers);
2478 void DSGetConstantBuffers(
2479 [in] UINT StartSlot,
2480 [in] UINT NumBuffers,
2481 [out] ID3D11Buffer **ppConstantBuffers);
2482 void CSGetShaderResources(
2483 [in] UINT StartSlot,
2484 [in] UINT NumViews,
2485 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2486 void CSGetUnorderedAccessViews(
2487 [in] UINT StartSlot,
2488 [in] UINT NumUAVs,
2489 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2490 void CSGetShader(
2491 [out] ID3D11ComputeShader **ppComputeShader,
2492 [out] ID3D11ClassInstance **ppClassInstances,
2493 [in, out] UINT *pNumClassInstances);
2494 void CSGetSamplers(
2495 [in] UINT StartSlot,
2496 [in] UINT NumSamplers,
2497 [out] ID3D11SamplerState **ppSamplers);
2498 void CSGetConstantBuffers(
2499 [in] UINT StartSlot,
2500 [in] UINT NumBuffers,
2501 [out] ID3D11Buffer **ppConstantBuffers);
2502 void ClearState();
2503 void Flush();
2504 D3D11_DEVICE_CONTEXT_TYPE GetType();
2505 UINT GetContextFlags();
2506 HRESULT FinishCommandList(
2507 BOOL RestoreDeferredContextState,
2508 [out] ID3D11CommandList **ppCommandList);
2512 object,
2513 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
2514 local,
2515 pointer_default(unique)
2517 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
2519 HRESULT GetCertificateSize(
2520 UINT *pCertificateSize);
2521 HRESULT GetCertificate(
2522 UINT CertificateSize,
2523 BYTE *pCertificate);
2524 void GetChannelHandle(
2525 HANDLE *pChannelHandle);
2529 object,
2530 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
2531 local,
2532 pointer_default(unique)
2534 interface ID3D11CryptoSession : ID3D11DeviceChild
2536 void GetCryptoType(
2537 GUID *pCryptoType);
2538 void GetDecoderProfile(
2539 GUID *pDecoderProfile);
2540 HRESULT GetCertificateSize(
2541 UINT *pCertificateSize);
2542 HRESULT GetCertificate(
2543 UINT CertificateSize,
2544 BYTE *pCertificate);
2545 void GetCryptoSessionHandle(
2546 HANDLE *pCryptoSessionHandle);
2550 object,
2551 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
2552 local,
2553 pointer_default(unique)
2555 interface ID3D11VideoDecoder : ID3D11DeviceChild
2557 HRESULT GetCreationParameters(
2558 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2559 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2560 HRESULT GetDriverHandle(
2561 HANDLE *pDriverHandle);
2565 object,
2566 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
2567 local,
2568 pointer_default(unique)
2570 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
2572 HRESULT GetVideoProcessorContentDesc(
2573 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
2574 HRESULT CheckVideoProcessorFormat(
2575 DXGI_FORMAT Format,
2576 UINT *pFlags);
2577 HRESULT GetVideoProcessorCaps(
2578 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
2579 HRESULT GetVideoProcessorRateConversionCaps(
2580 UINT TypeIndex,
2581 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2582 HRESULT GetVideoProcessorCustomRate(
2583 UINT TypeIndex,
2584 UINT CustomRateIndex,
2585 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
2586 HRESULT GetVideoProcessorFilterRange(
2587 D3D11_VIDEO_PROCESSOR_FILTER Filter,
2588 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
2592 object,
2593 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
2594 local,
2595 pointer_default(unique)
2597 interface ID3D11VideoProcessor : ID3D11DeviceChild
2599 void GetContentDesc(
2600 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
2601 void GetRateConversionCaps(
2602 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2606 object,
2607 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
2608 local,
2609 pointer_default(unique)
2611 interface ID3D11VideoDecoderOutputView : ID3D11View
2613 void GetDesc(
2614 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
2618 object,
2619 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
2620 local,
2621 pointer_default(unique)
2623 interface ID3D11VideoProcessorInputView : ID3D11View
2625 void GetDesc(
2626 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
2630 object,
2631 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
2632 local,
2633 pointer_default(unique)
2635 interface ID3D11VideoProcessorOutputView : ID3D11View
2637 void GetDesc(
2638 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
2642 object,
2643 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
2644 local,
2645 pointer_default(unique)
2647 interface ID3D11VideoDevice : IUnknown
2649 HRESULT CreateVideoDecoder(
2650 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2651 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
2652 ID3D11VideoDecoder **ppDecoder);
2653 HRESULT CreateVideoProcessor(
2654 ID3D11VideoProcessorEnumerator *pEnum,
2655 UINT RateConversionIndex,
2656 ID3D11VideoProcessor **ppVideoProcessor);
2657 HRESULT CreateAuthenticatedChannel(
2658 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
2659 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
2660 HRESULT CreateCryptoSession(
2661 const GUID *pCryptoType,
2662 const GUID *pDecoderProfile,
2663 const GUID *pKeyExchangeType,
2664 ID3D11CryptoSession **ppCryptoSession);
2665 HRESULT CreateVideoDecoderOutputView(
2666 ID3D11Resource *pResource,
2667 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
2668 ID3D11VideoDecoderOutputView **ppVDOVView);
2669 HRESULT CreateVideoProcessorInputView(
2670 ID3D11Resource *pResource,
2671 ID3D11VideoProcessorEnumerator *pEnum,
2672 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
2673 ID3D11VideoProcessorInputView **ppVPIView);
2674 HRESULT CreateVideoProcessorOutputView(
2675 ID3D11Resource *pResource,
2676 ID3D11VideoProcessorEnumerator *pEnum,
2677 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
2678 ID3D11VideoProcessorOutputView **ppVPOView);
2679 HRESULT CreateVideoProcessorEnumerator(
2680 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
2681 ID3D11VideoProcessorEnumerator **ppEnum);
2682 UINT GetVideoDecoderProfileCount();
2683 HRESULT GetVideoDecoderProfile(
2684 UINT Index,
2685 GUID *pDecoderProfile);
2686 HRESULT CheckVideoDecoderFormat(
2687 const GUID *pDecoderProfile,
2688 DXGI_FORMAT Format,
2689 BOOL *pSupported);
2690 HRESULT GetVideoDecoderConfigCount(
2691 const D3D11_VIDEO_DECODER_DESC *pDesc,
2692 UINT *pCount);
2693 HRESULT GetVideoDecoderConfig(
2694 const D3D11_VIDEO_DECODER_DESC *pDesc,
2695 UINT Index,
2696 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2697 HRESULT GetContentProtectionCaps(
2698 const GUID *pCryptoType,
2699 const GUID *pDecoderProfile,
2700 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
2701 HRESULT CheckCryptoKeyExchange(
2702 const GUID *pCryptoType,
2703 const GUID *pDecoderProfile,
2704 UINT Index,
2705 GUID *pKeyExchangeType);
2706 HRESULT SetPrivateData(
2707 REFGUID guid,
2708 UINT DataSize,
2709 const void *pData);
2710 HRESULT SetPrivateDataInterface(
2711 REFGUID guid,
2712 const IUnknown *pData);
2716 object,
2717 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
2718 local,
2719 pointer_default(unique)
2721 interface ID3D11VideoContext : ID3D11DeviceChild
2723 HRESULT GetDecoderBuffer(
2724 [in] ID3D11VideoDecoder *decoder,
2725 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
2726 [out] UINT *buffer_size,
2727 [out] void **buffer
2729 HRESULT ReleaseDecoderBuffer(
2730 [in] ID3D11VideoDecoder *decoder,
2731 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
2733 HRESULT DecoderBeginFrame(
2734 [in] ID3D11VideoDecoder *decoder,
2735 [in] ID3D11VideoDecoderOutputView *view,
2736 [in] UINT key_size,
2737 [in] const void *key
2739 HRESULT DecoderEndFrame(
2740 [in] ID3D11VideoDecoder *decoder
2742 HRESULT SubmitDecoderBuffers(
2743 [in] ID3D11VideoDecoder *decoder,
2744 [in] UINT buffers_count,
2745 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
2747 HRESULT DecoderExtension(
2748 [in] ID3D11VideoDecoder *decoder,
2749 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
2751 void VideoProcessorSetOutputTargetRect(
2752 [in] ID3D11VideoProcessor *processor,
2753 [in] BOOL enable,
2754 [in] const RECT *rect
2756 void VideoProcessorSetOutputBackgroundColor(
2757 [in] ID3D11VideoProcessor *processor,
2758 [in] BOOL y_cb_cr,
2759 [in] const D3D11_VIDEO_COLOR *color
2761 void VideoProcessorSetOutputColorSpace(
2762 [in] ID3D11VideoProcessor *processor,
2763 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2765 void VideoProcessorSetOutputAlphaFillMode(
2766 [in] ID3D11VideoProcessor *processor,
2767 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
2768 [in] UINT stream_idx
2770 void VideoProcessorSetOutputConstriction(
2771 [in] ID3D11VideoProcessor *processor,
2772 [in] BOOL enable,
2773 [in] SIZE size
2775 void VideoProcessorSetOutputStereoMode(
2776 [in] ID3D11VideoProcessor *processor,
2777 [in] BOOL enable
2779 HRESULT VideoProcessorSetOutputExtension(
2780 [in] ID3D11VideoProcessor *processor,
2781 [in] const GUID *guid,
2782 [in] UINT data_size,
2783 [in] void *data
2785 void VideoProcessorGetOutputTargetRect(
2786 [in] ID3D11VideoProcessor *processor,
2787 [out] BOOL *enabled,
2788 [out] RECT *rect
2790 void VideoProcessorGetOutputBackgroundColor(
2791 [in] ID3D11VideoProcessor *processor,
2792 [out] BOOL *y_cb_cr,
2793 [out] D3D11_VIDEO_COLOR *color
2795 void VideoProcessorGetOutputColorSpace(
2796 [in] ID3D11VideoProcessor *processor,
2797 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2799 void VideoProcessorGetOutputAlphaFillMode(
2800 [in] ID3D11VideoProcessor *processor,
2801 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
2802 [out] UINT *stream_idx
2804 void VideoProcessorGetOutputConstriction(
2805 [in] ID3D11VideoProcessor *processor,
2806 [out] BOOL *enabled,
2807 [out] SIZE *size
2809 void VideoProcessorGetOutputStereoMode(
2810 [in] ID3D11VideoProcessor *processor,
2811 [out] BOOL *enabled
2813 HRESULT VideoProcessorGetOutputExtension(
2814 [in] ID3D11VideoProcessor *processor,
2815 [in] const GUID *guid,
2816 [in] UINT data_size,
2817 [out] void *data
2819 void VideoProcessorSetStreamFrameFormat(
2820 [in] ID3D11VideoProcessor *processor,
2821 [in] UINT stream_idx,
2822 [in] D3D11_VIDEO_FRAME_FORMAT format
2824 void VideoProcessorSetStreamColorSpace(
2825 [in] ID3D11VideoProcessor *processor,
2826 [in] UINT stream_idx,
2827 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2829 void VideoProcessorSetStreamOutputRate(
2830 [in] ID3D11VideoProcessor *processor,
2831 [in] UINT stream_idx,
2832 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
2833 [in] BOOL repeat,
2834 [in] const DXGI_RATIONAL *custom_rate
2836 void VideoProcessorSetStreamSourceRect(
2837 [in] ID3D11VideoProcessor *processor,
2838 [in] UINT stream_idx,
2839 [in] BOOL enable,
2840 [in] const RECT *rect
2842 void VideoProcessorSetStreamDestRect(
2843 [in] ID3D11VideoProcessor *processor,
2844 [in] UINT stream_idx,
2845 [in] BOOL enable,
2846 [in] const RECT *rect
2848 void VideoProcessorSetStreamAlpha(
2849 [in] ID3D11VideoProcessor *processor,
2850 [in] UINT stream_idx,
2851 [in] BOOL enable,
2852 [in] float alpha
2854 void VideoProcessorSetStreamPalette(
2855 [in] ID3D11VideoProcessor *processor,
2856 [in] UINT stream_idx,
2857 [in] UINT entry_count,
2858 [in] const UINT *entries
2860 void VideoProcessorSetStreamPixelAspectRatio(
2861 [in] ID3D11VideoProcessor *processor,
2862 [in] UINT stream_idx,
2863 [in] BOOL enable,
2864 [in] const DXGI_RATIONAL *src_aspect_ratio,
2865 [in] const DXGI_RATIONAL *dst_aspect_ratio
2867 void VideoProcessorSetStreamLumaKey(
2868 [in] ID3D11VideoProcessor *processor,
2869 [in] UINT stream_idx,
2870 [in] BOOL enable,
2871 [in] float lower,
2872 [in] float upper
2874 void VideoProcessorSetStreamStereoFormat(
2875 [in] ID3D11VideoProcessor *processor,
2876 [in] UINT stream_idx,
2877 [in] BOOL enable,
2878 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
2879 [in] BOOL left_view_frame0,
2880 [in] BOOL base_view_frame0,
2881 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
2882 [in] int mono_offset
2884 void VideoProcessorSetStreamAutoProcessingMode(
2885 [in] ID3D11VideoProcessor *processor,
2886 [in] UINT stream_idx,
2887 [in] BOOL enable
2889 void VideoProcessorSetStreamFilter(
2890 [in] ID3D11VideoProcessor *processor,
2891 [in] UINT stream_idx,
2892 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
2893 [in] BOOL enable,
2894 [in] int level
2896 HRESULT VideoProcessorSetStreamExtension(
2897 [in] ID3D11VideoProcessor *processor,
2898 [in] UINT stream_idx,
2899 [in] const GUID *guid,
2900 [in] UINT data_size,
2901 [in] void *data
2903 void VideoProcessorGetStreamFrameFormat(
2904 [in] ID3D11VideoProcessor *processor,
2905 [in] UINT stream_idx,
2906 [out] D3D11_VIDEO_FRAME_FORMAT *format
2908 void VideoProcessorGetStreamColorSpace(
2909 [in] ID3D11VideoProcessor *processor,
2910 [in] UINT stream_idx,
2911 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2913 void VideoProcessorGetStreamOutputRate(
2914 [in] ID3D11VideoProcessor *processor,
2915 [in] UINT stream_idx,
2916 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
2917 [out] BOOL *repeat,
2918 [out] DXGI_RATIONAL *custom_rate
2920 void VideoProcessorGetStreamSourceRect(
2921 [in] ID3D11VideoProcessor *processor,
2922 [in] UINT stream_idx,
2923 [out] BOOL *enabled,
2924 [out] RECT *rect
2926 void VideoProcessorGetStreamDestRect(
2927 [in] ID3D11VideoProcessor *processor,
2928 [in] UINT stream_idx,
2929 [out] BOOL *enabled,
2930 [out] RECT *rect
2932 void VideoProcessorGetStreamAlpha(
2933 [in] ID3D11VideoProcessor *processor,
2934 [in] UINT stream_idx,
2935 [out] BOOL *enabled,
2936 [out] float *alpha
2938 void VideoProcessorGetStreamPalette(
2939 [in] ID3D11VideoProcessor *processor,
2940 [in] UINT stream_idx,
2941 [in] UINT entry_count,
2942 [out] UINT *entries
2944 void VideoProcessorGetStreamPixelAspectRatio(
2945 [in] ID3D11VideoProcessor *processor,
2946 [in] UINT stream_idx,
2947 [out] BOOL *enabled,
2948 [out] DXGI_RATIONAL *src_aspect_ratio,
2949 [out] DXGI_RATIONAL *dst_aspect_ratio
2951 void VideoProcessorGetStreamLumaKey(
2952 [in] ID3D11VideoProcessor *processor,
2953 [in] UINT stream_idx,
2954 [out] BOOL *enabled,
2955 [out] float *lower,
2956 [out] float *upper
2958 void VideoProcessorGetStreamStereoFormat(
2959 [in] ID3D11VideoProcessor *processor,
2960 [in] UINT stream_idx,
2961 [out] BOOL *enabled,
2962 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
2963 [out] BOOL *left_view_frame0,
2964 [out] BOOL *base_view_frame0,
2965 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
2966 [out] int *mono_offset
2968 void VideoProcessorGetStreamAutoProcessingMode(
2969 [in] ID3D11VideoProcessor *processor,
2970 [in] UINT stream_idx,
2971 [out] BOOL *enabled
2973 void VideoProcessorGetStreamFilter(
2974 [in] ID3D11VideoProcessor *processor,
2975 [in] UINT stream_idx,
2976 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
2977 [out] BOOL *enabled,
2978 [out] int *level
2980 HRESULT VideoProcessorGetStreamExtension(
2981 [in] ID3D11VideoProcessor *processor,
2982 [in] UINT stream_idx,
2983 [in] const GUID *guid,
2984 [in] UINT data_size,
2985 [out] void *data
2987 HRESULT VideoProcessorBlt(
2988 [in] ID3D11VideoProcessor *processor,
2989 [in] ID3D11VideoProcessorOutputView *view,
2990 [in] UINT frame_idx,
2991 [in] UINT stream_count,
2992 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
2994 HRESULT NegotiateCryptoSessionKeyExchange(
2995 [in] ID3D11CryptoSession *session,
2996 [in] UINT data_size,
2997 [in, out] void *data
2999 void EncryptionBlt(
3000 [in] ID3D11CryptoSession *session,
3001 [in] ID3D11Texture2D *src_surface,
3002 [in] ID3D11Texture2D *dst_surface,
3003 [in] UINT iv_size,
3004 [in, out] void *iv
3006 void DecryptionBlt(
3007 [in] ID3D11CryptoSession *session,
3008 [in] ID3D11Texture2D *src_surface,
3009 [in] ID3D11Texture2D *dst_surface,
3010 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3011 [in] UINT key_size,
3012 [in] const void *key,
3013 [in] UINT iv_size,
3014 [in, out] void *iv
3016 void StartSessionKeyRefresh(
3017 [in] ID3D11CryptoSession *session,
3018 [in] UINT random_number_size,
3019 [out] void *random_number
3021 void FinishSessionKeyRefresh(
3022 [in] ID3D11CryptoSession *session
3024 HRESULT GetEncryptionBltKey(
3025 [in] ID3D11CryptoSession *session,
3026 [in] UINT key_size,
3027 [out] void *key
3029 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3030 [in] ID3D11AuthenticatedChannel *channel,
3031 [in] UINT data_size,
3032 [in, out] void *data
3034 HRESULT QueryAuthenticatedChannel(
3035 [in] ID3D11AuthenticatedChannel *channel,
3036 [in] UINT input_size,
3037 [in] const void *input,
3038 [in] UINT output_size,
3039 [out] void *output
3041 HRESULT ConfigureAuthenticatedChannel(
3042 [in] ID3D11AuthenticatedChannel *channel,
3043 [in] UINT input_size,
3044 [in] const void *input,
3045 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3047 void VideoProcessorSetStreamRotation(
3048 [in] ID3D11VideoProcessor *processor,
3049 [in] UINT stream_idx,
3050 [in] BOOL enable,
3051 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3053 void VideoProcessorGetStreamRotation(
3054 [in] ID3D11VideoProcessor *processor,
3055 [in] UINT stream_idx,
3056 [out] BOOL *enable,
3057 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3062 object,
3063 local,
3064 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3066 interface ID3D11Device : IUnknown
3068 HRESULT CreateBuffer(
3069 [in] const D3D11_BUFFER_DESC *pDesc,
3070 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3071 [out] ID3D11Buffer **ppBuffer);
3072 HRESULT CreateTexture1D(
3073 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3074 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3075 [out] ID3D11Texture1D **ppTexture1D);
3076 HRESULT CreateTexture2D(
3077 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3078 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3079 [out] ID3D11Texture2D **ppTexture2D);
3080 HRESULT CreateTexture3D(
3081 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3082 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3083 [out] ID3D11Texture3D **ppTexture3D);
3084 HRESULT CreateShaderResourceView(
3085 [in] ID3D11Resource *pResource,
3086 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3087 [out] ID3D11ShaderResourceView **ppSRView);
3088 HRESULT CreateUnorderedAccessView(
3089 [in] ID3D11Resource *pResource,
3090 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3091 [out] ID3D11UnorderedAccessView **ppUAView);
3092 HRESULT CreateRenderTargetView(
3093 [in] ID3D11Resource *pResource,
3094 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3095 [out] ID3D11RenderTargetView **ppRTView);
3096 HRESULT CreateDepthStencilView(
3097 [in] ID3D11Resource *pResource,
3098 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3099 [out] ID3D11DepthStencilView **ppDepthStencilView);
3100 HRESULT CreateInputLayout(
3101 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3102 [in] UINT NumElements,
3103 [in] const void *pShaderBytecodeWithInputSignature,
3104 [in] SIZE_T BytecodeLength,
3105 [out] ID3D11InputLayout **ppInputLayout);
3106 HRESULT CreateVertexShader(
3107 [in] const void *pShaderBytecode,
3108 [in] SIZE_T BytecodeLength,
3109 [in] ID3D11ClassLinkage *pClassLinkage,
3110 [out] ID3D11VertexShader **ppVertexShader);
3111 HRESULT CreateGeometryShader(
3112 [in] const void *pShaderBytecode,
3113 [in] SIZE_T BytecodeLength,
3114 [in] ID3D11ClassLinkage *pClassLinkage,
3115 [out] ID3D11GeometryShader **ppGeometryShader);
3116 HRESULT CreateGeometryShaderWithStreamOutput(
3117 [in] const void *pShaderBytecode,
3118 [in] SIZE_T BytecodeLength,
3119 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3120 [in] UINT NumEntries,
3121 [in] const UINT *pBufferStrides,
3122 [in] UINT NumStrides,
3123 [in] UINT RasterizedStream,
3124 [in] ID3D11ClassLinkage *pClassLinkage,
3125 [out] ID3D11GeometryShader **ppGeometryShader);
3126 HRESULT CreatePixelShader(
3127 [in] const void *pShaderBytecode,
3128 [in] SIZE_T BytecodeLength,
3129 [in] ID3D11ClassLinkage *pClassLinkage,
3130 [out] ID3D11PixelShader **ppPixelShader);
3131 HRESULT CreateHullShader(
3132 [in] const void *pShaderBytecode,
3133 [in] SIZE_T BytecodeLength,
3134 [in] ID3D11ClassLinkage *pClassLinkage,
3135 [out] ID3D11HullShader **ppHullShader);
3136 HRESULT CreateDomainShader(
3137 [in] const void *pShaderBytecode,
3138 [in] SIZE_T BytecodeLength,
3139 [in] ID3D11ClassLinkage *pClassLinkage,
3140 [out] ID3D11DomainShader **ppDomainShader);
3141 HRESULT CreateComputeShader(
3142 [in] const void *pShaderBytecode,
3143 [in] SIZE_T BytecodeLength,
3144 [in] ID3D11ClassLinkage *pClassLinkage,
3145 [out] ID3D11ComputeShader **ppComputeShader);
3146 HRESULT CreateClassLinkage(
3147 [out] ID3D11ClassLinkage **ppLinkage);
3148 HRESULT CreateBlendState(
3149 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3150 [out] ID3D11BlendState **ppBlendState);
3151 HRESULT CreateDepthStencilState(
3152 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3153 [out] ID3D11DepthStencilState **ppDepthStencilState);
3154 HRESULT CreateRasterizerState(
3155 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3156 [out] ID3D11RasterizerState **ppRasterizerState);
3157 HRESULT CreateSamplerState(
3158 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3159 [out] ID3D11SamplerState **ppSamplerState);
3160 HRESULT CreateQuery(
3161 [in] const D3D11_QUERY_DESC *pQueryDesc,
3162 [out] ID3D11Query **ppQuery);
3163 HRESULT CreatePredicate(
3164 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3165 [out] ID3D11Predicate **ppPredicate);
3166 HRESULT CreateCounter(
3167 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3168 [out] ID3D11Counter **ppCounter);
3169 HRESULT CreateDeferredContext(
3170 UINT ContextFlags,
3171 [out] ID3D11DeviceContext **ppDeferredContext);
3172 HRESULT OpenSharedResource(
3173 [in] HANDLE hResource,
3174 [in] REFIID ReturnedInterface,
3175 [out] void **ppResource);
3176 HRESULT CheckFormatSupport(
3177 [in] DXGI_FORMAT Format,
3178 [out] UINT *pFormatSupport);
3179 HRESULT CheckMultisampleQualityLevels(
3180 [in] DXGI_FORMAT Format,
3181 [in] UINT SampleCount,
3182 [out] UINT *pNumQualityLevels);
3183 void CheckCounterInfo(
3184 [out] D3D11_COUNTER_INFO *pCounterInfo);
3185 HRESULT CheckCounter(
3186 [in] const D3D11_COUNTER_DESC *pDesc,
3187 [out] D3D11_COUNTER_TYPE *pType,
3188 [out] UINT *pActiveCounters,
3189 [out] LPSTR szName,
3190 [in, out] UINT *pNameLength,
3191 [out] LPSTR szUnits,
3192 [in, out] UINT *pUnitsLength,
3193 [out] LPSTR szDescription,
3194 [in, out] UINT *pDescriptionLength);
3195 HRESULT CheckFeatureSupport(
3196 D3D11_FEATURE Feature,
3197 [out] void *pFeatureSupportData,
3198 UINT FeatureSupportDataSize);
3199 HRESULT GetPrivateData(
3200 [in] REFGUID guid,
3201 [in, out] UINT *pDataSize,
3202 [out] void *pData);
3203 HRESULT SetPrivateData(
3204 [in] REFGUID guid,
3205 [in] UINT DataSize,
3206 [in] const void *pData);
3207 HRESULT SetPrivateDataInterface(
3208 [in] REFGUID guid,
3209 [in] const IUnknown *pData);
3210 D3D_FEATURE_LEVEL GetFeatureLevel();
3211 UINT GetCreationFlags();
3212 HRESULT GetDeviceRemovedReason();
3213 void GetImmediateContext(
3214 [out] ID3D11DeviceContext **ppImmediateContext);
3215 HRESULT SetExceptionMode(UINT RaiseFlags);
3216 UINT GetExceptionMode();
3219 typedef enum D3D11_CREATE_DEVICE_FLAG {
3220 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3221 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3222 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3223 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3224 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3225 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3226 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3227 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3228 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3229 } D3D11_CREATE_DEVICE_FLAG;
3231 const UINT D3D11_SDK_VERSION = 7;
3233 cpp_quote("#include <d3d10_1.h>")
3234 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3235 cpp_quote("# include <d3d11sdklayers.h>")
3236 cpp_quote("#endif")
3237 cpp_quote("#include <d3d10misc.h>")
3238 cpp_quote("#include <d3d10shader.h>")
3239 cpp_quote("#include <d3d10effect.h>")
3240 cpp_quote("#include <d3d10_1shader.h>")
3242 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3243 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3245 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3246 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3248 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3249 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3250 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3252 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3253 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3254 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3255 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);