Release 5.15.
[wine.git] / include / d3d11.idl
blob507cfd012a0690b6d2633ca35656433b3b0c5764
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;
881 typedef enum D3D11_DSV_FLAG
883 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
884 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
885 } D3D11_DSV_FLAG;
887 typedef enum D3D11_BUFFEREX_SRV_FLAG
889 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
890 } D3D11_BUFFEREX_SRV_FLAG;
892 typedef enum D3D11_UAV_FLAG
894 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
895 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
896 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
897 } D3D11_UAV_FLAG;
899 typedef enum D3D11_INPUT_CLASSIFICATION
901 D3D11_INPUT_PER_VERTEX_DATA,
902 D3D11_INPUT_PER_INSTANCE_DATA,
903 } D3D11_INPUT_CLASSIFICATION;
905 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
907 typedef struct D3D11_INPUT_ELEMENT_DESC
909 LPCSTR SemanticName;
910 UINT SemanticIndex;
911 DXGI_FORMAT Format;
912 UINT InputSlot;
913 UINT AlignedByteOffset;
914 D3D11_INPUT_CLASSIFICATION InputSlotClass;
915 UINT InstanceDataStepRate;
916 } D3D11_INPUT_ELEMENT_DESC;
918 typedef enum D3D11_MAP
920 D3D11_MAP_READ = 1,
921 D3D11_MAP_WRITE,
922 D3D11_MAP_READ_WRITE,
923 D3D11_MAP_WRITE_DISCARD,
924 D3D11_MAP_WRITE_NO_OVERWRITE
925 } D3D11_MAP;
927 typedef enum D3D11_MAP_FLAG
929 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
930 } D3D11_MAP_FLAG;
932 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
934 UINT64 NumPrimitivesWritten;
935 UINT64 PrimitivesStorageNeeded;
936 } D3D11_QUERY_DATA_SO_STATISTICS;
938 typedef struct D3D11_MAPPED_SUBRESOURCE
940 void *pData;
941 UINT RowPitch;
942 UINT DepthPitch;
943 } D3D11_MAPPED_SUBRESOURCE;
945 typedef enum D3D11_QUERY
947 D3D11_QUERY_EVENT,
948 D3D11_QUERY_OCCLUSION,
949 D3D11_QUERY_TIMESTAMP,
950 D3D11_QUERY_TIMESTAMP_DISJOINT,
951 D3D11_QUERY_PIPELINE_STATISTICS,
952 D3D11_QUERY_OCCLUSION_PREDICATE,
953 D3D11_QUERY_SO_STATISTICS,
954 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
955 D3D11_QUERY_SO_STATISTICS_STREAM0,
956 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
957 D3D11_QUERY_SO_STATISTICS_STREAM1,
958 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
959 D3D11_QUERY_SO_STATISTICS_STREAM2,
960 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
961 D3D11_QUERY_SO_STATISTICS_STREAM3,
962 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
963 } D3D11_QUERY;
965 typedef enum D3D11_QUERY_MISC_FLAG
967 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
968 } D3D11_QUERY_MISC_FLAG;
970 typedef enum D3D11_ASYNC_GETDATA_FLAG
972 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
973 } D3D11_ASYNC_GETDATA_FLAG;
975 typedef enum D3D11_RESOURCE_MISC_FLAG
977 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
978 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
979 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
980 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
981 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
982 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
983 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
984 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
985 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
986 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
987 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
988 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
989 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
990 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
991 } D3D11_RESOURCE_MISC_FLAG;
993 typedef struct D3D11_QUERY_DESC
995 D3D11_QUERY Query;
996 UINT MiscFlags;
997 } D3D11_QUERY_DESC;
999 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1000 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
1001 cpp_quote(" CD3D11_QUERY_DESC() {}")
1002 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
1003 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
1004 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
1005 cpp_quote(" Query = query;")
1006 cpp_quote(" MiscFlags = misc_flags;")
1007 cpp_quote(" }")
1008 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
1009 cpp_quote(" return *this;")
1010 cpp_quote(" }")
1011 cpp_quote("};")
1012 cpp_quote("#endif")
1014 typedef struct D3D11_RASTERIZER_DESC
1016 D3D11_FILL_MODE FillMode;
1017 D3D11_CULL_MODE CullMode;
1018 BOOL FrontCounterClockwise;
1019 INT DepthBias;
1020 FLOAT DepthBiasClamp;
1021 FLOAT SlopeScaledDepthBias;
1022 BOOL DepthClipEnable;
1023 BOOL ScissorEnable;
1024 BOOL MultisampleEnable;
1025 BOOL AntialiasedLineEnable;
1026 } D3D11_RASTERIZER_DESC;
1028 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1029 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
1030 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
1031 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
1032 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
1033 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
1034 cpp_quote(" CullMode = D3D11_CULL_BACK;")
1035 cpp_quote(" FrontCounterClockwise = FALSE;")
1036 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
1037 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
1038 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
1039 cpp_quote(" DepthClipEnable = TRUE;")
1040 cpp_quote(" ScissorEnable = FALSE;")
1041 cpp_quote(" MultisampleEnable = FALSE;")
1042 cpp_quote(" AntialiasedLineEnable = FALSE;")
1043 cpp_quote(" }")
1044 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
1045 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
1046 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
1047 cpp_quote(" FillMode = fillMode;")
1048 cpp_quote(" CullMode = cullMode;")
1049 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
1050 cpp_quote(" DepthBias = depthBias;")
1051 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
1052 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
1053 cpp_quote(" DepthClipEnable = depthClipEnable;")
1054 cpp_quote(" ScissorEnable = scissorEnable;")
1055 cpp_quote(" MultisampleEnable = multisampleEnable;")
1056 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
1057 cpp_quote(" }")
1058 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
1059 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
1060 cpp_quote("};")
1061 cpp_quote("#endif")
1063 typedef enum D3D11_RESOURCE_DIMENSION
1065 D3D11_RESOURCE_DIMENSION_UNKNOWN,
1066 D3D11_RESOURCE_DIMENSION_BUFFER,
1067 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
1068 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
1069 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
1070 } D3D11_RESOURCE_DIMENSION;
1072 typedef enum D3D11_RTV_DIMENSION
1074 D3D11_RTV_DIMENSION_UNKNOWN,
1075 D3D11_RTV_DIMENSION_BUFFER,
1076 D3D11_RTV_DIMENSION_TEXTURE1D,
1077 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
1078 D3D11_RTV_DIMENSION_TEXTURE2D,
1079 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
1080 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1081 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1082 D3D11_RTV_DIMENSION_TEXTURE3D,
1083 } D3D11_RTV_DIMENSION;
1085 typedef struct D3D11_SO_DECLARATION_ENTRY
1087 UINT Stream;
1088 LPCSTR SemanticName;
1089 UINT SemanticIndex;
1090 BYTE StartComponent;
1091 BYTE ComponentCount;
1092 BYTE OutputSlot;
1093 } D3D11_SO_DECLARATION_ENTRY;
1095 typedef enum D3D11_STENCIL_OP
1097 D3D11_STENCIL_OP_KEEP = 1,
1098 D3D11_STENCIL_OP_ZERO,
1099 D3D11_STENCIL_OP_REPLACE,
1100 D3D11_STENCIL_OP_INCR_SAT,
1101 D3D11_STENCIL_OP_DECR_SAT,
1102 D3D11_STENCIL_OP_INVERT,
1103 D3D11_STENCIL_OP_INCR,
1104 D3D11_STENCIL_OP_DECR
1105 } D3D11_STENCIL_OP;
1107 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1108 cpp_quote("}")
1109 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1110 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1111 cpp_quote("}")
1112 cpp_quote("extern \"C\"{")
1113 cpp_quote("#endif")
1115 typedef struct D3D11_SUBRESOURCE_DATA
1117 const void *pSysMem;
1118 UINT SysMemPitch;
1119 UINT SysMemSlicePitch;
1120 } D3D11_SUBRESOURCE_DATA;
1122 typedef struct D3D11_TEX1D_ARRAY_DSV
1124 UINT MipSlice;
1125 UINT FirstArraySlice;
1126 UINT ArraySize;
1127 } D3D11_TEX1D_ARRAY_DSV;
1129 typedef struct D3D11_TEX1D_ARRAY_RTV
1131 UINT MipSlice;
1132 UINT FirstArraySlice;
1133 UINT ArraySize;
1134 } D3D11_TEX1D_ARRAY_RTV;
1136 typedef struct D3D11_TEX1D_ARRAY_SRV
1138 UINT MostDetailedMip;
1139 UINT MipLevels;
1140 UINT FirstArraySlice;
1141 UINT ArraySize;
1142 } D3D11_TEX1D_ARRAY_SRV;
1144 typedef struct D3D11_TEX1D_ARRAY_UAV
1146 UINT MipSlice;
1147 UINT FirstArraySlice;
1148 UINT ArraySize;
1149 } D3D11_TEX1D_ARRAY_UAV;
1151 typedef struct D3D11_TEX1D_DSV
1153 UINT MipSlice;
1154 } D3D11_TEX1D_DSV;
1156 typedef struct D3D11_TEX1D_RTV
1158 UINT MipSlice;
1159 } D3D11_TEX1D_RTV;
1161 typedef struct D3D11_TEX1D_SRV
1163 UINT MostDetailedMip;
1164 UINT MipLevels;
1165 } D3D11_TEX1D_SRV;
1167 typedef struct D3D11_TEX1D_UAV
1169 UINT MipSlice;
1170 } D3D11_TEX1D_UAV;
1172 typedef struct D3D11_TEX2D_ARRAY_DSV
1174 UINT MipSlice;
1175 UINT FirstArraySlice;
1176 UINT ArraySize;
1177 } D3D11_TEX2D_ARRAY_DSV;
1179 typedef struct D3D11_TEX2D_ARRAY_RTV
1181 UINT MipSlice;
1182 UINT FirstArraySlice;
1183 UINT ArraySize;
1184 } D3D11_TEX2D_ARRAY_RTV;
1186 typedef struct D3D11_TEX2D_ARRAY_SRV
1188 UINT MostDetailedMip;
1189 UINT MipLevels;
1190 UINT FirstArraySlice;
1191 UINT ArraySize;
1192 } D3D11_TEX2D_ARRAY_SRV;
1194 typedef struct D3D11_TEX2D_ARRAY_UAV
1196 UINT MipSlice;
1197 UINT FirstArraySlice;
1198 UINT ArraySize;
1199 } D3D11_TEX2D_ARRAY_UAV;
1201 typedef struct D3D11_TEX2D_DSV
1203 UINT MipSlice;
1204 } D3D11_TEX2D_DSV;
1206 typedef struct D3D11_TEX2D_RTV
1208 UINT MipSlice;
1209 } D3D11_TEX2D_RTV;
1211 typedef struct D3D11_TEX2D_SRV
1213 UINT MostDetailedMip;
1214 UINT MipLevels;
1215 } D3D11_TEX2D_SRV;
1217 typedef struct D3D11_TEX2D_UAV
1219 UINT MipSlice;
1220 } D3D11_TEX2D_UAV;
1222 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1224 UINT FirstArraySlice;
1225 UINT ArraySize;
1226 } D3D11_TEX2DMS_ARRAY_DSV;
1228 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1230 UINT FirstArraySlice;
1231 UINT ArraySize;
1232 } D3D11_TEX2DMS_ARRAY_RTV;
1234 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1236 UINT FirstArraySlice;
1237 UINT ArraySize;
1238 } D3D11_TEX2DMS_ARRAY_SRV;
1240 typedef struct D3D11_TEX2DMS_DSV
1242 UINT UnusedField_NothingToDefine;
1243 } D3D11_TEX2DMS_DSV;
1245 typedef struct D3D11_TEX2DMS_RTV
1247 UINT UnusedField_NothingToDefine;
1248 } D3D11_TEX2DMS_RTV;
1250 typedef struct D3D11_TEX2DMS_SRV
1252 UINT UnusedField_NothingToDefine;
1253 } D3D11_TEX2DMS_SRV;
1255 typedef struct D3D11_TEX3D_RTV
1257 UINT MipSlice;
1258 UINT FirstWSlice;
1259 UINT WSize;
1260 } D3D11_TEX3D_RTV;
1262 typedef struct D3D11_TEX3D_SRV
1264 UINT MostDetailedMip;
1265 UINT MipLevels;
1266 } D3D11_TEX3D_SRV;
1268 typedef struct D3D11_TEX3D_UAV
1270 UINT MipSlice;
1271 UINT FirstWSlice;
1272 UINT WSize;
1273 } D3D11_TEX3D_UAV;
1275 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1277 UINT MostDetailedMip;
1278 UINT MipLevels;
1279 UINT First2DArrayFace;
1280 UINT NumCubes;
1281 } D3D11_TEXCUBE_ARRAY_SRV;
1283 typedef struct D3D11_TEXCUBE_SRV
1285 UINT MostDetailedMip;
1286 UINT MipLevels;
1287 } D3D11_TEXCUBE_SRV;
1289 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1291 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1292 D3D11_TEXTURE_ADDRESS_MIRROR,
1293 D3D11_TEXTURE_ADDRESS_CLAMP,
1294 D3D11_TEXTURE_ADDRESS_BORDER,
1295 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1296 } D3D11_TEXTURE_ADDRESS_MODE;
1298 typedef enum D3D11_UAV_DIMENSION
1300 D3D11_UAV_DIMENSION_UNKNOWN,
1301 D3D11_UAV_DIMENSION_BUFFER,
1302 D3D11_UAV_DIMENSION_TEXTURE1D,
1303 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1304 D3D11_UAV_DIMENSION_TEXTURE2D,
1305 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1306 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1307 } D3D11_UAV_DIMENSION;
1309 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1311 DXGI_FORMAT Format;
1312 D3D11_UAV_DIMENSION ViewDimension;
1314 union
1316 D3D11_BUFFER_UAV Buffer;
1317 D3D11_TEX1D_UAV Texture1D;
1318 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1319 D3D11_TEX2D_UAV Texture2D;
1320 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1321 D3D11_TEX3D_UAV Texture3D;
1323 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1325 typedef enum D3D11_USAGE
1327 D3D11_USAGE_DEFAULT,
1328 D3D11_USAGE_IMMUTABLE,
1329 D3D11_USAGE_DYNAMIC,
1330 D3D11_USAGE_STAGING,
1331 } D3D11_USAGE;
1333 typedef enum D3D11_BIND_FLAG
1335 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1336 D3D11_BIND_INDEX_BUFFER = 0x0002,
1337 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1338 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1339 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1340 D3D11_BIND_RENDER_TARGET = 0x0020,
1341 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1342 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1343 D3D11_BIND_DECODER = 0x0200,
1344 D3D11_BIND_VIDEO_ENCODER = 0x0400
1345 } D3D11_BIND_FLAG;
1347 typedef enum D3D11_CPU_ACCESS_FLAG
1349 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1350 D3D11_CPU_ACCESS_READ = 0x00020000
1351 } D3D11_CPU_ACCESS_FLAG;
1353 typedef struct D3D11_VIEWPORT
1355 FLOAT TopLeftX;
1356 FLOAT TopLeftY;
1357 FLOAT Width;
1358 FLOAT Height;
1359 FLOAT MinDepth;
1360 FLOAT MaxDepth;
1361 } D3D11_VIEWPORT;
1363 typedef enum D3D11_COLOR_WRITE_ENABLE
1365 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1366 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1367 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1368 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1369 D3D11_COLOR_WRITE_ENABLE_ALL =
1370 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1371 } D3D11_COLOR_WRITE_ENABLE;
1373 typedef enum D3D11_FORMAT_SUPPORT
1375 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1376 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1377 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1378 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1379 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1380 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1381 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1382 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1383 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1384 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1385 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1386 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1387 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1388 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1389 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1390 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1391 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1392 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1393 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1394 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1395 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1396 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1397 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1398 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1399 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1400 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1401 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1402 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1403 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1404 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1405 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1406 } D3D11_FORMAT_SUPPORT;
1408 typedef enum D3D11_CLEAR_FLAG
1410 D3D11_CLEAR_DEPTH = 0x0001L,
1411 D3D11_CLEAR_STENCIL = 0x0002L
1412 } D3D11_CLEAR_FLAG;
1414 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1416 BOOL BlendEnable;
1417 D3D11_BLEND SrcBlend;
1418 D3D11_BLEND DestBlend;
1419 D3D11_BLEND_OP BlendOp;
1420 D3D11_BLEND SrcBlendAlpha;
1421 D3D11_BLEND DestBlendAlpha;
1422 D3D11_BLEND_OP BlendOpAlpha;
1423 UINT8 RenderTargetWriteMask;
1424 } D3D11_RENDER_TARGET_BLEND_DESC;
1426 typedef struct D3D11_BLEND_DESC
1428 BOOL AlphaToCoverageEnable;
1429 BOOL IndependentBlendEnable;
1430 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1431 } D3D11_BLEND_DESC;
1433 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1434 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1435 cpp_quote(" CD3D11_BLEND_DESC() {}")
1436 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1437 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1438 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1439 cpp_quote(" IndependentBlendEnable = FALSE;")
1440 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
1441 cpp_quote(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
1442 cpp_quote(" target++) {")
1443 cpp_quote(" target->BlendEnable = FALSE;")
1444 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1445 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1446 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1447 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1448 cpp_quote(" }")
1449 cpp_quote(" }")
1450 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1451 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1452 cpp_quote("};" )
1453 cpp_quote("#endif" )
1455 typedef struct D3D11_BUFFER_DESC
1457 UINT ByteWidth;
1458 D3D11_USAGE Usage;
1459 UINT BindFlags;
1460 UINT CPUAccessFlags;
1461 UINT MiscFlags;
1462 UINT StructureByteStride;
1463 } D3D11_BUFFER_DESC;
1465 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1466 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1467 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1468 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1469 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1470 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1471 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1472 cpp_quote(" ByteWidth = byteWidth;")
1473 cpp_quote(" Usage = usage;")
1474 cpp_quote(" BindFlags = bindFlags;")
1475 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1476 cpp_quote(" MiscFlags = miscFlags;" )
1477 cpp_quote(" StructureByteStride = structureByteStride;")
1478 cpp_quote(" }")
1479 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1480 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1481 cpp_quote("};" )
1482 cpp_quote("#endif" )
1484 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1486 DXGI_FORMAT Format;
1487 D3D11_DSV_DIMENSION ViewDimension;
1488 UINT Flags;
1490 union
1492 D3D11_TEX1D_DSV Texture1D;
1493 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1494 D3D11_TEX2D_DSV Texture2D;
1495 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1496 D3D11_TEX2DMS_DSV Texture2DMS;
1497 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1499 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1501 typedef struct D3D11_DEPTH_STENCILOP_DESC
1503 D3D11_STENCIL_OP StencilFailOp;
1504 D3D11_STENCIL_OP StencilDepthFailOp;
1505 D3D11_STENCIL_OP StencilPassOp;
1506 D3D11_COMPARISON_FUNC StencilFunc;
1507 } D3D11_DEPTH_STENCILOP_DESC;
1509 typedef struct D3D11_DEPTH_STENCIL_DESC
1511 BOOL DepthEnable;
1512 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1513 D3D11_COMPARISON_FUNC DepthFunc;
1514 BOOL StencilEnable;
1515 UINT8 StencilReadMask;
1516 UINT8 StencilWriteMask;
1517 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1518 D3D11_DEPTH_STENCILOP_DESC BackFace;
1519 } D3D11_DEPTH_STENCIL_DESC;
1521 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1522 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1523 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1524 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1525 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1526 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1527 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1528 cpp_quote(" DepthEnable = TRUE;")
1529 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1530 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1531 cpp_quote(" StencilEnable = FALSE;")
1532 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1533 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1534 cpp_quote(" FrontFace = default_op;")
1535 cpp_quote(" BackFace = default_op;")
1536 cpp_quote(" }")
1537 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1538 cpp_quote(" BOOL depth_enable,")
1539 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1540 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1541 cpp_quote(" BOOL stencil_enable,")
1542 cpp_quote(" UINT8 stencil_read_mask,")
1543 cpp_quote(" UINT8 stencil_write_mask,")
1544 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1545 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1546 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1547 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1548 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1549 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1550 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1551 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1552 cpp_quote(" DepthEnable = depth_enable;")
1553 cpp_quote(" DepthWriteMask = depth_write_mask;")
1554 cpp_quote(" DepthFunc = depth_func;")
1555 cpp_quote(" StencilEnable = stencil_enable;")
1556 cpp_quote(" StencilReadMask = stencil_read_mask;")
1557 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1558 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1559 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1560 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1561 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1562 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1563 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1564 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1565 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1566 cpp_quote(" }")
1567 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1568 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1569 cpp_quote("};")
1570 cpp_quote("#endif")
1572 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1574 DXGI_FORMAT Format;
1575 D3D11_RTV_DIMENSION ViewDimension;
1577 union
1579 D3D11_BUFFER_RTV Buffer;
1580 D3D11_TEX1D_RTV Texture1D;
1581 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1582 D3D11_TEX2D_RTV Texture2D;
1583 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1584 D3D11_TEX2DMS_RTV Texture2DMS;
1585 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1586 D3D11_TEX3D_RTV Texture3D;
1588 } D3D11_RENDER_TARGET_VIEW_DESC;
1590 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1591 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1592 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1593 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1594 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1595 cpp_quote(" Format = format;")
1596 cpp_quote(" ViewDimension = dim;")
1597 cpp_quote(" switch(dim) {")
1598 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1599 cpp_quote(" Buffer.FirstElement = mip_slice;")
1600 cpp_quote(" Buffer.NumElements = first_slice;")
1601 cpp_quote(" break;")
1602 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1603 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1604 cpp_quote(" break;")
1605 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1606 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1607 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1608 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1609 cpp_quote(" break;")
1610 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1611 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1612 cpp_quote(" break;")
1613 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1614 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1615 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1616 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1617 cpp_quote(" break;")
1618 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1619 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1620 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1621 cpp_quote(" break;")
1622 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1623 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1624 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1625 cpp_quote(" Texture3D.WSize = array_size;")
1626 cpp_quote(" break;")
1627 cpp_quote(" default:")
1628 cpp_quote(" break;")
1629 cpp_quote(" }")
1630 cpp_quote(" }")
1631 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1632 cpp_quote(" UINT elem_cnt) {")
1633 cpp_quote(" Format = format;")
1634 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1635 cpp_quote(" Buffer.FirstElement = first_elem;")
1636 cpp_quote(" Buffer.NumElements = elem_cnt;")
1637 cpp_quote(" }")
1638 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1639 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1640 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1641 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1642 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1643 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1644 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1645 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1646 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1647 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1648 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1649 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1650 cpp_quote(" return *this;")
1651 cpp_quote(" }")
1652 cpp_quote("};")
1653 cpp_quote("#endif")
1656 typedef struct D3D11_SAMPLER_DESC
1658 D3D11_FILTER Filter;
1659 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1660 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1661 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1662 FLOAT MipLODBias;
1663 UINT MaxAnisotropy;
1664 D3D11_COMPARISON_FUNC ComparisonFunc;
1665 FLOAT BorderColor[4];
1666 FLOAT MinLOD;
1667 FLOAT MaxLOD;
1668 } D3D11_SAMPLER_DESC;
1670 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1671 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1672 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1673 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1674 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1675 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1676 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1677 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1678 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1679 cpp_quote(" MipLODBias = 0;")
1680 cpp_quote(" MaxAnisotropy = 1;")
1681 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1682 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1683 cpp_quote(" MinLOD = -3.402823466e+38f;")
1684 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1685 cpp_quote(" }")
1686 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1687 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1688 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1689 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1690 cpp_quote(" Filter = filter;")
1691 cpp_quote(" AddressU = addressU;")
1692 cpp_quote(" AddressV = addressV;")
1693 cpp_quote(" AddressW = addressW;")
1694 cpp_quote(" MipLODBias = mipLODBias;")
1695 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1696 cpp_quote(" ComparisonFunc = comparisonFunc;")
1697 cpp_quote(" if(borderColor) {")
1698 cpp_quote(" BorderColor[0] = borderColor[0];")
1699 cpp_quote(" BorderColor[1] = borderColor[1];")
1700 cpp_quote(" BorderColor[2] = borderColor[2];")
1701 cpp_quote(" BorderColor[3] = borderColor[3];")
1702 cpp_quote(" }else {")
1703 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1704 cpp_quote(" }")
1705 cpp_quote(" MinLOD = minLOD;")
1706 cpp_quote(" MaxLOD = maxLOD;")
1707 cpp_quote(" }")
1708 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1709 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1710 cpp_quote("};")
1711 cpp_quote("#endif")
1713 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1715 DXGI_FORMAT Format;
1716 D3D11_SRV_DIMENSION ViewDimension;
1718 union
1720 D3D11_BUFFER_SRV Buffer;
1721 D3D11_TEX1D_SRV Texture1D;
1722 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1723 D3D11_TEX2D_SRV Texture2D;
1724 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1725 D3D11_TEX2DMS_SRV Texture2DMS;
1726 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1727 D3D11_TEX3D_SRV Texture3D;
1728 D3D11_TEXCUBE_SRV TextureCube;
1729 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1730 D3D11_BUFFEREX_SRV BufferEx;
1732 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1734 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1735 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1736 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1737 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1738 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1739 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1740 cpp_quote(" Format = format;")
1741 cpp_quote(" ViewDimension = dim;")
1742 cpp_quote(" switch(ViewDimension) {")
1743 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1744 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1745 cpp_quote(" Buffer.NumElements = mip_levels;")
1746 cpp_quote(" break;")
1747 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1748 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1749 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1750 cpp_quote(" break;")
1751 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1752 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1753 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1754 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1755 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1756 cpp_quote(" break;")
1757 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1758 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1759 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1760 cpp_quote(" break;")
1761 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1762 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1763 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1764 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1765 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1766 cpp_quote(" break;")
1767 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1768 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1769 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1770 cpp_quote(" break;")
1771 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1772 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1773 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1774 cpp_quote(" break;")
1775 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1776 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1777 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1778 cpp_quote(" break;")
1779 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1780 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1781 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1782 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1783 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1784 cpp_quote(" break;")
1785 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1786 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1787 cpp_quote(" BufferEx.NumElements = mip_levels;")
1788 cpp_quote(" BufferEx.Flags = flags;")
1789 cpp_quote(" break;")
1790 cpp_quote(" default:")
1791 cpp_quote(" break;")
1792 cpp_quote(" }")
1793 cpp_quote(" }")
1794 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1795 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1796 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1797 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1798 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1799 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1800 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1801 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1802 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1803 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1804 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1805 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1806 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1807 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1808 cpp_quote(" return *this;")
1809 cpp_quote(" }")
1810 cpp_quote("};")
1811 cpp_quote("#endif")
1813 typedef struct D3D11_TEXTURE1D_DESC
1815 UINT Width;
1816 UINT MipLevels;
1817 UINT ArraySize;
1818 DXGI_FORMAT Format;
1819 D3D11_USAGE Usage;
1820 UINT BindFlags;
1821 UINT CPUAccessFlags;
1822 UINT MiscFlags;
1823 } D3D11_TEXTURE1D_DESC;
1825 typedef struct D3D11_TEXTURE2D_DESC
1827 UINT Width;
1828 UINT Height;
1829 UINT MipLevels;
1830 UINT ArraySize;
1831 DXGI_FORMAT Format;
1832 DXGI_SAMPLE_DESC SampleDesc;
1833 D3D11_USAGE Usage;
1834 UINT BindFlags;
1835 UINT CPUAccessFlags;
1836 UINT MiscFlags;
1837 } D3D11_TEXTURE2D_DESC;
1839 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1840 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1841 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1842 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1843 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1844 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1845 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1846 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1847 cpp_quote(" Width = width;")
1848 cpp_quote(" Height = height;")
1849 cpp_quote(" MipLevels = mipLevels;")
1850 cpp_quote(" ArraySize = arraySize;")
1851 cpp_quote(" Format = format;")
1852 cpp_quote(" SampleDesc.Count = sampleCount;")
1853 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1854 cpp_quote(" Usage = usage;")
1855 cpp_quote(" BindFlags = bindFlags;")
1856 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1857 cpp_quote(" MiscFlags = miscFlags;")
1858 cpp_quote(" }" )
1859 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1860 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1861 cpp_quote("};")
1862 cpp_quote("#endif")
1864 typedef struct D3D11_TEXTURE3D_DESC
1866 UINT Width;
1867 UINT Height;
1868 UINT Depth;
1869 UINT MipLevels;
1870 DXGI_FORMAT Format;
1871 D3D11_USAGE Usage;
1872 UINT BindFlags;
1873 UINT CPUAccessFlags;
1874 UINT MiscFlags;
1875 } D3D11_TEXTURE3D_DESC;
1877 typedef struct D3D11_VIDEO_DECODER_DESC
1879 GUID Guid;
1880 UINT SampleWidth;
1881 UINT SampleHeight;
1882 DXGI_FORMAT OutputFormat;
1883 } D3D11_VIDEO_DECODER_DESC;
1885 typedef struct D3D11_VIDEO_DECODER_CONFIG
1887 GUID guidConfigBitstreamEncryption;
1888 GUID guidConfigMBcontrolEncryption;
1889 GUID guidConfigResidDiffEncryption;
1890 UINT ConfigBitstreamRaw;
1891 UINT ConfigMBcontrolRasterOrder;
1892 UINT ConfigResidDiffHost;
1893 UINT ConfigSpatialResid8;
1894 UINT ConfigResid8Subtraction;
1895 UINT ConfigSpatialHost8or9Clipping;
1896 UINT ConfigSpatialResidInterleaved;
1897 UINT ConfigIntraResidUnsigned;
1898 UINT ConfigResidDiffAccelerator;
1899 UINT ConfigHostInverseScan;
1900 UINT ConfigSpecificIDCT;
1901 UINT Config4GroupedCoefs;
1902 USHORT ConfigMinRenderTargetBuffCount;
1903 USHORT ConfigDecoderSpecific;
1904 } D3D11_VIDEO_DECODER_CONFIG;
1906 typedef enum D3D11_VIDEO_FRAME_FORMAT
1908 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1909 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1910 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1911 } D3D11_VIDEO_FRAME_FORMAT;
1913 typedef enum D3D11_VIDEO_USAGE
1915 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1916 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1917 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1918 } D3D11_VIDEO_USAGE;
1920 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1922 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1923 DXGI_RATIONAL InputFrameRate;
1924 UINT InputWidth;
1925 UINT InputHeight;
1926 DXGI_RATIONAL OutputFrameRate;
1927 UINT OutputWidth;
1928 UINT OutputHeight;
1929 D3D11_VIDEO_USAGE Usage;
1930 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1932 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1934 UINT DeviceCaps;
1935 UINT FeatureCaps;
1936 UINT FilterCaps;
1937 UINT InputFormatCaps;
1938 UINT AutoStreamCaps;
1939 UINT StereoCaps;
1940 UINT RateConversionCapsCount;
1941 UINT MaxInputStreams;
1942 UINT MaxStreamStates;
1943 } D3D11_VIDEO_PROCESSOR_CAPS;
1945 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1947 UINT PastFrames;
1948 UINT FutureFrames;
1949 UINT ProcessorCaps;
1950 UINT ITelecineCaps;
1951 UINT CustomRateCount;
1952 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1954 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1956 DXGI_RATIONAL CustomRate;
1957 UINT OutputFrames;
1958 BOOL InputInterlaced;
1959 UINT InputFramesOrFields;
1960 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1962 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1964 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1965 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1966 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1967 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1968 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1969 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1970 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1971 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1972 } D3D11_VIDEO_PROCESSOR_FILTER;
1974 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1976 int Minimum;
1977 int Maximum;
1978 int Default;
1979 float Multiplier;
1980 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1982 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1984 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1985 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1986 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1987 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1989 typedef enum D3D11_VDOV_DIMENSION
1991 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1992 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1993 } D3D11_VDOV_DIMENSION;
1995 typedef struct D3D11_TEX2D_VDOV
1997 UINT ArraySlice;
1998 } D3D11_TEX2D_VDOV;
2000 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
2002 GUID DecodeProfile;
2003 D3D11_VDOV_DIMENSION ViewDimension;
2004 union {
2005 D3D11_TEX2D_VDOV Texture2D;
2007 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
2009 typedef enum D3D11_VPIV_DIMENSION
2011 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
2012 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
2013 } D3D11_VPIV_DIMENSION;
2015 typedef struct D3D11_TEX2D_VPIV
2017 UINT MipSlice;
2018 UINT ArraySlice;
2019 } D3D11_TEX2D_VPIV;
2021 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
2023 UINT FourCC;
2024 D3D11_VPIV_DIMENSION ViewDimension;
2025 union {
2026 D3D11_TEX2D_VPIV Texture2D;
2028 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
2030 typedef enum D3D11_VPOV_DIMENSION
2032 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
2033 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
2034 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
2035 } D3D11_VPOV_DIMENSION;
2037 typedef struct D3D11_TEX2D_VPOV
2039 UINT MipSlice;
2040 } D3D11_TEX2D_VPOV;
2042 typedef struct D3D11_TEX2D_ARRAY_VPOV
2044 UINT MipSlice;
2045 UINT FirstArraySlice;
2046 UINT ArraySize;
2047 } D3D11_TEX2D_ARRAY_VPOV;
2049 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
2051 D3D11_VPOV_DIMENSION ViewDimension;
2052 union {
2053 D3D11_TEX2D_VPOV Texture2D;
2054 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
2056 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
2058 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
2060 UINT Caps;
2061 UINT KeyExchangeTypeCount;
2062 UINT BlockAlignmentSize;
2063 ULONGLONG ProtectedMemorySize;
2064 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
2066 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
2068 UINT NumEncryptedBytesAtBeginning;
2069 UINT NumBytesInSkipPattern;
2070 UINT NumBytesInEncryptPattern;
2071 } D3D11_ENCRYPTED_BLOCK_INFO;
2073 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2075 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
2076 UINT BufferIndex;
2077 UINT DataOffset;
2078 UINT DataSize;
2079 UINT FirstMBaddress;
2080 UINT NumMBsInBuffer;
2081 UINT Width;
2082 UINT Height;
2083 UINT Stride;
2084 UINT ReservedBits;
2085 void *pIV;
2086 UINT IVSize;
2087 BOOL PartialEncryption;
2088 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2089 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2091 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2093 UINT Function;
2094 void *pPrivateInputData;
2095 UINT PrivateInputDataSize;
2096 void *pPrivateOutputData;
2097 UINT PrivateOutputDataSize;
2098 UINT ResourceCount;
2099 ID3D11Resource **ppResourceList;
2100 } D3D11_VIDEO_DECODER_EXTENSION;
2102 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2104 float Y;
2105 float Cb;
2106 float Cr;
2107 float A;
2108 } D3D11_VIDEO_COLOR_YCbCrA;
2110 typedef struct D3D11_VIDEO_COLOR_RGBA
2112 float R;
2113 float G;
2114 float B;
2115 float A;
2116 } D3D11_VIDEO_COLOR_RGBA;
2118 typedef struct D3D11_VIDEO_COLOR
2120 union
2122 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2123 D3D11_VIDEO_COLOR_RGBA RGBA;
2125 } D3D11_VIDEO_COLOR;
2127 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2129 UINT Usage : 1;
2130 UINT RGB_Range : 1;
2131 UINT YCbCr_Matrix : 1;
2132 UINT YCbCr_xvYCC : 1;
2133 UINT Nominal_Range : 2;
2134 UINT Reserved : 26;
2135 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2137 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2139 BOOL Enable;
2140 UINT OutputIndex;
2141 UINT InputFrameOrField;
2142 UINT PastFrames;
2143 UINT FutureFrames;
2144 ID3D11VideoProcessorInputView **ppPastSurfaces;
2145 ID3D11VideoProcessorInputView *pInputSurface;
2146 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2147 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2148 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2149 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2150 } D3D11_VIDEO_PROCESSOR_STREAM;
2152 typedef struct D3D11_OMAC
2154 BYTE Omac[D3D11_OMAC_SIZE];
2155 } D3D11_OMAC;
2157 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2159 D3D11_OMAC omac;
2160 GUID ConfigureType;
2161 HANDLE hChannel;
2162 UINT SequenceNumber;
2163 HRESULT ReturnCode;
2164 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2166 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2168 UINT64 Frequency;
2169 BOOL Disjoint;
2170 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2172 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2174 UINT64 IAVertices;
2175 UINT64 IAPrimitives;
2176 UINT64 VSInvocations;
2177 UINT64 GSInvocations;
2178 UINT64 GSPrimitives;
2179 UINT64 CInvocations;
2180 UINT64 CPrimitives;
2181 UINT64 PSInvocations;
2182 UINT64 HSInvocations;
2183 UINT64 DSInvocations;
2184 UINT64 CSInvocations;
2185 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2187 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2189 UINT VertexCountPerInstance;
2190 UINT InstanceCount;
2191 UINT StartVertexLocation;
2192 UINT StartInstanceLocation;
2193 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2195 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2197 UINT IndexCountPerInstance;
2198 UINT InstanceCount;
2199 UINT StartIndexLocation;
2200 INT BaseVertexLocation;
2201 UINT StartInstanceLocation;
2202 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2204 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2206 D3D11_OMAC omac;
2207 GUID ConfigureType;
2208 HANDLE hChannel;
2209 UINT SequenceNumber;
2210 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2212 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2214 GUID QueryType;
2215 HANDLE hChannel;
2216 UINT SequenceNumber;
2217 } D3D11_AUTHENTICATED_QUERY_INPUT;
2219 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2221 D3D11_OMAC omac;
2222 GUID QueryType;
2223 HANDLE hChannel;
2224 UINT SequenceNumber;
2225 HRESULT ReturnCode;
2226 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2228 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2230 struct
2232 UINT ProtectionEnabled : 1;
2233 UINT OverlayOrFullscreenRequired : 1;
2234 UINT Reserved : 30;
2235 } Flags;
2236 UINT Value;
2237 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2239 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2241 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2242 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2243 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2245 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2247 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2248 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2249 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2251 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2253 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2254 HANDLE DeviceHandle;
2255 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2257 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2259 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2260 HANDLE DecoderHandle;
2261 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2263 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2265 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2266 HANDLE DecoderHandle;
2267 HANDLE CryptoSessionHandle;
2268 HANDLE DeviceHandle;
2269 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2271 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2273 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2274 UINT RestrictedSharedResourceProcessCount;
2275 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2277 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2279 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2280 UINT ProcessIndex;
2281 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2283 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2285 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2286 UINT ProcessIndex;
2287 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2288 HANDLE ProcessHandle;
2289 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2291 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2293 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2294 UINT UnrestrictedProtectedSharedResourceCount;
2295 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2297 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2299 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2300 HANDLE DeviceHandle;
2301 HANDLE CryptoSessionHandle;
2302 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2304 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2306 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2307 HANDLE DeviceHandle;
2308 HANDLE CryptoSessionHandle;
2309 UINT OutputIDCount;
2310 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2312 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2314 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2315 HANDLE DeviceHandle;
2316 HANDLE CryptoSessionHandle;
2317 UINT OutputIDIndex;
2318 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2320 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2322 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2323 HANDLE DeviceHandle;
2324 HANDLE CryptoSessionHandle;
2325 UINT OutputIDIndex;
2326 UINT64 OutputID;
2327 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2329 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2331 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2332 D3D11_BUS_TYPE BusType;
2333 BOOL AccessibleInContiguousBlocks;
2334 BOOL AccessibleInNonContiguousBlocks;
2335 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2337 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2339 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2340 UINT EncryptionGuidCount;
2341 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2343 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2345 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2346 UINT EncryptionGuidIndex;
2347 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2349 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2351 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2352 UINT EncryptionGuidIndex;
2353 GUID EncryptionGuid;
2354 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2356 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2358 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2359 GUID EncryptionGuid;
2360 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2362 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2364 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2365 UINT StartSequenceQuery;
2366 UINT StartSequenceConfigure;
2367 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2369 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2371 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2372 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2373 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2375 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2377 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2378 HANDLE DecoderHandle;
2379 HANDLE CryptoSessionHandle;
2380 HANDLE DeviceHandle;
2381 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2383 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2385 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2386 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2387 HANDLE ProcessHandle;
2388 BOOL AllowAccess;
2389 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2391 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2393 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2394 GUID EncryptionGuid;
2395 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2398 object,
2399 local,
2400 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2402 interface ID3D11DeviceChild : IUnknown
2404 void GetDevice(
2405 [out] ID3D11Device **ppDevice);
2406 HRESULT GetPrivateData(
2407 [in] REFGUID guid,
2408 [in, out] UINT *pDataSize,
2409 [out] void *pData);
2410 HRESULT SetPrivateData(
2411 [in] REFGUID guid,
2412 [in] UINT DataSize,
2413 [in] const void *pData);
2414 HRESULT SetPrivateDataInterface(
2415 [in] REFGUID guid,
2416 [in] const IUnknown *pData);
2420 object,
2421 local,
2422 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2424 interface ID3D11Asynchronous : ID3D11DeviceChild
2426 UINT GetDataSize();
2430 object,
2431 local,
2432 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2434 interface ID3D11Query : ID3D11Asynchronous
2436 void GetDesc(
2437 [out] D3D11_QUERY_DESC *pDesc);
2441 object,
2442 local,
2443 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2445 interface ID3D11Resource : ID3D11DeviceChild
2447 void GetType(
2448 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2449 void SetEvictionPriority(
2450 [in] UINT EvictionPriority);
2451 UINT GetEvictionPriority();
2455 object,
2456 local,
2457 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2459 interface ID3D11View : ID3D11DeviceChild
2461 void GetResource(
2462 [out] ID3D11Resource **ppResource);
2466 object,
2467 local,
2468 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2470 interface ID3D11BlendState : ID3D11DeviceChild
2472 void GetDesc(
2473 [out] D3D11_BLEND_DESC *pDesc);
2477 object,
2478 local,
2479 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2481 interface ID3D11Buffer : ID3D11Resource
2483 void GetDesc(
2484 [out] D3D11_BUFFER_DESC *pDesc);
2488 object,
2489 local,
2490 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2492 interface ID3D11ClassInstance : ID3D11DeviceChild
2494 void GetClassLinkage(
2495 [out] ID3D11ClassLinkage **ppLinkage);
2496 void GetDesc(
2497 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2498 void GetInstanceName(
2499 [out] LPSTR pInstanceName,
2500 [in, out] SIZE_T *pBufferLength);
2501 void GetTypeName(
2502 [out] LPSTR pTypeName,
2503 [in, out] SIZE_T *pBufferLength);
2507 object,
2508 local,
2509 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2511 interface ID3D11ClassLinkage : ID3D11DeviceChild
2513 HRESULT GetClassInstance(
2514 [in] LPCSTR pClassInstanceName,
2515 [in] UINT InstanceIndex,
2516 [out] ID3D11ClassInstance **ppInstance);
2517 HRESULT CreateClassInstance(
2518 [in] LPCSTR pClassTypeName,
2519 [in] UINT ConstantBufferOffset,
2520 [in] UINT ConstantVectorOffset,
2521 [in] UINT TextureOffset,
2522 [in] UINT SamplerOffset,
2523 [out] ID3D11ClassInstance **ppInstance);
2527 object,
2528 local,
2529 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2531 interface ID3D11CommandList : ID3D11DeviceChild
2533 UINT GetContextFlags();
2537 object,
2538 local,
2539 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2541 interface ID3D11ComputeShader : ID3D11DeviceChild
2546 object,
2547 local,
2548 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2550 interface ID3D11Counter : ID3D11Asynchronous
2552 void GetDesc(
2553 [out] D3D11_COUNTER_DESC *pDesc);
2557 object,
2558 local,
2559 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2561 interface ID3D11DepthStencilState : ID3D11DeviceChild
2563 void GetDesc(
2564 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2568 object,
2569 local,
2570 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2572 interface ID3D11DepthStencilView : ID3D11View
2574 void GetDesc(
2575 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2579 object,
2580 local,
2581 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2583 interface ID3D11DomainShader : ID3D11DeviceChild
2588 object,
2589 local,
2590 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2592 interface ID3D11GeometryShader : ID3D11DeviceChild
2597 object,
2598 local,
2599 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2601 interface ID3D11HullShader : ID3D11DeviceChild
2606 object,
2607 local,
2608 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2610 interface ID3D11InputLayout : ID3D11DeviceChild
2615 object,
2616 local,
2617 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2619 interface ID3D11PixelShader : ID3D11DeviceChild
2624 object,
2625 local,
2626 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2628 interface ID3D11Predicate : ID3D11Query
2633 object,
2634 local,
2635 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2637 interface ID3D11RasterizerState : ID3D11DeviceChild
2639 void GetDesc(
2640 [out] D3D11_RASTERIZER_DESC *pDesc);
2644 object,
2645 local,
2646 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2648 interface ID3D11RenderTargetView : ID3D11View
2650 void GetDesc(
2651 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2655 object,
2656 local,
2657 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2659 interface ID3D11SamplerState : ID3D11DeviceChild
2661 void GetDesc(
2662 [out] D3D11_SAMPLER_DESC *pDesc);
2666 object,
2667 local,
2668 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2670 interface ID3D11ShaderResourceView : ID3D11View
2672 void GetDesc(
2673 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2677 object,
2678 local,
2679 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2681 interface ID3D11Texture1D : ID3D11Resource
2683 void GetDesc(
2684 [out] D3D11_TEXTURE1D_DESC *pDesc);
2688 object,
2689 local,
2690 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2692 interface ID3D11Texture2D : ID3D11Resource
2694 void GetDesc(
2695 [out] D3D11_TEXTURE2D_DESC *pDesc);
2699 object,
2700 local,
2701 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2703 interface ID3D11Texture3D : ID3D11Resource
2705 void GetDesc(
2706 [out] D3D11_TEXTURE3D_DESC *pDesc);
2710 object,
2711 local,
2712 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2714 interface ID3D11UnorderedAccessView : ID3D11View
2716 void GetDesc(
2717 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2721 object,
2722 local,
2723 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2725 interface ID3D11VertexShader : ID3D11DeviceChild
2730 object,
2731 local,
2732 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2734 interface ID3D11DeviceContext : ID3D11DeviceChild
2736 void VSSetConstantBuffers(
2737 [in] UINT StartSlot,
2738 [in] UINT NumBuffers,
2739 [in] ID3D11Buffer *const *ppConstantBuffers);
2740 void PSSetShaderResources(
2741 [in] UINT StartSlot,
2742 [in] UINT NumViews,
2743 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2744 void PSSetShader(
2745 [in] ID3D11PixelShader *pPixelShader,
2746 [in] ID3D11ClassInstance *const *ppClassInstances,
2747 UINT NumClassInstances);
2748 void PSSetSamplers(
2749 [in] UINT StartSlot,
2750 [in] UINT NumSamplers,
2751 [in] ID3D11SamplerState *const *ppSamplers);
2752 void VSSetShader(
2753 [in] ID3D11VertexShader *pVertexShader,
2754 [in] ID3D11ClassInstance *const *ppClassInstances,
2755 UINT NumClassInstances);
2756 void DrawIndexed(
2757 [in] UINT IndexCount,
2758 [in] UINT StartIndexLocation,
2759 [in] INT BaseVertexLocation);
2760 void Draw(
2761 [in] UINT VertexCount,
2762 [in] UINT StartVertexLocation);
2763 HRESULT Map(
2764 [in] ID3D11Resource *pResource,
2765 [in] UINT Subresource,
2766 [in] D3D11_MAP MapType,
2767 [in] UINT MapFlags,
2768 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2769 void Unmap(
2770 [in] ID3D11Resource *pResource,
2771 [in] UINT Subresource);
2772 void PSSetConstantBuffers(
2773 [in] UINT StartSlot,
2774 [in] UINT NumBuffers,
2775 [in] ID3D11Buffer *const *ppConstantBuffers);
2776 void IASetInputLayout(
2777 [in] ID3D11InputLayout *pInputLayout);
2778 void IASetVertexBuffers(
2779 [in] UINT StartSlot,
2780 [in] UINT NumBuffers,
2781 [in] ID3D11Buffer *const *ppVertexBuffers,
2782 [in] const UINT *pStrides,
2783 [in] const UINT *pOffsets);
2784 void IASetIndexBuffer(
2785 [in] ID3D11Buffer *pIndexBuffer,
2786 [in] DXGI_FORMAT Format,
2787 [in] UINT Offset);
2788 void DrawIndexedInstanced(
2789 [in] UINT IndexCountPerInstance,
2790 [in] UINT InstanceCount,
2791 [in] UINT StartIndexLocation,
2792 [in] INT BaseVertexLocation,
2793 [in] UINT StartInstanceLocation);
2794 void DrawInstanced(
2795 [in] UINT VertexCountPerInstance,
2796 [in] UINT InstanceCount,
2797 [in] UINT StartVertexLocation,
2798 [in] UINT StartInstanceLocation);
2799 void GSSetConstantBuffers(
2800 [in] UINT StartSlot,
2801 [in] UINT NumBuffers,
2802 [in] ID3D11Buffer *const *ppConstantBuffers);
2803 void GSSetShader(
2804 [in] ID3D11GeometryShader *pShader,
2805 [in] ID3D11ClassInstance *const *ppClassInstances,
2806 UINT NumClassInstances);
2807 void IASetPrimitiveTopology(
2808 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2809 void VSSetShaderResources(
2810 [in] UINT StartSlot,
2811 [in] UINT NumViews,
2812 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2813 void VSSetSamplers(
2814 [in] UINT StartSlot,
2815 [in] UINT NumSamplers,
2816 [in] ID3D11SamplerState *const *ppSamplers);
2817 void Begin(
2818 [in] ID3D11Asynchronous *pAsync);
2819 void End(
2820 [in] ID3D11Asynchronous *pAsync);
2821 HRESULT GetData(
2822 [in] ID3D11Asynchronous *pAsync,
2823 [in] void *pData,
2824 [in] UINT DataSize,
2825 [in] UINT GetDataFlags);
2826 void SetPredication(
2827 [in] ID3D11Predicate *pPredicate,
2828 [in] BOOL PredicateValue);
2829 void GSSetShaderResources(
2830 [in] UINT StartSlot,
2831 [in] UINT NumViews,
2832 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2833 void GSSetSamplers(
2834 [in] UINT StartSlot,
2835 [in] UINT NumSamplers,
2836 [in] ID3D11SamplerState *const *ppSamplers);
2837 void OMSetRenderTargets(
2838 [in] UINT NumViews,
2839 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2840 [in] ID3D11DepthStencilView *pDepthStencilView);
2841 void OMSetRenderTargetsAndUnorderedAccessViews(
2842 [in] UINT NumRTVs,
2843 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2844 [in] ID3D11DepthStencilView *pDepthStencilView,
2845 [in] UINT UAVStartSlot,
2846 [in] UINT NumUAVs,
2847 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2848 [in] const UINT *pUAVInitialCounts);
2849 void OMSetBlendState(
2850 [in] ID3D11BlendState *pBlendState,
2851 [in] const FLOAT BlendFactor[4],
2852 [in] UINT SampleMask);
2853 void OMSetDepthStencilState(
2854 [in] ID3D11DepthStencilState *pDepthStencilState,
2855 [in] UINT StencilRef);
2856 void SOSetTargets(
2857 [in] UINT NumBuffers,
2858 [in] ID3D11Buffer *const *ppSOTargets,
2859 [in] const UINT *pOffsets);
2860 void DrawAuto();
2861 void DrawIndexedInstancedIndirect(
2862 [in] ID3D11Buffer *pBufferForArgs,
2863 [in] UINT AlignedByteOffsetForArgs);
2864 void DrawInstancedIndirect(
2865 [in] ID3D11Buffer *pBufferForArgs,
2866 [in] UINT AlignedByteOffsetForArgs);
2867 void Dispatch(
2868 [in] UINT ThreadGroupCountX,
2869 [in] UINT ThreadGroupCountY,
2870 [in] UINT ThreadGroupCountZ);
2871 void DispatchIndirect(
2872 [in] ID3D11Buffer *pBufferForArgs,
2873 [in] UINT AlignedByteOffsetForArgs);
2874 void RSSetState(
2875 [in] ID3D11RasterizerState *pRasterizerState);
2876 void RSSetViewports(
2877 [in] UINT NumViewports,
2878 [in] const D3D11_VIEWPORT *pViewports);
2879 void RSSetScissorRects(
2880 [in] UINT NumRects,
2881 [in] const D3D11_RECT *pRects);
2882 void CopySubresourceRegion(
2883 [in] ID3D11Resource *pDstResource,
2884 [in] UINT DstSubresource,
2885 [in] UINT DstX,
2886 [in] UINT DstY,
2887 [in] UINT DstZ,
2888 [in] ID3D11Resource *pSrcResource,
2889 [in] UINT SrcSubresource,
2890 [in] const D3D11_BOX *pSrcBox);
2891 void CopyResource(
2892 [in] ID3D11Resource *pDstResource,
2893 [in] ID3D11Resource *pSrcResource);
2894 void UpdateSubresource(
2895 [in] ID3D11Resource *pDstResource,
2896 [in] UINT DstSubresource,
2897 [in] const D3D11_BOX *pDstBox,
2898 [in] const void *pSrcData,
2899 [in] UINT SrcRowPitch,
2900 [in] UINT SrcDepthPitch);
2901 void CopyStructureCount(
2902 [in] ID3D11Buffer *pDstBuffer,
2903 [in] UINT DstAlignedByteOffset,
2904 [in] ID3D11UnorderedAccessView *pSrcView);
2905 void ClearRenderTargetView(
2906 [in] ID3D11RenderTargetView *pRenderTargetView,
2907 [in] const FLOAT ColorRGBA[4]);
2908 void ClearUnorderedAccessViewUint(
2909 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2910 [in] const UINT Values[4]);
2911 void ClearUnorderedAccessViewFloat(
2912 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2913 [in] const FLOAT Values[4]);
2914 void ClearDepthStencilView(
2915 [in] ID3D11DepthStencilView *pDepthStencilView,
2916 [in] UINT ClearFlags,
2917 [in] FLOAT Depth,
2918 [in] UINT8 Stencil);
2919 void GenerateMips(
2920 [in] ID3D11ShaderResourceView *pShaderResourceView);
2921 void SetResourceMinLOD(
2922 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2923 FLOAT GetResourceMinLOD(
2924 [in] ID3D11Resource *pResource);
2925 void ResolveSubresource(
2926 [in] ID3D11Resource *pDstResource,
2927 [in] UINT DstSubresource,
2928 [in] ID3D11Resource *pSrcResource,
2929 [in] UINT SrcSubresource,
2930 [in] DXGI_FORMAT Format);
2931 void ExecuteCommandList(
2932 [in] ID3D11CommandList *pCommandList,
2933 BOOL RestoreContextState);
2934 void HSSetShaderResources(
2935 [in] UINT StartSlot,
2936 [in] UINT NumViews,
2937 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2938 void HSSetShader(
2939 [in] ID3D11HullShader *pHullShader,
2940 [in] ID3D11ClassInstance *const *ppClassInstances,
2941 UINT NumClassInstances);
2942 void HSSetSamplers(
2943 [in] UINT StartSlot,
2944 [in] UINT NumSamplers,
2945 [in] ID3D11SamplerState *const *ppSamplers);
2946 void HSSetConstantBuffers(
2947 [in] UINT StartSlot,
2948 [in] UINT NumBuffers,
2949 [in] ID3D11Buffer *const *ppConstantBuffers);
2950 void DSSetShaderResources(
2951 [in] UINT StartSlot,
2952 [in] UINT NumViews,
2953 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2954 void DSSetShader(
2955 [in] ID3D11DomainShader *pDomainShader,
2956 [in] ID3D11ClassInstance *const *ppClassInstances,
2957 UINT NumClassInstances);
2958 void DSSetSamplers(
2959 [in] UINT StartSlot,
2960 [in] UINT NumSamplers,
2961 [in] ID3D11SamplerState *const *ppSamplers);
2962 void DSSetConstantBuffers(
2963 [in] UINT StartSlot,
2964 [in] UINT NumBuffers,
2965 [in] ID3D11Buffer *const *ppConstantBuffers);
2966 void CSSetShaderResources(
2967 [in] UINT StartSlot,
2968 [in] UINT NumViews,
2969 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2970 void CSSetUnorderedAccessViews(
2971 [in] UINT StartSlot,
2972 [in] UINT NumUAVs,
2973 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2974 [in] const UINT *pUAVInitialCounts);
2975 void CSSetShader(
2976 [in] ID3D11ComputeShader *pComputeShader,
2977 [in] ID3D11ClassInstance *const *ppClassInstances,
2978 UINT NumClassInstances);
2979 void CSSetSamplers(
2980 [in] UINT StartSlot,
2981 [in] UINT NumSamplers,
2982 [in] ID3D11SamplerState *const *ppSamplers);
2983 void CSSetConstantBuffers(
2984 [in] UINT StartSlot,
2985 [in] UINT NumBuffers,
2986 [in] ID3D11Buffer *const *ppConstantBuffers);
2987 void VSGetConstantBuffers(
2988 [in] UINT StartSlot,
2989 [in] UINT NumBuffers,
2990 [out] ID3D11Buffer **ppConstantBuffers);
2991 void PSGetShaderResources(
2992 [in] UINT StartSlot,
2993 [in] UINT NumViews,
2994 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2995 void PSGetShader(
2996 [out] ID3D11PixelShader **ppPixelShader,
2997 [out] ID3D11ClassInstance **ppClassInstances,
2998 [in, out] UINT *pNumClassInstances);
2999 void PSGetSamplers(
3000 [in] UINT StartSlot,
3001 [in] UINT NumSamplers,
3002 [out] ID3D11SamplerState **ppSamplers);
3003 void VSGetShader(
3004 [out] ID3D11VertexShader **ppVertexShader,
3005 [out] ID3D11ClassInstance **ppClassInstances,
3006 [in, out] UINT *pNumClassInstances);
3007 void PSGetConstantBuffers(
3008 [in] UINT StartSlot,
3009 [in] UINT NumBuffers,
3010 [out] ID3D11Buffer **ppConstantBuffers);
3011 void IAGetInputLayout(
3012 [out] ID3D11InputLayout **ppInputLayout);
3013 void IAGetVertexBuffers(
3014 [in] UINT StartSlot,
3015 [in] UINT NumBuffers,
3016 [out] ID3D11Buffer **ppVertexBuffers,
3017 [out] UINT *pStrides,
3018 [out] UINT *pOffsets);
3019 void IAGetIndexBuffer(
3020 [out] ID3D11Buffer **pIndexBuffer,
3021 [out] DXGI_FORMAT* Format,
3022 [out] UINT* Offset);
3023 void GSGetConstantBuffers(
3024 [in] UINT StartSlot,
3025 [in] UINT NumBuffers,
3026 [out] ID3D11Buffer **ppConstantBuffers);
3027 void GSGetShader(
3028 [out] ID3D11GeometryShader **ppGeometryShader,
3029 [out] ID3D11ClassInstance **ppClassInstances,
3030 [in, out] UINT *pNumClassInstances);
3031 void IAGetPrimitiveTopology(
3032 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
3033 void VSGetShaderResources(
3034 [in] UINT StartSlot,
3035 [in] UINT NumViews,
3036 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3037 void VSGetSamplers(
3038 [in] UINT StartSlot,
3039 [in] UINT NumSamplers,
3040 [out] ID3D11SamplerState **ppSamplers);
3041 void GetPredication(
3042 [out] ID3D11Predicate **ppPredicate,
3043 [out] BOOL *pPredicateValue);
3044 void GSGetShaderResources(
3045 [in] UINT StartSlot,
3046 [in] UINT NumViews,
3047 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3048 void GSGetSamplers(
3049 [in] UINT StartSlot,
3050 [in] UINT NumSamplers,
3051 [out] ID3D11SamplerState **ppSamplers);
3052 void OMGetRenderTargets(
3053 [in] UINT NumViews,
3054 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3055 [out] ID3D11DepthStencilView **ppDepthStencilView);
3056 void OMGetRenderTargetsAndUnorderedAccessViews(
3057 [in] UINT NumRTVs,
3058 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3059 [out] ID3D11DepthStencilView **ppDepthStencilView,
3060 [in] UINT UAVStartSlot,
3061 [in] UINT NumUAVs,
3062 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3063 void OMGetBlendState(
3064 [out] ID3D11BlendState **ppBlendState,
3065 [out] FLOAT BlendFactor[4],
3066 [out] UINT *pSampleMask);
3067 void OMGetDepthStencilState(
3068 [out] ID3D11DepthStencilState **ppDepthStencilState,
3069 [out] UINT *pStencilRef);
3070 void SOGetTargets(
3071 [in] UINT NumBuffers,
3072 [out] ID3D11Buffer **ppSOTargets);
3073 void RSGetState(
3074 [out] ID3D11RasterizerState **ppRasterizerState);
3075 void RSGetViewports(
3076 [in, out] UINT *pNumViewports,
3077 [out] D3D11_VIEWPORT *pViewports);
3078 void RSGetScissorRects(
3079 [in, out] UINT *pNumRects,
3080 [out] D3D11_RECT *pRects);
3081 void HSGetShaderResources(
3082 [in] UINT StartSlot,
3083 [in] UINT NumViews,
3084 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3085 void HSGetShader(
3086 [out] ID3D11HullShader **ppHullShader,
3087 [out] ID3D11ClassInstance **ppClassInstances,
3088 [in, out] UINT *pNumClassInstances);
3089 void HSGetSamplers(
3090 [in] UINT StartSlot,
3091 [in] UINT NumSamplers,
3092 [out] ID3D11SamplerState **ppSamplers);
3093 void HSGetConstantBuffers(
3094 [in] UINT StartSlot,
3095 [in] UINT NumBuffers,
3096 [out] ID3D11Buffer **ppConstantBuffers);
3097 void DSGetShaderResources(
3098 [in] UINT StartSlot,
3099 [in] UINT NumViews,
3100 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3101 void DSGetShader(
3102 [out] ID3D11DomainShader **ppDomainShader,
3103 [out] ID3D11ClassInstance **ppClassInstances,
3104 [in, out] UINT *pNumClassInstances);
3105 void DSGetSamplers(
3106 [in] UINT StartSlot,
3107 [in] UINT NumSamplers,
3108 [out] ID3D11SamplerState **ppSamplers);
3109 void DSGetConstantBuffers(
3110 [in] UINT StartSlot,
3111 [in] UINT NumBuffers,
3112 [out] ID3D11Buffer **ppConstantBuffers);
3113 void CSGetShaderResources(
3114 [in] UINT StartSlot,
3115 [in] UINT NumViews,
3116 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3117 void CSGetUnorderedAccessViews(
3118 [in] UINT StartSlot,
3119 [in] UINT NumUAVs,
3120 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3121 void CSGetShader(
3122 [out] ID3D11ComputeShader **ppComputeShader,
3123 [out] ID3D11ClassInstance **ppClassInstances,
3124 [in, out] UINT *pNumClassInstances);
3125 void CSGetSamplers(
3126 [in] UINT StartSlot,
3127 [in] UINT NumSamplers,
3128 [out] ID3D11SamplerState **ppSamplers);
3129 void CSGetConstantBuffers(
3130 [in] UINT StartSlot,
3131 [in] UINT NumBuffers,
3132 [out] ID3D11Buffer **ppConstantBuffers);
3133 void ClearState();
3134 void Flush();
3135 D3D11_DEVICE_CONTEXT_TYPE GetType();
3136 UINT GetContextFlags();
3137 HRESULT FinishCommandList(
3138 BOOL RestoreDeferredContextState,
3139 [out] ID3D11CommandList **ppCommandList);
3143 object,
3144 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3145 local,
3146 pointer_default(unique)
3148 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3150 HRESULT GetCertificateSize(
3151 UINT *pCertificateSize);
3152 HRESULT GetCertificate(
3153 UINT CertificateSize,
3154 BYTE *pCertificate);
3155 void GetChannelHandle(
3156 HANDLE *pChannelHandle);
3160 object,
3161 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3162 local,
3163 pointer_default(unique)
3165 interface ID3D11CryptoSession : ID3D11DeviceChild
3167 void GetCryptoType(
3168 GUID *pCryptoType);
3169 void GetDecoderProfile(
3170 GUID *pDecoderProfile);
3171 HRESULT GetCertificateSize(
3172 UINT *pCertificateSize);
3173 HRESULT GetCertificate(
3174 UINT CertificateSize,
3175 BYTE *pCertificate);
3176 void GetCryptoSessionHandle(
3177 HANDLE *pCryptoSessionHandle);
3181 object,
3182 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3183 local,
3184 pointer_default(unique)
3186 interface ID3D11VideoDecoder : ID3D11DeviceChild
3188 HRESULT GetCreationParameters(
3189 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3190 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3191 HRESULT GetDriverHandle(
3192 HANDLE *pDriverHandle);
3196 object,
3197 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3198 local,
3199 pointer_default(unique)
3201 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3203 HRESULT GetVideoProcessorContentDesc(
3204 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3205 HRESULT CheckVideoProcessorFormat(
3206 DXGI_FORMAT Format,
3207 UINT *pFlags);
3208 HRESULT GetVideoProcessorCaps(
3209 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3210 HRESULT GetVideoProcessorRateConversionCaps(
3211 UINT TypeIndex,
3212 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3213 HRESULT GetVideoProcessorCustomRate(
3214 UINT TypeIndex,
3215 UINT CustomRateIndex,
3216 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3217 HRESULT GetVideoProcessorFilterRange(
3218 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3219 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3223 object,
3224 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3225 local,
3226 pointer_default(unique)
3228 interface ID3D11VideoProcessor : ID3D11DeviceChild
3230 void GetContentDesc(
3231 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3232 void GetRateConversionCaps(
3233 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3237 object,
3238 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3239 local,
3240 pointer_default(unique)
3242 interface ID3D11VideoDecoderOutputView : ID3D11View
3244 void GetDesc(
3245 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3249 object,
3250 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3251 local,
3252 pointer_default(unique)
3254 interface ID3D11VideoProcessorInputView : ID3D11View
3256 void GetDesc(
3257 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3261 object,
3262 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3263 local,
3264 pointer_default(unique)
3266 interface ID3D11VideoProcessorOutputView : ID3D11View
3268 void GetDesc(
3269 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3273 object,
3274 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3275 local,
3276 pointer_default(unique)
3278 interface ID3D11VideoDevice : IUnknown
3280 HRESULT CreateVideoDecoder(
3281 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3282 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3283 ID3D11VideoDecoder **ppDecoder);
3284 HRESULT CreateVideoProcessor(
3285 ID3D11VideoProcessorEnumerator *pEnum,
3286 UINT RateConversionIndex,
3287 ID3D11VideoProcessor **ppVideoProcessor);
3288 HRESULT CreateAuthenticatedChannel(
3289 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3290 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3291 HRESULT CreateCryptoSession(
3292 const GUID *pCryptoType,
3293 const GUID *pDecoderProfile,
3294 const GUID *pKeyExchangeType,
3295 ID3D11CryptoSession **ppCryptoSession);
3296 HRESULT CreateVideoDecoderOutputView(
3297 ID3D11Resource *pResource,
3298 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3299 ID3D11VideoDecoderOutputView **ppVDOVView);
3300 HRESULT CreateVideoProcessorInputView(
3301 ID3D11Resource *pResource,
3302 ID3D11VideoProcessorEnumerator *pEnum,
3303 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3304 ID3D11VideoProcessorInputView **ppVPIView);
3305 HRESULT CreateVideoProcessorOutputView(
3306 ID3D11Resource *pResource,
3307 ID3D11VideoProcessorEnumerator *pEnum,
3308 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3309 ID3D11VideoProcessorOutputView **ppVPOView);
3310 HRESULT CreateVideoProcessorEnumerator(
3311 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3312 ID3D11VideoProcessorEnumerator **ppEnum);
3313 UINT GetVideoDecoderProfileCount();
3314 HRESULT GetVideoDecoderProfile(
3315 UINT Index,
3316 GUID *pDecoderProfile);
3317 HRESULT CheckVideoDecoderFormat(
3318 const GUID *pDecoderProfile,
3319 DXGI_FORMAT Format,
3320 BOOL *pSupported);
3321 HRESULT GetVideoDecoderConfigCount(
3322 const D3D11_VIDEO_DECODER_DESC *pDesc,
3323 UINT *pCount);
3324 HRESULT GetVideoDecoderConfig(
3325 const D3D11_VIDEO_DECODER_DESC *pDesc,
3326 UINT Index,
3327 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3328 HRESULT GetContentProtectionCaps(
3329 const GUID *pCryptoType,
3330 const GUID *pDecoderProfile,
3331 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3332 HRESULT CheckCryptoKeyExchange(
3333 const GUID *pCryptoType,
3334 const GUID *pDecoderProfile,
3335 UINT Index,
3336 GUID *pKeyExchangeType);
3337 HRESULT SetPrivateData(
3338 REFGUID guid,
3339 UINT DataSize,
3340 const void *pData);
3341 HRESULT SetPrivateDataInterface(
3342 REFGUID guid,
3343 const IUnknown *pData);
3347 object,
3348 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3349 local,
3350 pointer_default(unique)
3352 interface ID3D11VideoContext : ID3D11DeviceChild
3354 HRESULT GetDecoderBuffer(
3355 [in] ID3D11VideoDecoder *decoder,
3356 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3357 [out] UINT *buffer_size,
3358 [out] void **buffer
3360 HRESULT ReleaseDecoderBuffer(
3361 [in] ID3D11VideoDecoder *decoder,
3362 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3364 HRESULT DecoderBeginFrame(
3365 [in] ID3D11VideoDecoder *decoder,
3366 [in] ID3D11VideoDecoderOutputView *view,
3367 [in] UINT key_size,
3368 [in] const void *key
3370 HRESULT DecoderEndFrame(
3371 [in] ID3D11VideoDecoder *decoder
3373 HRESULT SubmitDecoderBuffers(
3374 [in] ID3D11VideoDecoder *decoder,
3375 [in] UINT buffers_count,
3376 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3378 HRESULT DecoderExtension(
3379 [in] ID3D11VideoDecoder *decoder,
3380 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3382 void VideoProcessorSetOutputTargetRect(
3383 [in] ID3D11VideoProcessor *processor,
3384 [in] BOOL enable,
3385 [in] const RECT *rect
3387 void VideoProcessorSetOutputBackgroundColor(
3388 [in] ID3D11VideoProcessor *processor,
3389 [in] BOOL y_cb_cr,
3390 [in] const D3D11_VIDEO_COLOR *color
3392 void VideoProcessorSetOutputColorSpace(
3393 [in] ID3D11VideoProcessor *processor,
3394 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3396 void VideoProcessorSetOutputAlphaFillMode(
3397 [in] ID3D11VideoProcessor *processor,
3398 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3399 [in] UINT stream_idx
3401 void VideoProcessorSetOutputConstriction(
3402 [in] ID3D11VideoProcessor *processor,
3403 [in] BOOL enable,
3404 [in] SIZE size
3406 void VideoProcessorSetOutputStereoMode(
3407 [in] ID3D11VideoProcessor *processor,
3408 [in] BOOL enable
3410 HRESULT VideoProcessorSetOutputExtension(
3411 [in] ID3D11VideoProcessor *processor,
3412 [in] const GUID *guid,
3413 [in] UINT data_size,
3414 [in] void *data
3416 void VideoProcessorGetOutputTargetRect(
3417 [in] ID3D11VideoProcessor *processor,
3418 [out] BOOL *enabled,
3419 [out] RECT *rect
3421 void VideoProcessorGetOutputBackgroundColor(
3422 [in] ID3D11VideoProcessor *processor,
3423 [out] BOOL *y_cb_cr,
3424 [out] D3D11_VIDEO_COLOR *color
3426 void VideoProcessorGetOutputColorSpace(
3427 [in] ID3D11VideoProcessor *processor,
3428 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3430 void VideoProcessorGetOutputAlphaFillMode(
3431 [in] ID3D11VideoProcessor *processor,
3432 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3433 [out] UINT *stream_idx
3435 void VideoProcessorGetOutputConstriction(
3436 [in] ID3D11VideoProcessor *processor,
3437 [out] BOOL *enabled,
3438 [out] SIZE *size
3440 void VideoProcessorGetOutputStereoMode(
3441 [in] ID3D11VideoProcessor *processor,
3442 [out] BOOL *enabled
3444 HRESULT VideoProcessorGetOutputExtension(
3445 [in] ID3D11VideoProcessor *processor,
3446 [in] const GUID *guid,
3447 [in] UINT data_size,
3448 [out] void *data
3450 void VideoProcessorSetStreamFrameFormat(
3451 [in] ID3D11VideoProcessor *processor,
3452 [in] UINT stream_idx,
3453 [in] D3D11_VIDEO_FRAME_FORMAT format
3455 void VideoProcessorSetStreamColorSpace(
3456 [in] ID3D11VideoProcessor *processor,
3457 [in] UINT stream_idx,
3458 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3460 void VideoProcessorSetStreamOutputRate(
3461 [in] ID3D11VideoProcessor *processor,
3462 [in] UINT stream_idx,
3463 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3464 [in] BOOL repeat,
3465 [in] const DXGI_RATIONAL *custom_rate
3467 void VideoProcessorSetStreamSourceRect(
3468 [in] ID3D11VideoProcessor *processor,
3469 [in] UINT stream_idx,
3470 [in] BOOL enable,
3471 [in] const RECT *rect
3473 void VideoProcessorSetStreamDestRect(
3474 [in] ID3D11VideoProcessor *processor,
3475 [in] UINT stream_idx,
3476 [in] BOOL enable,
3477 [in] const RECT *rect
3479 void VideoProcessorSetStreamAlpha(
3480 [in] ID3D11VideoProcessor *processor,
3481 [in] UINT stream_idx,
3482 [in] BOOL enable,
3483 [in] float alpha
3485 void VideoProcessorSetStreamPalette(
3486 [in] ID3D11VideoProcessor *processor,
3487 [in] UINT stream_idx,
3488 [in] UINT entry_count,
3489 [in] const UINT *entries
3491 void VideoProcessorSetStreamPixelAspectRatio(
3492 [in] ID3D11VideoProcessor *processor,
3493 [in] UINT stream_idx,
3494 [in] BOOL enable,
3495 [in] const DXGI_RATIONAL *src_aspect_ratio,
3496 [in] const DXGI_RATIONAL *dst_aspect_ratio
3498 void VideoProcessorSetStreamLumaKey(
3499 [in] ID3D11VideoProcessor *processor,
3500 [in] UINT stream_idx,
3501 [in] BOOL enable,
3502 [in] float lower,
3503 [in] float upper
3505 void VideoProcessorSetStreamStereoFormat(
3506 [in] ID3D11VideoProcessor *processor,
3507 [in] UINT stream_idx,
3508 [in] BOOL enable,
3509 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3510 [in] BOOL left_view_frame0,
3511 [in] BOOL base_view_frame0,
3512 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3513 [in] int mono_offset
3515 void VideoProcessorSetStreamAutoProcessingMode(
3516 [in] ID3D11VideoProcessor *processor,
3517 [in] UINT stream_idx,
3518 [in] BOOL enable
3520 void VideoProcessorSetStreamFilter(
3521 [in] ID3D11VideoProcessor *processor,
3522 [in] UINT stream_idx,
3523 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3524 [in] BOOL enable,
3525 [in] int level
3527 HRESULT VideoProcessorSetStreamExtension(
3528 [in] ID3D11VideoProcessor *processor,
3529 [in] UINT stream_idx,
3530 [in] const GUID *guid,
3531 [in] UINT data_size,
3532 [in] void *data
3534 void VideoProcessorGetStreamFrameFormat(
3535 [in] ID3D11VideoProcessor *processor,
3536 [in] UINT stream_idx,
3537 [out] D3D11_VIDEO_FRAME_FORMAT *format
3539 void VideoProcessorGetStreamColorSpace(
3540 [in] ID3D11VideoProcessor *processor,
3541 [in] UINT stream_idx,
3542 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3544 void VideoProcessorGetStreamOutputRate(
3545 [in] ID3D11VideoProcessor *processor,
3546 [in] UINT stream_idx,
3547 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3548 [out] BOOL *repeat,
3549 [out] DXGI_RATIONAL *custom_rate
3551 void VideoProcessorGetStreamSourceRect(
3552 [in] ID3D11VideoProcessor *processor,
3553 [in] UINT stream_idx,
3554 [out] BOOL *enabled,
3555 [out] RECT *rect
3557 void VideoProcessorGetStreamDestRect(
3558 [in] ID3D11VideoProcessor *processor,
3559 [in] UINT stream_idx,
3560 [out] BOOL *enabled,
3561 [out] RECT *rect
3563 void VideoProcessorGetStreamAlpha(
3564 [in] ID3D11VideoProcessor *processor,
3565 [in] UINT stream_idx,
3566 [out] BOOL *enabled,
3567 [out] float *alpha
3569 void VideoProcessorGetStreamPalette(
3570 [in] ID3D11VideoProcessor *processor,
3571 [in] UINT stream_idx,
3572 [in] UINT entry_count,
3573 [out] UINT *entries
3575 void VideoProcessorGetStreamPixelAspectRatio(
3576 [in] ID3D11VideoProcessor *processor,
3577 [in] UINT stream_idx,
3578 [out] BOOL *enabled,
3579 [out] DXGI_RATIONAL *src_aspect_ratio,
3580 [out] DXGI_RATIONAL *dst_aspect_ratio
3582 void VideoProcessorGetStreamLumaKey(
3583 [in] ID3D11VideoProcessor *processor,
3584 [in] UINT stream_idx,
3585 [out] BOOL *enabled,
3586 [out] float *lower,
3587 [out] float *upper
3589 void VideoProcessorGetStreamStereoFormat(
3590 [in] ID3D11VideoProcessor *processor,
3591 [in] UINT stream_idx,
3592 [out] BOOL *enabled,
3593 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3594 [out] BOOL *left_view_frame0,
3595 [out] BOOL *base_view_frame0,
3596 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3597 [out] int *mono_offset
3599 void VideoProcessorGetStreamAutoProcessingMode(
3600 [in] ID3D11VideoProcessor *processor,
3601 [in] UINT stream_idx,
3602 [out] BOOL *enabled
3604 void VideoProcessorGetStreamFilter(
3605 [in] ID3D11VideoProcessor *processor,
3606 [in] UINT stream_idx,
3607 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3608 [out] BOOL *enabled,
3609 [out] int *level
3611 HRESULT VideoProcessorGetStreamExtension(
3612 [in] ID3D11VideoProcessor *processor,
3613 [in] UINT stream_idx,
3614 [in] const GUID *guid,
3615 [in] UINT data_size,
3616 [out] void *data
3618 HRESULT VideoProcessorBlt(
3619 [in] ID3D11VideoProcessor *processor,
3620 [in] ID3D11VideoProcessorOutputView *view,
3621 [in] UINT frame_idx,
3622 [in] UINT stream_count,
3623 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3625 HRESULT NegotiateCryptoSessionKeyExchange(
3626 [in] ID3D11CryptoSession *session,
3627 [in] UINT data_size,
3628 [in, out] void *data
3630 void EncryptionBlt(
3631 [in] ID3D11CryptoSession *session,
3632 [in] ID3D11Texture2D *src_surface,
3633 [in] ID3D11Texture2D *dst_surface,
3634 [in] UINT iv_size,
3635 [in, out] void *iv
3637 void DecryptionBlt(
3638 [in] ID3D11CryptoSession *session,
3639 [in] ID3D11Texture2D *src_surface,
3640 [in] ID3D11Texture2D *dst_surface,
3641 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3642 [in] UINT key_size,
3643 [in] const void *key,
3644 [in] UINT iv_size,
3645 [in, out] void *iv
3647 void StartSessionKeyRefresh(
3648 [in] ID3D11CryptoSession *session,
3649 [in] UINT random_number_size,
3650 [out] void *random_number
3652 void FinishSessionKeyRefresh(
3653 [in] ID3D11CryptoSession *session
3655 HRESULT GetEncryptionBltKey(
3656 [in] ID3D11CryptoSession *session,
3657 [in] UINT key_size,
3658 [out] void *key
3660 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3661 [in] ID3D11AuthenticatedChannel *channel,
3662 [in] UINT data_size,
3663 [in, out] void *data
3665 HRESULT QueryAuthenticatedChannel(
3666 [in] ID3D11AuthenticatedChannel *channel,
3667 [in] UINT input_size,
3668 [in] const void *input,
3669 [in] UINT output_size,
3670 [out] void *output
3672 HRESULT ConfigureAuthenticatedChannel(
3673 [in] ID3D11AuthenticatedChannel *channel,
3674 [in] UINT input_size,
3675 [in] const void *input,
3676 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3678 void VideoProcessorSetStreamRotation(
3679 [in] ID3D11VideoProcessor *processor,
3680 [in] UINT stream_idx,
3681 [in] BOOL enable,
3682 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3684 void VideoProcessorGetStreamRotation(
3685 [in] ID3D11VideoProcessor *processor,
3686 [in] UINT stream_idx,
3687 [out] BOOL *enable,
3688 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3693 object,
3694 local,
3695 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3697 interface ID3D11Device : IUnknown
3699 HRESULT CreateBuffer(
3700 [in] const D3D11_BUFFER_DESC *pDesc,
3701 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3702 [out] ID3D11Buffer **ppBuffer);
3703 HRESULT CreateTexture1D(
3704 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3705 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3706 [out] ID3D11Texture1D **ppTexture1D);
3707 HRESULT CreateTexture2D(
3708 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3709 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3710 [out] ID3D11Texture2D **ppTexture2D);
3711 HRESULT CreateTexture3D(
3712 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3713 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3714 [out] ID3D11Texture3D **ppTexture3D);
3715 HRESULT CreateShaderResourceView(
3716 [in] ID3D11Resource *pResource,
3717 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3718 [out] ID3D11ShaderResourceView **ppSRView);
3719 HRESULT CreateUnorderedAccessView(
3720 [in] ID3D11Resource *pResource,
3721 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3722 [out] ID3D11UnorderedAccessView **ppUAView);
3723 HRESULT CreateRenderTargetView(
3724 [in] ID3D11Resource *pResource,
3725 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3726 [out] ID3D11RenderTargetView **ppRTView);
3727 HRESULT CreateDepthStencilView(
3728 [in] ID3D11Resource *pResource,
3729 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3730 [out] ID3D11DepthStencilView **ppDepthStencilView);
3731 HRESULT CreateInputLayout(
3732 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3733 [in] UINT NumElements,
3734 [in] const void *pShaderBytecodeWithInputSignature,
3735 [in] SIZE_T BytecodeLength,
3736 [out] ID3D11InputLayout **ppInputLayout);
3737 HRESULT CreateVertexShader(
3738 [in] const void *pShaderBytecode,
3739 [in] SIZE_T BytecodeLength,
3740 [in] ID3D11ClassLinkage *pClassLinkage,
3741 [out] ID3D11VertexShader **ppVertexShader);
3742 HRESULT CreateGeometryShader(
3743 [in] const void *pShaderBytecode,
3744 [in] SIZE_T BytecodeLength,
3745 [in] ID3D11ClassLinkage *pClassLinkage,
3746 [out] ID3D11GeometryShader **ppGeometryShader);
3747 HRESULT CreateGeometryShaderWithStreamOutput(
3748 [in] const void *pShaderBytecode,
3749 [in] SIZE_T BytecodeLength,
3750 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3751 [in] UINT NumEntries,
3752 [in] const UINT *pBufferStrides,
3753 [in] UINT NumStrides,
3754 [in] UINT RasterizedStream,
3755 [in] ID3D11ClassLinkage *pClassLinkage,
3756 [out] ID3D11GeometryShader **ppGeometryShader);
3757 HRESULT CreatePixelShader(
3758 [in] const void *pShaderBytecode,
3759 [in] SIZE_T BytecodeLength,
3760 [in] ID3D11ClassLinkage *pClassLinkage,
3761 [out] ID3D11PixelShader **ppPixelShader);
3762 HRESULT CreateHullShader(
3763 [in] const void *pShaderBytecode,
3764 [in] SIZE_T BytecodeLength,
3765 [in] ID3D11ClassLinkage *pClassLinkage,
3766 [out] ID3D11HullShader **ppHullShader);
3767 HRESULT CreateDomainShader(
3768 [in] const void *pShaderBytecode,
3769 [in] SIZE_T BytecodeLength,
3770 [in] ID3D11ClassLinkage *pClassLinkage,
3771 [out] ID3D11DomainShader **ppDomainShader);
3772 HRESULT CreateComputeShader(
3773 [in] const void *pShaderBytecode,
3774 [in] SIZE_T BytecodeLength,
3775 [in] ID3D11ClassLinkage *pClassLinkage,
3776 [out] ID3D11ComputeShader **ppComputeShader);
3777 HRESULT CreateClassLinkage(
3778 [out] ID3D11ClassLinkage **ppLinkage);
3779 HRESULT CreateBlendState(
3780 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3781 [out] ID3D11BlendState **ppBlendState);
3782 HRESULT CreateDepthStencilState(
3783 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3784 [out] ID3D11DepthStencilState **ppDepthStencilState);
3785 HRESULT CreateRasterizerState(
3786 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3787 [out] ID3D11RasterizerState **ppRasterizerState);
3788 HRESULT CreateSamplerState(
3789 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3790 [out] ID3D11SamplerState **ppSamplerState);
3791 HRESULT CreateQuery(
3792 [in] const D3D11_QUERY_DESC *pQueryDesc,
3793 [out] ID3D11Query **ppQuery);
3794 HRESULT CreatePredicate(
3795 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3796 [out] ID3D11Predicate **ppPredicate);
3797 HRESULT CreateCounter(
3798 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3799 [out] ID3D11Counter **ppCounter);
3800 HRESULT CreateDeferredContext(
3801 UINT ContextFlags,
3802 [out] ID3D11DeviceContext **ppDeferredContext);
3803 HRESULT OpenSharedResource(
3804 [in] HANDLE hResource,
3805 [in] REFIID ReturnedInterface,
3806 [out] void **ppResource);
3807 HRESULT CheckFormatSupport(
3808 [in] DXGI_FORMAT Format,
3809 [out] UINT *pFormatSupport);
3810 HRESULT CheckMultisampleQualityLevels(
3811 [in] DXGI_FORMAT Format,
3812 [in] UINT SampleCount,
3813 [out] UINT *pNumQualityLevels);
3814 void CheckCounterInfo(
3815 [out] D3D11_COUNTER_INFO *pCounterInfo);
3816 HRESULT CheckCounter(
3817 [in] const D3D11_COUNTER_DESC *pDesc,
3818 [out] D3D11_COUNTER_TYPE *pType,
3819 [out] UINT *pActiveCounters,
3820 [out] LPSTR szName,
3821 [in, out] UINT *pNameLength,
3822 [out] LPSTR szUnits,
3823 [in, out] UINT *pUnitsLength,
3824 [out] LPSTR szDescription,
3825 [in, out] UINT *pDescriptionLength);
3826 HRESULT CheckFeatureSupport(
3827 D3D11_FEATURE Feature,
3828 [out] void *pFeatureSupportData,
3829 UINT FeatureSupportDataSize);
3830 HRESULT GetPrivateData(
3831 [in] REFGUID guid,
3832 [in, out] UINT *pDataSize,
3833 [out] void *pData);
3834 HRESULT SetPrivateData(
3835 [in] REFGUID guid,
3836 [in] UINT DataSize,
3837 [in] const void *pData);
3838 HRESULT SetPrivateDataInterface(
3839 [in] REFGUID guid,
3840 [in] const IUnknown *pData);
3841 D3D_FEATURE_LEVEL GetFeatureLevel();
3842 UINT GetCreationFlags();
3843 HRESULT GetDeviceRemovedReason();
3844 void GetImmediateContext(
3845 [out] ID3D11DeviceContext **ppImmediateContext);
3846 HRESULT SetExceptionMode(UINT RaiseFlags);
3847 UINT GetExceptionMode();
3850 typedef enum D3D11_CREATE_DEVICE_FLAG {
3851 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3852 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3853 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3854 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3855 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3856 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3857 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3858 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3859 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3860 } D3D11_CREATE_DEVICE_FLAG;
3862 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
3864 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001,
3865 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002,
3866 } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
3868 const UINT D3D11_SDK_VERSION = 7;
3870 cpp_quote("#include <d3d10_1.h>")
3871 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3872 cpp_quote("# include <d3d11sdklayers.h>")
3873 cpp_quote("#endif")
3874 cpp_quote("#include <d3d10misc.h>")
3875 cpp_quote("#include <d3d10shader.h>")
3876 cpp_quote("#include <d3d10effect.h>")
3877 cpp_quote("#include <d3d10_1shader.h>")
3879 const UINT _FACD3D11 = 0x87c;
3880 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3882 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3883 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3885 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3886 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3888 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3889 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3890 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3892 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3893 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3894 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3895 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);