mstask: Implement better stub for ITask::GetMostRecentRunTime().
[wine.git] / include / d3d11.idl
blobb4cc3be5a731660faaa37f6477f50c2eb1285b5e
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_PROCESSOR_CAPS
365 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
366 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
367 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
368 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
369 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
370 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
371 } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
373 typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
375 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
376 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
377 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
378 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
379 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
380 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
381 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
382 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
383 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
384 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
385 } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
387 typedef enum D3D11_CONTENT_PROTECTION_CAPS
389 D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
390 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
391 D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
392 D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
393 D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
394 D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
395 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
396 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
397 D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
398 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
399 D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
400 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
401 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
402 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
403 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
404 } D3D11_CONTENT_PROTECTION_CAPS;
406 typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
408 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
409 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
410 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
411 } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
413 typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
415 D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
416 D3D11_PROCESSIDTYPE_DWM = 0x00000001,
417 D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
418 } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
420 typedef enum D3D11_BUS_TYPE
422 D3D11_BUS_TYPE_OTHER = 0x00000000,
423 D3D11_BUS_TYPE_PCI = 0x00000001,
424 D3D11_BUS_TYPE_PCIX = 0x00000002,
425 D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
426 D3D11_BUS_TYPE_AGP = 0x00000004,
427 D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
428 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
429 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
430 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
431 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
432 D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
433 } D3D11_BUS_TYPE;
435 typedef struct D3D11_BOX
437 UINT left;
438 UINT top;
439 UINT front;
440 UINT right;
441 UINT bottom;
442 UINT back;
443 } D3D11_BOX;
445 typedef struct D3D11_BUFFER_RTV
447 union
449 UINT FirstElement;
450 UINT ElementOffset;
452 union
454 UINT NumElements;
455 UINT ElementWidth;
457 } D3D11_BUFFER_RTV;
459 typedef struct D3D11_BUFFER_SRV
461 union
463 UINT FirstElement;
464 UINT ElementOffset;
466 union
468 UINT NumElements;
469 UINT ElementWidth;
471 } D3D11_BUFFER_SRV;
473 typedef struct D3D11_BUFFER_UAV
475 UINT FirstElement;
476 UINT NumElements;
477 UINT Flags;
478 } D3D11_BUFFER_UAV;
480 typedef struct D3D11_BUFFEREX_SRV
482 UINT FirstElement;
483 UINT NumElements;
484 UINT Flags;
485 } D3D11_BUFFEREX_SRV;
487 typedef struct D3D11_CLASS_INSTANCE_DESC
489 UINT InstanceId;
490 UINT InstanceIndex;
491 UINT TypeId;
492 UINT ConstantBuffer;
493 UINT BaseConstantBufferOffset;
494 UINT BaseTexture;
495 UINT BaseSampler;
496 BOOL Created;
497 } D3D11_CLASS_INSTANCE_DESC;
499 typedef enum D3D11_COMPARISON_FUNC
501 D3D11_COMPARISON_NEVER = 1,
502 D3D11_COMPARISON_LESS,
503 D3D11_COMPARISON_EQUAL,
504 D3D11_COMPARISON_LESS_EQUAL,
505 D3D11_COMPARISON_GREATER,
506 D3D11_COMPARISON_NOT_EQUAL,
507 D3D11_COMPARISON_GREATER_EQUAL,
508 D3D11_COMPARISON_ALWAYS
509 } D3D11_COMPARISON_FUNC;
511 typedef enum D3D11_COUNTER
513 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
514 } D3D11_COUNTER;
516 typedef struct D3D11_COUNTER_DESC
518 D3D11_COUNTER Counter;
519 UINT MiscFlags;
520 } D3D11_COUNTER_DESC;
522 typedef struct D3D11_COUNTER_INFO
524 D3D11_COUNTER LastDeviceDependentCounter;
525 UINT NumSimultaneousCounters;
526 UINT8 NumDetectableParallelUnits;
527 } D3D11_COUNTER_INFO;
529 typedef enum D3D11_COUNTER_TYPE
531 D3D11_COUNTER_TYPE_FLOAT32,
532 D3D11_COUNTER_TYPE_UINT16,
533 D3D11_COUNTER_TYPE_UINT32,
534 D3D11_COUNTER_TYPE_UINT64,
535 } D3D11_COUNTER_TYPE;
537 typedef enum D3D11_CULL_MODE
539 D3D11_CULL_NONE = 1,
540 D3D11_CULL_FRONT,
541 D3D11_CULL_BACK
542 } D3D11_CULL_MODE;
544 typedef enum D3D11_DEPTH_WRITE_MASK
546 D3D11_DEPTH_WRITE_MASK_ZERO,
547 D3D11_DEPTH_WRITE_MASK_ALL,
548 } D3D11_DEPTH_WRITE_MASK;
550 typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
552 D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
553 D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
554 } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
556 typedef enum D3D11_DEVICE_CONTEXT_TYPE
558 D3D11_DEVICE_CONTEXT_IMMEDIATE,
559 D3D11_DEVICE_CONTEXT_DEFERRED,
560 } D3D11_DEVICE_CONTEXT_TYPE;
562 typedef enum D3D11_DSV_DIMENSION
564 D3D11_DSV_DIMENSION_UNKNOWN,
565 D3D11_DSV_DIMENSION_TEXTURE1D,
566 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
567 D3D11_DSV_DIMENSION_TEXTURE2D,
568 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
569 D3D11_DSV_DIMENSION_TEXTURE2DMS,
570 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
571 } D3D11_DSV_DIMENSION;
573 typedef enum D3D11_FEATURE
575 D3D11_FEATURE_THREADING,
576 D3D11_FEATURE_DOUBLES,
577 D3D11_FEATURE_FORMAT_SUPPORT,
578 D3D11_FEATURE_FORMAT_SUPPORT2,
579 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
580 D3D11_FEATURE_D3D11_OPTIONS,
581 D3D11_FEATURE_ARCHITECTURE_INFO,
582 D3D11_FEATURE_D3D9_OPTIONS,
583 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
584 D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
585 D3D11_FEATURE_D3D11_OPTIONS1,
586 D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
587 D3D11_FEATURE_MARKER_SUPPORT,
588 D3D11_FEATURE_D3D9_OPTIONS1,
589 D3D11_FEATURE_D3D11_OPTIONS2,
590 D3D11_FEATURE_D3D11_OPTIONS3,
591 D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
592 D3D11_FEATURE_D3D11_OPTIONS4,
593 D3D11_FEATURE_SHADER_CACHE,
594 } D3D11_FEATURE;
596 typedef struct D3D11_FEATURE_DATA_THREADING
598 BOOL DriverConcurrentCreates;
599 BOOL DriverCommandLists;
600 } D3D11_FEATURE_DATA_THREADING;
602 typedef struct D3D11_FEATURE_DATA_DOUBLES
604 BOOL DoublePrecisionFloatShaderOps;
605 } D3D11_FEATURE_DATA_DOUBLES;
607 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
609 DXGI_FORMAT InFormat;
610 UINT OutFormatSupport;
611 } D3D11_FEATURE_DATA_FORMAT_SUPPORT;
613 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
615 DXGI_FORMAT InFormat;
616 UINT OutFormatSupport2;
617 } D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
619 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
621 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
622 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
624 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
626 BOOL OutputMergerLogicOp;
627 BOOL UAVOnlyRenderingForcedSampleCount;
628 BOOL DiscardAPIsSeenByDriver;
629 BOOL FlagsForUpdateAndCopySeenByDriver;
630 BOOL ClearView;
631 BOOL CopyWithOverlap;
632 BOOL ConstantBufferPartialUpdate;
633 BOOL ConstantBufferOffsetting;
634 BOOL MapNoOverwriteOnDynamicConstantBuffer;
635 BOOL MapNoOverwriteOnDynamicBufferSRV;
636 BOOL MultisampleRTVWithForcedSampleCountOne;
637 BOOL SAD4ShaderInstructions;
638 BOOL ExtendedDoublesShaderInstructions;
639 BOOL ExtendedResourceSharing;
640 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
642 typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
644 BOOL TileBasedDeferredRenderer;
645 } D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
647 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
649 BOOL FullNonPow2TextureSupport;
650 } D3D11_FEATURE_DATA_D3D9_OPTIONS;
652 typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
654 BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
655 } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
657 typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
659 D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
660 D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
661 } D3D11_SHADER_MIN_PRECISION_SUPPORT;
663 typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
665 UINT PixelShaderMinPrecision;
666 UINT AllOtherShaderStagesMinPrecision;
667 } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
669 typedef enum D3D11_TILED_RESOURCES_TIER
671 D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
672 D3D11_TILED_RESOURCES_TIER_1 = 0x1,
673 D3D11_TILED_RESOURCES_TIER_2 = 0x2,
674 D3D11_TILED_RESOURCES_TIER_3 = 0x3,
675 } D3D11_TILED_RESOURCES_TIER;
677 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
679 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
680 BOOL MinMaxFiltering;
681 BOOL ClearViewAlsoSupportsDepthOnlyFormats;
682 BOOL MapOnDefaultBuffers;
683 } D3D11_FEATURE_DATA_D3D11_OPTIONS1;
685 typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
687 BOOL SimpleInstancingSupported;
688 } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
690 typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
692 BOOL Profile;
693 } D3D11_FEATURE_DATA_MARKER_SUPPORT;
695 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
697 BOOL FullNonPow2TextureSupported;
698 BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
699 BOOL SimpleInstancingSupported;
700 BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
701 } D3D11_FEATURE_DATA_D3D9_OPTIONS1;
703 typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
705 D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
706 D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
707 D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
708 D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
709 } D3D11_CONSERVATIVE_RASTERIZATION_TIER;
711 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
713 BOOL PSSpecifiedStencilRefSupported;
714 BOOL TypedUAVLoadAdditionalFormats;
715 BOOL ROVsSupported;
716 D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
717 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
718 BOOL MapOnDefaultTextures;
719 BOOL StandardSwizzle;
720 BOOL UnifiedMemoryArchitecture;
721 } D3D11_FEATURE_DATA_D3D11_OPTIONS2;
723 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
725 BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
726 } D3D11_FEATURE_DATA_D3D11_OPTIONS3;
728 typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
730 UINT MaxGPUVirtualAddressBitsPerResource;
731 UINT MaxGPUVirtualAddressBitsPerProcess;
732 } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
734 typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
736 D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
737 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
738 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
739 } D3D11_SHADER_CACHE_SUPPORT_FLAGS;
741 typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
743 UINT SupportFlags;
744 } D3D11_FEATURE_DATA_SHADER_CACHE;
746 typedef enum D3D11_FILL_MODE
748 D3D11_FILL_WIREFRAME = 2,
749 D3D11_FILL_SOLID
750 } D3D11_FILL_MODE;
752 typedef enum D3D11_FILTER_TYPE
754 D3D11_FILTER_TYPE_POINT = 0,
755 D3D11_FILTER_TYPE_LINEAR = 1
756 } D3D11_FILTER_TYPE;
758 const UINT D3D11_MIN_FILTER_SHIFT = 4;
759 const UINT D3D11_MAG_FILTER_SHIFT = 2;
760 const UINT D3D11_MIP_FILTER_SHIFT = 0;
761 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
762 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
763 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
765 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
766 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
767 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
768 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
769 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
771 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
772 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
773 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
774 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
776 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
777 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
779 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
780 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
782 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
783 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
785 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
787 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
788 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
789 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
790 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
791 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
793 typedef enum D3D11_FILTER
795 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
796 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
797 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
798 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
799 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
800 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
801 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
802 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
803 D3D11_FILTER_ANISOTROPIC = 0x55,
804 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
805 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
806 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
807 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
808 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
809 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
810 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
811 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
812 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
813 } D3D11_FILTER;
815 typedef enum D3D11_DSV_FLAG
817 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
818 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
819 } D3D11_DSV_FLAG;
821 typedef enum D3D11_BUFFEREX_SRV_FLAG
823 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
824 } D3D11_BUFFEREX_SRV_FLAG;
826 typedef enum D3D11_UAV_FLAG
828 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
829 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
830 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
831 } D3D11_UAV_FLAG;
833 typedef enum D3D11_INPUT_CLASSIFICATION
835 D3D11_INPUT_PER_VERTEX_DATA,
836 D3D11_INPUT_PER_INSTANCE_DATA,
837 } D3D11_INPUT_CLASSIFICATION;
839 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
841 typedef struct D3D11_INPUT_ELEMENT_DESC
843 LPCSTR SemanticName;
844 UINT SemanticIndex;
845 DXGI_FORMAT Format;
846 UINT InputSlot;
847 UINT AlignedByteOffset;
848 D3D11_INPUT_CLASSIFICATION InputSlotClass;
849 UINT InstanceDataStepRate;
850 } D3D11_INPUT_ELEMENT_DESC;
852 typedef enum D3D11_MAP
854 D3D11_MAP_READ = 1,
855 D3D11_MAP_WRITE,
856 D3D11_MAP_READ_WRITE,
857 D3D11_MAP_WRITE_DISCARD,
858 D3D11_MAP_WRITE_NO_OVERWRITE
859 } D3D11_MAP;
861 typedef enum D3D11_MAP_FLAG
863 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
864 } D3D11_MAP_FLAG;
866 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
868 UINT64 NumPrimitivesWritten;
869 UINT64 PrimitivesStorageNeeded;
870 } D3D11_QUERY_DATA_SO_STATISTICS;
872 typedef struct D3D11_MAPPED_SUBRESOURCE
874 void *pData;
875 UINT RowPitch;
876 UINT DepthPitch;
877 } D3D11_MAPPED_SUBRESOURCE;
879 typedef enum D3D11_QUERY
881 D3D11_QUERY_EVENT,
882 D3D11_QUERY_OCCLUSION,
883 D3D11_QUERY_TIMESTAMP,
884 D3D11_QUERY_TIMESTAMP_DISJOINT,
885 D3D11_QUERY_PIPELINE_STATISTICS,
886 D3D11_QUERY_OCCLUSION_PREDICATE,
887 D3D11_QUERY_SO_STATISTICS,
888 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
889 D3D11_QUERY_SO_STATISTICS_STREAM0,
890 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
891 D3D11_QUERY_SO_STATISTICS_STREAM1,
892 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
893 D3D11_QUERY_SO_STATISTICS_STREAM2,
894 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
895 D3D11_QUERY_SO_STATISTICS_STREAM3,
896 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
897 } D3D11_QUERY;
899 typedef enum D3D11_QUERY_MISC_FLAG
901 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
902 } D3D11_QUERY_MISC_FLAG;
904 typedef enum D3D11_ASYNC_GETDATA_FLAG
906 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
907 } D3D11_ASYNC_GETDATA_FLAG;
909 typedef enum D3D11_RESOURCE_MISC_FLAG
911 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
912 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
913 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
914 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
915 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
916 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
917 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
918 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
919 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
920 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
921 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
922 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
923 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
924 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
925 } D3D11_RESOURCE_MISC_FLAG;
927 typedef struct D3D11_QUERY_DESC
929 D3D11_QUERY Query;
930 UINT MiscFlags;
931 } D3D11_QUERY_DESC;
933 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
934 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
935 cpp_quote(" CD3D11_QUERY_DESC() {}")
936 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
937 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
938 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
939 cpp_quote(" Query = query;")
940 cpp_quote(" MiscFlags = misc_flags;")
941 cpp_quote(" }")
942 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
943 cpp_quote(" return *this;")
944 cpp_quote(" }")
945 cpp_quote("};")
946 cpp_quote("#endif")
948 typedef struct D3D11_RASTERIZER_DESC
950 D3D11_FILL_MODE FillMode;
951 D3D11_CULL_MODE CullMode;
952 BOOL FrontCounterClockwise;
953 INT DepthBias;
954 FLOAT DepthBiasClamp;
955 FLOAT SlopeScaledDepthBias;
956 BOOL DepthClipEnable;
957 BOOL ScissorEnable;
958 BOOL MultisampleEnable;
959 BOOL AntialiasedLineEnable;
960 } D3D11_RASTERIZER_DESC;
962 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
963 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
964 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
965 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
966 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
967 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
968 cpp_quote(" CullMode = D3D11_CULL_BACK;")
969 cpp_quote(" FrontCounterClockwise = FALSE;")
970 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
971 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
972 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
973 cpp_quote(" DepthClipEnable = TRUE;")
974 cpp_quote(" ScissorEnable = FALSE;")
975 cpp_quote(" MultisampleEnable = FALSE;")
976 cpp_quote(" AntialiasedLineEnable = FALSE;")
977 cpp_quote(" }")
978 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
979 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
980 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
981 cpp_quote(" FillMode = fillMode;")
982 cpp_quote(" CullMode = cullMode;")
983 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
984 cpp_quote(" DepthBias = depthBias;")
985 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
986 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
987 cpp_quote(" DepthClipEnable = depthClipEnable;")
988 cpp_quote(" ScissorEnable = scissorEnable;")
989 cpp_quote(" MultisampleEnable = multisampleEnable;")
990 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
991 cpp_quote(" }")
992 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
993 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
994 cpp_quote("};")
995 cpp_quote("#endif")
997 typedef enum D3D11_RESOURCE_DIMENSION
999 D3D11_RESOURCE_DIMENSION_UNKNOWN,
1000 D3D11_RESOURCE_DIMENSION_BUFFER,
1001 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
1002 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
1003 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
1004 } D3D11_RESOURCE_DIMENSION;
1006 typedef enum D3D11_RTV_DIMENSION
1008 D3D11_RTV_DIMENSION_UNKNOWN,
1009 D3D11_RTV_DIMENSION_BUFFER,
1010 D3D11_RTV_DIMENSION_TEXTURE1D,
1011 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
1012 D3D11_RTV_DIMENSION_TEXTURE2D,
1013 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
1014 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1015 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1016 D3D11_RTV_DIMENSION_TEXTURE3D,
1017 } D3D11_RTV_DIMENSION;
1019 typedef struct D3D11_SO_DECLARATION_ENTRY
1021 UINT Stream;
1022 LPCSTR SemanticName;
1023 UINT SemanticIndex;
1024 BYTE StartComponent;
1025 BYTE ComponentCount;
1026 BYTE OutputSlot;
1027 } D3D11_SO_DECLARATION_ENTRY;
1029 typedef enum D3D11_STENCIL_OP
1031 D3D11_STENCIL_OP_KEEP = 1,
1032 D3D11_STENCIL_OP_ZERO,
1033 D3D11_STENCIL_OP_REPLACE,
1034 D3D11_STENCIL_OP_INCR_SAT,
1035 D3D11_STENCIL_OP_DECR_SAT,
1036 D3D11_STENCIL_OP_INVERT,
1037 D3D11_STENCIL_OP_INCR,
1038 D3D11_STENCIL_OP_DECR
1039 } D3D11_STENCIL_OP;
1041 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1042 cpp_quote("}")
1043 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1044 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1045 cpp_quote("}")
1046 cpp_quote("extern \"C\"{")
1047 cpp_quote("#endif")
1049 typedef struct D3D11_SUBRESOURCE_DATA
1051 const void *pSysMem;
1052 UINT SysMemPitch;
1053 UINT SysMemSlicePitch;
1054 } D3D11_SUBRESOURCE_DATA;
1056 typedef struct D3D11_TEX1D_ARRAY_DSV
1058 UINT MipSlice;
1059 UINT FirstArraySlice;
1060 UINT ArraySize;
1061 } D3D11_TEX1D_ARRAY_DSV;
1063 typedef struct D3D11_TEX1D_ARRAY_RTV
1065 UINT MipSlice;
1066 UINT FirstArraySlice;
1067 UINT ArraySize;
1068 } D3D11_TEX1D_ARRAY_RTV;
1070 typedef struct D3D11_TEX1D_ARRAY_SRV
1072 UINT MostDetailedMip;
1073 UINT MipLevels;
1074 UINT FirstArraySlice;
1075 UINT ArraySize;
1076 } D3D11_TEX1D_ARRAY_SRV;
1078 typedef struct D3D11_TEX1D_ARRAY_UAV
1080 UINT MipSlice;
1081 UINT FirstArraySlice;
1082 UINT ArraySize;
1083 } D3D11_TEX1D_ARRAY_UAV;
1085 typedef struct D3D11_TEX1D_DSV
1087 UINT MipSlice;
1088 } D3D11_TEX1D_DSV;
1090 typedef struct D3D11_TEX1D_RTV
1092 UINT MipSlice;
1093 } D3D11_TEX1D_RTV;
1095 typedef struct D3D11_TEX1D_SRV
1097 UINT MostDetailedMip;
1098 UINT MipLevels;
1099 } D3D11_TEX1D_SRV;
1101 typedef struct D3D11_TEX1D_UAV
1103 UINT MipSlice;
1104 } D3D11_TEX1D_UAV;
1106 typedef struct D3D11_TEX2D_ARRAY_DSV
1108 UINT MipSlice;
1109 UINT FirstArraySlice;
1110 UINT ArraySize;
1111 } D3D11_TEX2D_ARRAY_DSV;
1113 typedef struct D3D11_TEX2D_ARRAY_RTV
1115 UINT MipSlice;
1116 UINT FirstArraySlice;
1117 UINT ArraySize;
1118 } D3D11_TEX2D_ARRAY_RTV;
1120 typedef struct D3D11_TEX2D_ARRAY_SRV
1122 UINT MostDetailedMip;
1123 UINT MipLevels;
1124 UINT FirstArraySlice;
1125 UINT ArraySize;
1126 } D3D11_TEX2D_ARRAY_SRV;
1128 typedef struct D3D11_TEX2D_ARRAY_UAV
1130 UINT MipSlice;
1131 UINT FirstArraySlice;
1132 UINT ArraySize;
1133 } D3D11_TEX2D_ARRAY_UAV;
1135 typedef struct D3D11_TEX2D_DSV
1137 UINT MipSlice;
1138 } D3D11_TEX2D_DSV;
1140 typedef struct D3D11_TEX2D_RTV
1142 UINT MipSlice;
1143 } D3D11_TEX2D_RTV;
1145 typedef struct D3D11_TEX2D_SRV
1147 UINT MostDetailedMip;
1148 UINT MipLevels;
1149 } D3D11_TEX2D_SRV;
1151 typedef struct D3D11_TEX2D_UAV
1153 UINT MipSlice;
1154 } D3D11_TEX2D_UAV;
1156 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1158 UINT FirstArraySlice;
1159 UINT ArraySize;
1160 } D3D11_TEX2DMS_ARRAY_DSV;
1162 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1164 UINT FirstArraySlice;
1165 UINT ArraySize;
1166 } D3D11_TEX2DMS_ARRAY_RTV;
1168 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1170 UINT FirstArraySlice;
1171 UINT ArraySize;
1172 } D3D11_TEX2DMS_ARRAY_SRV;
1174 typedef struct D3D11_TEX2DMS_DSV
1176 UINT UnusedField_NothingToDefine;
1177 } D3D11_TEX2DMS_DSV;
1179 typedef struct D3D11_TEX2DMS_RTV
1181 UINT UnusedField_NothingToDefine;
1182 } D3D11_TEX2DMS_RTV;
1184 typedef struct D3D11_TEX2DMS_SRV
1186 UINT UnusedField_NothingToDefine;
1187 } D3D11_TEX2DMS_SRV;
1189 typedef struct D3D11_TEX3D_RTV
1191 UINT MipSlice;
1192 UINT FirstWSlice;
1193 UINT WSize;
1194 } D3D11_TEX3D_RTV;
1196 typedef struct D3D11_TEX3D_SRV
1198 UINT MostDetailedMip;
1199 UINT MipLevels;
1200 } D3D11_TEX3D_SRV;
1202 typedef struct D3D11_TEX3D_UAV
1204 UINT MipSlice;
1205 UINT FirstWSlice;
1206 UINT WSize;
1207 } D3D11_TEX3D_UAV;
1209 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1211 UINT MostDetailedMip;
1212 UINT MipLevels;
1213 UINT First2DArrayFace;
1214 UINT NumCubes;
1215 } D3D11_TEXCUBE_ARRAY_SRV;
1217 typedef struct D3D11_TEXCUBE_SRV
1219 UINT MostDetailedMip;
1220 UINT MipLevels;
1221 } D3D11_TEXCUBE_SRV;
1223 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1225 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1226 D3D11_TEXTURE_ADDRESS_MIRROR,
1227 D3D11_TEXTURE_ADDRESS_CLAMP,
1228 D3D11_TEXTURE_ADDRESS_BORDER,
1229 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1230 } D3D11_TEXTURE_ADDRESS_MODE;
1232 typedef enum D3D11_UAV_DIMENSION
1234 D3D11_UAV_DIMENSION_UNKNOWN,
1235 D3D11_UAV_DIMENSION_BUFFER,
1236 D3D11_UAV_DIMENSION_TEXTURE1D,
1237 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1238 D3D11_UAV_DIMENSION_TEXTURE2D,
1239 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1240 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1241 } D3D11_UAV_DIMENSION;
1243 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1245 DXGI_FORMAT Format;
1246 D3D11_UAV_DIMENSION ViewDimension;
1248 union
1250 D3D11_BUFFER_UAV Buffer;
1251 D3D11_TEX1D_UAV Texture1D;
1252 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1253 D3D11_TEX2D_UAV Texture2D;
1254 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1255 D3D11_TEX3D_UAV Texture3D;
1257 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1259 typedef enum D3D11_USAGE
1261 D3D11_USAGE_DEFAULT,
1262 D3D11_USAGE_IMMUTABLE,
1263 D3D11_USAGE_DYNAMIC,
1264 D3D11_USAGE_STAGING,
1265 } D3D11_USAGE;
1267 typedef enum D3D11_BIND_FLAG
1269 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1270 D3D11_BIND_INDEX_BUFFER = 0x0002,
1271 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1272 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1273 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1274 D3D11_BIND_RENDER_TARGET = 0x0020,
1275 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1276 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1277 D3D11_BIND_DECODER = 0x0200,
1278 D3D11_BIND_VIDEO_ENCODER = 0x0400
1279 } D3D11_BIND_FLAG;
1281 typedef enum D3D11_CPU_ACCESS_FLAG
1283 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1284 D3D11_CPU_ACCESS_READ = 0x00020000
1285 } D3D11_CPU_ACCESS_FLAG;
1287 typedef struct D3D11_VIEWPORT
1289 FLOAT TopLeftX;
1290 FLOAT TopLeftY;
1291 FLOAT Width;
1292 FLOAT Height;
1293 FLOAT MinDepth;
1294 FLOAT MaxDepth;
1295 } D3D11_VIEWPORT;
1297 typedef enum D3D11_COLOR_WRITE_ENABLE
1299 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1300 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1301 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1302 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1303 D3D11_COLOR_WRITE_ENABLE_ALL =
1304 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1305 } D3D11_COLOR_WRITE_ENABLE;
1307 typedef enum D3D11_FORMAT_SUPPORT
1309 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1310 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1311 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1312 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1313 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1314 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1315 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1316 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1317 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1318 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1319 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1320 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1321 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1322 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1323 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1324 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1325 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1326 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1327 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1328 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1329 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1330 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1331 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1332 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1333 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1334 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1335 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1336 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1337 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1338 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1339 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1340 } D3D11_FORMAT_SUPPORT;
1342 typedef enum D3D11_CLEAR_FLAG
1344 D3D11_CLEAR_DEPTH = 0x0001L,
1345 D3D11_CLEAR_STENCIL = 0x0002L
1346 } D3D11_CLEAR_FLAG;
1348 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1350 BOOL BlendEnable;
1351 D3D11_BLEND SrcBlend;
1352 D3D11_BLEND DestBlend;
1353 D3D11_BLEND_OP BlendOp;
1354 D3D11_BLEND SrcBlendAlpha;
1355 D3D11_BLEND DestBlendAlpha;
1356 D3D11_BLEND_OP BlendOpAlpha;
1357 UINT8 RenderTargetWriteMask;
1358 } D3D11_RENDER_TARGET_BLEND_DESC;
1360 typedef struct D3D11_BLEND_DESC
1362 BOOL AlphaToCoverageEnable;
1363 BOOL IndependentBlendEnable;
1364 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1365 } D3D11_BLEND_DESC;
1367 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1368 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1369 cpp_quote(" CD3D11_BLEND_DESC() {}")
1370 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1371 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1372 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1373 cpp_quote(" IndependentBlendEnable = FALSE;")
1374 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1375 cpp_quote(" target->BlendEnable = FALSE;")
1376 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1377 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1378 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1379 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1380 cpp_quote(" }")
1381 cpp_quote(" }")
1382 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1383 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1384 cpp_quote("};" )
1385 cpp_quote("#endif" )
1387 typedef struct D3D11_BUFFER_DESC
1389 UINT ByteWidth;
1390 D3D11_USAGE Usage;
1391 UINT BindFlags;
1392 UINT CPUAccessFlags;
1393 UINT MiscFlags;
1394 UINT StructureByteStride;
1395 } D3D11_BUFFER_DESC;
1397 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1398 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1399 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1400 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1401 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1402 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1403 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1404 cpp_quote(" ByteWidth = byteWidth;")
1405 cpp_quote(" Usage = usage;")
1406 cpp_quote(" BindFlags = bindFlags;")
1407 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1408 cpp_quote(" MiscFlags = miscFlags;" )
1409 cpp_quote(" StructureByteStride = structureByteStride;")
1410 cpp_quote(" }")
1411 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1412 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1413 cpp_quote("};" )
1414 cpp_quote("#endif" )
1416 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1418 DXGI_FORMAT Format;
1419 D3D11_DSV_DIMENSION ViewDimension;
1420 UINT Flags;
1422 union
1424 D3D11_TEX1D_DSV Texture1D;
1425 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1426 D3D11_TEX2D_DSV Texture2D;
1427 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1428 D3D11_TEX2DMS_DSV Texture2DMS;
1429 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1431 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1433 typedef struct D3D11_DEPTH_STENCILOP_DESC
1435 D3D11_STENCIL_OP StencilFailOp;
1436 D3D11_STENCIL_OP StencilDepthFailOp;
1437 D3D11_STENCIL_OP StencilPassOp;
1438 D3D11_COMPARISON_FUNC StencilFunc;
1439 } D3D11_DEPTH_STENCILOP_DESC;
1441 typedef struct D3D11_DEPTH_STENCIL_DESC
1443 BOOL DepthEnable;
1444 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1445 D3D11_COMPARISON_FUNC DepthFunc;
1446 BOOL StencilEnable;
1447 UINT8 StencilReadMask;
1448 UINT8 StencilWriteMask;
1449 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1450 D3D11_DEPTH_STENCILOP_DESC BackFace;
1451 } D3D11_DEPTH_STENCIL_DESC;
1453 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1454 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1455 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1456 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1457 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1458 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1459 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1460 cpp_quote(" DepthEnable = TRUE;")
1461 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1462 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1463 cpp_quote(" StencilEnable = FALSE;")
1464 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1465 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1466 cpp_quote(" FrontFace = default_op;")
1467 cpp_quote(" BackFace = default_op;")
1468 cpp_quote(" }")
1469 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1470 cpp_quote(" BOOL depth_enable,")
1471 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1472 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1473 cpp_quote(" BOOL stencil_enable,")
1474 cpp_quote(" UINT8 stencil_read_mask,")
1475 cpp_quote(" UINT8 stencil_write_mask,")
1476 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1477 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1478 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1479 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1480 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1481 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1482 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1483 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1484 cpp_quote(" DepthEnable = depth_enable;")
1485 cpp_quote(" DepthWriteMask = depth_write_mask;")
1486 cpp_quote(" DepthFunc = depth_func;")
1487 cpp_quote(" StencilEnable = stencil_enable;")
1488 cpp_quote(" StencilReadMask = stencil_read_mask;")
1489 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1490 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1491 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1492 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1493 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1494 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1495 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1496 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1497 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1498 cpp_quote(" }")
1499 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1500 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1501 cpp_quote("};")
1502 cpp_quote("#endif")
1504 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1506 DXGI_FORMAT Format;
1507 D3D11_RTV_DIMENSION ViewDimension;
1509 union
1511 D3D11_BUFFER_RTV Buffer;
1512 D3D11_TEX1D_RTV Texture1D;
1513 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1514 D3D11_TEX2D_RTV Texture2D;
1515 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1516 D3D11_TEX2DMS_RTV Texture2DMS;
1517 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1518 D3D11_TEX3D_RTV Texture3D;
1520 } D3D11_RENDER_TARGET_VIEW_DESC;
1522 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1523 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1524 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1525 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1526 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1527 cpp_quote(" Format = format;")
1528 cpp_quote(" ViewDimension = dim;")
1529 cpp_quote(" switch(dim) {")
1530 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1531 cpp_quote(" Buffer.FirstElement = mip_slice;")
1532 cpp_quote(" Buffer.NumElements = first_slice;")
1533 cpp_quote(" break;")
1534 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1535 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1536 cpp_quote(" break;")
1537 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1538 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1539 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1540 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1541 cpp_quote(" break;")
1542 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1543 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1544 cpp_quote(" break;")
1545 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1546 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1547 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1548 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1549 cpp_quote(" break;")
1550 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1551 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1552 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1553 cpp_quote(" break;")
1554 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1555 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1556 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1557 cpp_quote(" Texture3D.WSize = array_size;")
1558 cpp_quote(" break;")
1559 cpp_quote(" default:")
1560 cpp_quote(" break;")
1561 cpp_quote(" }")
1562 cpp_quote(" }")
1563 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1564 cpp_quote(" UINT elem_cnt) {")
1565 cpp_quote(" Format = format;")
1566 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1567 cpp_quote(" Buffer.FirstElement = first_elem;")
1568 cpp_quote(" Buffer.NumElements = elem_cnt;")
1569 cpp_quote(" }")
1570 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1571 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1572 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1573 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1574 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1575 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1576 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1577 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1578 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1579 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1580 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1581 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1582 cpp_quote(" return *this;")
1583 cpp_quote(" }")
1584 cpp_quote("};")
1585 cpp_quote("#endif")
1588 typedef struct D3D11_SAMPLER_DESC
1590 D3D11_FILTER Filter;
1591 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1592 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1593 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1594 FLOAT MipLODBias;
1595 UINT MaxAnisotropy;
1596 D3D11_COMPARISON_FUNC ComparisonFunc;
1597 FLOAT BorderColor[4];
1598 FLOAT MinLOD;
1599 FLOAT MaxLOD;
1600 } D3D11_SAMPLER_DESC;
1602 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1603 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1604 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1605 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1606 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1607 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1608 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1609 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1610 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1611 cpp_quote(" MipLODBias = 0;")
1612 cpp_quote(" MaxAnisotropy = 1;")
1613 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1614 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1615 cpp_quote(" MinLOD = -3.402823466e+38f;")
1616 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1617 cpp_quote(" }")
1618 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1619 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1620 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1621 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1622 cpp_quote(" Filter = filter;")
1623 cpp_quote(" AddressU = addressU;")
1624 cpp_quote(" AddressV = addressV;")
1625 cpp_quote(" AddressW = addressW;")
1626 cpp_quote(" MipLODBias = mipLODBias;")
1627 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1628 cpp_quote(" ComparisonFunc = comparisonFunc;")
1629 cpp_quote(" if(borderColor) {")
1630 cpp_quote(" BorderColor[0] = borderColor[0];")
1631 cpp_quote(" BorderColor[1] = borderColor[1];")
1632 cpp_quote(" BorderColor[2] = borderColor[2];")
1633 cpp_quote(" BorderColor[3] = borderColor[3];")
1634 cpp_quote(" }else {")
1635 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1636 cpp_quote(" }")
1637 cpp_quote(" MinLOD = minLOD;")
1638 cpp_quote(" MaxLOD = maxLOD;")
1639 cpp_quote(" }")
1640 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1641 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1642 cpp_quote("};")
1643 cpp_quote("#endif")
1645 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1647 DXGI_FORMAT Format;
1648 D3D11_SRV_DIMENSION ViewDimension;
1650 union
1652 D3D11_BUFFER_SRV Buffer;
1653 D3D11_TEX1D_SRV Texture1D;
1654 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1655 D3D11_TEX2D_SRV Texture2D;
1656 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1657 D3D11_TEX2DMS_SRV Texture2DMS;
1658 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1659 D3D11_TEX3D_SRV Texture3D;
1660 D3D11_TEXCUBE_SRV TextureCube;
1661 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1662 D3D11_BUFFEREX_SRV BufferEx;
1664 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1666 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1667 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1668 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1669 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1670 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1671 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1672 cpp_quote(" Format = format;")
1673 cpp_quote(" ViewDimension = dim;")
1674 cpp_quote(" switch(ViewDimension) {")
1675 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1676 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1677 cpp_quote(" Buffer.NumElements = mip_levels;")
1678 cpp_quote(" break;")
1679 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1680 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1681 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1682 cpp_quote(" break;")
1683 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1684 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1685 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1686 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1687 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1688 cpp_quote(" break;")
1689 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1690 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1691 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1692 cpp_quote(" break;")
1693 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1694 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1695 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1696 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1697 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1698 cpp_quote(" break;")
1699 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1700 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1701 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1702 cpp_quote(" break;")
1703 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1704 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1705 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1706 cpp_quote(" break;")
1707 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1708 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1709 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1710 cpp_quote(" break;")
1711 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1712 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1713 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1714 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1715 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1716 cpp_quote(" break;")
1717 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1718 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1719 cpp_quote(" BufferEx.NumElements = mip_levels;")
1720 cpp_quote(" BufferEx.Flags = flags;")
1721 cpp_quote(" break;")
1722 cpp_quote(" default:")
1723 cpp_quote(" break;")
1724 cpp_quote(" }")
1725 cpp_quote(" }")
1726 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1727 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1728 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1729 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1730 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1731 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1732 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1733 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1734 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1735 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1736 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1737 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1738 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1739 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1740 cpp_quote(" return *this;")
1741 cpp_quote(" }")
1742 cpp_quote("};")
1743 cpp_quote("#endif")
1745 typedef struct D3D11_TEXTURE1D_DESC
1747 UINT Width;
1748 UINT MipLevels;
1749 UINT ArraySize;
1750 DXGI_FORMAT Format;
1751 D3D11_USAGE Usage;
1752 UINT BindFlags;
1753 UINT CPUAccessFlags;
1754 UINT MiscFlags;
1755 } D3D11_TEXTURE1D_DESC;
1757 typedef struct D3D11_TEXTURE2D_DESC
1759 UINT Width;
1760 UINT Height;
1761 UINT MipLevels;
1762 UINT ArraySize;
1763 DXGI_FORMAT Format;
1764 DXGI_SAMPLE_DESC SampleDesc;
1765 D3D11_USAGE Usage;
1766 UINT BindFlags;
1767 UINT CPUAccessFlags;
1768 UINT MiscFlags;
1769 } D3D11_TEXTURE2D_DESC;
1771 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1772 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1773 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1774 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1775 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1776 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1777 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1778 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1779 cpp_quote(" Width = width;")
1780 cpp_quote(" Height = height;")
1781 cpp_quote(" MipLevels = mipLevels;")
1782 cpp_quote(" ArraySize = arraySize;")
1783 cpp_quote(" Format = format;")
1784 cpp_quote(" SampleDesc.Count = sampleCount;")
1785 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1786 cpp_quote(" Usage = usage;")
1787 cpp_quote(" BindFlags = bindFlags;")
1788 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1789 cpp_quote(" MiscFlags = miscFlags;")
1790 cpp_quote(" }" )
1791 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1792 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1793 cpp_quote("};")
1794 cpp_quote("#endif")
1796 typedef struct D3D11_TEXTURE3D_DESC
1798 UINT Width;
1799 UINT Height;
1800 UINT Depth;
1801 UINT MipLevels;
1802 DXGI_FORMAT Format;
1803 D3D11_USAGE Usage;
1804 UINT BindFlags;
1805 UINT CPUAccessFlags;
1806 UINT MiscFlags;
1807 } D3D11_TEXTURE3D_DESC;
1809 typedef struct D3D11_VIDEO_DECODER_DESC
1811 GUID Guid;
1812 UINT SampleWidth;
1813 UINT SampleHeight;
1814 DXGI_FORMAT OutputFormat;
1815 } D3D11_VIDEO_DECODER_DESC;
1817 typedef struct D3D11_VIDEO_DECODER_CONFIG
1819 GUID guidConfigBitstreamEncryption;
1820 GUID guidConfigMBcontrolEncryption;
1821 GUID guidConfigResidDiffEncryption;
1822 UINT ConfigBitstreamRaw;
1823 UINT ConfigMBcontrolRasterOrder;
1824 UINT ConfigResidDiffHost;
1825 UINT ConfigSpatialResid8;
1826 UINT ConfigResid8Subtraction;
1827 UINT ConfigSpatialHost8or9Clipping;
1828 UINT ConfigSpatialResidInterleaved;
1829 UINT ConfigIntraResidUnsigned;
1830 UINT ConfigResidDiffAccelerator;
1831 UINT ConfigHostInverseScan;
1832 UINT ConfigSpecificIDCT;
1833 UINT Config4GroupedCoefs;
1834 USHORT ConfigMinRenderTargetBuffCount;
1835 USHORT ConfigDecoderSpecific;
1836 } D3D11_VIDEO_DECODER_CONFIG;
1838 typedef enum D3D11_VIDEO_FRAME_FORMAT
1840 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1841 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1842 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1843 } D3D11_VIDEO_FRAME_FORMAT;
1845 typedef enum D3D11_VIDEO_USAGE
1847 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1848 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1849 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1850 } D3D11_VIDEO_USAGE;
1852 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1854 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1855 DXGI_RATIONAL InputFrameRate;
1856 UINT InputWidth;
1857 UINT InputHeight;
1858 DXGI_RATIONAL OutputFrameRate;
1859 UINT OutputWidth;
1860 UINT OutputHeight;
1861 D3D11_VIDEO_USAGE Usage;
1862 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1864 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1866 UINT DeviceCaps;
1867 UINT FeatureCaps;
1868 UINT FilterCaps;
1869 UINT InputFormatCaps;
1870 UINT AutoStreamCaps;
1871 UINT StereoCaps;
1872 UINT RateConversionCapsCount;
1873 UINT MaxInputStreams;
1874 UINT MaxStreamStates;
1875 } D3D11_VIDEO_PROCESSOR_CAPS;
1877 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1879 UINT PastFrames;
1880 UINT FutureFrames;
1881 UINT ProcessorCaps;
1882 UINT ITelecineCaps;
1883 UINT CustomRateCount;
1884 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1886 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1888 DXGI_RATIONAL CustomRate;
1889 UINT OutputFrames;
1890 BOOL InputInterlaced;
1891 UINT InputFramesOrFields;
1892 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1894 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1896 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1897 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1898 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1899 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1900 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1901 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1902 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1903 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1904 } D3D11_VIDEO_PROCESSOR_FILTER;
1906 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1908 int Minimum;
1909 int Maximum;
1910 int Default;
1911 float Multiplier;
1912 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1914 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1916 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1917 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1918 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1919 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1921 typedef enum D3D11_VDOV_DIMENSION
1923 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1924 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1925 } D3D11_VDOV_DIMENSION;
1927 typedef struct D3D11_TEX2D_VDOV
1929 UINT ArraySlice;
1930 } D3D11_TEX2D_VDOV;
1932 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1934 GUID DecodeProfile;
1935 D3D11_VDOV_DIMENSION ViewDimension;
1936 union {
1937 D3D11_TEX2D_VDOV Texture2D;
1939 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1941 typedef enum D3D11_VPIV_DIMENSION
1943 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1944 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1945 } D3D11_VPIV_DIMENSION;
1947 typedef struct D3D11_TEX2D_VPIV
1949 UINT MipSlice;
1950 UINT ArraySlice;
1951 } D3D11_TEX2D_VPIV;
1953 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1955 UINT FourCC;
1956 D3D11_VPIV_DIMENSION ViewDimension;
1957 union {
1958 D3D11_TEX2D_VPIV Texture2D;
1960 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1962 typedef enum D3D11_VPOV_DIMENSION
1964 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1965 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1966 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1967 } D3D11_VPOV_DIMENSION;
1969 typedef struct D3D11_TEX2D_VPOV
1971 UINT MipSlice;
1972 } D3D11_TEX2D_VPOV;
1974 typedef struct D3D11_TEX2D_ARRAY_VPOV
1976 UINT MipSlice;
1977 UINT FirstArraySlice;
1978 UINT ArraySize;
1979 } D3D11_TEX2D_ARRAY_VPOV;
1981 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1983 D3D11_VPOV_DIMENSION ViewDimension;
1984 union {
1985 D3D11_TEX2D_VPOV Texture2D;
1986 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1988 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1990 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1992 UINT Caps;
1993 UINT KeyExchangeTypeCount;
1994 UINT BlockAlignmentSize;
1995 ULONGLONG ProtectedMemorySize;
1996 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1998 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
2000 UINT NumEncryptedBytesAtBeginning;
2001 UINT NumBytesInSkipPattern;
2002 UINT NumBytesInEncryptPattern;
2003 } D3D11_ENCRYPTED_BLOCK_INFO;
2005 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2007 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
2008 UINT BufferIndex;
2009 UINT DataOffset;
2010 UINT DataSize;
2011 UINT FirstMBaddress;
2012 UINT NumMBsInBuffer;
2013 UINT Width;
2014 UINT Height;
2015 UINT Stride;
2016 UINT ReservedBits;
2017 void *pIV;
2018 UINT IVSize;
2019 BOOL PartialEncryption;
2020 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2021 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2023 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2025 UINT Function;
2026 void *pPrivateInputData;
2027 UINT PrivateInputDataSize;
2028 void *pPrivateOutputData;
2029 UINT PrivateOutputDataSize;
2030 UINT ResourceCount;
2031 ID3D11Resource **ppResourceList;
2032 } D3D11_VIDEO_DECODER_EXTENSION;
2034 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2036 float Y;
2037 float Cb;
2038 float Cr;
2039 float A;
2040 } D3D11_VIDEO_COLOR_YCbCrA;
2042 typedef struct D3D11_VIDEO_COLOR_RGBA
2044 float R;
2045 float G;
2046 float B;
2047 float A;
2048 } D3D11_VIDEO_COLOR_RGBA;
2050 typedef struct D3D11_VIDEO_COLOR
2052 union
2054 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2055 D3D11_VIDEO_COLOR_RGBA RGBA;
2057 } D3D11_VIDEO_COLOR;
2059 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2061 UINT Usage : 1;
2062 UINT RGB_Range : 1;
2063 UINT YCbCr_Matrix : 1;
2064 UINT YCbCr_xvYCC : 1;
2065 UINT Nominal_Range : 2;
2066 UINT Reserved : 26;
2067 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2069 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2071 BOOL Enable;
2072 UINT OutputIndex;
2073 UINT InputFrameOrField;
2074 UINT PastFrames;
2075 UINT FutureFrames;
2076 ID3D11VideoProcessorInputView **ppPastSurfaces;
2077 ID3D11VideoProcessorInputView *pInputSurface;
2078 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2079 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2080 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2081 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2082 } D3D11_VIDEO_PROCESSOR_STREAM;
2084 typedef struct D3D11_OMAC
2086 BYTE Omac[D3D11_OMAC_SIZE];
2087 } D3D11_OMAC;
2089 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2091 D3D11_OMAC omac;
2092 GUID ConfigureType;
2093 HANDLE hChannel;
2094 UINT SequenceNumber;
2095 HRESULT ReturnCode;
2096 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2098 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2100 UINT64 Frequency;
2101 BOOL Disjoint;
2102 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2104 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2106 UINT64 IAVertices;
2107 UINT64 IAPrimitives;
2108 UINT64 VSInvocations;
2109 UINT64 GSInvocations;
2110 UINT64 GSPrimitives;
2111 UINT64 CInvocations;
2112 UINT64 CPrimitives;
2113 UINT64 PSInvocations;
2114 UINT64 HSInvocations;
2115 UINT64 DSInvocations;
2116 UINT64 CSInvocations;
2117 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2119 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2121 UINT VertexCountPerInstance;
2122 UINT InstanceCount;
2123 UINT StartVertexLocation;
2124 UINT StartInstanceLocation;
2125 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2127 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2129 UINT IndexCountPerInstance;
2130 UINT InstanceCount;
2131 UINT StartIndexLocation;
2132 INT BaseVertexLocation;
2133 UINT StartInstanceLocation;
2134 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2136 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2138 D3D11_OMAC omac;
2139 GUID ConfigureType;
2140 HANDLE hChannel;
2141 UINT SequenceNumber;
2142 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2144 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2146 GUID QueryType;
2147 HANDLE hChannel;
2148 UINT SequenceNumber;
2149 } D3D11_AUTHENTICATED_QUERY_INPUT;
2151 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2153 D3D11_OMAC omac;
2154 GUID QueryType;
2155 HANDLE hChannel;
2156 UINT SequenceNumber;
2157 HRESULT ReturnCode;
2158 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2160 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2162 struct
2164 UINT ProtectionEnabled : 1;
2165 UINT OverlayOrFullscreenRequired : 1;
2166 UINT Reserved : 30;
2167 } Flags;
2168 UINT Value;
2169 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2171 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2173 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2174 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2175 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2177 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2179 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2180 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2181 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2183 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2185 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2186 HANDLE DeviceHandle;
2187 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2189 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2191 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2192 HANDLE DecoderHandle;
2193 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2195 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2197 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2198 HANDLE DecoderHandle;
2199 HANDLE CryptoSessionHandle;
2200 HANDLE DeviceHandle;
2201 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2203 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2205 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2206 UINT RestrictedSharedResourceProcessCount;
2207 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2209 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2211 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2212 UINT ProcessIndex;
2213 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2215 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2217 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2218 UINT ProcessIndex;
2219 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2220 HANDLE ProcessHandle;
2221 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2223 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2225 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2226 UINT UnrestrictedProtectedSharedResourceCount;
2227 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2229 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2231 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2232 HANDLE DeviceHandle;
2233 HANDLE CryptoSessionHandle;
2234 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2236 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2238 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2239 HANDLE DeviceHandle;
2240 HANDLE CryptoSessionHandle;
2241 UINT OutputIDCount;
2242 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2244 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2246 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2247 HANDLE DeviceHandle;
2248 HANDLE CryptoSessionHandle;
2249 UINT OutputIDIndex;
2250 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2252 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2254 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2255 HANDLE DeviceHandle;
2256 HANDLE CryptoSessionHandle;
2257 UINT OutputIDIndex;
2258 UINT64 OutputID;
2259 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2261 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2263 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2264 D3D11_BUS_TYPE BusType;
2265 BOOL AccessibleInContiguousBlocks;
2266 BOOL AccessibleInNonContiguousBlocks;
2267 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2269 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2271 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2272 UINT EncryptionGuidCount;
2273 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2275 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2277 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2278 UINT EncryptionGuidIndex;
2279 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2281 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2283 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2284 UINT EncryptionGuidIndex;
2285 GUID EncryptionGuid;
2286 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2288 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2290 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2291 GUID EncryptionGuid;
2292 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2294 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2296 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2297 UINT StartSequenceQuery;
2298 UINT StartSequenceConfigure;
2299 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2301 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2303 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2304 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2305 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2307 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2309 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2310 HANDLE DecoderHandle;
2311 HANDLE CryptoSessionHandle;
2312 HANDLE DeviceHandle;
2313 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2315 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2317 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2318 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2319 HANDLE ProcessHandle;
2320 BOOL AllowAccess;
2321 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2323 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2325 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2326 GUID EncryptionGuid;
2327 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2330 object,
2331 local,
2332 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2334 interface ID3D11DeviceChild : IUnknown
2336 void GetDevice(
2337 [out] ID3D11Device **ppDevice);
2338 HRESULT GetPrivateData(
2339 [in] REFGUID guid,
2340 [in, out] UINT *pDataSize,
2341 [out] void *pData);
2342 HRESULT SetPrivateData(
2343 [in] REFGUID guid,
2344 [in] UINT DataSize,
2345 [in] const void *pData);
2346 HRESULT SetPrivateDataInterface(
2347 [in] REFGUID guid,
2348 [in] const IUnknown *pData);
2352 object,
2353 local,
2354 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2356 interface ID3D11Asynchronous : ID3D11DeviceChild
2358 UINT GetDataSize();
2362 object,
2363 local,
2364 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2366 interface ID3D11Query : ID3D11Asynchronous
2368 void GetDesc(
2369 [out] D3D11_QUERY_DESC *pDesc);
2373 object,
2374 local,
2375 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2377 interface ID3D11Resource : ID3D11DeviceChild
2379 void GetType(
2380 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2381 void SetEvictionPriority(
2382 [in] UINT EvictionPriority);
2383 UINT GetEvictionPriority();
2387 object,
2388 local,
2389 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2391 interface ID3D11View : ID3D11DeviceChild
2393 void GetResource(
2394 [out] ID3D11Resource **ppResource);
2398 object,
2399 local,
2400 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2402 interface ID3D11BlendState : ID3D11DeviceChild
2404 void GetDesc(
2405 [out] D3D11_BLEND_DESC *pDesc);
2409 object,
2410 local,
2411 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2413 interface ID3D11Buffer : ID3D11Resource
2415 void GetDesc(
2416 [out] D3D11_BUFFER_DESC *pDesc);
2420 object,
2421 local,
2422 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2424 interface ID3D11ClassInstance : ID3D11DeviceChild
2426 void GetClassLinkage(
2427 [out] ID3D11ClassLinkage **ppLinkage);
2428 void GetDesc(
2429 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2430 void GetInstanceName(
2431 [out] LPSTR pInstanceName,
2432 [in, out] SIZE_T *pBufferLength);
2433 void GetTypeName(
2434 [out] LPSTR pTypeName,
2435 [in, out] SIZE_T *pBufferLength);
2439 object,
2440 local,
2441 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2443 interface ID3D11ClassLinkage : ID3D11DeviceChild
2445 HRESULT GetClassInstance(
2446 [in] LPCSTR pClassInstanceName,
2447 [in] UINT InstanceIndex,
2448 [out] ID3D11ClassInstance **ppInstance);
2449 HRESULT CreateClassInstance(
2450 [in] LPCSTR pClassTypeName,
2451 [in] UINT ConstantBufferOffset,
2452 [in] UINT ConstantVectorOffset,
2453 [in] UINT TextureOffset,
2454 [in] UINT SamplerOffset,
2455 [out] ID3D11ClassInstance **ppInstance);
2459 object,
2460 local,
2461 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2463 interface ID3D11CommandList : ID3D11DeviceChild
2465 UINT GetContextFlags();
2469 object,
2470 local,
2471 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2473 interface ID3D11ComputeShader : ID3D11DeviceChild
2478 object,
2479 local,
2480 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2482 interface ID3D11Counter : ID3D11Asynchronous
2484 void GetDesc(
2485 [out] D3D11_COUNTER_DESC *pDesc);
2489 object,
2490 local,
2491 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2493 interface ID3D11DepthStencilState : ID3D11DeviceChild
2495 void GetDesc(
2496 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2500 object,
2501 local,
2502 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2504 interface ID3D11DepthStencilView : ID3D11View
2506 void GetDesc(
2507 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2511 object,
2512 local,
2513 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2515 interface ID3D11DomainShader : ID3D11DeviceChild
2520 object,
2521 local,
2522 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2524 interface ID3D11GeometryShader : ID3D11DeviceChild
2529 object,
2530 local,
2531 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2533 interface ID3D11HullShader : ID3D11DeviceChild
2538 object,
2539 local,
2540 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2542 interface ID3D11InputLayout : ID3D11DeviceChild
2547 object,
2548 local,
2549 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2551 interface ID3D11PixelShader : ID3D11DeviceChild
2556 object,
2557 local,
2558 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2560 interface ID3D11Predicate : ID3D11Query
2565 object,
2566 local,
2567 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2569 interface ID3D11RasterizerState : ID3D11DeviceChild
2571 void GetDesc(
2572 [out] D3D11_RASTERIZER_DESC *pDesc);
2576 object,
2577 local,
2578 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2580 interface ID3D11RenderTargetView : ID3D11View
2582 void GetDesc(
2583 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2587 object,
2588 local,
2589 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2591 interface ID3D11SamplerState : ID3D11DeviceChild
2593 void GetDesc(
2594 [out] D3D11_SAMPLER_DESC *pDesc);
2598 object,
2599 local,
2600 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2602 interface ID3D11ShaderResourceView : ID3D11View
2604 void GetDesc(
2605 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2609 object,
2610 local,
2611 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2613 interface ID3D11Texture1D : ID3D11Resource
2615 void GetDesc(
2616 [out] D3D11_TEXTURE1D_DESC *pDesc);
2620 object,
2621 local,
2622 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2624 interface ID3D11Texture2D : ID3D11Resource
2626 void GetDesc(
2627 [out] D3D11_TEXTURE2D_DESC *pDesc);
2631 object,
2632 local,
2633 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2635 interface ID3D11Texture3D : ID3D11Resource
2637 void GetDesc(
2638 [out] D3D11_TEXTURE3D_DESC *pDesc);
2642 object,
2643 local,
2644 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2646 interface ID3D11UnorderedAccessView : ID3D11View
2648 void GetDesc(
2649 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2653 object,
2654 local,
2655 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2657 interface ID3D11VertexShader : ID3D11DeviceChild
2662 object,
2663 local,
2664 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2666 interface ID3D11DeviceContext : ID3D11DeviceChild
2668 void VSSetConstantBuffers(
2669 [in] UINT StartSlot,
2670 [in] UINT NumBuffers,
2671 [in] ID3D11Buffer *const *ppConstantBuffers);
2672 void PSSetShaderResources(
2673 [in] UINT StartSlot,
2674 [in] UINT NumViews,
2675 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2676 void PSSetShader(
2677 [in] ID3D11PixelShader *pPixelShader,
2678 [in] ID3D11ClassInstance *const *ppClassInstances,
2679 UINT NumClassInstances);
2680 void PSSetSamplers(
2681 [in] UINT StartSlot,
2682 [in] UINT NumSamplers,
2683 [in] ID3D11SamplerState *const *ppSamplers);
2684 void VSSetShader(
2685 [in] ID3D11VertexShader *pVertexShader,
2686 [in] ID3D11ClassInstance *const *ppClassInstances,
2687 UINT NumClassInstances);
2688 void DrawIndexed(
2689 [in] UINT IndexCount,
2690 [in] UINT StartIndexLocation,
2691 [in] INT BaseVertexLocation);
2692 void Draw(
2693 [in] UINT VertexCount,
2694 [in] UINT StartVertexLocation);
2695 HRESULT Map(
2696 [in] ID3D11Resource *pResource,
2697 [in] UINT Subresource,
2698 [in] D3D11_MAP MapType,
2699 [in] UINT MapFlags,
2700 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2701 void Unmap(
2702 [in] ID3D11Resource *pResource,
2703 [in] UINT Subresource);
2704 void PSSetConstantBuffers(
2705 [in] UINT StartSlot,
2706 [in] UINT NumBuffers,
2707 [in] ID3D11Buffer *const *ppConstantBuffers);
2708 void IASetInputLayout(
2709 [in] ID3D11InputLayout *pInputLayout);
2710 void IASetVertexBuffers(
2711 [in] UINT StartSlot,
2712 [in] UINT NumBuffers,
2713 [in] ID3D11Buffer *const *ppVertexBuffers,
2714 [in] const UINT *pStrides,
2715 [in] const UINT *pOffsets);
2716 void IASetIndexBuffer(
2717 [in] ID3D11Buffer *pIndexBuffer,
2718 [in] DXGI_FORMAT Format,
2719 [in] UINT Offset);
2720 void DrawIndexedInstanced(
2721 [in] UINT IndexCountPerInstance,
2722 [in] UINT InstanceCount,
2723 [in] UINT StartIndexLocation,
2724 [in] INT BaseVertexLocation,
2725 [in] UINT StartInstanceLocation);
2726 void DrawInstanced(
2727 [in] UINT VertexCountPerInstance,
2728 [in] UINT InstanceCount,
2729 [in] UINT StartVertexLocation,
2730 [in] UINT StartInstanceLocation);
2731 void GSSetConstantBuffers(
2732 [in] UINT StartSlot,
2733 [in] UINT NumBuffers,
2734 [in] ID3D11Buffer *const *ppConstantBuffers);
2735 void GSSetShader(
2736 [in] ID3D11GeometryShader *pShader,
2737 [in] ID3D11ClassInstance *const *ppClassInstances,
2738 UINT NumClassInstances);
2739 void IASetPrimitiveTopology(
2740 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2741 void VSSetShaderResources(
2742 [in] UINT StartSlot,
2743 [in] UINT NumViews,
2744 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2745 void VSSetSamplers(
2746 [in] UINT StartSlot,
2747 [in] UINT NumSamplers,
2748 [in] ID3D11SamplerState *const *ppSamplers);
2749 void Begin(
2750 [in] ID3D11Asynchronous *pAsync);
2751 void End(
2752 [in] ID3D11Asynchronous *pAsync);
2753 HRESULT GetData(
2754 [in] ID3D11Asynchronous *pAsync,
2755 [in] void *pData,
2756 [in] UINT DataSize,
2757 [in] UINT GetDataFlags);
2758 void SetPredication(
2759 [in] ID3D11Predicate *pPredicate,
2760 [in] BOOL PredicateValue);
2761 void GSSetShaderResources(
2762 [in] UINT StartSlot,
2763 [in] UINT NumViews,
2764 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2765 void GSSetSamplers(
2766 [in] UINT StartSlot,
2767 [in] UINT NumSamplers,
2768 [in] ID3D11SamplerState *const *ppSamplers);
2769 void OMSetRenderTargets(
2770 [in] UINT NumViews,
2771 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2772 [in] ID3D11DepthStencilView *pDepthStencilView);
2773 void OMSetRenderTargetsAndUnorderedAccessViews(
2774 [in] UINT NumRTVs,
2775 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2776 [in] ID3D11DepthStencilView *pDepthStencilView,
2777 [in] UINT UAVStartSlot,
2778 [in] UINT NumUAVs,
2779 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2780 [in] const UINT *pUAVInitialCounts);
2781 void OMSetBlendState(
2782 [in] ID3D11BlendState *pBlendState,
2783 [in] const FLOAT BlendFactor[4],
2784 [in] UINT SampleMask);
2785 void OMSetDepthStencilState(
2786 [in] ID3D11DepthStencilState *pDepthStencilState,
2787 [in] UINT StencilRef);
2788 void SOSetTargets(
2789 [in] UINT NumBuffers,
2790 [in] ID3D11Buffer *const *ppSOTargets,
2791 [in] const UINT *pOffsets);
2792 void DrawAuto();
2793 void DrawIndexedInstancedIndirect(
2794 [in] ID3D11Buffer *pBufferForArgs,
2795 [in] UINT AlignedByteOffsetForArgs);
2796 void DrawInstancedIndirect(
2797 [in] ID3D11Buffer *pBufferForArgs,
2798 [in] UINT AlignedByteOffsetForArgs);
2799 void Dispatch(
2800 [in] UINT ThreadGroupCountX,
2801 [in] UINT ThreadGroupCountY,
2802 [in] UINT ThreadGroupCountZ);
2803 void DispatchIndirect(
2804 [in] ID3D11Buffer *pBufferForArgs,
2805 [in] UINT AlignedByteOffsetForArgs);
2806 void RSSetState(
2807 [in] ID3D11RasterizerState *pRasterizerState);
2808 void RSSetViewports(
2809 [in] UINT NumViewports,
2810 [in] const D3D11_VIEWPORT *pViewports);
2811 void RSSetScissorRects(
2812 [in] UINT NumRects,
2813 [in] const D3D11_RECT *pRects);
2814 void CopySubresourceRegion(
2815 [in] ID3D11Resource *pDstResource,
2816 [in] UINT DstSubresource,
2817 [in] UINT DstX,
2818 [in] UINT DstY,
2819 [in] UINT DstZ,
2820 [in] ID3D11Resource *pSrcResource,
2821 [in] UINT SrcSubresource,
2822 [in] const D3D11_BOX *pSrcBox);
2823 void CopyResource(
2824 [in] ID3D11Resource *pDstResource,
2825 [in] ID3D11Resource *pSrcResource);
2826 void UpdateSubresource(
2827 [in] ID3D11Resource *pDstResource,
2828 [in] UINT DstSubresource,
2829 [in] const D3D11_BOX *pDstBox,
2830 [in] const void *pSrcData,
2831 [in] UINT SrcRowPitch,
2832 [in] UINT SrcDepthPitch);
2833 void CopyStructureCount(
2834 [in] ID3D11Buffer *pDstBuffer,
2835 [in] UINT DstAlignedByteOffset,
2836 [in] ID3D11UnorderedAccessView *pSrcView);
2837 void ClearRenderTargetView(
2838 [in] ID3D11RenderTargetView *pRenderTargetView,
2839 [in] const FLOAT ColorRGBA[4]);
2840 void ClearUnorderedAccessViewUint(
2841 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2842 [in] const UINT Values[4]);
2843 void ClearUnorderedAccessViewFloat(
2844 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2845 [in] const FLOAT Values[4]);
2846 void ClearDepthStencilView(
2847 [in] ID3D11DepthStencilView *pDepthStencilView,
2848 [in] UINT ClearFlags,
2849 [in] FLOAT Depth,
2850 [in] UINT8 Stencil);
2851 void GenerateMips(
2852 [in] ID3D11ShaderResourceView *pShaderResourceView);
2853 void SetResourceMinLOD(
2854 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2855 FLOAT GetResourceMinLOD(
2856 [in] ID3D11Resource *pResource);
2857 void ResolveSubresource(
2858 [in] ID3D11Resource *pDstResource,
2859 [in] UINT DstSubresource,
2860 [in] ID3D11Resource *pSrcResource,
2861 [in] UINT SrcSubresource,
2862 [in] DXGI_FORMAT Format);
2863 void ExecuteCommandList(
2864 [in] ID3D11CommandList *pCommandList,
2865 BOOL RestoreContextState);
2866 void HSSetShaderResources(
2867 [in] UINT StartSlot,
2868 [in] UINT NumViews,
2869 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2870 void HSSetShader(
2871 [in] ID3D11HullShader *pHullShader,
2872 [in] ID3D11ClassInstance *const *ppClassInstances,
2873 UINT NumClassInstances);
2874 void HSSetSamplers(
2875 [in] UINT StartSlot,
2876 [in] UINT NumSamplers,
2877 [in] ID3D11SamplerState *const *ppSamplers);
2878 void HSSetConstantBuffers(
2879 [in] UINT StartSlot,
2880 [in] UINT NumBuffers,
2881 [in] ID3D11Buffer *const *ppConstantBuffers);
2882 void DSSetShaderResources(
2883 [in] UINT StartSlot,
2884 [in] UINT NumViews,
2885 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2886 void DSSetShader(
2887 [in] ID3D11DomainShader *pDomainShader,
2888 [in] ID3D11ClassInstance *const *ppClassInstances,
2889 UINT NumClassInstances);
2890 void DSSetSamplers(
2891 [in] UINT StartSlot,
2892 [in] UINT NumSamplers,
2893 [in] ID3D11SamplerState *const *ppSamplers);
2894 void DSSetConstantBuffers(
2895 [in] UINT StartSlot,
2896 [in] UINT NumBuffers,
2897 [in] ID3D11Buffer *const *ppConstantBuffers);
2898 void CSSetShaderResources(
2899 [in] UINT StartSlot,
2900 [in] UINT NumViews,
2901 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2902 void CSSetUnorderedAccessViews(
2903 [in] UINT StartSlot,
2904 [in] UINT NumUAVs,
2905 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2906 [in] const UINT *pUAVInitialCounts);
2907 void CSSetShader(
2908 [in] ID3D11ComputeShader *pComputeShader,
2909 [in] ID3D11ClassInstance *const *ppClassInstances,
2910 UINT NumClassInstances);
2911 void CSSetSamplers(
2912 [in] UINT StartSlot,
2913 [in] UINT NumSamplers,
2914 [in] ID3D11SamplerState *const *ppSamplers);
2915 void CSSetConstantBuffers(
2916 [in] UINT StartSlot,
2917 [in] UINT NumBuffers,
2918 [in] ID3D11Buffer *const *ppConstantBuffers);
2919 void VSGetConstantBuffers(
2920 [in] UINT StartSlot,
2921 [in] UINT NumBuffers,
2922 [out] ID3D11Buffer **ppConstantBuffers);
2923 void PSGetShaderResources(
2924 [in] UINT StartSlot,
2925 [in] UINT NumViews,
2926 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2927 void PSGetShader(
2928 [out] ID3D11PixelShader **ppPixelShader,
2929 [out] ID3D11ClassInstance **ppClassInstances,
2930 [in, out] UINT *pNumClassInstances);
2931 void PSGetSamplers(
2932 [in] UINT StartSlot,
2933 [in] UINT NumSamplers,
2934 [out] ID3D11SamplerState **ppSamplers);
2935 void VSGetShader(
2936 [out] ID3D11VertexShader **ppVertexShader,
2937 [out] ID3D11ClassInstance **ppClassInstances,
2938 [in, out] UINT *pNumClassInstances);
2939 void PSGetConstantBuffers(
2940 [in] UINT StartSlot,
2941 [in] UINT NumBuffers,
2942 [out] ID3D11Buffer **ppConstantBuffers);
2943 void IAGetInputLayout(
2944 [out] ID3D11InputLayout **ppInputLayout);
2945 void IAGetVertexBuffers(
2946 [in] UINT StartSlot,
2947 [in] UINT NumBuffers,
2948 [out] ID3D11Buffer **ppVertexBuffers,
2949 [out] UINT *pStrides,
2950 [out] UINT *pOffsets);
2951 void IAGetIndexBuffer(
2952 [out] ID3D11Buffer **pIndexBuffer,
2953 [out] DXGI_FORMAT* Format,
2954 [out] UINT* Offset);
2955 void GSGetConstantBuffers(
2956 [in] UINT StartSlot,
2957 [in] UINT NumBuffers,
2958 [out] ID3D11Buffer **ppConstantBuffers);
2959 void GSGetShader(
2960 [out] ID3D11GeometryShader **ppGeometryShader,
2961 [out] ID3D11ClassInstance **ppClassInstances,
2962 [in, out] UINT *pNumClassInstances);
2963 void IAGetPrimitiveTopology(
2964 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2965 void VSGetShaderResources(
2966 [in] UINT StartSlot,
2967 [in] UINT NumViews,
2968 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2969 void VSGetSamplers(
2970 [in] UINT StartSlot,
2971 [in] UINT NumSamplers,
2972 [out] ID3D11SamplerState **ppSamplers);
2973 void GetPredication(
2974 [out] ID3D11Predicate **ppPredicate,
2975 [out] BOOL *pPredicateValue);
2976 void GSGetShaderResources(
2977 [in] UINT StartSlot,
2978 [in] UINT NumViews,
2979 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2980 void GSGetSamplers(
2981 [in] UINT StartSlot,
2982 [in] UINT NumSamplers,
2983 [out] ID3D11SamplerState **ppSamplers);
2984 void OMGetRenderTargets(
2985 [in] UINT NumViews,
2986 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2987 [out] ID3D11DepthStencilView **ppDepthStencilView);
2988 void OMGetRenderTargetsAndUnorderedAccessViews(
2989 [in] UINT NumRTVs,
2990 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2991 [out] ID3D11DepthStencilView **ppDepthStencilView,
2992 [in] UINT UAVStartSlot,
2993 [in] UINT NumUAVs,
2994 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2995 void OMGetBlendState(
2996 [out] ID3D11BlendState **ppBlendState,
2997 [out] FLOAT BlendFactor[4],
2998 [out] UINT *pSampleMask);
2999 void OMGetDepthStencilState(
3000 [out] ID3D11DepthStencilState **ppDepthStencilState,
3001 [out] UINT *pStencilRef);
3002 void SOGetTargets(
3003 [in] UINT NumBuffers,
3004 [out] ID3D11Buffer **ppSOTargets);
3005 void RSGetState(
3006 [out] ID3D11RasterizerState **ppRasterizerState);
3007 void RSGetViewports(
3008 [in, out] UINT *pNumViewports,
3009 [out] D3D11_VIEWPORT *pViewports);
3010 void RSGetScissorRects(
3011 [in, out] UINT *pNumRects,
3012 [out] D3D11_RECT *pRects);
3013 void HSGetShaderResources(
3014 [in] UINT StartSlot,
3015 [in] UINT NumViews,
3016 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3017 void HSGetShader(
3018 [out] ID3D11HullShader **ppHullShader,
3019 [out] ID3D11ClassInstance **ppClassInstances,
3020 [in, out] UINT *pNumClassInstances);
3021 void HSGetSamplers(
3022 [in] UINT StartSlot,
3023 [in] UINT NumSamplers,
3024 [out] ID3D11SamplerState **ppSamplers);
3025 void HSGetConstantBuffers(
3026 [in] UINT StartSlot,
3027 [in] UINT NumBuffers,
3028 [out] ID3D11Buffer **ppConstantBuffers);
3029 void DSGetShaderResources(
3030 [in] UINT StartSlot,
3031 [in] UINT NumViews,
3032 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3033 void DSGetShader(
3034 [out] ID3D11DomainShader **ppDomainShader,
3035 [out] ID3D11ClassInstance **ppClassInstances,
3036 [in, out] UINT *pNumClassInstances);
3037 void DSGetSamplers(
3038 [in] UINT StartSlot,
3039 [in] UINT NumSamplers,
3040 [out] ID3D11SamplerState **ppSamplers);
3041 void DSGetConstantBuffers(
3042 [in] UINT StartSlot,
3043 [in] UINT NumBuffers,
3044 [out] ID3D11Buffer **ppConstantBuffers);
3045 void CSGetShaderResources(
3046 [in] UINT StartSlot,
3047 [in] UINT NumViews,
3048 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3049 void CSGetUnorderedAccessViews(
3050 [in] UINT StartSlot,
3051 [in] UINT NumUAVs,
3052 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3053 void CSGetShader(
3054 [out] ID3D11ComputeShader **ppComputeShader,
3055 [out] ID3D11ClassInstance **ppClassInstances,
3056 [in, out] UINT *pNumClassInstances);
3057 void CSGetSamplers(
3058 [in] UINT StartSlot,
3059 [in] UINT NumSamplers,
3060 [out] ID3D11SamplerState **ppSamplers);
3061 void CSGetConstantBuffers(
3062 [in] UINT StartSlot,
3063 [in] UINT NumBuffers,
3064 [out] ID3D11Buffer **ppConstantBuffers);
3065 void ClearState();
3066 void Flush();
3067 D3D11_DEVICE_CONTEXT_TYPE GetType();
3068 UINT GetContextFlags();
3069 HRESULT FinishCommandList(
3070 BOOL RestoreDeferredContextState,
3071 [out] ID3D11CommandList **ppCommandList);
3075 object,
3076 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3077 local,
3078 pointer_default(unique)
3080 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3082 HRESULT GetCertificateSize(
3083 UINT *pCertificateSize);
3084 HRESULT GetCertificate(
3085 UINT CertificateSize,
3086 BYTE *pCertificate);
3087 void GetChannelHandle(
3088 HANDLE *pChannelHandle);
3092 object,
3093 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3094 local,
3095 pointer_default(unique)
3097 interface ID3D11CryptoSession : ID3D11DeviceChild
3099 void GetCryptoType(
3100 GUID *pCryptoType);
3101 void GetDecoderProfile(
3102 GUID *pDecoderProfile);
3103 HRESULT GetCertificateSize(
3104 UINT *pCertificateSize);
3105 HRESULT GetCertificate(
3106 UINT CertificateSize,
3107 BYTE *pCertificate);
3108 void GetCryptoSessionHandle(
3109 HANDLE *pCryptoSessionHandle);
3113 object,
3114 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3115 local,
3116 pointer_default(unique)
3118 interface ID3D11VideoDecoder : ID3D11DeviceChild
3120 HRESULT GetCreationParameters(
3121 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3122 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3123 HRESULT GetDriverHandle(
3124 HANDLE *pDriverHandle);
3128 object,
3129 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3130 local,
3131 pointer_default(unique)
3133 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3135 HRESULT GetVideoProcessorContentDesc(
3136 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3137 HRESULT CheckVideoProcessorFormat(
3138 DXGI_FORMAT Format,
3139 UINT *pFlags);
3140 HRESULT GetVideoProcessorCaps(
3141 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3142 HRESULT GetVideoProcessorRateConversionCaps(
3143 UINT TypeIndex,
3144 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3145 HRESULT GetVideoProcessorCustomRate(
3146 UINT TypeIndex,
3147 UINT CustomRateIndex,
3148 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3149 HRESULT GetVideoProcessorFilterRange(
3150 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3151 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3155 object,
3156 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3157 local,
3158 pointer_default(unique)
3160 interface ID3D11VideoProcessor : ID3D11DeviceChild
3162 void GetContentDesc(
3163 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3164 void GetRateConversionCaps(
3165 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3169 object,
3170 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3171 local,
3172 pointer_default(unique)
3174 interface ID3D11VideoDecoderOutputView : ID3D11View
3176 void GetDesc(
3177 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3181 object,
3182 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3183 local,
3184 pointer_default(unique)
3186 interface ID3D11VideoProcessorInputView : ID3D11View
3188 void GetDesc(
3189 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3193 object,
3194 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3195 local,
3196 pointer_default(unique)
3198 interface ID3D11VideoProcessorOutputView : ID3D11View
3200 void GetDesc(
3201 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3205 object,
3206 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3207 local,
3208 pointer_default(unique)
3210 interface ID3D11VideoDevice : IUnknown
3212 HRESULT CreateVideoDecoder(
3213 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3214 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3215 ID3D11VideoDecoder **ppDecoder);
3216 HRESULT CreateVideoProcessor(
3217 ID3D11VideoProcessorEnumerator *pEnum,
3218 UINT RateConversionIndex,
3219 ID3D11VideoProcessor **ppVideoProcessor);
3220 HRESULT CreateAuthenticatedChannel(
3221 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3222 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3223 HRESULT CreateCryptoSession(
3224 const GUID *pCryptoType,
3225 const GUID *pDecoderProfile,
3226 const GUID *pKeyExchangeType,
3227 ID3D11CryptoSession **ppCryptoSession);
3228 HRESULT CreateVideoDecoderOutputView(
3229 ID3D11Resource *pResource,
3230 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3231 ID3D11VideoDecoderOutputView **ppVDOVView);
3232 HRESULT CreateVideoProcessorInputView(
3233 ID3D11Resource *pResource,
3234 ID3D11VideoProcessorEnumerator *pEnum,
3235 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3236 ID3D11VideoProcessorInputView **ppVPIView);
3237 HRESULT CreateVideoProcessorOutputView(
3238 ID3D11Resource *pResource,
3239 ID3D11VideoProcessorEnumerator *pEnum,
3240 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3241 ID3D11VideoProcessorOutputView **ppVPOView);
3242 HRESULT CreateVideoProcessorEnumerator(
3243 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3244 ID3D11VideoProcessorEnumerator **ppEnum);
3245 UINT GetVideoDecoderProfileCount();
3246 HRESULT GetVideoDecoderProfile(
3247 UINT Index,
3248 GUID *pDecoderProfile);
3249 HRESULT CheckVideoDecoderFormat(
3250 const GUID *pDecoderProfile,
3251 DXGI_FORMAT Format,
3252 BOOL *pSupported);
3253 HRESULT GetVideoDecoderConfigCount(
3254 const D3D11_VIDEO_DECODER_DESC *pDesc,
3255 UINT *pCount);
3256 HRESULT GetVideoDecoderConfig(
3257 const D3D11_VIDEO_DECODER_DESC *pDesc,
3258 UINT Index,
3259 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3260 HRESULT GetContentProtectionCaps(
3261 const GUID *pCryptoType,
3262 const GUID *pDecoderProfile,
3263 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3264 HRESULT CheckCryptoKeyExchange(
3265 const GUID *pCryptoType,
3266 const GUID *pDecoderProfile,
3267 UINT Index,
3268 GUID *pKeyExchangeType);
3269 HRESULT SetPrivateData(
3270 REFGUID guid,
3271 UINT DataSize,
3272 const void *pData);
3273 HRESULT SetPrivateDataInterface(
3274 REFGUID guid,
3275 const IUnknown *pData);
3279 object,
3280 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3281 local,
3282 pointer_default(unique)
3284 interface ID3D11VideoContext : ID3D11DeviceChild
3286 HRESULT GetDecoderBuffer(
3287 [in] ID3D11VideoDecoder *decoder,
3288 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3289 [out] UINT *buffer_size,
3290 [out] void **buffer
3292 HRESULT ReleaseDecoderBuffer(
3293 [in] ID3D11VideoDecoder *decoder,
3294 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3296 HRESULT DecoderBeginFrame(
3297 [in] ID3D11VideoDecoder *decoder,
3298 [in] ID3D11VideoDecoderOutputView *view,
3299 [in] UINT key_size,
3300 [in] const void *key
3302 HRESULT DecoderEndFrame(
3303 [in] ID3D11VideoDecoder *decoder
3305 HRESULT SubmitDecoderBuffers(
3306 [in] ID3D11VideoDecoder *decoder,
3307 [in] UINT buffers_count,
3308 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3310 HRESULT DecoderExtension(
3311 [in] ID3D11VideoDecoder *decoder,
3312 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3314 void VideoProcessorSetOutputTargetRect(
3315 [in] ID3D11VideoProcessor *processor,
3316 [in] BOOL enable,
3317 [in] const RECT *rect
3319 void VideoProcessorSetOutputBackgroundColor(
3320 [in] ID3D11VideoProcessor *processor,
3321 [in] BOOL y_cb_cr,
3322 [in] const D3D11_VIDEO_COLOR *color
3324 void VideoProcessorSetOutputColorSpace(
3325 [in] ID3D11VideoProcessor *processor,
3326 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3328 void VideoProcessorSetOutputAlphaFillMode(
3329 [in] ID3D11VideoProcessor *processor,
3330 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3331 [in] UINT stream_idx
3333 void VideoProcessorSetOutputConstriction(
3334 [in] ID3D11VideoProcessor *processor,
3335 [in] BOOL enable,
3336 [in] SIZE size
3338 void VideoProcessorSetOutputStereoMode(
3339 [in] ID3D11VideoProcessor *processor,
3340 [in] BOOL enable
3342 HRESULT VideoProcessorSetOutputExtension(
3343 [in] ID3D11VideoProcessor *processor,
3344 [in] const GUID *guid,
3345 [in] UINT data_size,
3346 [in] void *data
3348 void VideoProcessorGetOutputTargetRect(
3349 [in] ID3D11VideoProcessor *processor,
3350 [out] BOOL *enabled,
3351 [out] RECT *rect
3353 void VideoProcessorGetOutputBackgroundColor(
3354 [in] ID3D11VideoProcessor *processor,
3355 [out] BOOL *y_cb_cr,
3356 [out] D3D11_VIDEO_COLOR *color
3358 void VideoProcessorGetOutputColorSpace(
3359 [in] ID3D11VideoProcessor *processor,
3360 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3362 void VideoProcessorGetOutputAlphaFillMode(
3363 [in] ID3D11VideoProcessor *processor,
3364 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3365 [out] UINT *stream_idx
3367 void VideoProcessorGetOutputConstriction(
3368 [in] ID3D11VideoProcessor *processor,
3369 [out] BOOL *enabled,
3370 [out] SIZE *size
3372 void VideoProcessorGetOutputStereoMode(
3373 [in] ID3D11VideoProcessor *processor,
3374 [out] BOOL *enabled
3376 HRESULT VideoProcessorGetOutputExtension(
3377 [in] ID3D11VideoProcessor *processor,
3378 [in] const GUID *guid,
3379 [in] UINT data_size,
3380 [out] void *data
3382 void VideoProcessorSetStreamFrameFormat(
3383 [in] ID3D11VideoProcessor *processor,
3384 [in] UINT stream_idx,
3385 [in] D3D11_VIDEO_FRAME_FORMAT format
3387 void VideoProcessorSetStreamColorSpace(
3388 [in] ID3D11VideoProcessor *processor,
3389 [in] UINT stream_idx,
3390 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3392 void VideoProcessorSetStreamOutputRate(
3393 [in] ID3D11VideoProcessor *processor,
3394 [in] UINT stream_idx,
3395 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3396 [in] BOOL repeat,
3397 [in] const DXGI_RATIONAL *custom_rate
3399 void VideoProcessorSetStreamSourceRect(
3400 [in] ID3D11VideoProcessor *processor,
3401 [in] UINT stream_idx,
3402 [in] BOOL enable,
3403 [in] const RECT *rect
3405 void VideoProcessorSetStreamDestRect(
3406 [in] ID3D11VideoProcessor *processor,
3407 [in] UINT stream_idx,
3408 [in] BOOL enable,
3409 [in] const RECT *rect
3411 void VideoProcessorSetStreamAlpha(
3412 [in] ID3D11VideoProcessor *processor,
3413 [in] UINT stream_idx,
3414 [in] BOOL enable,
3415 [in] float alpha
3417 void VideoProcessorSetStreamPalette(
3418 [in] ID3D11VideoProcessor *processor,
3419 [in] UINT stream_idx,
3420 [in] UINT entry_count,
3421 [in] const UINT *entries
3423 void VideoProcessorSetStreamPixelAspectRatio(
3424 [in] ID3D11VideoProcessor *processor,
3425 [in] UINT stream_idx,
3426 [in] BOOL enable,
3427 [in] const DXGI_RATIONAL *src_aspect_ratio,
3428 [in] const DXGI_RATIONAL *dst_aspect_ratio
3430 void VideoProcessorSetStreamLumaKey(
3431 [in] ID3D11VideoProcessor *processor,
3432 [in] UINT stream_idx,
3433 [in] BOOL enable,
3434 [in] float lower,
3435 [in] float upper
3437 void VideoProcessorSetStreamStereoFormat(
3438 [in] ID3D11VideoProcessor *processor,
3439 [in] UINT stream_idx,
3440 [in] BOOL enable,
3441 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3442 [in] BOOL left_view_frame0,
3443 [in] BOOL base_view_frame0,
3444 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3445 [in] int mono_offset
3447 void VideoProcessorSetStreamAutoProcessingMode(
3448 [in] ID3D11VideoProcessor *processor,
3449 [in] UINT stream_idx,
3450 [in] BOOL enable
3452 void VideoProcessorSetStreamFilter(
3453 [in] ID3D11VideoProcessor *processor,
3454 [in] UINT stream_idx,
3455 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3456 [in] BOOL enable,
3457 [in] int level
3459 HRESULT VideoProcessorSetStreamExtension(
3460 [in] ID3D11VideoProcessor *processor,
3461 [in] UINT stream_idx,
3462 [in] const GUID *guid,
3463 [in] UINT data_size,
3464 [in] void *data
3466 void VideoProcessorGetStreamFrameFormat(
3467 [in] ID3D11VideoProcessor *processor,
3468 [in] UINT stream_idx,
3469 [out] D3D11_VIDEO_FRAME_FORMAT *format
3471 void VideoProcessorGetStreamColorSpace(
3472 [in] ID3D11VideoProcessor *processor,
3473 [in] UINT stream_idx,
3474 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3476 void VideoProcessorGetStreamOutputRate(
3477 [in] ID3D11VideoProcessor *processor,
3478 [in] UINT stream_idx,
3479 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3480 [out] BOOL *repeat,
3481 [out] DXGI_RATIONAL *custom_rate
3483 void VideoProcessorGetStreamSourceRect(
3484 [in] ID3D11VideoProcessor *processor,
3485 [in] UINT stream_idx,
3486 [out] BOOL *enabled,
3487 [out] RECT *rect
3489 void VideoProcessorGetStreamDestRect(
3490 [in] ID3D11VideoProcessor *processor,
3491 [in] UINT stream_idx,
3492 [out] BOOL *enabled,
3493 [out] RECT *rect
3495 void VideoProcessorGetStreamAlpha(
3496 [in] ID3D11VideoProcessor *processor,
3497 [in] UINT stream_idx,
3498 [out] BOOL *enabled,
3499 [out] float *alpha
3501 void VideoProcessorGetStreamPalette(
3502 [in] ID3D11VideoProcessor *processor,
3503 [in] UINT stream_idx,
3504 [in] UINT entry_count,
3505 [out] UINT *entries
3507 void VideoProcessorGetStreamPixelAspectRatio(
3508 [in] ID3D11VideoProcessor *processor,
3509 [in] UINT stream_idx,
3510 [out] BOOL *enabled,
3511 [out] DXGI_RATIONAL *src_aspect_ratio,
3512 [out] DXGI_RATIONAL *dst_aspect_ratio
3514 void VideoProcessorGetStreamLumaKey(
3515 [in] ID3D11VideoProcessor *processor,
3516 [in] UINT stream_idx,
3517 [out] BOOL *enabled,
3518 [out] float *lower,
3519 [out] float *upper
3521 void VideoProcessorGetStreamStereoFormat(
3522 [in] ID3D11VideoProcessor *processor,
3523 [in] UINT stream_idx,
3524 [out] BOOL *enabled,
3525 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3526 [out] BOOL *left_view_frame0,
3527 [out] BOOL *base_view_frame0,
3528 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3529 [out] int *mono_offset
3531 void VideoProcessorGetStreamAutoProcessingMode(
3532 [in] ID3D11VideoProcessor *processor,
3533 [in] UINT stream_idx,
3534 [out] BOOL *enabled
3536 void VideoProcessorGetStreamFilter(
3537 [in] ID3D11VideoProcessor *processor,
3538 [in] UINT stream_idx,
3539 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3540 [out] BOOL *enabled,
3541 [out] int *level
3543 HRESULT VideoProcessorGetStreamExtension(
3544 [in] ID3D11VideoProcessor *processor,
3545 [in] UINT stream_idx,
3546 [in] const GUID *guid,
3547 [in] UINT data_size,
3548 [out] void *data
3550 HRESULT VideoProcessorBlt(
3551 [in] ID3D11VideoProcessor *processor,
3552 [in] ID3D11VideoProcessorOutputView *view,
3553 [in] UINT frame_idx,
3554 [in] UINT stream_count,
3555 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3557 HRESULT NegotiateCryptoSessionKeyExchange(
3558 [in] ID3D11CryptoSession *session,
3559 [in] UINT data_size,
3560 [in, out] void *data
3562 void EncryptionBlt(
3563 [in] ID3D11CryptoSession *session,
3564 [in] ID3D11Texture2D *src_surface,
3565 [in] ID3D11Texture2D *dst_surface,
3566 [in] UINT iv_size,
3567 [in, out] void *iv
3569 void DecryptionBlt(
3570 [in] ID3D11CryptoSession *session,
3571 [in] ID3D11Texture2D *src_surface,
3572 [in] ID3D11Texture2D *dst_surface,
3573 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3574 [in] UINT key_size,
3575 [in] const void *key,
3576 [in] UINT iv_size,
3577 [in, out] void *iv
3579 void StartSessionKeyRefresh(
3580 [in] ID3D11CryptoSession *session,
3581 [in] UINT random_number_size,
3582 [out] void *random_number
3584 void FinishSessionKeyRefresh(
3585 [in] ID3D11CryptoSession *session
3587 HRESULT GetEncryptionBltKey(
3588 [in] ID3D11CryptoSession *session,
3589 [in] UINT key_size,
3590 [out] void *key
3592 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3593 [in] ID3D11AuthenticatedChannel *channel,
3594 [in] UINT data_size,
3595 [in, out] void *data
3597 HRESULT QueryAuthenticatedChannel(
3598 [in] ID3D11AuthenticatedChannel *channel,
3599 [in] UINT input_size,
3600 [in] const void *input,
3601 [in] UINT output_size,
3602 [out] void *output
3604 HRESULT ConfigureAuthenticatedChannel(
3605 [in] ID3D11AuthenticatedChannel *channel,
3606 [in] UINT input_size,
3607 [in] const void *input,
3608 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3610 void VideoProcessorSetStreamRotation(
3611 [in] ID3D11VideoProcessor *processor,
3612 [in] UINT stream_idx,
3613 [in] BOOL enable,
3614 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3616 void VideoProcessorGetStreamRotation(
3617 [in] ID3D11VideoProcessor *processor,
3618 [in] UINT stream_idx,
3619 [out] BOOL *enable,
3620 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3625 object,
3626 local,
3627 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3629 interface ID3D11Device : IUnknown
3631 HRESULT CreateBuffer(
3632 [in] const D3D11_BUFFER_DESC *pDesc,
3633 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3634 [out] ID3D11Buffer **ppBuffer);
3635 HRESULT CreateTexture1D(
3636 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3637 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3638 [out] ID3D11Texture1D **ppTexture1D);
3639 HRESULT CreateTexture2D(
3640 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3641 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3642 [out] ID3D11Texture2D **ppTexture2D);
3643 HRESULT CreateTexture3D(
3644 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3645 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3646 [out] ID3D11Texture3D **ppTexture3D);
3647 HRESULT CreateShaderResourceView(
3648 [in] ID3D11Resource *pResource,
3649 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3650 [out] ID3D11ShaderResourceView **ppSRView);
3651 HRESULT CreateUnorderedAccessView(
3652 [in] ID3D11Resource *pResource,
3653 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3654 [out] ID3D11UnorderedAccessView **ppUAView);
3655 HRESULT CreateRenderTargetView(
3656 [in] ID3D11Resource *pResource,
3657 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3658 [out] ID3D11RenderTargetView **ppRTView);
3659 HRESULT CreateDepthStencilView(
3660 [in] ID3D11Resource *pResource,
3661 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3662 [out] ID3D11DepthStencilView **ppDepthStencilView);
3663 HRESULT CreateInputLayout(
3664 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3665 [in] UINT NumElements,
3666 [in] const void *pShaderBytecodeWithInputSignature,
3667 [in] SIZE_T BytecodeLength,
3668 [out] ID3D11InputLayout **ppInputLayout);
3669 HRESULT CreateVertexShader(
3670 [in] const void *pShaderBytecode,
3671 [in] SIZE_T BytecodeLength,
3672 [in] ID3D11ClassLinkage *pClassLinkage,
3673 [out] ID3D11VertexShader **ppVertexShader);
3674 HRESULT CreateGeometryShader(
3675 [in] const void *pShaderBytecode,
3676 [in] SIZE_T BytecodeLength,
3677 [in] ID3D11ClassLinkage *pClassLinkage,
3678 [out] ID3D11GeometryShader **ppGeometryShader);
3679 HRESULT CreateGeometryShaderWithStreamOutput(
3680 [in] const void *pShaderBytecode,
3681 [in] SIZE_T BytecodeLength,
3682 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3683 [in] UINT NumEntries,
3684 [in] const UINT *pBufferStrides,
3685 [in] UINT NumStrides,
3686 [in] UINT RasterizedStream,
3687 [in] ID3D11ClassLinkage *pClassLinkage,
3688 [out] ID3D11GeometryShader **ppGeometryShader);
3689 HRESULT CreatePixelShader(
3690 [in] const void *pShaderBytecode,
3691 [in] SIZE_T BytecodeLength,
3692 [in] ID3D11ClassLinkage *pClassLinkage,
3693 [out] ID3D11PixelShader **ppPixelShader);
3694 HRESULT CreateHullShader(
3695 [in] const void *pShaderBytecode,
3696 [in] SIZE_T BytecodeLength,
3697 [in] ID3D11ClassLinkage *pClassLinkage,
3698 [out] ID3D11HullShader **ppHullShader);
3699 HRESULT CreateDomainShader(
3700 [in] const void *pShaderBytecode,
3701 [in] SIZE_T BytecodeLength,
3702 [in] ID3D11ClassLinkage *pClassLinkage,
3703 [out] ID3D11DomainShader **ppDomainShader);
3704 HRESULT CreateComputeShader(
3705 [in] const void *pShaderBytecode,
3706 [in] SIZE_T BytecodeLength,
3707 [in] ID3D11ClassLinkage *pClassLinkage,
3708 [out] ID3D11ComputeShader **ppComputeShader);
3709 HRESULT CreateClassLinkage(
3710 [out] ID3D11ClassLinkage **ppLinkage);
3711 HRESULT CreateBlendState(
3712 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3713 [out] ID3D11BlendState **ppBlendState);
3714 HRESULT CreateDepthStencilState(
3715 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3716 [out] ID3D11DepthStencilState **ppDepthStencilState);
3717 HRESULT CreateRasterizerState(
3718 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3719 [out] ID3D11RasterizerState **ppRasterizerState);
3720 HRESULT CreateSamplerState(
3721 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3722 [out] ID3D11SamplerState **ppSamplerState);
3723 HRESULT CreateQuery(
3724 [in] const D3D11_QUERY_DESC *pQueryDesc,
3725 [out] ID3D11Query **ppQuery);
3726 HRESULT CreatePredicate(
3727 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3728 [out] ID3D11Predicate **ppPredicate);
3729 HRESULT CreateCounter(
3730 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3731 [out] ID3D11Counter **ppCounter);
3732 HRESULT CreateDeferredContext(
3733 UINT ContextFlags,
3734 [out] ID3D11DeviceContext **ppDeferredContext);
3735 HRESULT OpenSharedResource(
3736 [in] HANDLE hResource,
3737 [in] REFIID ReturnedInterface,
3738 [out] void **ppResource);
3739 HRESULT CheckFormatSupport(
3740 [in] DXGI_FORMAT Format,
3741 [out] UINT *pFormatSupport);
3742 HRESULT CheckMultisampleQualityLevels(
3743 [in] DXGI_FORMAT Format,
3744 [in] UINT SampleCount,
3745 [out] UINT *pNumQualityLevels);
3746 void CheckCounterInfo(
3747 [out] D3D11_COUNTER_INFO *pCounterInfo);
3748 HRESULT CheckCounter(
3749 [in] const D3D11_COUNTER_DESC *pDesc,
3750 [out] D3D11_COUNTER_TYPE *pType,
3751 [out] UINT *pActiveCounters,
3752 [out] LPSTR szName,
3753 [in, out] UINT *pNameLength,
3754 [out] LPSTR szUnits,
3755 [in, out] UINT *pUnitsLength,
3756 [out] LPSTR szDescription,
3757 [in, out] UINT *pDescriptionLength);
3758 HRESULT CheckFeatureSupport(
3759 D3D11_FEATURE Feature,
3760 [out] void *pFeatureSupportData,
3761 UINT FeatureSupportDataSize);
3762 HRESULT GetPrivateData(
3763 [in] REFGUID guid,
3764 [in, out] UINT *pDataSize,
3765 [out] void *pData);
3766 HRESULT SetPrivateData(
3767 [in] REFGUID guid,
3768 [in] UINT DataSize,
3769 [in] const void *pData);
3770 HRESULT SetPrivateDataInterface(
3771 [in] REFGUID guid,
3772 [in] const IUnknown *pData);
3773 D3D_FEATURE_LEVEL GetFeatureLevel();
3774 UINT GetCreationFlags();
3775 HRESULT GetDeviceRemovedReason();
3776 void GetImmediateContext(
3777 [out] ID3D11DeviceContext **ppImmediateContext);
3778 HRESULT SetExceptionMode(UINT RaiseFlags);
3779 UINT GetExceptionMode();
3782 typedef enum D3D11_CREATE_DEVICE_FLAG {
3783 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3784 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3785 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3786 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3787 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3788 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3789 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3790 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3791 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3792 } D3D11_CREATE_DEVICE_FLAG;
3794 const UINT D3D11_SDK_VERSION = 7;
3796 cpp_quote("#include <d3d10_1.h>")
3797 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3798 cpp_quote("# include <d3d11sdklayers.h>")
3799 cpp_quote("#endif")
3800 cpp_quote("#include <d3d10misc.h>")
3801 cpp_quote("#include <d3d10shader.h>")
3802 cpp_quote("#include <d3d10effect.h>")
3803 cpp_quote("#include <d3d10_1shader.h>")
3805 const UINT _FACD3D11 = 0x87c;
3806 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3808 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3809 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3811 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3812 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3814 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3815 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3816 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3818 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3819 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3820 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3821 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);