gdiplus/tests: Add tests for GdipMeasureString with StringFormatFlagsNoWrap.
[wine.git] / include / d3d11.idl
blob80a65c9ae16cf0cc4ff6ee144e912424840c4880
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 cpp_quote("#ifndef _D3D11_CONSTANTS")
36 cpp_quote("#define _D3D11_CONSTANTS")
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
39 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
40 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
41 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
42 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
43 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
44 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
45 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
46 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
47 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
48 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
49 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
50 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
51 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
52 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
53 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
54 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
55 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
56 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
57 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
58 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
59 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
60 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
61 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
62 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
63 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
64 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
65 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
66 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
67 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
68 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
69 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
70 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
71 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
72 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
74 const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256;
75 const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64;
76 const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240;
77 const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68;
78 const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224;
79 const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72;
80 const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208;
81 const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76;
82 const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192;
83 const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84;
84 const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176;
85 const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92;
86 const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160;
87 const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100;
88 const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144;
89 const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112;
90 const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128;
91 const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128;
92 const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112;
93 const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144;
94 const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96;
95 const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168;
96 const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80;
97 const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204;
98 const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64;
99 const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256;
100 const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48;
101 const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340;
102 const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32;
103 const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512;
104 const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16;
105 const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768;
106 const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1;
107 const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256;
108 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768;
109 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768;
110 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768;
111 const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1;
112 const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535;
113 const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192;
114 const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1;
115 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1;
116 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1;
117 const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024;
118 const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024;
119 const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024;
120 const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64;
121 const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1;
122 const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1;
123 const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1;
124 const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384;
126 const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
127 cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
128 const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
129 cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
130 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
131 const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
132 const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
133 const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
134 const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
135 const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
136 cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
137 const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
138 const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
139 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
140 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
141 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
142 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
143 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
144 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
145 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
146 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
148 cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
150 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
152 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
154 const UINT D3D11_MAX_MAXANISOTROPY = 16;
155 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
156 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
157 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
158 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
159 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
161 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff;
162 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff;
164 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
165 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
166 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
167 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
168 const UINT D3D11_SHADER_MAX_TYPES = 65535;
169 const UINT D3D11_SHADER_MINOR_VERSION = 0;
170 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
172 const UINT D3D11_OMAC_SIZE = 16;
174 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
175 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
176 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
177 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
178 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
179 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
180 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
181 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
182 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
183 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
184 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
185 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
186 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
187 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
188 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
189 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
190 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
191 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
192 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
193 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
194 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
195 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
196 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
198 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
200 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
201 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
202 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
203 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
204 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
205 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
206 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
207 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
208 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
209 const UINT D3D11_REQ_MAXANISOTROPY = 16;
210 const UINT D3D11_REQ_MIP_LEVELS = 15;
211 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
212 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
213 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
214 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
215 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
216 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
217 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
218 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
219 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
220 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
221 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
222 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
223 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
224 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
226 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
228 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
229 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
231 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
232 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
233 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
234 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
235 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
236 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
237 const UINT D3D11_SO_STREAM_COUNT = 4;
239 const UINT D3D11_SPEC_DATE_DAY = 16;
240 const UINT D3D11_SPEC_DATE_MONTH = 05;
241 const UINT D3D11_SPEC_DATE_YEAR = 2011;
243 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
244 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
245 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
246 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
247 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
248 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
249 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
250 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
252 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
253 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
254 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
255 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
256 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
257 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
258 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
259 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
261 cpp_quote("#endif")
263 cpp_quote("#ifndef _D3D11_1_CONSTANTS")
264 cpp_quote("#define _D3D11_1_CONSTANTS")
265 const UINT D3D11_1_UAV_SLOT_COUNT = 64;
266 cpp_quote("#endif")
268 cpp_quote("#ifndef _D3D11_2_CONSTANTS")
269 cpp_quote("#define _D3D11_2_CONSTANTS")
270 const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 0x10000;
271 cpp_quote("#endif")
273 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
274 cpp_quote("struct CD3D11_DEFAULT {};")
275 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
276 cpp_quote("#endif")
278 typedef enum D3D11_BLEND
280 D3D11_BLEND_ZERO = 1,
281 D3D11_BLEND_ONE = 2,
282 D3D11_BLEND_SRC_COLOR = 3,
283 D3D11_BLEND_INV_SRC_COLOR = 4,
284 D3D11_BLEND_SRC_ALPHA = 5,
285 D3D11_BLEND_INV_SRC_ALPHA = 6,
286 D3D11_BLEND_DEST_ALPHA = 7,
287 D3D11_BLEND_INV_DEST_ALPHA = 8,
288 D3D11_BLEND_DEST_COLOR = 9,
289 D3D11_BLEND_INV_DEST_COLOR = 10,
290 D3D11_BLEND_SRC_ALPHA_SAT = 11,
291 D3D11_BLEND_BLEND_FACTOR = 14,
292 D3D11_BLEND_INV_BLEND_FACTOR = 15,
293 D3D11_BLEND_SRC1_COLOR = 16,
294 D3D11_BLEND_INV_SRC1_COLOR = 17,
295 D3D11_BLEND_SRC1_ALPHA = 18,
296 D3D11_BLEND_INV_SRC1_ALPHA = 19,
297 } D3D11_BLEND;
299 typedef enum D3D11_BLEND_OP
301 D3D11_BLEND_OP_ADD = 1,
302 D3D11_BLEND_OP_SUBTRACT,
303 D3D11_BLEND_OP_REV_SUBTRACT,
304 D3D11_BLEND_OP_MIN,
305 D3D11_BLEND_OP_MAX
306 } D3D11_BLEND_OP;
308 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
310 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
311 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
312 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
313 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
314 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
315 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
316 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
317 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
318 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
319 } D3D11_VIDEO_DECODER_BUFFER_TYPE;
321 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
323 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
324 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
325 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
326 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
327 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
329 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
331 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
332 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
333 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
334 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
336 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
338 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
339 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
340 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
341 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
342 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
343 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
344 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
345 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
346 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
348 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
350 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
351 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
352 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
353 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
355 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
357 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
358 D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
359 D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
360 D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
361 } D3D11_VIDEO_PROCESSOR_ROTATION;
363 typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS
365 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x00000001,
366 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x00000002,
367 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x00000004,
368 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x00000008,
369 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x00000010,
370 } D3D11_VIDEO_PROCESSOR_DEVICE_CAPS;
372 typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS
374 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x00000001,
375 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x00000002,
376 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x00000004,
377 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x00000008,
378 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x00000010,
379 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x00000020,
380 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x00000040,
381 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x00000080,
382 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x00000100,
383 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x00000200,
384 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x00000400,
385 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x00000800,
386 } D3D11_VIDEO_PROCESSOR_FEATURE_CAPS;
388 typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS
390 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x00000001,
391 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x00000002,
392 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x00000004,
393 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x00000008,
394 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x00000010,
395 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x00000020,
396 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x00000040,
397 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x00000080,
398 } D3D11_VIDEO_PROCESSOR_FILTER_CAPS;
400 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS
402 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x00000001,
403 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x00000002,
404 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x00000004,
405 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x00000008,
406 } D3D11_VIDEO_PROCESSOR_FORMAT_CAPS;
408 typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS
410 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x00000001,
411 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x00000002,
412 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x00000004,
413 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x00000008,
414 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x00000010,
415 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x00000020,
416 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x00000040,
417 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x00000080,
418 } D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS;
420 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS
422 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x00000001,
423 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x00000002,
424 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x00000004,
425 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x00000008,
426 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x00000010,
427 } D3D11_VIDEO_PROCESSOR_STEREO_CAPS;
429 typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
431 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
432 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
433 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
434 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
435 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
436 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
437 } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
439 typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
441 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
442 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
443 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
444 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
445 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
446 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
447 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
448 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
449 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
450 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
451 } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
453 typedef enum D3D11_CONTENT_PROTECTION_CAPS
455 D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
456 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
457 D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
458 D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
459 D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
460 D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
461 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
462 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
463 D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
464 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
465 D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
466 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
467 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
468 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
469 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
470 } D3D11_CONTENT_PROTECTION_CAPS;
472 typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
474 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
475 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
476 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
477 } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
479 typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
481 D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
482 D3D11_PROCESSIDTYPE_DWM = 0x00000001,
483 D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
484 } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
486 typedef enum D3D11_BUS_TYPE
488 D3D11_BUS_TYPE_OTHER = 0x00000000,
489 D3D11_BUS_TYPE_PCI = 0x00000001,
490 D3D11_BUS_TYPE_PCIX = 0x00000002,
491 D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
492 D3D11_BUS_TYPE_AGP = 0x00000004,
493 D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
494 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
495 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
496 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
497 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
498 D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
499 } D3D11_BUS_TYPE;
501 typedef struct D3D11_BOX
503 UINT left;
504 UINT top;
505 UINT front;
506 UINT right;
507 UINT bottom;
508 UINT back;
509 } D3D11_BOX;
511 typedef struct D3D11_BUFFER_RTV
513 union
515 UINT FirstElement;
516 UINT ElementOffset;
518 union
520 UINT NumElements;
521 UINT ElementWidth;
523 } D3D11_BUFFER_RTV;
525 typedef struct D3D11_BUFFER_SRV
527 union
529 UINT FirstElement;
530 UINT ElementOffset;
532 union
534 UINT NumElements;
535 UINT ElementWidth;
537 } D3D11_BUFFER_SRV;
539 typedef struct D3D11_BUFFER_UAV
541 UINT FirstElement;
542 UINT NumElements;
543 UINT Flags;
544 } D3D11_BUFFER_UAV;
546 typedef struct D3D11_BUFFEREX_SRV
548 UINT FirstElement;
549 UINT NumElements;
550 UINT Flags;
551 } D3D11_BUFFEREX_SRV;
553 typedef struct D3D11_CLASS_INSTANCE_DESC
555 UINT InstanceId;
556 UINT InstanceIndex;
557 UINT TypeId;
558 UINT ConstantBuffer;
559 UINT BaseConstantBufferOffset;
560 UINT BaseTexture;
561 UINT BaseSampler;
562 BOOL Created;
563 } D3D11_CLASS_INSTANCE_DESC;
565 typedef enum D3D11_COMPARISON_FUNC
567 D3D11_COMPARISON_NEVER = 1,
568 D3D11_COMPARISON_LESS,
569 D3D11_COMPARISON_EQUAL,
570 D3D11_COMPARISON_LESS_EQUAL,
571 D3D11_COMPARISON_GREATER,
572 D3D11_COMPARISON_NOT_EQUAL,
573 D3D11_COMPARISON_GREATER_EQUAL,
574 D3D11_COMPARISON_ALWAYS
575 } D3D11_COMPARISON_FUNC;
577 typedef enum D3D11_COUNTER
579 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
580 } D3D11_COUNTER;
582 typedef struct D3D11_COUNTER_DESC
584 D3D11_COUNTER Counter;
585 UINT MiscFlags;
586 } D3D11_COUNTER_DESC;
588 typedef struct D3D11_COUNTER_INFO
590 D3D11_COUNTER LastDeviceDependentCounter;
591 UINT NumSimultaneousCounters;
592 UINT8 NumDetectableParallelUnits;
593 } D3D11_COUNTER_INFO;
595 typedef enum D3D11_COUNTER_TYPE
597 D3D11_COUNTER_TYPE_FLOAT32,
598 D3D11_COUNTER_TYPE_UINT16,
599 D3D11_COUNTER_TYPE_UINT32,
600 D3D11_COUNTER_TYPE_UINT64,
601 } D3D11_COUNTER_TYPE;
603 typedef enum D3D11_CULL_MODE
605 D3D11_CULL_NONE = 1,
606 D3D11_CULL_FRONT,
607 D3D11_CULL_BACK
608 } D3D11_CULL_MODE;
610 typedef enum D3D11_DEPTH_WRITE_MASK
612 D3D11_DEPTH_WRITE_MASK_ZERO,
613 D3D11_DEPTH_WRITE_MASK_ALL,
614 } D3D11_DEPTH_WRITE_MASK;
616 typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
618 D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
619 D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
620 } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
622 typedef enum D3D11_DEVICE_CONTEXT_TYPE
624 D3D11_DEVICE_CONTEXT_IMMEDIATE,
625 D3D11_DEVICE_CONTEXT_DEFERRED,
626 } D3D11_DEVICE_CONTEXT_TYPE;
628 typedef enum D3D11_DSV_DIMENSION
630 D3D11_DSV_DIMENSION_UNKNOWN,
631 D3D11_DSV_DIMENSION_TEXTURE1D,
632 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
633 D3D11_DSV_DIMENSION_TEXTURE2D,
634 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
635 D3D11_DSV_DIMENSION_TEXTURE2DMS,
636 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
637 } D3D11_DSV_DIMENSION;
639 typedef enum D3D11_FEATURE
641 D3D11_FEATURE_THREADING,
642 D3D11_FEATURE_DOUBLES,
643 D3D11_FEATURE_FORMAT_SUPPORT,
644 D3D11_FEATURE_FORMAT_SUPPORT2,
645 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
646 D3D11_FEATURE_D3D11_OPTIONS,
647 D3D11_FEATURE_ARCHITECTURE_INFO,
648 D3D11_FEATURE_D3D9_OPTIONS,
649 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
650 D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
651 D3D11_FEATURE_D3D11_OPTIONS1,
652 D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
653 D3D11_FEATURE_MARKER_SUPPORT,
654 D3D11_FEATURE_D3D9_OPTIONS1,
655 D3D11_FEATURE_D3D11_OPTIONS2,
656 D3D11_FEATURE_D3D11_OPTIONS3,
657 D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
658 D3D11_FEATURE_D3D11_OPTIONS4,
659 D3D11_FEATURE_SHADER_CACHE,
660 } D3D11_FEATURE;
662 typedef struct D3D11_FEATURE_DATA_THREADING
664 BOOL DriverConcurrentCreates;
665 BOOL DriverCommandLists;
666 } D3D11_FEATURE_DATA_THREADING;
668 typedef struct D3D11_FEATURE_DATA_DOUBLES
670 BOOL DoublePrecisionFloatShaderOps;
671 } D3D11_FEATURE_DATA_DOUBLES;
673 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
675 DXGI_FORMAT InFormat;
676 UINT OutFormatSupport;
677 } D3D11_FEATURE_DATA_FORMAT_SUPPORT;
679 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
681 DXGI_FORMAT InFormat;
682 UINT OutFormatSupport2;
683 } D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
685 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
687 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
688 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
690 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
692 BOOL OutputMergerLogicOp;
693 BOOL UAVOnlyRenderingForcedSampleCount;
694 BOOL DiscardAPIsSeenByDriver;
695 BOOL FlagsForUpdateAndCopySeenByDriver;
696 BOOL ClearView;
697 BOOL CopyWithOverlap;
698 BOOL ConstantBufferPartialUpdate;
699 BOOL ConstantBufferOffsetting;
700 BOOL MapNoOverwriteOnDynamicConstantBuffer;
701 BOOL MapNoOverwriteOnDynamicBufferSRV;
702 BOOL MultisampleRTVWithForcedSampleCountOne;
703 BOOL SAD4ShaderInstructions;
704 BOOL ExtendedDoublesShaderInstructions;
705 BOOL ExtendedResourceSharing;
706 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
708 typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
710 BOOL TileBasedDeferredRenderer;
711 } D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
713 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
715 BOOL FullNonPow2TextureSupport;
716 } D3D11_FEATURE_DATA_D3D9_OPTIONS;
718 typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
720 BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
721 } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
723 typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
725 D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
726 D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
727 } D3D11_SHADER_MIN_PRECISION_SUPPORT;
729 typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
731 UINT PixelShaderMinPrecision;
732 UINT AllOtherShaderStagesMinPrecision;
733 } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
735 typedef enum D3D11_TILED_RESOURCES_TIER
737 D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
738 D3D11_TILED_RESOURCES_TIER_1 = 0x1,
739 D3D11_TILED_RESOURCES_TIER_2 = 0x2,
740 D3D11_TILED_RESOURCES_TIER_3 = 0x3,
741 } D3D11_TILED_RESOURCES_TIER;
743 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
745 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
746 BOOL MinMaxFiltering;
747 BOOL ClearViewAlsoSupportsDepthOnlyFormats;
748 BOOL MapOnDefaultBuffers;
749 } D3D11_FEATURE_DATA_D3D11_OPTIONS1;
751 typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
753 BOOL SimpleInstancingSupported;
754 } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
756 typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
758 BOOL Profile;
759 } D3D11_FEATURE_DATA_MARKER_SUPPORT;
761 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
763 BOOL FullNonPow2TextureSupported;
764 BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
765 BOOL SimpleInstancingSupported;
766 BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
767 } D3D11_FEATURE_DATA_D3D9_OPTIONS1;
769 typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
771 D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
772 D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
773 D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
774 D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
775 } D3D11_CONSERVATIVE_RASTERIZATION_TIER;
777 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
779 BOOL PSSpecifiedStencilRefSupported;
780 BOOL TypedUAVLoadAdditionalFormats;
781 BOOL ROVsSupported;
782 D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
783 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
784 BOOL MapOnDefaultTextures;
785 BOOL StandardSwizzle;
786 BOOL UnifiedMemoryArchitecture;
787 } D3D11_FEATURE_DATA_D3D11_OPTIONS2;
789 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
791 BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
792 } D3D11_FEATURE_DATA_D3D11_OPTIONS3;
794 typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
796 UINT MaxGPUVirtualAddressBitsPerResource;
797 UINT MaxGPUVirtualAddressBitsPerProcess;
798 } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
800 typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
802 D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
803 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
804 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
805 } D3D11_SHADER_CACHE_SUPPORT_FLAGS;
807 typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
809 UINT SupportFlags;
810 } D3D11_FEATURE_DATA_SHADER_CACHE;
812 typedef enum D3D11_FILL_MODE
814 D3D11_FILL_WIREFRAME = 2,
815 D3D11_FILL_SOLID
816 } D3D11_FILL_MODE;
818 typedef enum D3D11_FILTER_TYPE
820 D3D11_FILTER_TYPE_POINT = 0,
821 D3D11_FILTER_TYPE_LINEAR = 1
822 } D3D11_FILTER_TYPE;
824 const UINT D3D11_MIN_FILTER_SHIFT = 4;
825 const UINT D3D11_MAG_FILTER_SHIFT = 2;
826 const UINT D3D11_MIP_FILTER_SHIFT = 0;
827 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
828 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
829 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
831 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
832 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
833 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
834 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
835 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
837 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
838 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
839 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
840 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
842 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
843 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
845 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
846 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
848 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
849 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
851 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
853 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
854 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
855 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
856 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
857 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
859 typedef enum D3D11_FILTER
861 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
862 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
863 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
864 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
865 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
866 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
867 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
868 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
869 D3D11_FILTER_ANISOTROPIC = 0x55,
870 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
871 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
872 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
873 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
874 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
875 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
876 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
877 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
878 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
879 D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
880 D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
881 D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
882 D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
883 D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
884 D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
885 D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
886 D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
887 D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155,
888 D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
889 D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
890 D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
891 D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
892 D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
893 D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
894 D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
895 D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
896 D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
897 } D3D11_FILTER;
899 typedef enum D3D11_DSV_FLAG
901 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
902 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
903 } D3D11_DSV_FLAG;
905 typedef enum D3D11_BUFFEREX_SRV_FLAG
907 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
908 } D3D11_BUFFEREX_SRV_FLAG;
910 typedef enum D3D11_UAV_FLAG
912 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
913 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
914 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
915 } D3D11_UAV_FLAG;
917 typedef enum D3D11_INPUT_CLASSIFICATION
919 D3D11_INPUT_PER_VERTEX_DATA,
920 D3D11_INPUT_PER_INSTANCE_DATA,
921 } D3D11_INPUT_CLASSIFICATION;
923 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
925 typedef struct D3D11_INPUT_ELEMENT_DESC
927 LPCSTR SemanticName;
928 UINT SemanticIndex;
929 DXGI_FORMAT Format;
930 UINT InputSlot;
931 UINT AlignedByteOffset;
932 D3D11_INPUT_CLASSIFICATION InputSlotClass;
933 UINT InstanceDataStepRate;
934 } D3D11_INPUT_ELEMENT_DESC;
936 typedef enum D3D11_MAP
938 D3D11_MAP_READ = 1,
939 D3D11_MAP_WRITE,
940 D3D11_MAP_READ_WRITE,
941 D3D11_MAP_WRITE_DISCARD,
942 D3D11_MAP_WRITE_NO_OVERWRITE
943 } D3D11_MAP;
945 typedef enum D3D11_MAP_FLAG
947 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
948 } D3D11_MAP_FLAG;
950 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
952 UINT64 NumPrimitivesWritten;
953 UINT64 PrimitivesStorageNeeded;
954 } D3D11_QUERY_DATA_SO_STATISTICS;
956 typedef struct D3D11_MAPPED_SUBRESOURCE
958 void *pData;
959 UINT RowPitch;
960 UINT DepthPitch;
961 } D3D11_MAPPED_SUBRESOURCE;
963 typedef enum D3D11_QUERY
965 D3D11_QUERY_EVENT,
966 D3D11_QUERY_OCCLUSION,
967 D3D11_QUERY_TIMESTAMP,
968 D3D11_QUERY_TIMESTAMP_DISJOINT,
969 D3D11_QUERY_PIPELINE_STATISTICS,
970 D3D11_QUERY_OCCLUSION_PREDICATE,
971 D3D11_QUERY_SO_STATISTICS,
972 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
973 D3D11_QUERY_SO_STATISTICS_STREAM0,
974 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
975 D3D11_QUERY_SO_STATISTICS_STREAM1,
976 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
977 D3D11_QUERY_SO_STATISTICS_STREAM2,
978 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
979 D3D11_QUERY_SO_STATISTICS_STREAM3,
980 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
981 } D3D11_QUERY;
983 typedef enum D3D11_QUERY_MISC_FLAG
985 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
986 } D3D11_QUERY_MISC_FLAG;
988 typedef enum D3D11_ASYNC_GETDATA_FLAG
990 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
991 } D3D11_ASYNC_GETDATA_FLAG;
993 typedef enum D3D11_RESOURCE_MISC_FLAG
995 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
996 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
997 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
998 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
999 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
1000 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
1001 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
1002 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
1003 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
1004 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
1005 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
1006 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
1007 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
1008 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L,
1009 D3D11_RESOURCE_MISC_TILE_POOL = 0x00020000L,
1010 D3D11_RESOURCE_MISC_TILED = 0x00040000L,
1011 D3D11_RESOURCE_MISC_HW_PROTECTED = 0x00080000L
1012 } D3D11_RESOURCE_MISC_FLAG;
1014 typedef struct D3D11_QUERY_DESC
1016 D3D11_QUERY Query;
1017 UINT MiscFlags;
1018 } D3D11_QUERY_DESC;
1020 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1021 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
1022 cpp_quote(" CD3D11_QUERY_DESC() {}")
1023 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
1024 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
1025 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
1026 cpp_quote(" Query = query;")
1027 cpp_quote(" MiscFlags = misc_flags;")
1028 cpp_quote(" }")
1029 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
1030 cpp_quote(" return *this;")
1031 cpp_quote(" }")
1032 cpp_quote("};")
1033 cpp_quote("#endif")
1035 typedef struct D3D11_RASTERIZER_DESC
1037 D3D11_FILL_MODE FillMode;
1038 D3D11_CULL_MODE CullMode;
1039 BOOL FrontCounterClockwise;
1040 INT DepthBias;
1041 FLOAT DepthBiasClamp;
1042 FLOAT SlopeScaledDepthBias;
1043 BOOL DepthClipEnable;
1044 BOOL ScissorEnable;
1045 BOOL MultisampleEnable;
1046 BOOL AntialiasedLineEnable;
1047 } D3D11_RASTERIZER_DESC;
1049 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1050 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
1051 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
1052 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
1053 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
1054 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
1055 cpp_quote(" CullMode = D3D11_CULL_BACK;")
1056 cpp_quote(" FrontCounterClockwise = FALSE;")
1057 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
1058 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
1059 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
1060 cpp_quote(" DepthClipEnable = TRUE;")
1061 cpp_quote(" ScissorEnable = FALSE;")
1062 cpp_quote(" MultisampleEnable = FALSE;")
1063 cpp_quote(" AntialiasedLineEnable = FALSE;")
1064 cpp_quote(" }")
1065 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
1066 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
1067 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
1068 cpp_quote(" FillMode = fillMode;")
1069 cpp_quote(" CullMode = cullMode;")
1070 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
1071 cpp_quote(" DepthBias = depthBias;")
1072 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
1073 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
1074 cpp_quote(" DepthClipEnable = depthClipEnable;")
1075 cpp_quote(" ScissorEnable = scissorEnable;")
1076 cpp_quote(" MultisampleEnable = multisampleEnable;")
1077 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
1078 cpp_quote(" }")
1079 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
1080 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
1081 cpp_quote("};")
1082 cpp_quote("#endif")
1084 typedef enum D3D11_RESOURCE_DIMENSION
1086 D3D11_RESOURCE_DIMENSION_UNKNOWN,
1087 D3D11_RESOURCE_DIMENSION_BUFFER,
1088 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
1089 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
1090 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
1091 } D3D11_RESOURCE_DIMENSION;
1093 typedef enum D3D11_RTV_DIMENSION
1095 D3D11_RTV_DIMENSION_UNKNOWN,
1096 D3D11_RTV_DIMENSION_BUFFER,
1097 D3D11_RTV_DIMENSION_TEXTURE1D,
1098 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
1099 D3D11_RTV_DIMENSION_TEXTURE2D,
1100 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
1101 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1102 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1103 D3D11_RTV_DIMENSION_TEXTURE3D,
1104 } D3D11_RTV_DIMENSION;
1106 typedef struct D3D11_SO_DECLARATION_ENTRY
1108 UINT Stream;
1109 LPCSTR SemanticName;
1110 UINT SemanticIndex;
1111 BYTE StartComponent;
1112 BYTE ComponentCount;
1113 BYTE OutputSlot;
1114 } D3D11_SO_DECLARATION_ENTRY;
1116 typedef enum D3D11_STENCIL_OP
1118 D3D11_STENCIL_OP_KEEP = 1,
1119 D3D11_STENCIL_OP_ZERO,
1120 D3D11_STENCIL_OP_REPLACE,
1121 D3D11_STENCIL_OP_INCR_SAT,
1122 D3D11_STENCIL_OP_DECR_SAT,
1123 D3D11_STENCIL_OP_INVERT,
1124 D3D11_STENCIL_OP_INCR,
1125 D3D11_STENCIL_OP_DECR
1126 } D3D11_STENCIL_OP;
1128 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1129 cpp_quote("}")
1130 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1131 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1132 cpp_quote("}")
1133 cpp_quote("extern \"C\"{")
1134 cpp_quote("#endif")
1136 typedef struct D3D11_SUBRESOURCE_DATA
1138 const void *pSysMem;
1139 UINT SysMemPitch;
1140 UINT SysMemSlicePitch;
1141 } D3D11_SUBRESOURCE_DATA;
1143 typedef struct D3D11_TEX1D_ARRAY_DSV
1145 UINT MipSlice;
1146 UINT FirstArraySlice;
1147 UINT ArraySize;
1148 } D3D11_TEX1D_ARRAY_DSV;
1150 typedef struct D3D11_TEX1D_ARRAY_RTV
1152 UINT MipSlice;
1153 UINT FirstArraySlice;
1154 UINT ArraySize;
1155 } D3D11_TEX1D_ARRAY_RTV;
1157 typedef struct D3D11_TEX1D_ARRAY_SRV
1159 UINT MostDetailedMip;
1160 UINT MipLevels;
1161 UINT FirstArraySlice;
1162 UINT ArraySize;
1163 } D3D11_TEX1D_ARRAY_SRV;
1165 typedef struct D3D11_TEX1D_ARRAY_UAV
1167 UINT MipSlice;
1168 UINT FirstArraySlice;
1169 UINT ArraySize;
1170 } D3D11_TEX1D_ARRAY_UAV;
1172 typedef struct D3D11_TEX1D_DSV
1174 UINT MipSlice;
1175 } D3D11_TEX1D_DSV;
1177 typedef struct D3D11_TEX1D_RTV
1179 UINT MipSlice;
1180 } D3D11_TEX1D_RTV;
1182 typedef struct D3D11_TEX1D_SRV
1184 UINT MostDetailedMip;
1185 UINT MipLevels;
1186 } D3D11_TEX1D_SRV;
1188 typedef struct D3D11_TEX1D_UAV
1190 UINT MipSlice;
1191 } D3D11_TEX1D_UAV;
1193 typedef struct D3D11_TEX2D_ARRAY_DSV
1195 UINT MipSlice;
1196 UINT FirstArraySlice;
1197 UINT ArraySize;
1198 } D3D11_TEX2D_ARRAY_DSV;
1200 typedef struct D3D11_TEX2D_ARRAY_RTV
1202 UINT MipSlice;
1203 UINT FirstArraySlice;
1204 UINT ArraySize;
1205 } D3D11_TEX2D_ARRAY_RTV;
1207 typedef struct D3D11_TEX2D_ARRAY_SRV
1209 UINT MostDetailedMip;
1210 UINT MipLevels;
1211 UINT FirstArraySlice;
1212 UINT ArraySize;
1213 } D3D11_TEX2D_ARRAY_SRV;
1215 typedef struct D3D11_TEX2D_ARRAY_UAV
1217 UINT MipSlice;
1218 UINT FirstArraySlice;
1219 UINT ArraySize;
1220 } D3D11_TEX2D_ARRAY_UAV;
1222 typedef struct D3D11_TEX2D_DSV
1224 UINT MipSlice;
1225 } D3D11_TEX2D_DSV;
1227 typedef struct D3D11_TEX2D_RTV
1229 UINT MipSlice;
1230 } D3D11_TEX2D_RTV;
1232 typedef struct D3D11_TEX2D_SRV
1234 UINT MostDetailedMip;
1235 UINT MipLevels;
1236 } D3D11_TEX2D_SRV;
1238 typedef struct D3D11_TEX2D_UAV
1240 UINT MipSlice;
1241 } D3D11_TEX2D_UAV;
1243 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1245 UINT FirstArraySlice;
1246 UINT ArraySize;
1247 } D3D11_TEX2DMS_ARRAY_DSV;
1249 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1251 UINT FirstArraySlice;
1252 UINT ArraySize;
1253 } D3D11_TEX2DMS_ARRAY_RTV;
1255 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1257 UINT FirstArraySlice;
1258 UINT ArraySize;
1259 } D3D11_TEX2DMS_ARRAY_SRV;
1261 typedef struct D3D11_TEX2DMS_DSV
1263 UINT UnusedField_NothingToDefine;
1264 } D3D11_TEX2DMS_DSV;
1266 typedef struct D3D11_TEX2DMS_RTV
1268 UINT UnusedField_NothingToDefine;
1269 } D3D11_TEX2DMS_RTV;
1271 typedef struct D3D11_TEX2DMS_SRV
1273 UINT UnusedField_NothingToDefine;
1274 } D3D11_TEX2DMS_SRV;
1276 typedef struct D3D11_TEX3D_RTV
1278 UINT MipSlice;
1279 UINT FirstWSlice;
1280 UINT WSize;
1281 } D3D11_TEX3D_RTV;
1283 typedef struct D3D11_TEX3D_SRV
1285 UINT MostDetailedMip;
1286 UINT MipLevels;
1287 } D3D11_TEX3D_SRV;
1289 typedef struct D3D11_TEX3D_UAV
1291 UINT MipSlice;
1292 UINT FirstWSlice;
1293 UINT WSize;
1294 } D3D11_TEX3D_UAV;
1296 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1298 UINT MostDetailedMip;
1299 UINT MipLevels;
1300 UINT First2DArrayFace;
1301 UINT NumCubes;
1302 } D3D11_TEXCUBE_ARRAY_SRV;
1304 typedef struct D3D11_TEXCUBE_SRV
1306 UINT MostDetailedMip;
1307 UINT MipLevels;
1308 } D3D11_TEXCUBE_SRV;
1310 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1312 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1313 D3D11_TEXTURE_ADDRESS_MIRROR,
1314 D3D11_TEXTURE_ADDRESS_CLAMP,
1315 D3D11_TEXTURE_ADDRESS_BORDER,
1316 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1317 } D3D11_TEXTURE_ADDRESS_MODE;
1319 typedef enum D3D11_UAV_DIMENSION
1321 D3D11_UAV_DIMENSION_UNKNOWN,
1322 D3D11_UAV_DIMENSION_BUFFER,
1323 D3D11_UAV_DIMENSION_TEXTURE1D,
1324 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1325 D3D11_UAV_DIMENSION_TEXTURE2D,
1326 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1327 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1328 } D3D11_UAV_DIMENSION;
1330 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1332 DXGI_FORMAT Format;
1333 D3D11_UAV_DIMENSION ViewDimension;
1335 union
1337 D3D11_BUFFER_UAV Buffer;
1338 D3D11_TEX1D_UAV Texture1D;
1339 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1340 D3D11_TEX2D_UAV Texture2D;
1341 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1342 D3D11_TEX3D_UAV Texture3D;
1344 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1346 typedef enum D3D11_USAGE
1348 D3D11_USAGE_DEFAULT,
1349 D3D11_USAGE_IMMUTABLE,
1350 D3D11_USAGE_DYNAMIC,
1351 D3D11_USAGE_STAGING,
1352 } D3D11_USAGE;
1354 typedef enum D3D11_BIND_FLAG
1356 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1357 D3D11_BIND_INDEX_BUFFER = 0x0002,
1358 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1359 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1360 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1361 D3D11_BIND_RENDER_TARGET = 0x0020,
1362 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1363 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1364 D3D11_BIND_DECODER = 0x0200,
1365 D3D11_BIND_VIDEO_ENCODER = 0x0400
1366 } D3D11_BIND_FLAG;
1368 typedef enum D3D11_CPU_ACCESS_FLAG
1370 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1371 D3D11_CPU_ACCESS_READ = 0x00020000
1372 } D3D11_CPU_ACCESS_FLAG;
1374 typedef struct D3D11_VIEWPORT
1376 FLOAT TopLeftX;
1377 FLOAT TopLeftY;
1378 FLOAT Width;
1379 FLOAT Height;
1380 FLOAT MinDepth;
1381 FLOAT MaxDepth;
1382 } D3D11_VIEWPORT;
1384 typedef enum D3D11_COLOR_WRITE_ENABLE
1386 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1387 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1388 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1389 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1390 D3D11_COLOR_WRITE_ENABLE_ALL =
1391 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1392 } D3D11_COLOR_WRITE_ENABLE;
1394 typedef enum D3D11_FORMAT_SUPPORT
1396 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1397 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1398 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1399 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1400 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1401 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1402 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1403 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1404 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1405 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1406 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1407 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1408 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1409 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1410 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1411 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1412 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1413 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1414 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1415 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1416 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1417 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1418 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1419 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1420 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1421 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1422 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1423 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1424 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1425 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1426 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1427 } D3D11_FORMAT_SUPPORT;
1429 typedef enum D3D11_CLEAR_FLAG
1431 D3D11_CLEAR_DEPTH = 0x0001L,
1432 D3D11_CLEAR_STENCIL = 0x0002L
1433 } D3D11_CLEAR_FLAG;
1435 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1437 BOOL BlendEnable;
1438 D3D11_BLEND SrcBlend;
1439 D3D11_BLEND DestBlend;
1440 D3D11_BLEND_OP BlendOp;
1441 D3D11_BLEND SrcBlendAlpha;
1442 D3D11_BLEND DestBlendAlpha;
1443 D3D11_BLEND_OP BlendOpAlpha;
1444 UINT8 RenderTargetWriteMask;
1445 } D3D11_RENDER_TARGET_BLEND_DESC;
1447 typedef struct D3D11_BLEND_DESC
1449 BOOL AlphaToCoverageEnable;
1450 BOOL IndependentBlendEnable;
1451 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1452 } D3D11_BLEND_DESC;
1454 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1455 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1456 cpp_quote(" CD3D11_BLEND_DESC() {}")
1457 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1458 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1459 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1460 cpp_quote(" IndependentBlendEnable = FALSE;")
1461 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
1462 cpp_quote(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
1463 cpp_quote(" target++) {")
1464 cpp_quote(" target->BlendEnable = FALSE;")
1465 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1466 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1467 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1468 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1469 cpp_quote(" }")
1470 cpp_quote(" }")
1471 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1472 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1473 cpp_quote("};" )
1474 cpp_quote("#endif" )
1476 typedef struct D3D11_BUFFER_DESC
1478 UINT ByteWidth;
1479 D3D11_USAGE Usage;
1480 UINT BindFlags;
1481 UINT CPUAccessFlags;
1482 UINT MiscFlags;
1483 UINT StructureByteStride;
1484 } D3D11_BUFFER_DESC;
1486 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1487 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1488 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1489 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1490 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1491 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1492 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1493 cpp_quote(" ByteWidth = byteWidth;")
1494 cpp_quote(" Usage = usage;")
1495 cpp_quote(" BindFlags = bindFlags;")
1496 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1497 cpp_quote(" MiscFlags = miscFlags;" )
1498 cpp_quote(" StructureByteStride = structureByteStride;")
1499 cpp_quote(" }")
1500 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1501 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1502 cpp_quote("};" )
1503 cpp_quote("#endif" )
1505 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1507 DXGI_FORMAT Format;
1508 D3D11_DSV_DIMENSION ViewDimension;
1509 UINT Flags;
1511 union
1513 D3D11_TEX1D_DSV Texture1D;
1514 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1515 D3D11_TEX2D_DSV Texture2D;
1516 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1517 D3D11_TEX2DMS_DSV Texture2DMS;
1518 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1520 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1522 typedef struct D3D11_DEPTH_STENCILOP_DESC
1524 D3D11_STENCIL_OP StencilFailOp;
1525 D3D11_STENCIL_OP StencilDepthFailOp;
1526 D3D11_STENCIL_OP StencilPassOp;
1527 D3D11_COMPARISON_FUNC StencilFunc;
1528 } D3D11_DEPTH_STENCILOP_DESC;
1530 typedef struct D3D11_DEPTH_STENCIL_DESC
1532 BOOL DepthEnable;
1533 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1534 D3D11_COMPARISON_FUNC DepthFunc;
1535 BOOL StencilEnable;
1536 UINT8 StencilReadMask;
1537 UINT8 StencilWriteMask;
1538 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1539 D3D11_DEPTH_STENCILOP_DESC BackFace;
1540 } D3D11_DEPTH_STENCIL_DESC;
1542 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1543 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1544 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1545 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1546 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1547 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1548 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1549 cpp_quote(" DepthEnable = TRUE;")
1550 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1551 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1552 cpp_quote(" StencilEnable = FALSE;")
1553 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1554 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1555 cpp_quote(" FrontFace = default_op;")
1556 cpp_quote(" BackFace = default_op;")
1557 cpp_quote(" }")
1558 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1559 cpp_quote(" BOOL depth_enable,")
1560 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1561 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1562 cpp_quote(" BOOL stencil_enable,")
1563 cpp_quote(" UINT8 stencil_read_mask,")
1564 cpp_quote(" UINT8 stencil_write_mask,")
1565 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1566 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1567 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1568 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1569 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1570 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1571 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1572 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1573 cpp_quote(" DepthEnable = depth_enable;")
1574 cpp_quote(" DepthWriteMask = depth_write_mask;")
1575 cpp_quote(" DepthFunc = depth_func;")
1576 cpp_quote(" StencilEnable = stencil_enable;")
1577 cpp_quote(" StencilReadMask = stencil_read_mask;")
1578 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1579 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1580 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1581 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1582 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1583 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1584 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1585 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1586 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1587 cpp_quote(" }")
1588 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1589 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1590 cpp_quote("};")
1591 cpp_quote("#endif")
1593 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1595 DXGI_FORMAT Format;
1596 D3D11_RTV_DIMENSION ViewDimension;
1598 union
1600 D3D11_BUFFER_RTV Buffer;
1601 D3D11_TEX1D_RTV Texture1D;
1602 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1603 D3D11_TEX2D_RTV Texture2D;
1604 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1605 D3D11_TEX2DMS_RTV Texture2DMS;
1606 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1607 D3D11_TEX3D_RTV Texture3D;
1609 } D3D11_RENDER_TARGET_VIEW_DESC;
1611 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1612 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1613 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1614 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1615 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1616 cpp_quote(" Format = format;")
1617 cpp_quote(" ViewDimension = dim;")
1618 cpp_quote(" switch(dim) {")
1619 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1620 cpp_quote(" Buffer.FirstElement = mip_slice;")
1621 cpp_quote(" Buffer.NumElements = first_slice;")
1622 cpp_quote(" break;")
1623 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1624 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1625 cpp_quote(" break;")
1626 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1627 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1628 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1629 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1630 cpp_quote(" break;")
1631 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1632 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1633 cpp_quote(" break;")
1634 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1635 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1636 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1637 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1638 cpp_quote(" break;")
1639 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1640 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1641 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1642 cpp_quote(" break;")
1643 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1644 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1645 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1646 cpp_quote(" Texture3D.WSize = array_size;")
1647 cpp_quote(" break;")
1648 cpp_quote(" default:")
1649 cpp_quote(" break;")
1650 cpp_quote(" }")
1651 cpp_quote(" }")
1652 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1653 cpp_quote(" UINT elem_cnt) {")
1654 cpp_quote(" Format = format;")
1655 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1656 cpp_quote(" Buffer.FirstElement = first_elem;")
1657 cpp_quote(" Buffer.NumElements = elem_cnt;")
1658 cpp_quote(" }")
1659 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1660 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1661 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1662 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1663 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1664 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1665 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1666 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1667 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1668 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1669 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1670 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1671 cpp_quote(" return *this;")
1672 cpp_quote(" }")
1673 cpp_quote("};")
1674 cpp_quote("#endif")
1677 typedef struct D3D11_SAMPLER_DESC
1679 D3D11_FILTER Filter;
1680 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1681 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1682 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1683 FLOAT MipLODBias;
1684 UINT MaxAnisotropy;
1685 D3D11_COMPARISON_FUNC ComparisonFunc;
1686 FLOAT BorderColor[4];
1687 FLOAT MinLOD;
1688 FLOAT MaxLOD;
1689 } D3D11_SAMPLER_DESC;
1691 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1692 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1693 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1694 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1695 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1696 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1697 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1698 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1699 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1700 cpp_quote(" MipLODBias = 0;")
1701 cpp_quote(" MaxAnisotropy = 1;")
1702 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1703 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1704 cpp_quote(" MinLOD = -3.402823466e+38f;")
1705 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1706 cpp_quote(" }")
1707 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1708 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1709 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1710 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1711 cpp_quote(" Filter = filter;")
1712 cpp_quote(" AddressU = addressU;")
1713 cpp_quote(" AddressV = addressV;")
1714 cpp_quote(" AddressW = addressW;")
1715 cpp_quote(" MipLODBias = mipLODBias;")
1716 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1717 cpp_quote(" ComparisonFunc = comparisonFunc;")
1718 cpp_quote(" if(borderColor) {")
1719 cpp_quote(" BorderColor[0] = borderColor[0];")
1720 cpp_quote(" BorderColor[1] = borderColor[1];")
1721 cpp_quote(" BorderColor[2] = borderColor[2];")
1722 cpp_quote(" BorderColor[3] = borderColor[3];")
1723 cpp_quote(" }else {")
1724 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1725 cpp_quote(" }")
1726 cpp_quote(" MinLOD = minLOD;")
1727 cpp_quote(" MaxLOD = maxLOD;")
1728 cpp_quote(" }")
1729 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1730 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1731 cpp_quote("};")
1732 cpp_quote("#endif")
1734 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1736 DXGI_FORMAT Format;
1737 D3D11_SRV_DIMENSION ViewDimension;
1739 union
1741 D3D11_BUFFER_SRV Buffer;
1742 D3D11_TEX1D_SRV Texture1D;
1743 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1744 D3D11_TEX2D_SRV Texture2D;
1745 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1746 D3D11_TEX2DMS_SRV Texture2DMS;
1747 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1748 D3D11_TEX3D_SRV Texture3D;
1749 D3D11_TEXCUBE_SRV TextureCube;
1750 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1751 D3D11_BUFFEREX_SRV BufferEx;
1753 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1755 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1756 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1757 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1758 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1759 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1760 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1761 cpp_quote(" Format = format;")
1762 cpp_quote(" ViewDimension = dim;")
1763 cpp_quote(" switch(ViewDimension) {")
1764 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1765 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1766 cpp_quote(" Buffer.NumElements = mip_levels;")
1767 cpp_quote(" break;")
1768 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1769 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1770 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1771 cpp_quote(" break;")
1772 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1773 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1774 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1775 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1776 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1777 cpp_quote(" break;")
1778 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1779 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1780 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1781 cpp_quote(" break;")
1782 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1783 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1784 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1785 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1786 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1787 cpp_quote(" break;")
1788 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1789 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1790 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1791 cpp_quote(" break;")
1792 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1793 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1794 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1795 cpp_quote(" break;")
1796 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1797 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1798 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1799 cpp_quote(" break;")
1800 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1801 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1802 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1803 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1804 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1805 cpp_quote(" break;")
1806 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1807 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1808 cpp_quote(" BufferEx.NumElements = mip_levels;")
1809 cpp_quote(" BufferEx.Flags = flags;")
1810 cpp_quote(" break;")
1811 cpp_quote(" default:")
1812 cpp_quote(" break;")
1813 cpp_quote(" }")
1814 cpp_quote(" }")
1815 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1816 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1817 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1818 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1819 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1820 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1821 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1822 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1823 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1824 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1825 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1826 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1827 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1828 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1829 cpp_quote(" return *this;")
1830 cpp_quote(" }")
1831 cpp_quote("};")
1832 cpp_quote("#endif")
1834 typedef struct D3D11_TEXTURE1D_DESC
1836 UINT Width;
1837 UINT MipLevels;
1838 UINT ArraySize;
1839 DXGI_FORMAT Format;
1840 D3D11_USAGE Usage;
1841 UINT BindFlags;
1842 UINT CPUAccessFlags;
1843 UINT MiscFlags;
1844 } D3D11_TEXTURE1D_DESC;
1846 typedef struct D3D11_TEXTURE2D_DESC
1848 UINT Width;
1849 UINT Height;
1850 UINT MipLevels;
1851 UINT ArraySize;
1852 DXGI_FORMAT Format;
1853 DXGI_SAMPLE_DESC SampleDesc;
1854 D3D11_USAGE Usage;
1855 UINT BindFlags;
1856 UINT CPUAccessFlags;
1857 UINT MiscFlags;
1858 } D3D11_TEXTURE2D_DESC;
1860 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1861 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1862 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1863 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1864 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1865 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1866 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1867 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1868 cpp_quote(" Width = width;")
1869 cpp_quote(" Height = height;")
1870 cpp_quote(" MipLevels = mipLevels;")
1871 cpp_quote(" ArraySize = arraySize;")
1872 cpp_quote(" Format = format;")
1873 cpp_quote(" SampleDesc.Count = sampleCount;")
1874 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1875 cpp_quote(" Usage = usage;")
1876 cpp_quote(" BindFlags = bindFlags;")
1877 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1878 cpp_quote(" MiscFlags = miscFlags;")
1879 cpp_quote(" }" )
1880 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1881 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1882 cpp_quote("};")
1883 cpp_quote("#endif")
1885 typedef struct D3D11_TEXTURE3D_DESC
1887 UINT Width;
1888 UINT Height;
1889 UINT Depth;
1890 UINT MipLevels;
1891 DXGI_FORMAT Format;
1892 D3D11_USAGE Usage;
1893 UINT BindFlags;
1894 UINT CPUAccessFlags;
1895 UINT MiscFlags;
1896 } D3D11_TEXTURE3D_DESC;
1898 typedef struct D3D11_VIDEO_DECODER_DESC
1900 GUID Guid;
1901 UINT SampleWidth;
1902 UINT SampleHeight;
1903 DXGI_FORMAT OutputFormat;
1904 } D3D11_VIDEO_DECODER_DESC;
1906 typedef struct D3D11_VIDEO_DECODER_CONFIG
1908 GUID guidConfigBitstreamEncryption;
1909 GUID guidConfigMBcontrolEncryption;
1910 GUID guidConfigResidDiffEncryption;
1911 UINT ConfigBitstreamRaw;
1912 UINT ConfigMBcontrolRasterOrder;
1913 UINT ConfigResidDiffHost;
1914 UINT ConfigSpatialResid8;
1915 UINT ConfigResid8Subtraction;
1916 UINT ConfigSpatialHost8or9Clipping;
1917 UINT ConfigSpatialResidInterleaved;
1918 UINT ConfigIntraResidUnsigned;
1919 UINT ConfigResidDiffAccelerator;
1920 UINT ConfigHostInverseScan;
1921 UINT ConfigSpecificIDCT;
1922 UINT Config4GroupedCoefs;
1923 USHORT ConfigMinRenderTargetBuffCount;
1924 USHORT ConfigDecoderSpecific;
1925 } D3D11_VIDEO_DECODER_CONFIG;
1927 typedef enum D3D11_VIDEO_FRAME_FORMAT
1929 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1930 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1931 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1932 } D3D11_VIDEO_FRAME_FORMAT;
1934 typedef enum D3D11_VIDEO_USAGE
1936 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1937 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1938 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1939 } D3D11_VIDEO_USAGE;
1941 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1943 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1944 DXGI_RATIONAL InputFrameRate;
1945 UINT InputWidth;
1946 UINT InputHeight;
1947 DXGI_RATIONAL OutputFrameRate;
1948 UINT OutputWidth;
1949 UINT OutputHeight;
1950 D3D11_VIDEO_USAGE Usage;
1951 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1953 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1955 UINT DeviceCaps;
1956 UINT FeatureCaps;
1957 UINT FilterCaps;
1958 UINT InputFormatCaps;
1959 UINT AutoStreamCaps;
1960 UINT StereoCaps;
1961 UINT RateConversionCapsCount;
1962 UINT MaxInputStreams;
1963 UINT MaxStreamStates;
1964 } D3D11_VIDEO_PROCESSOR_CAPS;
1966 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1968 UINT PastFrames;
1969 UINT FutureFrames;
1970 UINT ProcessorCaps;
1971 UINT ITelecineCaps;
1972 UINT CustomRateCount;
1973 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1975 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1977 DXGI_RATIONAL CustomRate;
1978 UINT OutputFrames;
1979 BOOL InputInterlaced;
1980 UINT InputFramesOrFields;
1981 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1983 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1985 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1986 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1987 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1988 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1989 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1990 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1991 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1992 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1993 } D3D11_VIDEO_PROCESSOR_FILTER;
1995 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1997 int Minimum;
1998 int Maximum;
1999 int Default;
2000 float Multiplier;
2001 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
2003 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
2005 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
2006 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
2007 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
2008 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
2010 typedef enum D3D11_VDOV_DIMENSION
2012 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
2013 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
2014 } D3D11_VDOV_DIMENSION;
2016 typedef struct D3D11_TEX2D_VDOV
2018 UINT ArraySlice;
2019 } D3D11_TEX2D_VDOV;
2021 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
2023 GUID DecodeProfile;
2024 D3D11_VDOV_DIMENSION ViewDimension;
2025 union {
2026 D3D11_TEX2D_VDOV Texture2D;
2028 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
2030 typedef enum D3D11_VPIV_DIMENSION
2032 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
2033 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
2034 } D3D11_VPIV_DIMENSION;
2036 typedef struct D3D11_TEX2D_VPIV
2038 UINT MipSlice;
2039 UINT ArraySlice;
2040 } D3D11_TEX2D_VPIV;
2042 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
2044 UINT FourCC;
2045 D3D11_VPIV_DIMENSION ViewDimension;
2046 union {
2047 D3D11_TEX2D_VPIV Texture2D;
2049 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
2051 typedef enum D3D11_VPOV_DIMENSION
2053 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
2054 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
2055 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
2056 } D3D11_VPOV_DIMENSION;
2058 typedef struct D3D11_TEX2D_VPOV
2060 UINT MipSlice;
2061 } D3D11_TEX2D_VPOV;
2063 typedef struct D3D11_TEX2D_ARRAY_VPOV
2065 UINT MipSlice;
2066 UINT FirstArraySlice;
2067 UINT ArraySize;
2068 } D3D11_TEX2D_ARRAY_VPOV;
2070 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
2072 D3D11_VPOV_DIMENSION ViewDimension;
2073 union {
2074 D3D11_TEX2D_VPOV Texture2D;
2075 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
2077 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
2079 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
2081 UINT Caps;
2082 UINT KeyExchangeTypeCount;
2083 UINT BlockAlignmentSize;
2084 ULONGLONG ProtectedMemorySize;
2085 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
2087 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
2089 UINT NumEncryptedBytesAtBeginning;
2090 UINT NumBytesInSkipPattern;
2091 UINT NumBytesInEncryptPattern;
2092 } D3D11_ENCRYPTED_BLOCK_INFO;
2094 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2096 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
2097 UINT BufferIndex;
2098 UINT DataOffset;
2099 UINT DataSize;
2100 UINT FirstMBaddress;
2101 UINT NumMBsInBuffer;
2102 UINT Width;
2103 UINT Height;
2104 UINT Stride;
2105 UINT ReservedBits;
2106 void *pIV;
2107 UINT IVSize;
2108 BOOL PartialEncryption;
2109 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2110 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2112 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2114 UINT Function;
2115 void *pPrivateInputData;
2116 UINT PrivateInputDataSize;
2117 void *pPrivateOutputData;
2118 UINT PrivateOutputDataSize;
2119 UINT ResourceCount;
2120 ID3D11Resource **ppResourceList;
2121 } D3D11_VIDEO_DECODER_EXTENSION;
2123 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2125 float Y;
2126 float Cb;
2127 float Cr;
2128 float A;
2129 } D3D11_VIDEO_COLOR_YCbCrA;
2131 typedef struct D3D11_VIDEO_COLOR_RGBA
2133 float R;
2134 float G;
2135 float B;
2136 float A;
2137 } D3D11_VIDEO_COLOR_RGBA;
2139 typedef struct D3D11_VIDEO_COLOR
2141 union
2143 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2144 D3D11_VIDEO_COLOR_RGBA RGBA;
2146 } D3D11_VIDEO_COLOR;
2148 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2150 UINT Usage : 1;
2151 UINT RGB_Range : 1;
2152 UINT YCbCr_Matrix : 1;
2153 UINT YCbCr_xvYCC : 1;
2154 UINT Nominal_Range : 2;
2155 UINT Reserved : 26;
2156 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2158 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2160 BOOL Enable;
2161 UINT OutputIndex;
2162 UINT InputFrameOrField;
2163 UINT PastFrames;
2164 UINT FutureFrames;
2165 ID3D11VideoProcessorInputView **ppPastSurfaces;
2166 ID3D11VideoProcessorInputView *pInputSurface;
2167 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2168 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2169 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2170 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2171 } D3D11_VIDEO_PROCESSOR_STREAM;
2173 typedef struct D3D11_OMAC
2175 BYTE Omac[D3D11_OMAC_SIZE];
2176 } D3D11_OMAC;
2178 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2180 D3D11_OMAC omac;
2181 GUID ConfigureType;
2182 HANDLE hChannel;
2183 UINT SequenceNumber;
2184 HRESULT ReturnCode;
2185 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2187 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2189 UINT64 Frequency;
2190 BOOL Disjoint;
2191 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2193 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2195 UINT64 IAVertices;
2196 UINT64 IAPrimitives;
2197 UINT64 VSInvocations;
2198 UINT64 GSInvocations;
2199 UINT64 GSPrimitives;
2200 UINT64 CInvocations;
2201 UINT64 CPrimitives;
2202 UINT64 PSInvocations;
2203 UINT64 HSInvocations;
2204 UINT64 DSInvocations;
2205 UINT64 CSInvocations;
2206 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2208 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2210 UINT VertexCountPerInstance;
2211 UINT InstanceCount;
2212 UINT StartVertexLocation;
2213 UINT StartInstanceLocation;
2214 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2216 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2218 UINT IndexCountPerInstance;
2219 UINT InstanceCount;
2220 UINT StartIndexLocation;
2221 INT BaseVertexLocation;
2222 UINT StartInstanceLocation;
2223 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2225 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2227 D3D11_OMAC omac;
2228 GUID ConfigureType;
2229 HANDLE hChannel;
2230 UINT SequenceNumber;
2231 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2233 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2235 GUID QueryType;
2236 HANDLE hChannel;
2237 UINT SequenceNumber;
2238 } D3D11_AUTHENTICATED_QUERY_INPUT;
2240 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2242 D3D11_OMAC omac;
2243 GUID QueryType;
2244 HANDLE hChannel;
2245 UINT SequenceNumber;
2246 HRESULT ReturnCode;
2247 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2249 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2251 struct
2253 UINT ProtectionEnabled : 1;
2254 UINT OverlayOrFullscreenRequired : 1;
2255 UINT Reserved : 30;
2256 } Flags;
2257 UINT Value;
2258 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2260 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2262 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2263 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2264 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2266 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2268 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2269 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2270 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2272 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2274 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2275 HANDLE DeviceHandle;
2276 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2278 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2280 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2281 HANDLE DecoderHandle;
2282 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2284 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2286 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2287 HANDLE DecoderHandle;
2288 HANDLE CryptoSessionHandle;
2289 HANDLE DeviceHandle;
2290 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2292 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2294 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2295 UINT RestrictedSharedResourceProcessCount;
2296 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2298 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2300 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2301 UINT ProcessIndex;
2302 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2304 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2306 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2307 UINT ProcessIndex;
2308 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2309 HANDLE ProcessHandle;
2310 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2312 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2314 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2315 UINT UnrestrictedProtectedSharedResourceCount;
2316 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2318 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2320 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2321 HANDLE DeviceHandle;
2322 HANDLE CryptoSessionHandle;
2323 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2325 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2327 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2328 HANDLE DeviceHandle;
2329 HANDLE CryptoSessionHandle;
2330 UINT OutputIDCount;
2331 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2333 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2335 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2336 HANDLE DeviceHandle;
2337 HANDLE CryptoSessionHandle;
2338 UINT OutputIDIndex;
2339 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2341 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2343 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2344 HANDLE DeviceHandle;
2345 HANDLE CryptoSessionHandle;
2346 UINT OutputIDIndex;
2347 UINT64 OutputID;
2348 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2350 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2352 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2353 D3D11_BUS_TYPE BusType;
2354 BOOL AccessibleInContiguousBlocks;
2355 BOOL AccessibleInNonContiguousBlocks;
2356 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2358 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2360 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2361 UINT EncryptionGuidCount;
2362 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2364 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2366 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2367 UINT EncryptionGuidIndex;
2368 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2370 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2372 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2373 UINT EncryptionGuidIndex;
2374 GUID EncryptionGuid;
2375 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2377 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2379 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2380 GUID EncryptionGuid;
2381 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2383 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2385 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2386 UINT StartSequenceQuery;
2387 UINT StartSequenceConfigure;
2388 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2390 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2392 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2393 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2394 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2396 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2398 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2399 HANDLE DecoderHandle;
2400 HANDLE CryptoSessionHandle;
2401 HANDLE DeviceHandle;
2402 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2404 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2406 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2407 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2408 HANDLE ProcessHandle;
2409 BOOL AllowAccess;
2410 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2412 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2414 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2415 GUID EncryptionGuid;
2416 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2419 object,
2420 local,
2421 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2423 interface ID3D11DeviceChild : IUnknown
2425 void GetDevice(
2426 [out] ID3D11Device **ppDevice);
2427 HRESULT GetPrivateData(
2428 [in] REFGUID guid,
2429 [in, out] UINT *pDataSize,
2430 [out] void *pData);
2431 HRESULT SetPrivateData(
2432 [in] REFGUID guid,
2433 [in] UINT DataSize,
2434 [in] const void *pData);
2435 HRESULT SetPrivateDataInterface(
2436 [in] REFGUID guid,
2437 [in] const IUnknown *pData);
2441 object,
2442 local,
2443 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2445 interface ID3D11Asynchronous : ID3D11DeviceChild
2447 UINT GetDataSize();
2451 object,
2452 local,
2453 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2455 interface ID3D11Query : ID3D11Asynchronous
2457 void GetDesc(
2458 [out] D3D11_QUERY_DESC *pDesc);
2462 object,
2463 local,
2464 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2466 interface ID3D11Resource : ID3D11DeviceChild
2468 void GetType(
2469 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2470 void SetEvictionPriority(
2471 [in] UINT EvictionPriority);
2472 UINT GetEvictionPriority();
2476 object,
2477 local,
2478 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2480 interface ID3D11View : ID3D11DeviceChild
2482 void GetResource(
2483 [out] ID3D11Resource **ppResource);
2487 object,
2488 local,
2489 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2491 interface ID3D11BlendState : ID3D11DeviceChild
2493 void GetDesc(
2494 [out] D3D11_BLEND_DESC *pDesc);
2498 object,
2499 local,
2500 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2502 interface ID3D11Buffer : ID3D11Resource
2504 void GetDesc(
2505 [out] D3D11_BUFFER_DESC *pDesc);
2509 object,
2510 local,
2511 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2513 interface ID3D11ClassInstance : ID3D11DeviceChild
2515 void GetClassLinkage(
2516 [out] ID3D11ClassLinkage **ppLinkage);
2517 void GetDesc(
2518 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2519 void GetInstanceName(
2520 [out] LPSTR pInstanceName,
2521 [in, out] SIZE_T *pBufferLength);
2522 void GetTypeName(
2523 [out] LPSTR pTypeName,
2524 [in, out] SIZE_T *pBufferLength);
2528 object,
2529 local,
2530 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2532 interface ID3D11ClassLinkage : ID3D11DeviceChild
2534 HRESULT GetClassInstance(
2535 [in] LPCSTR pClassInstanceName,
2536 [in] UINT InstanceIndex,
2537 [out] ID3D11ClassInstance **ppInstance);
2538 HRESULT CreateClassInstance(
2539 [in] LPCSTR pClassTypeName,
2540 [in] UINT ConstantBufferOffset,
2541 [in] UINT ConstantVectorOffset,
2542 [in] UINT TextureOffset,
2543 [in] UINT SamplerOffset,
2544 [out] ID3D11ClassInstance **ppInstance);
2548 object,
2549 local,
2550 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2552 interface ID3D11CommandList : ID3D11DeviceChild
2554 UINT GetContextFlags();
2558 object,
2559 local,
2560 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2562 interface ID3D11ComputeShader : ID3D11DeviceChild
2567 object,
2568 local,
2569 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2571 interface ID3D11Counter : ID3D11Asynchronous
2573 void GetDesc(
2574 [out] D3D11_COUNTER_DESC *pDesc);
2578 object,
2579 local,
2580 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2582 interface ID3D11DepthStencilState : ID3D11DeviceChild
2584 void GetDesc(
2585 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2589 object,
2590 local,
2591 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2593 interface ID3D11DepthStencilView : ID3D11View
2595 void GetDesc(
2596 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2600 object,
2601 local,
2602 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2604 interface ID3D11DomainShader : ID3D11DeviceChild
2609 object,
2610 local,
2611 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2613 interface ID3D11GeometryShader : ID3D11DeviceChild
2618 object,
2619 local,
2620 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2622 interface ID3D11HullShader : ID3D11DeviceChild
2627 object,
2628 local,
2629 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2631 interface ID3D11InputLayout : ID3D11DeviceChild
2636 object,
2637 local,
2638 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2640 interface ID3D11PixelShader : ID3D11DeviceChild
2645 object,
2646 local,
2647 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2649 interface ID3D11Predicate : ID3D11Query
2654 object,
2655 local,
2656 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2658 interface ID3D11RasterizerState : ID3D11DeviceChild
2660 void GetDesc(
2661 [out] D3D11_RASTERIZER_DESC *pDesc);
2665 object,
2666 local,
2667 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2669 interface ID3D11RenderTargetView : ID3D11View
2671 void GetDesc(
2672 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2676 object,
2677 local,
2678 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2680 interface ID3D11SamplerState : ID3D11DeviceChild
2682 void GetDesc(
2683 [out] D3D11_SAMPLER_DESC *pDesc);
2687 object,
2688 local,
2689 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2691 interface ID3D11ShaderResourceView : ID3D11View
2693 void GetDesc(
2694 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2698 object,
2699 local,
2700 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2702 interface ID3D11Texture1D : ID3D11Resource
2704 void GetDesc(
2705 [out] D3D11_TEXTURE1D_DESC *pDesc);
2709 object,
2710 local,
2711 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2713 interface ID3D11Texture2D : ID3D11Resource
2715 void GetDesc(
2716 [out] D3D11_TEXTURE2D_DESC *pDesc);
2720 object,
2721 local,
2722 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2724 interface ID3D11Texture3D : ID3D11Resource
2726 void GetDesc(
2727 [out] D3D11_TEXTURE3D_DESC *pDesc);
2731 object,
2732 local,
2733 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2735 interface ID3D11UnorderedAccessView : ID3D11View
2737 void GetDesc(
2738 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2742 object,
2743 local,
2744 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2746 interface ID3D11VertexShader : ID3D11DeviceChild
2751 object,
2752 local,
2753 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2755 interface ID3D11DeviceContext : ID3D11DeviceChild
2757 void VSSetConstantBuffers(
2758 [in] UINT StartSlot,
2759 [in] UINT NumBuffers,
2760 [in] ID3D11Buffer *const *ppConstantBuffers);
2761 void PSSetShaderResources(
2762 [in] UINT StartSlot,
2763 [in] UINT NumViews,
2764 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2765 void PSSetShader(
2766 [in] ID3D11PixelShader *pPixelShader,
2767 [in] ID3D11ClassInstance *const *ppClassInstances,
2768 UINT NumClassInstances);
2769 void PSSetSamplers(
2770 [in] UINT StartSlot,
2771 [in] UINT NumSamplers,
2772 [in] ID3D11SamplerState *const *ppSamplers);
2773 void VSSetShader(
2774 [in] ID3D11VertexShader *pVertexShader,
2775 [in] ID3D11ClassInstance *const *ppClassInstances,
2776 UINT NumClassInstances);
2777 void DrawIndexed(
2778 [in] UINT IndexCount,
2779 [in] UINT StartIndexLocation,
2780 [in] INT BaseVertexLocation);
2781 void Draw(
2782 [in] UINT VertexCount,
2783 [in] UINT StartVertexLocation);
2784 HRESULT Map(
2785 [in] ID3D11Resource *pResource,
2786 [in] UINT Subresource,
2787 [in] D3D11_MAP MapType,
2788 [in] UINT MapFlags,
2789 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2790 void Unmap(
2791 [in] ID3D11Resource *pResource,
2792 [in] UINT Subresource);
2793 void PSSetConstantBuffers(
2794 [in] UINT StartSlot,
2795 [in] UINT NumBuffers,
2796 [in] ID3D11Buffer *const *ppConstantBuffers);
2797 void IASetInputLayout(
2798 [in] ID3D11InputLayout *pInputLayout);
2799 void IASetVertexBuffers(
2800 [in] UINT StartSlot,
2801 [in] UINT NumBuffers,
2802 [in] ID3D11Buffer *const *ppVertexBuffers,
2803 [in] const UINT *pStrides,
2804 [in] const UINT *pOffsets);
2805 void IASetIndexBuffer(
2806 [in] ID3D11Buffer *pIndexBuffer,
2807 [in] DXGI_FORMAT Format,
2808 [in] UINT Offset);
2809 void DrawIndexedInstanced(
2810 [in] UINT IndexCountPerInstance,
2811 [in] UINT InstanceCount,
2812 [in] UINT StartIndexLocation,
2813 [in] INT BaseVertexLocation,
2814 [in] UINT StartInstanceLocation);
2815 void DrawInstanced(
2816 [in] UINT VertexCountPerInstance,
2817 [in] UINT InstanceCount,
2818 [in] UINT StartVertexLocation,
2819 [in] UINT StartInstanceLocation);
2820 void GSSetConstantBuffers(
2821 [in] UINT StartSlot,
2822 [in] UINT NumBuffers,
2823 [in] ID3D11Buffer *const *ppConstantBuffers);
2824 void GSSetShader(
2825 [in] ID3D11GeometryShader *pShader,
2826 [in] ID3D11ClassInstance *const *ppClassInstances,
2827 UINT NumClassInstances);
2828 void IASetPrimitiveTopology(
2829 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2830 void VSSetShaderResources(
2831 [in] UINT StartSlot,
2832 [in] UINT NumViews,
2833 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2834 void VSSetSamplers(
2835 [in] UINT StartSlot,
2836 [in] UINT NumSamplers,
2837 [in] ID3D11SamplerState *const *ppSamplers);
2838 void Begin(
2839 [in] ID3D11Asynchronous *pAsync);
2840 void End(
2841 [in] ID3D11Asynchronous *pAsync);
2842 HRESULT GetData(
2843 [in] ID3D11Asynchronous *pAsync,
2844 [in] void *pData,
2845 [in] UINT DataSize,
2846 [in] UINT GetDataFlags);
2847 void SetPredication(
2848 [in] ID3D11Predicate *pPredicate,
2849 [in] BOOL PredicateValue);
2850 void GSSetShaderResources(
2851 [in] UINT StartSlot,
2852 [in] UINT NumViews,
2853 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2854 void GSSetSamplers(
2855 [in] UINT StartSlot,
2856 [in] UINT NumSamplers,
2857 [in] ID3D11SamplerState *const *ppSamplers);
2858 void OMSetRenderTargets(
2859 [in] UINT NumViews,
2860 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2861 [in] ID3D11DepthStencilView *pDepthStencilView);
2862 void OMSetRenderTargetsAndUnorderedAccessViews(
2863 [in] UINT NumRTVs,
2864 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2865 [in] ID3D11DepthStencilView *pDepthStencilView,
2866 [in] UINT UAVStartSlot,
2867 [in] UINT NumUAVs,
2868 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2869 [in] const UINT *pUAVInitialCounts);
2870 void OMSetBlendState(
2871 [in] ID3D11BlendState *pBlendState,
2872 [in] const FLOAT BlendFactor[4],
2873 [in] UINT SampleMask);
2874 void OMSetDepthStencilState(
2875 [in] ID3D11DepthStencilState *pDepthStencilState,
2876 [in] UINT StencilRef);
2877 void SOSetTargets(
2878 [in] UINT NumBuffers,
2879 [in] ID3D11Buffer *const *ppSOTargets,
2880 [in] const UINT *pOffsets);
2881 void DrawAuto();
2882 void DrawIndexedInstancedIndirect(
2883 [in] ID3D11Buffer *pBufferForArgs,
2884 [in] UINT AlignedByteOffsetForArgs);
2885 void DrawInstancedIndirect(
2886 [in] ID3D11Buffer *pBufferForArgs,
2887 [in] UINT AlignedByteOffsetForArgs);
2888 void Dispatch(
2889 [in] UINT ThreadGroupCountX,
2890 [in] UINT ThreadGroupCountY,
2891 [in] UINT ThreadGroupCountZ);
2892 void DispatchIndirect(
2893 [in] ID3D11Buffer *pBufferForArgs,
2894 [in] UINT AlignedByteOffsetForArgs);
2895 void RSSetState(
2896 [in] ID3D11RasterizerState *pRasterizerState);
2897 void RSSetViewports(
2898 [in] UINT NumViewports,
2899 [in] const D3D11_VIEWPORT *pViewports);
2900 void RSSetScissorRects(
2901 [in] UINT NumRects,
2902 [in] const D3D11_RECT *pRects);
2903 void CopySubresourceRegion(
2904 [in] ID3D11Resource *pDstResource,
2905 [in] UINT DstSubresource,
2906 [in] UINT DstX,
2907 [in] UINT DstY,
2908 [in] UINT DstZ,
2909 [in] ID3D11Resource *pSrcResource,
2910 [in] UINT SrcSubresource,
2911 [in] const D3D11_BOX *pSrcBox);
2912 void CopyResource(
2913 [in] ID3D11Resource *pDstResource,
2914 [in] ID3D11Resource *pSrcResource);
2915 void UpdateSubresource(
2916 [in] ID3D11Resource *pDstResource,
2917 [in] UINT DstSubresource,
2918 [in] const D3D11_BOX *pDstBox,
2919 [in] const void *pSrcData,
2920 [in] UINT SrcRowPitch,
2921 [in] UINT SrcDepthPitch);
2922 void CopyStructureCount(
2923 [in] ID3D11Buffer *pDstBuffer,
2924 [in] UINT DstAlignedByteOffset,
2925 [in] ID3D11UnorderedAccessView *pSrcView);
2926 void ClearRenderTargetView(
2927 [in] ID3D11RenderTargetView *pRenderTargetView,
2928 [in] const FLOAT ColorRGBA[4]);
2929 void ClearUnorderedAccessViewUint(
2930 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2931 [in] const UINT Values[4]);
2932 void ClearUnorderedAccessViewFloat(
2933 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2934 [in] const FLOAT Values[4]);
2935 void ClearDepthStencilView(
2936 [in] ID3D11DepthStencilView *pDepthStencilView,
2937 [in] UINT ClearFlags,
2938 [in] FLOAT Depth,
2939 [in] UINT8 Stencil);
2940 void GenerateMips(
2941 [in] ID3D11ShaderResourceView *pShaderResourceView);
2942 void SetResourceMinLOD(
2943 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2944 FLOAT GetResourceMinLOD(
2945 [in] ID3D11Resource *pResource);
2946 void ResolveSubresource(
2947 [in] ID3D11Resource *pDstResource,
2948 [in] UINT DstSubresource,
2949 [in] ID3D11Resource *pSrcResource,
2950 [in] UINT SrcSubresource,
2951 [in] DXGI_FORMAT Format);
2952 void ExecuteCommandList(
2953 [in] ID3D11CommandList *pCommandList,
2954 BOOL RestoreContextState);
2955 void HSSetShaderResources(
2956 [in] UINT StartSlot,
2957 [in] UINT NumViews,
2958 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2959 void HSSetShader(
2960 [in] ID3D11HullShader *pHullShader,
2961 [in] ID3D11ClassInstance *const *ppClassInstances,
2962 UINT NumClassInstances);
2963 void HSSetSamplers(
2964 [in] UINT StartSlot,
2965 [in] UINT NumSamplers,
2966 [in] ID3D11SamplerState *const *ppSamplers);
2967 void HSSetConstantBuffers(
2968 [in] UINT StartSlot,
2969 [in] UINT NumBuffers,
2970 [in] ID3D11Buffer *const *ppConstantBuffers);
2971 void DSSetShaderResources(
2972 [in] UINT StartSlot,
2973 [in] UINT NumViews,
2974 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2975 void DSSetShader(
2976 [in] ID3D11DomainShader *pDomainShader,
2977 [in] ID3D11ClassInstance *const *ppClassInstances,
2978 UINT NumClassInstances);
2979 void DSSetSamplers(
2980 [in] UINT StartSlot,
2981 [in] UINT NumSamplers,
2982 [in] ID3D11SamplerState *const *ppSamplers);
2983 void DSSetConstantBuffers(
2984 [in] UINT StartSlot,
2985 [in] UINT NumBuffers,
2986 [in] ID3D11Buffer *const *ppConstantBuffers);
2987 void CSSetShaderResources(
2988 [in] UINT StartSlot,
2989 [in] UINT NumViews,
2990 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2991 void CSSetUnorderedAccessViews(
2992 [in] UINT StartSlot,
2993 [in] UINT NumUAVs,
2994 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2995 [in] const UINT *pUAVInitialCounts);
2996 void CSSetShader(
2997 [in] ID3D11ComputeShader *pComputeShader,
2998 [in] ID3D11ClassInstance *const *ppClassInstances,
2999 UINT NumClassInstances);
3000 void CSSetSamplers(
3001 [in] UINT StartSlot,
3002 [in] UINT NumSamplers,
3003 [in] ID3D11SamplerState *const *ppSamplers);
3004 void CSSetConstantBuffers(
3005 [in] UINT StartSlot,
3006 [in] UINT NumBuffers,
3007 [in] ID3D11Buffer *const *ppConstantBuffers);
3008 void VSGetConstantBuffers(
3009 [in] UINT StartSlot,
3010 [in] UINT NumBuffers,
3011 [out] ID3D11Buffer **ppConstantBuffers);
3012 void PSGetShaderResources(
3013 [in] UINT StartSlot,
3014 [in] UINT NumViews,
3015 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3016 void PSGetShader(
3017 [out] ID3D11PixelShader **ppPixelShader,
3018 [out] ID3D11ClassInstance **ppClassInstances,
3019 [in, out] UINT *pNumClassInstances);
3020 void PSGetSamplers(
3021 [in] UINT StartSlot,
3022 [in] UINT NumSamplers,
3023 [out] ID3D11SamplerState **ppSamplers);
3024 void VSGetShader(
3025 [out] ID3D11VertexShader **ppVertexShader,
3026 [out] ID3D11ClassInstance **ppClassInstances,
3027 [in, out] UINT *pNumClassInstances);
3028 void PSGetConstantBuffers(
3029 [in] UINT StartSlot,
3030 [in] UINT NumBuffers,
3031 [out] ID3D11Buffer **ppConstantBuffers);
3032 void IAGetInputLayout(
3033 [out] ID3D11InputLayout **ppInputLayout);
3034 void IAGetVertexBuffers(
3035 [in] UINT StartSlot,
3036 [in] UINT NumBuffers,
3037 [out] ID3D11Buffer **ppVertexBuffers,
3038 [out] UINT *pStrides,
3039 [out] UINT *pOffsets);
3040 void IAGetIndexBuffer(
3041 [out] ID3D11Buffer **pIndexBuffer,
3042 [out] DXGI_FORMAT* Format,
3043 [out] UINT* Offset);
3044 void GSGetConstantBuffers(
3045 [in] UINT StartSlot,
3046 [in] UINT NumBuffers,
3047 [out] ID3D11Buffer **ppConstantBuffers);
3048 void GSGetShader(
3049 [out] ID3D11GeometryShader **ppGeometryShader,
3050 [out] ID3D11ClassInstance **ppClassInstances,
3051 [in, out] UINT *pNumClassInstances);
3052 void IAGetPrimitiveTopology(
3053 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
3054 void VSGetShaderResources(
3055 [in] UINT StartSlot,
3056 [in] UINT NumViews,
3057 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3058 void VSGetSamplers(
3059 [in] UINT StartSlot,
3060 [in] UINT NumSamplers,
3061 [out] ID3D11SamplerState **ppSamplers);
3062 void GetPredication(
3063 [out] ID3D11Predicate **ppPredicate,
3064 [out] BOOL *pPredicateValue);
3065 void GSGetShaderResources(
3066 [in] UINT StartSlot,
3067 [in] UINT NumViews,
3068 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3069 void GSGetSamplers(
3070 [in] UINT StartSlot,
3071 [in] UINT NumSamplers,
3072 [out] ID3D11SamplerState **ppSamplers);
3073 void OMGetRenderTargets(
3074 [in] UINT NumViews,
3075 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3076 [out] ID3D11DepthStencilView **ppDepthStencilView);
3077 void OMGetRenderTargetsAndUnorderedAccessViews(
3078 [in] UINT NumRTVs,
3079 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3080 [out] ID3D11DepthStencilView **ppDepthStencilView,
3081 [in] UINT UAVStartSlot,
3082 [in] UINT NumUAVs,
3083 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3084 void OMGetBlendState(
3085 [out] ID3D11BlendState **ppBlendState,
3086 [out] FLOAT BlendFactor[4],
3087 [out] UINT *pSampleMask);
3088 void OMGetDepthStencilState(
3089 [out] ID3D11DepthStencilState **ppDepthStencilState,
3090 [out] UINT *pStencilRef);
3091 void SOGetTargets(
3092 [in] UINT NumBuffers,
3093 [out] ID3D11Buffer **ppSOTargets);
3094 void RSGetState(
3095 [out] ID3D11RasterizerState **ppRasterizerState);
3096 void RSGetViewports(
3097 [in, out] UINT *pNumViewports,
3098 [out] D3D11_VIEWPORT *pViewports);
3099 void RSGetScissorRects(
3100 [in, out] UINT *pNumRects,
3101 [out] D3D11_RECT *pRects);
3102 void HSGetShaderResources(
3103 [in] UINT StartSlot,
3104 [in] UINT NumViews,
3105 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3106 void HSGetShader(
3107 [out] ID3D11HullShader **ppHullShader,
3108 [out] ID3D11ClassInstance **ppClassInstances,
3109 [in, out] UINT *pNumClassInstances);
3110 void HSGetSamplers(
3111 [in] UINT StartSlot,
3112 [in] UINT NumSamplers,
3113 [out] ID3D11SamplerState **ppSamplers);
3114 void HSGetConstantBuffers(
3115 [in] UINT StartSlot,
3116 [in] UINT NumBuffers,
3117 [out] ID3D11Buffer **ppConstantBuffers);
3118 void DSGetShaderResources(
3119 [in] UINT StartSlot,
3120 [in] UINT NumViews,
3121 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3122 void DSGetShader(
3123 [out] ID3D11DomainShader **ppDomainShader,
3124 [out] ID3D11ClassInstance **ppClassInstances,
3125 [in, out] UINT *pNumClassInstances);
3126 void DSGetSamplers(
3127 [in] UINT StartSlot,
3128 [in] UINT NumSamplers,
3129 [out] ID3D11SamplerState **ppSamplers);
3130 void DSGetConstantBuffers(
3131 [in] UINT StartSlot,
3132 [in] UINT NumBuffers,
3133 [out] ID3D11Buffer **ppConstantBuffers);
3134 void CSGetShaderResources(
3135 [in] UINT StartSlot,
3136 [in] UINT NumViews,
3137 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3138 void CSGetUnorderedAccessViews(
3139 [in] UINT StartSlot,
3140 [in] UINT NumUAVs,
3141 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3142 void CSGetShader(
3143 [out] ID3D11ComputeShader **ppComputeShader,
3144 [out] ID3D11ClassInstance **ppClassInstances,
3145 [in, out] UINT *pNumClassInstances);
3146 void CSGetSamplers(
3147 [in] UINT StartSlot,
3148 [in] UINT NumSamplers,
3149 [out] ID3D11SamplerState **ppSamplers);
3150 void CSGetConstantBuffers(
3151 [in] UINT StartSlot,
3152 [in] UINT NumBuffers,
3153 [out] ID3D11Buffer **ppConstantBuffers);
3154 void ClearState();
3155 void Flush();
3156 D3D11_DEVICE_CONTEXT_TYPE GetType();
3157 UINT GetContextFlags();
3158 HRESULT FinishCommandList(
3159 BOOL RestoreDeferredContextState,
3160 [out] ID3D11CommandList **ppCommandList);
3164 object,
3165 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3166 local,
3167 pointer_default(unique)
3169 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3171 HRESULT GetCertificateSize(
3172 UINT *pCertificateSize);
3173 HRESULT GetCertificate(
3174 UINT CertificateSize,
3175 BYTE *pCertificate);
3176 void GetChannelHandle(
3177 HANDLE *pChannelHandle);
3181 object,
3182 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3183 local,
3184 pointer_default(unique)
3186 interface ID3D11CryptoSession : ID3D11DeviceChild
3188 void GetCryptoType(
3189 GUID *pCryptoType);
3190 void GetDecoderProfile(
3191 GUID *pDecoderProfile);
3192 HRESULT GetCertificateSize(
3193 UINT *pCertificateSize);
3194 HRESULT GetCertificate(
3195 UINT CertificateSize,
3196 BYTE *pCertificate);
3197 void GetCryptoSessionHandle(
3198 HANDLE *pCryptoSessionHandle);
3202 object,
3203 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3204 local,
3205 pointer_default(unique)
3207 interface ID3D11VideoDecoder : ID3D11DeviceChild
3209 HRESULT GetCreationParameters(
3210 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3211 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3212 HRESULT GetDriverHandle(
3213 HANDLE *pDriverHandle);
3217 object,
3218 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3219 local,
3220 pointer_default(unique)
3222 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3224 HRESULT GetVideoProcessorContentDesc(
3225 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3226 HRESULT CheckVideoProcessorFormat(
3227 DXGI_FORMAT Format,
3228 UINT *pFlags);
3229 HRESULT GetVideoProcessorCaps(
3230 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3231 HRESULT GetVideoProcessorRateConversionCaps(
3232 UINT TypeIndex,
3233 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3234 HRESULT GetVideoProcessorCustomRate(
3235 UINT TypeIndex,
3236 UINT CustomRateIndex,
3237 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3238 HRESULT GetVideoProcessorFilterRange(
3239 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3240 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3244 object,
3245 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3246 local,
3247 pointer_default(unique)
3249 interface ID3D11VideoProcessor : ID3D11DeviceChild
3251 void GetContentDesc(
3252 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3253 void GetRateConversionCaps(
3254 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3258 object,
3259 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3260 local,
3261 pointer_default(unique)
3263 interface ID3D11VideoDecoderOutputView : ID3D11View
3265 void GetDesc(
3266 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3270 object,
3271 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3272 local,
3273 pointer_default(unique)
3275 interface ID3D11VideoProcessorInputView : ID3D11View
3277 void GetDesc(
3278 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3282 object,
3283 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3284 local,
3285 pointer_default(unique)
3287 interface ID3D11VideoProcessorOutputView : ID3D11View
3289 void GetDesc(
3290 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3294 object,
3295 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3296 local,
3297 pointer_default(unique)
3299 interface ID3D11VideoDevice : IUnknown
3301 HRESULT CreateVideoDecoder(
3302 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3303 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3304 ID3D11VideoDecoder **ppDecoder);
3305 HRESULT CreateVideoProcessor(
3306 ID3D11VideoProcessorEnumerator *pEnum,
3307 UINT RateConversionIndex,
3308 ID3D11VideoProcessor **ppVideoProcessor);
3309 HRESULT CreateAuthenticatedChannel(
3310 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3311 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3312 HRESULT CreateCryptoSession(
3313 const GUID *pCryptoType,
3314 const GUID *pDecoderProfile,
3315 const GUID *pKeyExchangeType,
3316 ID3D11CryptoSession **ppCryptoSession);
3317 HRESULT CreateVideoDecoderOutputView(
3318 ID3D11Resource *pResource,
3319 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3320 ID3D11VideoDecoderOutputView **ppVDOVView);
3321 HRESULT CreateVideoProcessorInputView(
3322 ID3D11Resource *pResource,
3323 ID3D11VideoProcessorEnumerator *pEnum,
3324 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3325 ID3D11VideoProcessorInputView **ppVPIView);
3326 HRESULT CreateVideoProcessorOutputView(
3327 ID3D11Resource *pResource,
3328 ID3D11VideoProcessorEnumerator *pEnum,
3329 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3330 ID3D11VideoProcessorOutputView **ppVPOView);
3331 HRESULT CreateVideoProcessorEnumerator(
3332 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3333 ID3D11VideoProcessorEnumerator **ppEnum);
3334 UINT GetVideoDecoderProfileCount();
3335 HRESULT GetVideoDecoderProfile(
3336 UINT Index,
3337 GUID *pDecoderProfile);
3338 HRESULT CheckVideoDecoderFormat(
3339 const GUID *pDecoderProfile,
3340 DXGI_FORMAT Format,
3341 BOOL *pSupported);
3342 HRESULT GetVideoDecoderConfigCount(
3343 const D3D11_VIDEO_DECODER_DESC *pDesc,
3344 UINT *pCount);
3345 HRESULT GetVideoDecoderConfig(
3346 const D3D11_VIDEO_DECODER_DESC *pDesc,
3347 UINT Index,
3348 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3349 HRESULT GetContentProtectionCaps(
3350 const GUID *pCryptoType,
3351 const GUID *pDecoderProfile,
3352 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3353 HRESULT CheckCryptoKeyExchange(
3354 const GUID *pCryptoType,
3355 const GUID *pDecoderProfile,
3356 UINT Index,
3357 GUID *pKeyExchangeType);
3358 HRESULT SetPrivateData(
3359 REFGUID guid,
3360 UINT DataSize,
3361 const void *pData);
3362 HRESULT SetPrivateDataInterface(
3363 REFGUID guid,
3364 const IUnknown *pData);
3368 object,
3369 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3370 local,
3371 pointer_default(unique)
3373 interface ID3D11VideoContext : ID3D11DeviceChild
3375 HRESULT GetDecoderBuffer(
3376 [in] ID3D11VideoDecoder *decoder,
3377 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3378 [out] UINT *buffer_size,
3379 [out] void **buffer
3381 HRESULT ReleaseDecoderBuffer(
3382 [in] ID3D11VideoDecoder *decoder,
3383 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3385 HRESULT DecoderBeginFrame(
3386 [in] ID3D11VideoDecoder *decoder,
3387 [in] ID3D11VideoDecoderOutputView *view,
3388 [in] UINT key_size,
3389 [in] const void *key
3391 HRESULT DecoderEndFrame(
3392 [in] ID3D11VideoDecoder *decoder
3394 HRESULT SubmitDecoderBuffers(
3395 [in] ID3D11VideoDecoder *decoder,
3396 [in] UINT buffers_count,
3397 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3399 HRESULT DecoderExtension(
3400 [in] ID3D11VideoDecoder *decoder,
3401 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3403 void VideoProcessorSetOutputTargetRect(
3404 [in] ID3D11VideoProcessor *processor,
3405 [in] BOOL enable,
3406 [in] const RECT *rect
3408 void VideoProcessorSetOutputBackgroundColor(
3409 [in] ID3D11VideoProcessor *processor,
3410 [in] BOOL y_cb_cr,
3411 [in] const D3D11_VIDEO_COLOR *color
3413 void VideoProcessorSetOutputColorSpace(
3414 [in] ID3D11VideoProcessor *processor,
3415 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3417 void VideoProcessorSetOutputAlphaFillMode(
3418 [in] ID3D11VideoProcessor *processor,
3419 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3420 [in] UINT stream_idx
3422 void VideoProcessorSetOutputConstriction(
3423 [in] ID3D11VideoProcessor *processor,
3424 [in] BOOL enable,
3425 [in] SIZE size
3427 void VideoProcessorSetOutputStereoMode(
3428 [in] ID3D11VideoProcessor *processor,
3429 [in] BOOL enable
3431 HRESULT VideoProcessorSetOutputExtension(
3432 [in] ID3D11VideoProcessor *processor,
3433 [in] const GUID *guid,
3434 [in] UINT data_size,
3435 [in] void *data
3437 void VideoProcessorGetOutputTargetRect(
3438 [in] ID3D11VideoProcessor *processor,
3439 [out] BOOL *enabled,
3440 [out] RECT *rect
3442 void VideoProcessorGetOutputBackgroundColor(
3443 [in] ID3D11VideoProcessor *processor,
3444 [out] BOOL *y_cb_cr,
3445 [out] D3D11_VIDEO_COLOR *color
3447 void VideoProcessorGetOutputColorSpace(
3448 [in] ID3D11VideoProcessor *processor,
3449 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3451 void VideoProcessorGetOutputAlphaFillMode(
3452 [in] ID3D11VideoProcessor *processor,
3453 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3454 [out] UINT *stream_idx
3456 void VideoProcessorGetOutputConstriction(
3457 [in] ID3D11VideoProcessor *processor,
3458 [out] BOOL *enabled,
3459 [out] SIZE *size
3461 void VideoProcessorGetOutputStereoMode(
3462 [in] ID3D11VideoProcessor *processor,
3463 [out] BOOL *enabled
3465 HRESULT VideoProcessorGetOutputExtension(
3466 [in] ID3D11VideoProcessor *processor,
3467 [in] const GUID *guid,
3468 [in] UINT data_size,
3469 [out] void *data
3471 void VideoProcessorSetStreamFrameFormat(
3472 [in] ID3D11VideoProcessor *processor,
3473 [in] UINT stream_idx,
3474 [in] D3D11_VIDEO_FRAME_FORMAT format
3476 void VideoProcessorSetStreamColorSpace(
3477 [in] ID3D11VideoProcessor *processor,
3478 [in] UINT stream_idx,
3479 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3481 void VideoProcessorSetStreamOutputRate(
3482 [in] ID3D11VideoProcessor *processor,
3483 [in] UINT stream_idx,
3484 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3485 [in] BOOL repeat,
3486 [in] const DXGI_RATIONAL *custom_rate
3488 void VideoProcessorSetStreamSourceRect(
3489 [in] ID3D11VideoProcessor *processor,
3490 [in] UINT stream_idx,
3491 [in] BOOL enable,
3492 [in] const RECT *rect
3494 void VideoProcessorSetStreamDestRect(
3495 [in] ID3D11VideoProcessor *processor,
3496 [in] UINT stream_idx,
3497 [in] BOOL enable,
3498 [in] const RECT *rect
3500 void VideoProcessorSetStreamAlpha(
3501 [in] ID3D11VideoProcessor *processor,
3502 [in] UINT stream_idx,
3503 [in] BOOL enable,
3504 [in] float alpha
3506 void VideoProcessorSetStreamPalette(
3507 [in] ID3D11VideoProcessor *processor,
3508 [in] UINT stream_idx,
3509 [in] UINT entry_count,
3510 [in] const UINT *entries
3512 void VideoProcessorSetStreamPixelAspectRatio(
3513 [in] ID3D11VideoProcessor *processor,
3514 [in] UINT stream_idx,
3515 [in] BOOL enable,
3516 [in] const DXGI_RATIONAL *src_aspect_ratio,
3517 [in] const DXGI_RATIONAL *dst_aspect_ratio
3519 void VideoProcessorSetStreamLumaKey(
3520 [in] ID3D11VideoProcessor *processor,
3521 [in] UINT stream_idx,
3522 [in] BOOL enable,
3523 [in] float lower,
3524 [in] float upper
3526 void VideoProcessorSetStreamStereoFormat(
3527 [in] ID3D11VideoProcessor *processor,
3528 [in] UINT stream_idx,
3529 [in] BOOL enable,
3530 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3531 [in] BOOL left_view_frame0,
3532 [in] BOOL base_view_frame0,
3533 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3534 [in] int mono_offset
3536 void VideoProcessorSetStreamAutoProcessingMode(
3537 [in] ID3D11VideoProcessor *processor,
3538 [in] UINT stream_idx,
3539 [in] BOOL enable
3541 void VideoProcessorSetStreamFilter(
3542 [in] ID3D11VideoProcessor *processor,
3543 [in] UINT stream_idx,
3544 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3545 [in] BOOL enable,
3546 [in] int level
3548 HRESULT VideoProcessorSetStreamExtension(
3549 [in] ID3D11VideoProcessor *processor,
3550 [in] UINT stream_idx,
3551 [in] const GUID *guid,
3552 [in] UINT data_size,
3553 [in] void *data
3555 void VideoProcessorGetStreamFrameFormat(
3556 [in] ID3D11VideoProcessor *processor,
3557 [in] UINT stream_idx,
3558 [out] D3D11_VIDEO_FRAME_FORMAT *format
3560 void VideoProcessorGetStreamColorSpace(
3561 [in] ID3D11VideoProcessor *processor,
3562 [in] UINT stream_idx,
3563 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3565 void VideoProcessorGetStreamOutputRate(
3566 [in] ID3D11VideoProcessor *processor,
3567 [in] UINT stream_idx,
3568 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3569 [out] BOOL *repeat,
3570 [out] DXGI_RATIONAL *custom_rate
3572 void VideoProcessorGetStreamSourceRect(
3573 [in] ID3D11VideoProcessor *processor,
3574 [in] UINT stream_idx,
3575 [out] BOOL *enabled,
3576 [out] RECT *rect
3578 void VideoProcessorGetStreamDestRect(
3579 [in] ID3D11VideoProcessor *processor,
3580 [in] UINT stream_idx,
3581 [out] BOOL *enabled,
3582 [out] RECT *rect
3584 void VideoProcessorGetStreamAlpha(
3585 [in] ID3D11VideoProcessor *processor,
3586 [in] UINT stream_idx,
3587 [out] BOOL *enabled,
3588 [out] float *alpha
3590 void VideoProcessorGetStreamPalette(
3591 [in] ID3D11VideoProcessor *processor,
3592 [in] UINT stream_idx,
3593 [in] UINT entry_count,
3594 [out] UINT *entries
3596 void VideoProcessorGetStreamPixelAspectRatio(
3597 [in] ID3D11VideoProcessor *processor,
3598 [in] UINT stream_idx,
3599 [out] BOOL *enabled,
3600 [out] DXGI_RATIONAL *src_aspect_ratio,
3601 [out] DXGI_RATIONAL *dst_aspect_ratio
3603 void VideoProcessorGetStreamLumaKey(
3604 [in] ID3D11VideoProcessor *processor,
3605 [in] UINT stream_idx,
3606 [out] BOOL *enabled,
3607 [out] float *lower,
3608 [out] float *upper
3610 void VideoProcessorGetStreamStereoFormat(
3611 [in] ID3D11VideoProcessor *processor,
3612 [in] UINT stream_idx,
3613 [out] BOOL *enabled,
3614 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3615 [out] BOOL *left_view_frame0,
3616 [out] BOOL *base_view_frame0,
3617 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3618 [out] int *mono_offset
3620 void VideoProcessorGetStreamAutoProcessingMode(
3621 [in] ID3D11VideoProcessor *processor,
3622 [in] UINT stream_idx,
3623 [out] BOOL *enabled
3625 void VideoProcessorGetStreamFilter(
3626 [in] ID3D11VideoProcessor *processor,
3627 [in] UINT stream_idx,
3628 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3629 [out] BOOL *enabled,
3630 [out] int *level
3632 HRESULT VideoProcessorGetStreamExtension(
3633 [in] ID3D11VideoProcessor *processor,
3634 [in] UINT stream_idx,
3635 [in] const GUID *guid,
3636 [in] UINT data_size,
3637 [out] void *data
3639 HRESULT VideoProcessorBlt(
3640 [in] ID3D11VideoProcessor *processor,
3641 [in] ID3D11VideoProcessorOutputView *view,
3642 [in] UINT frame_idx,
3643 [in] UINT stream_count,
3644 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3646 HRESULT NegotiateCryptoSessionKeyExchange(
3647 [in] ID3D11CryptoSession *session,
3648 [in] UINT data_size,
3649 [in, out] void *data
3651 void EncryptionBlt(
3652 [in] ID3D11CryptoSession *session,
3653 [in] ID3D11Texture2D *src_surface,
3654 [in] ID3D11Texture2D *dst_surface,
3655 [in] UINT iv_size,
3656 [in, out] void *iv
3658 void DecryptionBlt(
3659 [in] ID3D11CryptoSession *session,
3660 [in] ID3D11Texture2D *src_surface,
3661 [in] ID3D11Texture2D *dst_surface,
3662 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3663 [in] UINT key_size,
3664 [in] const void *key,
3665 [in] UINT iv_size,
3666 [in, out] void *iv
3668 void StartSessionKeyRefresh(
3669 [in] ID3D11CryptoSession *session,
3670 [in] UINT random_number_size,
3671 [out] void *random_number
3673 void FinishSessionKeyRefresh(
3674 [in] ID3D11CryptoSession *session
3676 HRESULT GetEncryptionBltKey(
3677 [in] ID3D11CryptoSession *session,
3678 [in] UINT key_size,
3679 [out] void *key
3681 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3682 [in] ID3D11AuthenticatedChannel *channel,
3683 [in] UINT data_size,
3684 [in, out] void *data
3686 HRESULT QueryAuthenticatedChannel(
3687 [in] ID3D11AuthenticatedChannel *channel,
3688 [in] UINT input_size,
3689 [in] const void *input,
3690 [in] UINT output_size,
3691 [out] void *output
3693 HRESULT ConfigureAuthenticatedChannel(
3694 [in] ID3D11AuthenticatedChannel *channel,
3695 [in] UINT input_size,
3696 [in] const void *input,
3697 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3699 void VideoProcessorSetStreamRotation(
3700 [in] ID3D11VideoProcessor *processor,
3701 [in] UINT stream_idx,
3702 [in] BOOL enable,
3703 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3705 void VideoProcessorGetStreamRotation(
3706 [in] ID3D11VideoProcessor *processor,
3707 [in] UINT stream_idx,
3708 [out] BOOL *enable,
3709 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3714 object,
3715 local,
3716 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3718 interface ID3D11Device : IUnknown
3720 HRESULT CreateBuffer(
3721 [in] const D3D11_BUFFER_DESC *pDesc,
3722 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3723 [out] ID3D11Buffer **ppBuffer);
3724 HRESULT CreateTexture1D(
3725 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3726 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3727 [out] ID3D11Texture1D **ppTexture1D);
3728 HRESULT CreateTexture2D(
3729 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3730 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3731 [out] ID3D11Texture2D **ppTexture2D);
3732 HRESULT CreateTexture3D(
3733 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3734 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3735 [out] ID3D11Texture3D **ppTexture3D);
3736 HRESULT CreateShaderResourceView(
3737 [in] ID3D11Resource *pResource,
3738 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3739 [out] ID3D11ShaderResourceView **ppSRView);
3740 HRESULT CreateUnorderedAccessView(
3741 [in] ID3D11Resource *pResource,
3742 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3743 [out] ID3D11UnorderedAccessView **ppUAView);
3744 HRESULT CreateRenderTargetView(
3745 [in] ID3D11Resource *pResource,
3746 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3747 [out] ID3D11RenderTargetView **ppRTView);
3748 HRESULT CreateDepthStencilView(
3749 [in] ID3D11Resource *pResource,
3750 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3751 [out] ID3D11DepthStencilView **ppDepthStencilView);
3752 HRESULT CreateInputLayout(
3753 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3754 [in] UINT NumElements,
3755 [in] const void *pShaderBytecodeWithInputSignature,
3756 [in] SIZE_T BytecodeLength,
3757 [out] ID3D11InputLayout **ppInputLayout);
3758 HRESULT CreateVertexShader(
3759 [in] const void *pShaderBytecode,
3760 [in] SIZE_T BytecodeLength,
3761 [in] ID3D11ClassLinkage *pClassLinkage,
3762 [out] ID3D11VertexShader **ppVertexShader);
3763 HRESULT CreateGeometryShader(
3764 [in] const void *pShaderBytecode,
3765 [in] SIZE_T BytecodeLength,
3766 [in] ID3D11ClassLinkage *pClassLinkage,
3767 [out] ID3D11GeometryShader **ppGeometryShader);
3768 HRESULT CreateGeometryShaderWithStreamOutput(
3769 [in] const void *pShaderBytecode,
3770 [in] SIZE_T BytecodeLength,
3771 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3772 [in] UINT NumEntries,
3773 [in] const UINT *pBufferStrides,
3774 [in] UINT NumStrides,
3775 [in] UINT RasterizedStream,
3776 [in] ID3D11ClassLinkage *pClassLinkage,
3777 [out] ID3D11GeometryShader **ppGeometryShader);
3778 HRESULT CreatePixelShader(
3779 [in] const void *pShaderBytecode,
3780 [in] SIZE_T BytecodeLength,
3781 [in] ID3D11ClassLinkage *pClassLinkage,
3782 [out] ID3D11PixelShader **ppPixelShader);
3783 HRESULT CreateHullShader(
3784 [in] const void *pShaderBytecode,
3785 [in] SIZE_T BytecodeLength,
3786 [in] ID3D11ClassLinkage *pClassLinkage,
3787 [out] ID3D11HullShader **ppHullShader);
3788 HRESULT CreateDomainShader(
3789 [in] const void *pShaderBytecode,
3790 [in] SIZE_T BytecodeLength,
3791 [in] ID3D11ClassLinkage *pClassLinkage,
3792 [out] ID3D11DomainShader **ppDomainShader);
3793 HRESULT CreateComputeShader(
3794 [in] const void *pShaderBytecode,
3795 [in] SIZE_T BytecodeLength,
3796 [in] ID3D11ClassLinkage *pClassLinkage,
3797 [out] ID3D11ComputeShader **ppComputeShader);
3798 HRESULT CreateClassLinkage(
3799 [out] ID3D11ClassLinkage **ppLinkage);
3800 HRESULT CreateBlendState(
3801 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3802 [out] ID3D11BlendState **ppBlendState);
3803 HRESULT CreateDepthStencilState(
3804 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3805 [out] ID3D11DepthStencilState **ppDepthStencilState);
3806 HRESULT CreateRasterizerState(
3807 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3808 [out] ID3D11RasterizerState **ppRasterizerState);
3809 HRESULT CreateSamplerState(
3810 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3811 [out] ID3D11SamplerState **ppSamplerState);
3812 HRESULT CreateQuery(
3813 [in] const D3D11_QUERY_DESC *pQueryDesc,
3814 [out] ID3D11Query **ppQuery);
3815 HRESULT CreatePredicate(
3816 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3817 [out] ID3D11Predicate **ppPredicate);
3818 HRESULT CreateCounter(
3819 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3820 [out] ID3D11Counter **ppCounter);
3821 HRESULT CreateDeferredContext(
3822 UINT ContextFlags,
3823 [out] ID3D11DeviceContext **ppDeferredContext);
3824 HRESULT OpenSharedResource(
3825 [in] HANDLE hResource,
3826 [in] REFIID ReturnedInterface,
3827 [out] void **ppResource);
3828 HRESULT CheckFormatSupport(
3829 [in] DXGI_FORMAT Format,
3830 [out] UINT *pFormatSupport);
3831 HRESULT CheckMultisampleQualityLevels(
3832 [in] DXGI_FORMAT Format,
3833 [in] UINT SampleCount,
3834 [out] UINT *pNumQualityLevels);
3835 void CheckCounterInfo(
3836 [out] D3D11_COUNTER_INFO *pCounterInfo);
3837 HRESULT CheckCounter(
3838 [in] const D3D11_COUNTER_DESC *pDesc,
3839 [out] D3D11_COUNTER_TYPE *pType,
3840 [out] UINT *pActiveCounters,
3841 [out] LPSTR szName,
3842 [in, out] UINT *pNameLength,
3843 [out] LPSTR szUnits,
3844 [in, out] UINT *pUnitsLength,
3845 [out] LPSTR szDescription,
3846 [in, out] UINT *pDescriptionLength);
3847 HRESULT CheckFeatureSupport(
3848 D3D11_FEATURE Feature,
3849 [out] void *pFeatureSupportData,
3850 UINT FeatureSupportDataSize);
3851 HRESULT GetPrivateData(
3852 [in] REFGUID guid,
3853 [in, out] UINT *pDataSize,
3854 [out] void *pData);
3855 HRESULT SetPrivateData(
3856 [in] REFGUID guid,
3857 [in] UINT DataSize,
3858 [in] const void *pData);
3859 HRESULT SetPrivateDataInterface(
3860 [in] REFGUID guid,
3861 [in] const IUnknown *pData);
3862 D3D_FEATURE_LEVEL GetFeatureLevel();
3863 UINT GetCreationFlags();
3864 HRESULT GetDeviceRemovedReason();
3865 void GetImmediateContext(
3866 [out] ID3D11DeviceContext **ppImmediateContext);
3867 HRESULT SetExceptionMode(UINT RaiseFlags);
3868 UINT GetExceptionMode();
3871 typedef enum D3D11_CREATE_DEVICE_FLAG {
3872 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3873 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3874 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3875 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3876 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3877 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3878 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3879 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3880 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3881 } D3D11_CREATE_DEVICE_FLAG;
3883 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
3885 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001,
3886 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002,
3887 } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
3889 const UINT D3D11_SDK_VERSION = 7;
3891 cpp_quote("#include <d3d10_1.h>")
3892 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3893 cpp_quote("# include <d3d11sdklayers.h>")
3894 cpp_quote("#endif")
3895 cpp_quote("#include <d3d10misc.h>")
3896 cpp_quote("#include <d3d10shader.h>")
3897 cpp_quote("#include <d3d10effect.h>")
3898 cpp_quote("#include <d3d10_1shader.h>")
3900 const UINT _FACD3D11 = 0x87c;
3901 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3903 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3904 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3906 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3907 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3909 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3910 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3911 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3913 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3914 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3915 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3916 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);