winealsa: Remove GetAudioSessionWrapper.
[wine.git] / include / d3d11.idl
blob7a2a84a8b77cd8a0f97379e30ba06358784b06da
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_16BIT_INDEX_STRIP_CUT_VALUE = 0xffff;
39 const UINT D3D11_32BIT_INDEX_STRIP_CUT_VALUE = 0xffffffff;
40 const UINT D3D11_8BIT_INDEX_STRIP_CUT_VALUE = 0xff;
42 const UINT D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9;
44 const UINT D3D11_CLIP_OR_CULL_DISTANCE_COUNT = 8;
45 const UINT D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2;
47 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
48 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
49 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
50 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
51 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
52 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
53 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
54 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
55 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
56 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
57 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
58 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
59 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
60 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
61 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
62 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
63 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
64 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
65 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
66 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
67 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
68 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
69 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
70 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
71 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
72 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
73 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
74 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
75 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
76 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
77 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
78 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
79 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
80 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
81 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
83 const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256;
84 const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64;
85 const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240;
86 const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68;
87 const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224;
88 const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72;
89 const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208;
90 const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76;
91 const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192;
92 const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84;
93 const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176;
94 const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92;
95 const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160;
96 const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100;
97 const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144;
98 const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112;
99 const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128;
100 const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128;
101 const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112;
102 const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144;
103 const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96;
104 const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168;
105 const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80;
106 const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204;
107 const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64;
108 const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256;
109 const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48;
110 const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340;
111 const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32;
112 const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512;
113 const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16;
114 const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768;
115 const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1;
116 const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256;
117 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768;
118 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768;
119 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768;
120 const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1;
121 const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535;
122 const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192;
123 const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1;
124 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1;
125 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1;
126 const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024;
127 const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024;
128 const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024;
129 const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64;
130 const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1;
131 const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1;
132 const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1;
133 const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384;
135 const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
136 cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
137 const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
138 cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
139 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
140 const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
141 const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
142 const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
143 const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
144 const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
145 cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
146 const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
147 const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
148 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
149 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
150 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
151 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
152 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
153 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
154 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
155 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
157 cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
159 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
161 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
163 const UINT D3D11_MAX_MAXANISOTROPY = 16;
164 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
165 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
166 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
167 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
168 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
170 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff;
171 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff;
173 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
174 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
175 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
176 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
177 const UINT D3D11_SHADER_MAX_TYPES = 65535;
178 const UINT D3D11_SHADER_MINOR_VERSION = 0;
179 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
181 const UINT D3D11_OMAC_SIZE = 16;
183 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
184 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
185 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
186 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
187 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
188 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
189 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
190 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
191 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
192 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
193 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
194 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
195 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
196 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
197 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
198 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
199 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
200 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
201 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
202 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
203 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
204 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
205 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
207 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
209 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
210 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
211 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
212 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
213 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
214 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
215 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
216 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
217 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
218 const UINT D3D11_REQ_MAXANISOTROPY = 16;
219 const UINT D3D11_REQ_MIP_LEVELS = 15;
220 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
221 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
222 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
223 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
224 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
225 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
226 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
227 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
228 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
229 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
230 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
231 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
232 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
233 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
235 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
237 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
238 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
240 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
241 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
242 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
243 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
244 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
245 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
246 const UINT D3D11_SO_STREAM_COUNT = 4;
248 const UINT D3D11_SPEC_DATE_DAY = 16;
249 const UINT D3D11_SPEC_DATE_MONTH = 05;
250 const UINT D3D11_SPEC_DATE_YEAR = 2011;
252 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
253 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
254 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
255 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
256 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
257 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
258 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
259 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
261 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
262 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
263 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
264 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
265 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
266 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
267 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
268 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
270 cpp_quote("#endif")
272 cpp_quote("#ifndef _D3D11_1_CONSTANTS")
273 cpp_quote("#define _D3D11_1_CONSTANTS")
274 const UINT D3D11_1_UAV_SLOT_COUNT = 64;
275 cpp_quote("#endif")
277 cpp_quote("#ifndef _D3D11_2_CONSTANTS")
278 cpp_quote("#define _D3D11_2_CONSTANTS")
279 const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 0x10000;
280 cpp_quote("#endif")
282 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
283 cpp_quote("struct CD3D11_DEFAULT {};")
284 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
285 cpp_quote("#endif")
287 typedef enum D3D11_BLEND
289 D3D11_BLEND_ZERO = 1,
290 D3D11_BLEND_ONE = 2,
291 D3D11_BLEND_SRC_COLOR = 3,
292 D3D11_BLEND_INV_SRC_COLOR = 4,
293 D3D11_BLEND_SRC_ALPHA = 5,
294 D3D11_BLEND_INV_SRC_ALPHA = 6,
295 D3D11_BLEND_DEST_ALPHA = 7,
296 D3D11_BLEND_INV_DEST_ALPHA = 8,
297 D3D11_BLEND_DEST_COLOR = 9,
298 D3D11_BLEND_INV_DEST_COLOR = 10,
299 D3D11_BLEND_SRC_ALPHA_SAT = 11,
300 D3D11_BLEND_BLEND_FACTOR = 14,
301 D3D11_BLEND_INV_BLEND_FACTOR = 15,
302 D3D11_BLEND_SRC1_COLOR = 16,
303 D3D11_BLEND_INV_SRC1_COLOR = 17,
304 D3D11_BLEND_SRC1_ALPHA = 18,
305 D3D11_BLEND_INV_SRC1_ALPHA = 19,
306 } D3D11_BLEND;
308 typedef enum D3D11_BLEND_OP
310 D3D11_BLEND_OP_ADD = 1,
311 D3D11_BLEND_OP_SUBTRACT,
312 D3D11_BLEND_OP_REV_SUBTRACT,
313 D3D11_BLEND_OP_MIN,
314 D3D11_BLEND_OP_MAX
315 } D3D11_BLEND_OP;
317 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
319 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
320 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
321 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
322 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
323 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
324 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
325 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
326 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
327 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
328 } D3D11_VIDEO_DECODER_BUFFER_TYPE;
330 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
332 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
333 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
334 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
335 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
336 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
338 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
340 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
341 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
342 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
343 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
345 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
347 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
348 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
349 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
350 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
351 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
352 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
353 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
354 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
355 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
357 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
359 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
360 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
361 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
362 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
364 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
366 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
367 D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
368 D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
369 D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
370 } D3D11_VIDEO_PROCESSOR_ROTATION;
372 typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS
374 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x00000001,
375 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x00000002,
376 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x00000004,
377 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x00000008,
378 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x00000010,
379 } D3D11_VIDEO_PROCESSOR_DEVICE_CAPS;
381 typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS
383 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x00000001,
384 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x00000002,
385 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x00000004,
386 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x00000008,
387 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x00000010,
388 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x00000020,
389 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x00000040,
390 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x00000080,
391 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x00000100,
392 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x00000200,
393 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x00000400,
394 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x00000800,
395 } D3D11_VIDEO_PROCESSOR_FEATURE_CAPS;
397 typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS
399 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x00000001,
400 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x00000002,
401 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x00000004,
402 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x00000008,
403 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x00000010,
404 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x00000020,
405 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x00000040,
406 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x00000080,
407 } D3D11_VIDEO_PROCESSOR_FILTER_CAPS;
409 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS
411 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x00000001,
412 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x00000002,
413 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x00000004,
414 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x00000008,
415 } D3D11_VIDEO_PROCESSOR_FORMAT_CAPS;
417 typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS
419 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x00000001,
420 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x00000002,
421 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x00000004,
422 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x00000008,
423 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x00000010,
424 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x00000020,
425 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x00000040,
426 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x00000080,
427 } D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS;
429 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS
431 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x00000001,
432 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x00000002,
433 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x00000004,
434 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x00000008,
435 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x00000010,
436 } D3D11_VIDEO_PROCESSOR_STEREO_CAPS;
438 typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
440 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
441 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
442 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
443 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
444 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
445 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
446 } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
448 typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
450 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
451 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
452 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
453 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
454 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
455 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
456 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
457 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
458 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
459 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
460 } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
462 typedef enum D3D11_CONTENT_PROTECTION_CAPS
464 D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
465 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
466 D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
467 D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
468 D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
469 D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
470 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
471 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
472 D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
473 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
474 D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
475 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
476 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
477 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
478 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
479 } D3D11_CONTENT_PROTECTION_CAPS;
481 typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
483 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
484 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
485 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
486 } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
488 typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
490 D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
491 D3D11_PROCESSIDTYPE_DWM = 0x00000001,
492 D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
493 } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
495 typedef enum D3D11_BUS_TYPE
497 D3D11_BUS_TYPE_OTHER = 0x00000000,
498 D3D11_BUS_TYPE_PCI = 0x00000001,
499 D3D11_BUS_TYPE_PCIX = 0x00000002,
500 D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
501 D3D11_BUS_TYPE_AGP = 0x00000004,
502 D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
503 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
504 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
505 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
506 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
507 D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
508 } D3D11_BUS_TYPE;
510 typedef struct D3D11_BOX
512 UINT left;
513 UINT top;
514 UINT front;
515 UINT right;
516 UINT bottom;
517 UINT back;
518 } D3D11_BOX;
520 typedef struct D3D11_BUFFER_RTV
522 union
524 UINT FirstElement;
525 UINT ElementOffset;
527 union
529 UINT NumElements;
530 UINT ElementWidth;
532 } D3D11_BUFFER_RTV;
534 typedef struct D3D11_BUFFER_SRV
536 union
538 UINT FirstElement;
539 UINT ElementOffset;
541 union
543 UINT NumElements;
544 UINT ElementWidth;
546 } D3D11_BUFFER_SRV;
548 typedef struct D3D11_BUFFER_UAV
550 UINT FirstElement;
551 UINT NumElements;
552 UINT Flags;
553 } D3D11_BUFFER_UAV;
555 typedef struct D3D11_BUFFEREX_SRV
557 UINT FirstElement;
558 UINT NumElements;
559 UINT Flags;
560 } D3D11_BUFFEREX_SRV;
562 typedef struct D3D11_CLASS_INSTANCE_DESC
564 UINT InstanceId;
565 UINT InstanceIndex;
566 UINT TypeId;
567 UINT ConstantBuffer;
568 UINT BaseConstantBufferOffset;
569 UINT BaseTexture;
570 UINT BaseSampler;
571 BOOL Created;
572 } D3D11_CLASS_INSTANCE_DESC;
574 typedef enum D3D11_COMPARISON_FUNC
576 D3D11_COMPARISON_NEVER = 1,
577 D3D11_COMPARISON_LESS,
578 D3D11_COMPARISON_EQUAL,
579 D3D11_COMPARISON_LESS_EQUAL,
580 D3D11_COMPARISON_GREATER,
581 D3D11_COMPARISON_NOT_EQUAL,
582 D3D11_COMPARISON_GREATER_EQUAL,
583 D3D11_COMPARISON_ALWAYS
584 } D3D11_COMPARISON_FUNC;
586 typedef enum D3D11_COUNTER
588 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
589 } D3D11_COUNTER;
591 typedef struct D3D11_COUNTER_DESC
593 D3D11_COUNTER Counter;
594 UINT MiscFlags;
595 } D3D11_COUNTER_DESC;
597 typedef struct D3D11_COUNTER_INFO
599 D3D11_COUNTER LastDeviceDependentCounter;
600 UINT NumSimultaneousCounters;
601 UINT8 NumDetectableParallelUnits;
602 } D3D11_COUNTER_INFO;
604 typedef enum D3D11_COUNTER_TYPE
606 D3D11_COUNTER_TYPE_FLOAT32,
607 D3D11_COUNTER_TYPE_UINT16,
608 D3D11_COUNTER_TYPE_UINT32,
609 D3D11_COUNTER_TYPE_UINT64,
610 } D3D11_COUNTER_TYPE;
612 typedef enum D3D11_CULL_MODE
614 D3D11_CULL_NONE = 1,
615 D3D11_CULL_FRONT,
616 D3D11_CULL_BACK
617 } D3D11_CULL_MODE;
619 typedef enum D3D11_DEPTH_WRITE_MASK
621 D3D11_DEPTH_WRITE_MASK_ZERO,
622 D3D11_DEPTH_WRITE_MASK_ALL,
623 } D3D11_DEPTH_WRITE_MASK;
625 typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
627 D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
628 D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
629 } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
631 typedef enum D3D11_DEVICE_CONTEXT_TYPE
633 D3D11_DEVICE_CONTEXT_IMMEDIATE,
634 D3D11_DEVICE_CONTEXT_DEFERRED,
635 } D3D11_DEVICE_CONTEXT_TYPE;
637 typedef enum D3D11_DSV_DIMENSION
639 D3D11_DSV_DIMENSION_UNKNOWN,
640 D3D11_DSV_DIMENSION_TEXTURE1D,
641 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
642 D3D11_DSV_DIMENSION_TEXTURE2D,
643 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
644 D3D11_DSV_DIMENSION_TEXTURE2DMS,
645 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
646 } D3D11_DSV_DIMENSION;
648 typedef enum D3D11_FEATURE
650 D3D11_FEATURE_THREADING,
651 D3D11_FEATURE_DOUBLES,
652 D3D11_FEATURE_FORMAT_SUPPORT,
653 D3D11_FEATURE_FORMAT_SUPPORT2,
654 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
655 D3D11_FEATURE_D3D11_OPTIONS,
656 D3D11_FEATURE_ARCHITECTURE_INFO,
657 D3D11_FEATURE_D3D9_OPTIONS,
658 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
659 D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
660 D3D11_FEATURE_D3D11_OPTIONS1,
661 D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
662 D3D11_FEATURE_MARKER_SUPPORT,
663 D3D11_FEATURE_D3D9_OPTIONS1,
664 D3D11_FEATURE_D3D11_OPTIONS2,
665 D3D11_FEATURE_D3D11_OPTIONS3,
666 D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
667 D3D11_FEATURE_D3D11_OPTIONS4,
668 D3D11_FEATURE_SHADER_CACHE,
669 D3D11_FEATURE_D3D11_OPTIONS5,
670 } D3D11_FEATURE;
672 typedef struct D3D11_FEATURE_DATA_THREADING
674 BOOL DriverConcurrentCreates;
675 BOOL DriverCommandLists;
676 } D3D11_FEATURE_DATA_THREADING;
678 typedef struct D3D11_FEATURE_DATA_DOUBLES
680 BOOL DoublePrecisionFloatShaderOps;
681 } D3D11_FEATURE_DATA_DOUBLES;
683 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
685 DXGI_FORMAT InFormat;
686 UINT OutFormatSupport;
687 } D3D11_FEATURE_DATA_FORMAT_SUPPORT;
689 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
691 DXGI_FORMAT InFormat;
692 UINT OutFormatSupport2;
693 } D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
695 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
697 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
698 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
700 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
702 BOOL OutputMergerLogicOp;
703 BOOL UAVOnlyRenderingForcedSampleCount;
704 BOOL DiscardAPIsSeenByDriver;
705 BOOL FlagsForUpdateAndCopySeenByDriver;
706 BOOL ClearView;
707 BOOL CopyWithOverlap;
708 BOOL ConstantBufferPartialUpdate;
709 BOOL ConstantBufferOffsetting;
710 BOOL MapNoOverwriteOnDynamicConstantBuffer;
711 BOOL MapNoOverwriteOnDynamicBufferSRV;
712 BOOL MultisampleRTVWithForcedSampleCountOne;
713 BOOL SAD4ShaderInstructions;
714 BOOL ExtendedDoublesShaderInstructions;
715 BOOL ExtendedResourceSharing;
716 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
718 typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
720 BOOL TileBasedDeferredRenderer;
721 } D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
723 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
725 BOOL FullNonPow2TextureSupport;
726 } D3D11_FEATURE_DATA_D3D9_OPTIONS;
728 typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
730 BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
731 } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
733 typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
735 D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
736 D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
737 } D3D11_SHADER_MIN_PRECISION_SUPPORT;
739 typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
741 UINT PixelShaderMinPrecision;
742 UINT AllOtherShaderStagesMinPrecision;
743 } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
745 typedef enum D3D11_TILED_RESOURCES_TIER
747 D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
748 D3D11_TILED_RESOURCES_TIER_1 = 0x1,
749 D3D11_TILED_RESOURCES_TIER_2 = 0x2,
750 D3D11_TILED_RESOURCES_TIER_3 = 0x3,
751 } D3D11_TILED_RESOURCES_TIER;
753 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
755 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
756 BOOL MinMaxFiltering;
757 BOOL ClearViewAlsoSupportsDepthOnlyFormats;
758 BOOL MapOnDefaultBuffers;
759 } D3D11_FEATURE_DATA_D3D11_OPTIONS1;
761 typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
763 BOOL SimpleInstancingSupported;
764 } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
766 typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
768 BOOL Profile;
769 } D3D11_FEATURE_DATA_MARKER_SUPPORT;
771 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
773 BOOL FullNonPow2TextureSupported;
774 BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
775 BOOL SimpleInstancingSupported;
776 BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
777 } D3D11_FEATURE_DATA_D3D9_OPTIONS1;
779 typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
781 D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
782 D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
783 D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
784 D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
785 } D3D11_CONSERVATIVE_RASTERIZATION_TIER;
787 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
789 BOOL PSSpecifiedStencilRefSupported;
790 BOOL TypedUAVLoadAdditionalFormats;
791 BOOL ROVsSupported;
792 D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
793 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
794 BOOL MapOnDefaultTextures;
795 BOOL StandardSwizzle;
796 BOOL UnifiedMemoryArchitecture;
797 } D3D11_FEATURE_DATA_D3D11_OPTIONS2;
799 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
801 BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
802 } D3D11_FEATURE_DATA_D3D11_OPTIONS3;
804 typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
806 UINT MaxGPUVirtualAddressBitsPerResource;
807 UINT MaxGPUVirtualAddressBitsPerProcess;
808 } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
810 typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
812 D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
813 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
814 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
815 } D3D11_SHADER_CACHE_SUPPORT_FLAGS;
817 typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
819 UINT SupportFlags;
820 } D3D11_FEATURE_DATA_SHADER_CACHE;
822 typedef enum D3D11_SHARED_RESOURCE_TIER
824 D3D11_SHARED_RESOURCE_TIER_0,
825 D3D11_SHARED_RESOURCE_TIER_1,
826 D3D11_SHARED_RESOURCE_TIER_2,
827 D3D11_SHARED_RESOURCE_TIER_3,
828 } D3D11_SHARED_RESOURCE_TIER;
830 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS5
832 D3D11_SHARED_RESOURCE_TIER SharedResourceTier;
833 } D3D11_FEATURE_DATA_D3D11_OPTIONS5;
835 typedef enum D3D11_FILL_MODE
837 D3D11_FILL_WIREFRAME = 2,
838 D3D11_FILL_SOLID
839 } D3D11_FILL_MODE;
841 typedef enum D3D11_FILTER_TYPE
843 D3D11_FILTER_TYPE_POINT = 0,
844 D3D11_FILTER_TYPE_LINEAR = 1
845 } D3D11_FILTER_TYPE;
847 const UINT D3D11_MIN_FILTER_SHIFT = 4;
848 const UINT D3D11_MAG_FILTER_SHIFT = 2;
849 const UINT D3D11_MIP_FILTER_SHIFT = 0;
850 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
851 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
852 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
854 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
855 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
856 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
857 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
858 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
860 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
861 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
862 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
863 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
865 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
866 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
868 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
869 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
871 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
872 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
874 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
876 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
877 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
878 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
879 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
880 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
882 typedef enum D3D11_FILTER
884 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
885 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
886 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
887 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
888 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
889 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
890 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
891 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
892 D3D11_FILTER_ANISOTROPIC = 0x55,
893 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
894 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
895 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
896 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
897 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
898 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
899 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
900 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
901 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
902 D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
903 D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
904 D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
905 D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
906 D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
907 D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
908 D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
909 D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
910 D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155,
911 D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
912 D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
913 D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
914 D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
915 D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
916 D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
917 D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
918 D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
919 D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
920 } D3D11_FILTER;
922 typedef enum D3D11_DSV_FLAG
924 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
925 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
926 } D3D11_DSV_FLAG;
928 typedef enum D3D11_BUFFEREX_SRV_FLAG
930 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
931 } D3D11_BUFFEREX_SRV_FLAG;
933 typedef enum D3D11_UAV_FLAG
935 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
936 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
937 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
938 } D3D11_UAV_FLAG;
940 typedef enum D3D11_INPUT_CLASSIFICATION
942 D3D11_INPUT_PER_VERTEX_DATA,
943 D3D11_INPUT_PER_INSTANCE_DATA,
944 } D3D11_INPUT_CLASSIFICATION;
946 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
948 typedef struct D3D11_INPUT_ELEMENT_DESC
950 LPCSTR SemanticName;
951 UINT SemanticIndex;
952 DXGI_FORMAT Format;
953 UINT InputSlot;
954 UINT AlignedByteOffset;
955 D3D11_INPUT_CLASSIFICATION InputSlotClass;
956 UINT InstanceDataStepRate;
957 } D3D11_INPUT_ELEMENT_DESC;
959 typedef enum D3D11_MAP
961 D3D11_MAP_READ = 1,
962 D3D11_MAP_WRITE,
963 D3D11_MAP_READ_WRITE,
964 D3D11_MAP_WRITE_DISCARD,
965 D3D11_MAP_WRITE_NO_OVERWRITE
966 } D3D11_MAP;
968 typedef enum D3D11_MAP_FLAG
970 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
971 } D3D11_MAP_FLAG;
973 typedef enum D3D11_RAISE_FLAG
975 D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1,
976 } D3D11_RAISE_FLAG;
978 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
980 UINT64 NumPrimitivesWritten;
981 UINT64 PrimitivesStorageNeeded;
982 } D3D11_QUERY_DATA_SO_STATISTICS;
984 typedef struct D3D11_MAPPED_SUBRESOURCE
986 void *pData;
987 UINT RowPitch;
988 UINT DepthPitch;
989 } D3D11_MAPPED_SUBRESOURCE;
991 typedef enum D3D11_QUERY
993 D3D11_QUERY_EVENT,
994 D3D11_QUERY_OCCLUSION,
995 D3D11_QUERY_TIMESTAMP,
996 D3D11_QUERY_TIMESTAMP_DISJOINT,
997 D3D11_QUERY_PIPELINE_STATISTICS,
998 D3D11_QUERY_OCCLUSION_PREDICATE,
999 D3D11_QUERY_SO_STATISTICS,
1000 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
1001 D3D11_QUERY_SO_STATISTICS_STREAM0,
1002 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
1003 D3D11_QUERY_SO_STATISTICS_STREAM1,
1004 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
1005 D3D11_QUERY_SO_STATISTICS_STREAM2,
1006 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
1007 D3D11_QUERY_SO_STATISTICS_STREAM3,
1008 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
1009 } D3D11_QUERY;
1011 typedef enum D3D11_QUERY_MISC_FLAG
1013 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
1014 } D3D11_QUERY_MISC_FLAG;
1016 typedef enum D3D11_ASYNC_GETDATA_FLAG
1018 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
1019 } D3D11_ASYNC_GETDATA_FLAG;
1021 typedef enum D3D11_RESOURCE_MISC_FLAG
1023 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
1024 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
1025 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
1026 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
1027 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
1028 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
1029 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
1030 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
1031 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
1032 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
1033 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
1034 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
1035 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
1036 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L,
1037 D3D11_RESOURCE_MISC_TILE_POOL = 0x00020000L,
1038 D3D11_RESOURCE_MISC_TILED = 0x00040000L,
1039 D3D11_RESOURCE_MISC_HW_PROTECTED = 0x00080000L,
1040 D3D11_RESOURCE_MISC_SHARED_DISPLAYABLE = 0x00100000L,
1041 D3D11_RESOURCE_MISC_SHARED_EXCLUSIVE_WRITER = 0x00200000L
1042 } D3D11_RESOURCE_MISC_FLAG;
1044 typedef struct D3D11_QUERY_DESC
1046 D3D11_QUERY Query;
1047 UINT MiscFlags;
1048 } D3D11_QUERY_DESC;
1050 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1051 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
1052 cpp_quote(" CD3D11_QUERY_DESC() {}")
1053 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
1054 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
1055 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
1056 cpp_quote(" Query = query;")
1057 cpp_quote(" MiscFlags = misc_flags;")
1058 cpp_quote(" }")
1059 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
1060 cpp_quote(" return *this;")
1061 cpp_quote(" }")
1062 cpp_quote("};")
1063 cpp_quote("#endif")
1065 typedef struct D3D11_RASTERIZER_DESC
1067 D3D11_FILL_MODE FillMode;
1068 D3D11_CULL_MODE CullMode;
1069 BOOL FrontCounterClockwise;
1070 INT DepthBias;
1071 FLOAT DepthBiasClamp;
1072 FLOAT SlopeScaledDepthBias;
1073 BOOL DepthClipEnable;
1074 BOOL ScissorEnable;
1075 BOOL MultisampleEnable;
1076 BOOL AntialiasedLineEnable;
1077 } D3D11_RASTERIZER_DESC;
1079 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1080 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
1081 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
1082 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
1083 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
1084 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
1085 cpp_quote(" CullMode = D3D11_CULL_BACK;")
1086 cpp_quote(" FrontCounterClockwise = FALSE;")
1087 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
1088 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
1089 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
1090 cpp_quote(" DepthClipEnable = TRUE;")
1091 cpp_quote(" ScissorEnable = FALSE;")
1092 cpp_quote(" MultisampleEnable = FALSE;")
1093 cpp_quote(" AntialiasedLineEnable = FALSE;")
1094 cpp_quote(" }")
1095 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
1096 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
1097 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
1098 cpp_quote(" FillMode = fillMode;")
1099 cpp_quote(" CullMode = cullMode;")
1100 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
1101 cpp_quote(" DepthBias = depthBias;")
1102 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
1103 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
1104 cpp_quote(" DepthClipEnable = depthClipEnable;")
1105 cpp_quote(" ScissorEnable = scissorEnable;")
1106 cpp_quote(" MultisampleEnable = multisampleEnable;")
1107 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
1108 cpp_quote(" }")
1109 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
1110 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
1111 cpp_quote("};")
1112 cpp_quote("#endif")
1114 typedef enum D3D11_RESOURCE_DIMENSION
1116 D3D11_RESOURCE_DIMENSION_UNKNOWN,
1117 D3D11_RESOURCE_DIMENSION_BUFFER,
1118 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
1119 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
1120 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
1121 } D3D11_RESOURCE_DIMENSION;
1123 typedef enum D3D11_RTV_DIMENSION
1125 D3D11_RTV_DIMENSION_UNKNOWN,
1126 D3D11_RTV_DIMENSION_BUFFER,
1127 D3D11_RTV_DIMENSION_TEXTURE1D,
1128 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
1129 D3D11_RTV_DIMENSION_TEXTURE2D,
1130 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
1131 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1132 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1133 D3D11_RTV_DIMENSION_TEXTURE3D,
1134 } D3D11_RTV_DIMENSION;
1136 typedef struct D3D11_SO_DECLARATION_ENTRY
1138 UINT Stream;
1139 LPCSTR SemanticName;
1140 UINT SemanticIndex;
1141 BYTE StartComponent;
1142 BYTE ComponentCount;
1143 BYTE OutputSlot;
1144 } D3D11_SO_DECLARATION_ENTRY;
1146 typedef enum D3D11_STENCIL_OP
1148 D3D11_STENCIL_OP_KEEP = 1,
1149 D3D11_STENCIL_OP_ZERO,
1150 D3D11_STENCIL_OP_REPLACE,
1151 D3D11_STENCIL_OP_INCR_SAT,
1152 D3D11_STENCIL_OP_DECR_SAT,
1153 D3D11_STENCIL_OP_INVERT,
1154 D3D11_STENCIL_OP_INCR,
1155 D3D11_STENCIL_OP_DECR
1156 } D3D11_STENCIL_OP;
1158 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1159 cpp_quote("}")
1160 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1161 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1162 cpp_quote("}")
1163 cpp_quote("extern \"C\"{")
1164 cpp_quote("#endif")
1166 typedef struct D3D11_SUBRESOURCE_DATA
1168 const void *pSysMem;
1169 UINT SysMemPitch;
1170 UINT SysMemSlicePitch;
1171 } D3D11_SUBRESOURCE_DATA;
1173 typedef struct D3D11_TEX1D_ARRAY_DSV
1175 UINT MipSlice;
1176 UINT FirstArraySlice;
1177 UINT ArraySize;
1178 } D3D11_TEX1D_ARRAY_DSV;
1180 typedef struct D3D11_TEX1D_ARRAY_RTV
1182 UINT MipSlice;
1183 UINT FirstArraySlice;
1184 UINT ArraySize;
1185 } D3D11_TEX1D_ARRAY_RTV;
1187 typedef struct D3D11_TEX1D_ARRAY_SRV
1189 UINT MostDetailedMip;
1190 UINT MipLevels;
1191 UINT FirstArraySlice;
1192 UINT ArraySize;
1193 } D3D11_TEX1D_ARRAY_SRV;
1195 typedef struct D3D11_TEX1D_ARRAY_UAV
1197 UINT MipSlice;
1198 UINT FirstArraySlice;
1199 UINT ArraySize;
1200 } D3D11_TEX1D_ARRAY_UAV;
1202 typedef struct D3D11_TEX1D_DSV
1204 UINT MipSlice;
1205 } D3D11_TEX1D_DSV;
1207 typedef struct D3D11_TEX1D_RTV
1209 UINT MipSlice;
1210 } D3D11_TEX1D_RTV;
1212 typedef struct D3D11_TEX1D_SRV
1214 UINT MostDetailedMip;
1215 UINT MipLevels;
1216 } D3D11_TEX1D_SRV;
1218 typedef struct D3D11_TEX1D_UAV
1220 UINT MipSlice;
1221 } D3D11_TEX1D_UAV;
1223 typedef struct D3D11_TEX2D_ARRAY_DSV
1225 UINT MipSlice;
1226 UINT FirstArraySlice;
1227 UINT ArraySize;
1228 } D3D11_TEX2D_ARRAY_DSV;
1230 typedef struct D3D11_TEX2D_ARRAY_RTV
1232 UINT MipSlice;
1233 UINT FirstArraySlice;
1234 UINT ArraySize;
1235 } D3D11_TEX2D_ARRAY_RTV;
1237 typedef struct D3D11_TEX2D_ARRAY_SRV
1239 UINT MostDetailedMip;
1240 UINT MipLevels;
1241 UINT FirstArraySlice;
1242 UINT ArraySize;
1243 } D3D11_TEX2D_ARRAY_SRV;
1245 typedef struct D3D11_TEX2D_ARRAY_UAV
1247 UINT MipSlice;
1248 UINT FirstArraySlice;
1249 UINT ArraySize;
1250 } D3D11_TEX2D_ARRAY_UAV;
1252 typedef struct D3D11_TEX2D_DSV
1254 UINT MipSlice;
1255 } D3D11_TEX2D_DSV;
1257 typedef struct D3D11_TEX2D_RTV
1259 UINT MipSlice;
1260 } D3D11_TEX2D_RTV;
1262 typedef struct D3D11_TEX2D_SRV
1264 UINT MostDetailedMip;
1265 UINT MipLevels;
1266 } D3D11_TEX2D_SRV;
1268 typedef struct D3D11_TEX2D_UAV
1270 UINT MipSlice;
1271 } D3D11_TEX2D_UAV;
1273 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1275 UINT FirstArraySlice;
1276 UINT ArraySize;
1277 } D3D11_TEX2DMS_ARRAY_DSV;
1279 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1281 UINT FirstArraySlice;
1282 UINT ArraySize;
1283 } D3D11_TEX2DMS_ARRAY_RTV;
1285 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1287 UINT FirstArraySlice;
1288 UINT ArraySize;
1289 } D3D11_TEX2DMS_ARRAY_SRV;
1291 typedef struct D3D11_TEX2DMS_DSV
1293 UINT UnusedField_NothingToDefine;
1294 } D3D11_TEX2DMS_DSV;
1296 typedef struct D3D11_TEX2DMS_RTV
1298 UINT UnusedField_NothingToDefine;
1299 } D3D11_TEX2DMS_RTV;
1301 typedef struct D3D11_TEX2DMS_SRV
1303 UINT UnusedField_NothingToDefine;
1304 } D3D11_TEX2DMS_SRV;
1306 typedef struct D3D11_TEX3D_RTV
1308 UINT MipSlice;
1309 UINT FirstWSlice;
1310 UINT WSize;
1311 } D3D11_TEX3D_RTV;
1313 typedef struct D3D11_TEX3D_SRV
1315 UINT MostDetailedMip;
1316 UINT MipLevels;
1317 } D3D11_TEX3D_SRV;
1319 typedef struct D3D11_TEX3D_UAV
1321 UINT MipSlice;
1322 UINT FirstWSlice;
1323 UINT WSize;
1324 } D3D11_TEX3D_UAV;
1326 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1328 UINT MostDetailedMip;
1329 UINT MipLevels;
1330 UINT First2DArrayFace;
1331 UINT NumCubes;
1332 } D3D11_TEXCUBE_ARRAY_SRV;
1334 typedef struct D3D11_TEXCUBE_SRV
1336 UINT MostDetailedMip;
1337 UINT MipLevels;
1338 } D3D11_TEXCUBE_SRV;
1340 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1342 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1343 D3D11_TEXTURE_ADDRESS_MIRROR,
1344 D3D11_TEXTURE_ADDRESS_CLAMP,
1345 D3D11_TEXTURE_ADDRESS_BORDER,
1346 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1347 } D3D11_TEXTURE_ADDRESS_MODE;
1349 typedef enum D3D11_UAV_DIMENSION
1351 D3D11_UAV_DIMENSION_UNKNOWN,
1352 D3D11_UAV_DIMENSION_BUFFER,
1353 D3D11_UAV_DIMENSION_TEXTURE1D,
1354 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1355 D3D11_UAV_DIMENSION_TEXTURE2D,
1356 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1357 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1358 } D3D11_UAV_DIMENSION;
1360 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1362 DXGI_FORMAT Format;
1363 D3D11_UAV_DIMENSION ViewDimension;
1365 union
1367 D3D11_BUFFER_UAV Buffer;
1368 D3D11_TEX1D_UAV Texture1D;
1369 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1370 D3D11_TEX2D_UAV Texture2D;
1371 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1372 D3D11_TEX3D_UAV Texture3D;
1374 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1376 typedef enum D3D11_USAGE
1378 D3D11_USAGE_DEFAULT,
1379 D3D11_USAGE_IMMUTABLE,
1380 D3D11_USAGE_DYNAMIC,
1381 D3D11_USAGE_STAGING,
1382 } D3D11_USAGE;
1384 typedef enum D3D11_BIND_FLAG
1386 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1387 D3D11_BIND_INDEX_BUFFER = 0x0002,
1388 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1389 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1390 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1391 D3D11_BIND_RENDER_TARGET = 0x0020,
1392 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1393 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1394 D3D11_BIND_DECODER = 0x0200,
1395 D3D11_BIND_VIDEO_ENCODER = 0x0400
1396 } D3D11_BIND_FLAG;
1398 typedef enum D3D11_CPU_ACCESS_FLAG
1400 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1401 D3D11_CPU_ACCESS_READ = 0x00020000
1402 } D3D11_CPU_ACCESS_FLAG;
1404 typedef struct D3D11_VIEWPORT
1406 FLOAT TopLeftX;
1407 FLOAT TopLeftY;
1408 FLOAT Width;
1409 FLOAT Height;
1410 FLOAT MinDepth;
1411 FLOAT MaxDepth;
1412 } D3D11_VIEWPORT;
1414 typedef enum D3D11_COLOR_WRITE_ENABLE
1416 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1417 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1418 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1419 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1420 D3D11_COLOR_WRITE_ENABLE_ALL =
1421 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1422 } D3D11_COLOR_WRITE_ENABLE;
1424 typedef enum D3D11_FORMAT_SUPPORT
1426 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1427 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1428 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1429 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1430 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1431 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1432 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1433 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1434 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1435 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1436 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1437 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1438 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1439 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1440 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1441 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1442 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1443 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1444 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1445 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1446 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1447 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1448 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1449 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1450 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1451 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1452 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1453 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1454 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1455 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1456 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1457 } D3D11_FORMAT_SUPPORT;
1459 typedef enum D3D11_FORMAT_SUPPORT2
1461 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x00000001,
1462 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x00000002,
1463 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x00000004,
1464 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x00000008,
1465 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x00000010,
1466 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x00000020,
1467 D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x00000040,
1468 D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x00000080,
1469 D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x00000100,
1470 D3D11_FORMAT_SUPPORT2_TILED = 0x00000200,
1471 D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x00000400,
1472 D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x00004000,
1473 } D3D11_FORMAT_SUPPORT2;
1475 typedef enum D3D11_CLEAR_FLAG
1477 D3D11_CLEAR_DEPTH = 0x0001L,
1478 D3D11_CLEAR_STENCIL = 0x0002L
1479 } D3D11_CLEAR_FLAG;
1481 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1483 BOOL BlendEnable;
1484 D3D11_BLEND SrcBlend;
1485 D3D11_BLEND DestBlend;
1486 D3D11_BLEND_OP BlendOp;
1487 D3D11_BLEND SrcBlendAlpha;
1488 D3D11_BLEND DestBlendAlpha;
1489 D3D11_BLEND_OP BlendOpAlpha;
1490 UINT8 RenderTargetWriteMask;
1491 } D3D11_RENDER_TARGET_BLEND_DESC;
1493 typedef struct D3D11_BLEND_DESC
1495 BOOL AlphaToCoverageEnable;
1496 BOOL IndependentBlendEnable;
1497 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1498 } D3D11_BLEND_DESC;
1500 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1501 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1502 cpp_quote(" CD3D11_BLEND_DESC() {}")
1503 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1504 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1505 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1506 cpp_quote(" IndependentBlendEnable = FALSE;")
1507 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
1508 cpp_quote(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
1509 cpp_quote(" target++) {")
1510 cpp_quote(" target->BlendEnable = FALSE;")
1511 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1512 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1513 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1514 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1515 cpp_quote(" }")
1516 cpp_quote(" }")
1517 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1518 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1519 cpp_quote("};" )
1520 cpp_quote("#endif" )
1522 typedef struct D3D11_BUFFER_DESC
1524 UINT ByteWidth;
1525 D3D11_USAGE Usage;
1526 UINT BindFlags;
1527 UINT CPUAccessFlags;
1528 UINT MiscFlags;
1529 UINT StructureByteStride;
1530 } D3D11_BUFFER_DESC;
1532 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1533 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1534 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1535 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1536 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1537 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1538 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1539 cpp_quote(" ByteWidth = byteWidth;")
1540 cpp_quote(" Usage = usage;")
1541 cpp_quote(" BindFlags = bindFlags;")
1542 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1543 cpp_quote(" MiscFlags = miscFlags;" )
1544 cpp_quote(" StructureByteStride = structureByteStride;")
1545 cpp_quote(" }")
1546 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1547 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1548 cpp_quote("};" )
1549 cpp_quote("#endif" )
1551 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1553 DXGI_FORMAT Format;
1554 D3D11_DSV_DIMENSION ViewDimension;
1555 UINT Flags;
1557 union
1559 D3D11_TEX1D_DSV Texture1D;
1560 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1561 D3D11_TEX2D_DSV Texture2D;
1562 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1563 D3D11_TEX2DMS_DSV Texture2DMS;
1564 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1566 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1568 typedef struct D3D11_DEPTH_STENCILOP_DESC
1570 D3D11_STENCIL_OP StencilFailOp;
1571 D3D11_STENCIL_OP StencilDepthFailOp;
1572 D3D11_STENCIL_OP StencilPassOp;
1573 D3D11_COMPARISON_FUNC StencilFunc;
1574 } D3D11_DEPTH_STENCILOP_DESC;
1576 typedef struct D3D11_DEPTH_STENCIL_DESC
1578 BOOL DepthEnable;
1579 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1580 D3D11_COMPARISON_FUNC DepthFunc;
1581 BOOL StencilEnable;
1582 UINT8 StencilReadMask;
1583 UINT8 StencilWriteMask;
1584 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1585 D3D11_DEPTH_STENCILOP_DESC BackFace;
1586 } D3D11_DEPTH_STENCIL_DESC;
1588 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1589 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1590 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1591 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1592 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1593 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1594 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1595 cpp_quote(" DepthEnable = TRUE;")
1596 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1597 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1598 cpp_quote(" StencilEnable = FALSE;")
1599 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1600 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1601 cpp_quote(" FrontFace = default_op;")
1602 cpp_quote(" BackFace = default_op;")
1603 cpp_quote(" }")
1604 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1605 cpp_quote(" BOOL depth_enable,")
1606 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1607 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1608 cpp_quote(" BOOL stencil_enable,")
1609 cpp_quote(" UINT8 stencil_read_mask,")
1610 cpp_quote(" UINT8 stencil_write_mask,")
1611 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1612 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1613 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1614 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1615 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1616 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1617 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1618 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1619 cpp_quote(" DepthEnable = depth_enable;")
1620 cpp_quote(" DepthWriteMask = depth_write_mask;")
1621 cpp_quote(" DepthFunc = depth_func;")
1622 cpp_quote(" StencilEnable = stencil_enable;")
1623 cpp_quote(" StencilReadMask = stencil_read_mask;")
1624 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1625 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1626 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1627 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1628 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1629 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1630 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1631 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1632 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1633 cpp_quote(" }")
1634 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1635 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1636 cpp_quote("};")
1637 cpp_quote("#endif")
1639 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1641 DXGI_FORMAT Format;
1642 D3D11_RTV_DIMENSION ViewDimension;
1644 union
1646 D3D11_BUFFER_RTV Buffer;
1647 D3D11_TEX1D_RTV Texture1D;
1648 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1649 D3D11_TEX2D_RTV Texture2D;
1650 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1651 D3D11_TEX2DMS_RTV Texture2DMS;
1652 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1653 D3D11_TEX3D_RTV Texture3D;
1655 } D3D11_RENDER_TARGET_VIEW_DESC;
1657 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1658 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1659 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1660 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1661 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1662 cpp_quote(" Format = format;")
1663 cpp_quote(" ViewDimension = dim;")
1664 cpp_quote(" switch(dim) {")
1665 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1666 cpp_quote(" Buffer.FirstElement = mip_slice;")
1667 cpp_quote(" Buffer.NumElements = first_slice;")
1668 cpp_quote(" break;")
1669 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1670 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1671 cpp_quote(" break;")
1672 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1673 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1674 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1675 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1676 cpp_quote(" break;")
1677 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1678 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1679 cpp_quote(" break;")
1680 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1681 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1682 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1683 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1684 cpp_quote(" break;")
1685 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1686 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1687 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1688 cpp_quote(" break;")
1689 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1690 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1691 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1692 cpp_quote(" Texture3D.WSize = array_size;")
1693 cpp_quote(" break;")
1694 cpp_quote(" default:")
1695 cpp_quote(" break;")
1696 cpp_quote(" }")
1697 cpp_quote(" }")
1698 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1699 cpp_quote(" UINT elem_cnt) {")
1700 cpp_quote(" Format = format;")
1701 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1702 cpp_quote(" Buffer.FirstElement = first_elem;")
1703 cpp_quote(" Buffer.NumElements = elem_cnt;")
1704 cpp_quote(" }")
1705 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1706 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1707 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1708 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1709 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1710 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1711 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1712 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1713 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1714 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1715 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1716 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1717 cpp_quote(" return *this;")
1718 cpp_quote(" }")
1719 cpp_quote("};")
1720 cpp_quote("#endif")
1723 typedef struct D3D11_SAMPLER_DESC
1725 D3D11_FILTER Filter;
1726 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1727 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1728 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1729 FLOAT MipLODBias;
1730 UINT MaxAnisotropy;
1731 D3D11_COMPARISON_FUNC ComparisonFunc;
1732 FLOAT BorderColor[4];
1733 FLOAT MinLOD;
1734 FLOAT MaxLOD;
1735 } D3D11_SAMPLER_DESC;
1737 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1738 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1739 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1740 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1741 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1742 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1743 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1744 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1745 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1746 cpp_quote(" MipLODBias = 0;")
1747 cpp_quote(" MaxAnisotropy = 1;")
1748 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1749 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1750 cpp_quote(" MinLOD = -3.402823466e+38f;")
1751 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1752 cpp_quote(" }")
1753 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1754 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1755 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1756 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1757 cpp_quote(" Filter = filter;")
1758 cpp_quote(" AddressU = addressU;")
1759 cpp_quote(" AddressV = addressV;")
1760 cpp_quote(" AddressW = addressW;")
1761 cpp_quote(" MipLODBias = mipLODBias;")
1762 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1763 cpp_quote(" ComparisonFunc = comparisonFunc;")
1764 cpp_quote(" if(borderColor) {")
1765 cpp_quote(" BorderColor[0] = borderColor[0];")
1766 cpp_quote(" BorderColor[1] = borderColor[1];")
1767 cpp_quote(" BorderColor[2] = borderColor[2];")
1768 cpp_quote(" BorderColor[3] = borderColor[3];")
1769 cpp_quote(" }else {")
1770 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1771 cpp_quote(" }")
1772 cpp_quote(" MinLOD = minLOD;")
1773 cpp_quote(" MaxLOD = maxLOD;")
1774 cpp_quote(" }")
1775 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1776 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1777 cpp_quote("};")
1778 cpp_quote("#endif")
1780 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1782 DXGI_FORMAT Format;
1783 D3D11_SRV_DIMENSION ViewDimension;
1785 union
1787 D3D11_BUFFER_SRV Buffer;
1788 D3D11_TEX1D_SRV Texture1D;
1789 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1790 D3D11_TEX2D_SRV Texture2D;
1791 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1792 D3D11_TEX2DMS_SRV Texture2DMS;
1793 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1794 D3D11_TEX3D_SRV Texture3D;
1795 D3D11_TEXCUBE_SRV TextureCube;
1796 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1797 D3D11_BUFFEREX_SRV BufferEx;
1799 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1801 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1802 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1803 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1804 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1805 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1806 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1807 cpp_quote(" Format = format;")
1808 cpp_quote(" ViewDimension = dim;")
1809 cpp_quote(" switch(ViewDimension) {")
1810 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1811 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1812 cpp_quote(" Buffer.NumElements = mip_levels;")
1813 cpp_quote(" break;")
1814 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1815 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1816 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1817 cpp_quote(" break;")
1818 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1819 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1820 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1821 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1822 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1823 cpp_quote(" break;")
1824 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1825 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1826 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1827 cpp_quote(" break;")
1828 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1829 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1830 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1831 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1832 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1833 cpp_quote(" break;")
1834 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1835 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1836 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1837 cpp_quote(" break;")
1838 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1839 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1840 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1841 cpp_quote(" break;")
1842 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1843 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1844 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1845 cpp_quote(" break;")
1846 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1847 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1848 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1849 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1850 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1851 cpp_quote(" break;")
1852 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1853 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1854 cpp_quote(" BufferEx.NumElements = mip_levels;")
1855 cpp_quote(" BufferEx.Flags = flags;")
1856 cpp_quote(" break;")
1857 cpp_quote(" default:")
1858 cpp_quote(" break;")
1859 cpp_quote(" }")
1860 cpp_quote(" }")
1861 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1862 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1863 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1864 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1865 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1866 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1867 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1868 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1869 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1870 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1871 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1872 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1873 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1874 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1875 cpp_quote(" return *this;")
1876 cpp_quote(" }")
1877 cpp_quote("};")
1878 cpp_quote("#endif")
1880 typedef struct D3D11_TEXTURE1D_DESC
1882 UINT Width;
1883 UINT MipLevels;
1884 UINT ArraySize;
1885 DXGI_FORMAT Format;
1886 D3D11_USAGE Usage;
1887 UINT BindFlags;
1888 UINT CPUAccessFlags;
1889 UINT MiscFlags;
1890 } D3D11_TEXTURE1D_DESC;
1892 typedef struct D3D11_TEXTURE2D_DESC
1894 UINT Width;
1895 UINT Height;
1896 UINT MipLevels;
1897 UINT ArraySize;
1898 DXGI_FORMAT Format;
1899 DXGI_SAMPLE_DESC SampleDesc;
1900 D3D11_USAGE Usage;
1901 UINT BindFlags;
1902 UINT CPUAccessFlags;
1903 UINT MiscFlags;
1904 } D3D11_TEXTURE2D_DESC;
1906 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1907 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1908 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1909 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1910 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1911 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1912 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1913 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1914 cpp_quote(" Width = width;")
1915 cpp_quote(" Height = height;")
1916 cpp_quote(" MipLevels = mipLevels;")
1917 cpp_quote(" ArraySize = arraySize;")
1918 cpp_quote(" Format = format;")
1919 cpp_quote(" SampleDesc.Count = sampleCount;")
1920 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1921 cpp_quote(" Usage = usage;")
1922 cpp_quote(" BindFlags = bindFlags;")
1923 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1924 cpp_quote(" MiscFlags = miscFlags;")
1925 cpp_quote(" }" )
1926 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1927 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1928 cpp_quote("};")
1929 cpp_quote("#endif")
1931 typedef struct D3D11_TEXTURE3D_DESC
1933 UINT Width;
1934 UINT Height;
1935 UINT Depth;
1936 UINT MipLevels;
1937 DXGI_FORMAT Format;
1938 D3D11_USAGE Usage;
1939 UINT BindFlags;
1940 UINT CPUAccessFlags;
1941 UINT MiscFlags;
1942 } D3D11_TEXTURE3D_DESC;
1946 * D3D11 video decoder profiles
1950 /* MPEG1 & MPEG2 */
1951 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_MOCOMP, 0xe6a9f44b,0x61b0,0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);")
1952 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_IDCT, 0xbf22ad00,0x03ea,0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);")
1953 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_VLD, 0xee27417f,0x5e28,0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);")
1954 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG1_VLD, 0x6f3ec719,0x3735,0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);")
1955 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2and1_VLD, 0x86695f12,0x340e,0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);")
1957 /* H264 */
1958 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT, 0x1b81be64,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1959 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_FGT, 0x1b81be65,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1960 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_NOFGT, 0x1b81be66,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1961 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_FGT, 0x1b81be67,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1962 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_NOFGT, 0x1b81be68,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1963 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_FGT, 0x1b81be69,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1964 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT, 0xd5f04ff9,0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);")
1965 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT, 0xd79be8da,0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);")
1966 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT, 0xf9aaccbb,0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);")
1967 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT, 0x705b9d82,0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);")
1969 /* WMV8 */
1970 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_POSTPROC, 0x1b81be80,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1971 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_MOCOMP, 0x1b81be81,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1973 /* WMV9 */
1974 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_POSTPROC, 0x1b81be90,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1975 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_MOCOMP, 0x1b81be91,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1976 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_IDCT, 0x1b81be94,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1978 /* VC1 */
1979 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_POSTPROC, 0x1b81beA0,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1980 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_MOCOMP, 0x1b81beA1,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1981 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_IDCT, 0x1b81beA2,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1982 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_VLD, 0x1b81beA3,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1983 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_D2010, 0x1b81beA4,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1985 /* MPEG4 */
1986 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE, 0xefd64d74,0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);")
1987 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC, 0xed418a9f,0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);")
1988 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC, 0xab998b5b,0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);")
1990 /* HVEC */
1991 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN, 0x5b11d51b,0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);")
1992 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10, 0x107af0e0,0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);")
1994 /* VP9 */
1995 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0, 0x463707f8,0xa1d0,0x4585,0x87,0x6d,0x83,0xaa,0x6d,0x60,0xb8,0x9e);")
1996 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2, 0xa4c749ef,0x6ecf,0x48aa,0x84,0x48,0x50,0xa7,0xa1,0x16,0x5f,0xf7);")
1997 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP8_VLD, 0x90b899ea,0x3a62,0x4705,0x88,0xb3,0x8d,0xf0,0x4b,0x27,0x44,0xe7);")
1999 typedef struct D3D11_VIDEO_DECODER_DESC
2001 GUID Guid;
2002 UINT SampleWidth;
2003 UINT SampleHeight;
2004 DXGI_FORMAT OutputFormat;
2005 } D3D11_VIDEO_DECODER_DESC;
2007 typedef struct D3D11_VIDEO_DECODER_CONFIG
2009 GUID guidConfigBitstreamEncryption;
2010 GUID guidConfigMBcontrolEncryption;
2011 GUID guidConfigResidDiffEncryption;
2012 UINT ConfigBitstreamRaw;
2013 UINT ConfigMBcontrolRasterOrder;
2014 UINT ConfigResidDiffHost;
2015 UINT ConfigSpatialResid8;
2016 UINT ConfigResid8Subtraction;
2017 UINT ConfigSpatialHost8or9Clipping;
2018 UINT ConfigSpatialResidInterleaved;
2019 UINT ConfigIntraResidUnsigned;
2020 UINT ConfigResidDiffAccelerator;
2021 UINT ConfigHostInverseScan;
2022 UINT ConfigSpecificIDCT;
2023 UINT Config4GroupedCoefs;
2024 USHORT ConfigMinRenderTargetBuffCount;
2025 USHORT ConfigDecoderSpecific;
2026 } D3D11_VIDEO_DECODER_CONFIG;
2028 typedef enum D3D11_VIDEO_FRAME_FORMAT
2030 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
2031 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
2032 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
2033 } D3D11_VIDEO_FRAME_FORMAT;
2035 typedef enum D3D11_VIDEO_USAGE
2037 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
2038 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
2039 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
2040 } D3D11_VIDEO_USAGE;
2042 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
2044 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
2045 DXGI_RATIONAL InputFrameRate;
2046 UINT InputWidth;
2047 UINT InputHeight;
2048 DXGI_RATIONAL OutputFrameRate;
2049 UINT OutputWidth;
2050 UINT OutputHeight;
2051 D3D11_VIDEO_USAGE Usage;
2052 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
2054 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
2056 UINT DeviceCaps;
2057 UINT FeatureCaps;
2058 UINT FilterCaps;
2059 UINT InputFormatCaps;
2060 UINT AutoStreamCaps;
2061 UINT StereoCaps;
2062 UINT RateConversionCapsCount;
2063 UINT MaxInputStreams;
2064 UINT MaxStreamStates;
2065 } D3D11_VIDEO_PROCESSOR_CAPS;
2067 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
2069 UINT PastFrames;
2070 UINT FutureFrames;
2071 UINT ProcessorCaps;
2072 UINT ITelecineCaps;
2073 UINT CustomRateCount;
2074 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
2076 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
2078 DXGI_RATIONAL CustomRate;
2079 UINT OutputFrames;
2080 BOOL InputInterlaced;
2081 UINT InputFramesOrFields;
2082 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
2084 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
2086 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
2087 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
2088 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
2089 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
2090 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
2091 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
2092 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
2093 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
2094 } D3D11_VIDEO_PROCESSOR_FILTER;
2096 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
2098 int Minimum;
2099 int Maximum;
2100 int Default;
2101 float Multiplier;
2102 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
2104 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
2106 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
2107 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
2108 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
2109 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
2111 typedef enum D3D11_VDOV_DIMENSION
2113 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
2114 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
2115 } D3D11_VDOV_DIMENSION;
2117 typedef struct D3D11_TEX2D_VDOV
2119 UINT ArraySlice;
2120 } D3D11_TEX2D_VDOV;
2122 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
2124 GUID DecodeProfile;
2125 D3D11_VDOV_DIMENSION ViewDimension;
2126 union {
2127 D3D11_TEX2D_VDOV Texture2D;
2129 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
2131 typedef enum D3D11_VPIV_DIMENSION
2133 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
2134 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
2135 } D3D11_VPIV_DIMENSION;
2137 typedef struct D3D11_TEX2D_VPIV
2139 UINT MipSlice;
2140 UINT ArraySlice;
2141 } D3D11_TEX2D_VPIV;
2143 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
2145 UINT FourCC;
2146 D3D11_VPIV_DIMENSION ViewDimension;
2147 union {
2148 D3D11_TEX2D_VPIV Texture2D;
2150 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
2152 typedef enum D3D11_VPOV_DIMENSION
2154 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
2155 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
2156 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
2157 } D3D11_VPOV_DIMENSION;
2159 typedef struct D3D11_TEX2D_VPOV
2161 UINT MipSlice;
2162 } D3D11_TEX2D_VPOV;
2164 typedef struct D3D11_TEX2D_ARRAY_VPOV
2166 UINT MipSlice;
2167 UINT FirstArraySlice;
2168 UINT ArraySize;
2169 } D3D11_TEX2D_ARRAY_VPOV;
2171 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
2173 D3D11_VPOV_DIMENSION ViewDimension;
2174 union {
2175 D3D11_TEX2D_VPOV Texture2D;
2176 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
2178 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
2180 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
2182 UINT Caps;
2183 UINT KeyExchangeTypeCount;
2184 UINT BlockAlignmentSize;
2185 ULONGLONG ProtectedMemorySize;
2186 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
2188 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
2190 UINT NumEncryptedBytesAtBeginning;
2191 UINT NumBytesInSkipPattern;
2192 UINT NumBytesInEncryptPattern;
2193 } D3D11_ENCRYPTED_BLOCK_INFO;
2195 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2197 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
2198 UINT BufferIndex;
2199 UINT DataOffset;
2200 UINT DataSize;
2201 UINT FirstMBaddress;
2202 UINT NumMBsInBuffer;
2203 UINT Width;
2204 UINT Height;
2205 UINT Stride;
2206 UINT ReservedBits;
2207 void *pIV;
2208 UINT IVSize;
2209 BOOL PartialEncryption;
2210 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2211 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2213 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2215 UINT Function;
2216 void *pPrivateInputData;
2217 UINT PrivateInputDataSize;
2218 void *pPrivateOutputData;
2219 UINT PrivateOutputDataSize;
2220 UINT ResourceCount;
2221 ID3D11Resource **ppResourceList;
2222 } D3D11_VIDEO_DECODER_EXTENSION;
2224 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2226 float Y;
2227 float Cb;
2228 float Cr;
2229 float A;
2230 } D3D11_VIDEO_COLOR_YCbCrA;
2232 typedef struct D3D11_VIDEO_COLOR_RGBA
2234 float R;
2235 float G;
2236 float B;
2237 float A;
2238 } D3D11_VIDEO_COLOR_RGBA;
2240 typedef struct D3D11_VIDEO_COLOR
2242 union
2244 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2245 D3D11_VIDEO_COLOR_RGBA RGBA;
2247 } D3D11_VIDEO_COLOR;
2249 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2251 UINT Usage : 1;
2252 UINT RGB_Range : 1;
2253 UINT YCbCr_Matrix : 1;
2254 UINT YCbCr_xvYCC : 1;
2255 UINT Nominal_Range : 2;
2256 UINT Reserved : 26;
2257 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2259 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2261 BOOL Enable;
2262 UINT OutputIndex;
2263 UINT InputFrameOrField;
2264 UINT PastFrames;
2265 UINT FutureFrames;
2266 ID3D11VideoProcessorInputView **ppPastSurfaces;
2267 ID3D11VideoProcessorInputView *pInputSurface;
2268 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2269 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2270 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2271 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2272 } D3D11_VIDEO_PROCESSOR_STREAM;
2274 typedef struct D3D11_OMAC
2276 BYTE Omac[D3D11_OMAC_SIZE];
2277 } D3D11_OMAC;
2279 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2281 D3D11_OMAC omac;
2282 GUID ConfigureType;
2283 HANDLE hChannel;
2284 UINT SequenceNumber;
2285 HRESULT ReturnCode;
2286 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2288 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2290 UINT64 Frequency;
2291 BOOL Disjoint;
2292 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2294 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2296 UINT64 IAVertices;
2297 UINT64 IAPrimitives;
2298 UINT64 VSInvocations;
2299 UINT64 GSInvocations;
2300 UINT64 GSPrimitives;
2301 UINT64 CInvocations;
2302 UINT64 CPrimitives;
2303 UINT64 PSInvocations;
2304 UINT64 HSInvocations;
2305 UINT64 DSInvocations;
2306 UINT64 CSInvocations;
2307 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2309 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2311 UINT VertexCountPerInstance;
2312 UINT InstanceCount;
2313 UINT StartVertexLocation;
2314 UINT StartInstanceLocation;
2315 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2317 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2319 UINT IndexCountPerInstance;
2320 UINT InstanceCount;
2321 UINT StartIndexLocation;
2322 INT BaseVertexLocation;
2323 UINT StartInstanceLocation;
2324 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2326 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2328 D3D11_OMAC omac;
2329 GUID ConfigureType;
2330 HANDLE hChannel;
2331 UINT SequenceNumber;
2332 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2334 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2336 GUID QueryType;
2337 HANDLE hChannel;
2338 UINT SequenceNumber;
2339 } D3D11_AUTHENTICATED_QUERY_INPUT;
2341 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2343 D3D11_OMAC omac;
2344 GUID QueryType;
2345 HANDLE hChannel;
2346 UINT SequenceNumber;
2347 HRESULT ReturnCode;
2348 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2350 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2352 struct
2354 UINT ProtectionEnabled : 1;
2355 UINT OverlayOrFullscreenRequired : 1;
2356 UINT Reserved : 30;
2357 } Flags;
2358 UINT Value;
2359 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2361 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2363 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2364 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2365 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2367 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2369 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2370 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2371 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2373 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2375 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2376 HANDLE DeviceHandle;
2377 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2379 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2381 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2382 HANDLE DecoderHandle;
2383 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2385 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2387 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2388 HANDLE DecoderHandle;
2389 HANDLE CryptoSessionHandle;
2390 HANDLE DeviceHandle;
2391 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2393 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2395 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2396 UINT RestrictedSharedResourceProcessCount;
2397 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2399 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2401 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2402 UINT ProcessIndex;
2403 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2405 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2407 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2408 UINT ProcessIndex;
2409 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2410 HANDLE ProcessHandle;
2411 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2413 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2415 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2416 UINT UnrestrictedProtectedSharedResourceCount;
2417 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2419 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2421 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2422 HANDLE DeviceHandle;
2423 HANDLE CryptoSessionHandle;
2424 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2426 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2428 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2429 HANDLE DeviceHandle;
2430 HANDLE CryptoSessionHandle;
2431 UINT OutputIDCount;
2432 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2434 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2436 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2437 HANDLE DeviceHandle;
2438 HANDLE CryptoSessionHandle;
2439 UINT OutputIDIndex;
2440 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2442 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2444 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2445 HANDLE DeviceHandle;
2446 HANDLE CryptoSessionHandle;
2447 UINT OutputIDIndex;
2448 UINT64 OutputID;
2449 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2451 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2453 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2454 D3D11_BUS_TYPE BusType;
2455 BOOL AccessibleInContiguousBlocks;
2456 BOOL AccessibleInNonContiguousBlocks;
2457 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2459 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2461 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2462 UINT EncryptionGuidCount;
2463 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2465 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2467 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2468 UINT EncryptionGuidIndex;
2469 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2471 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2473 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2474 UINT EncryptionGuidIndex;
2475 GUID EncryptionGuid;
2476 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2478 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2480 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2481 GUID EncryptionGuid;
2482 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2484 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2486 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2487 UINT StartSequenceQuery;
2488 UINT StartSequenceConfigure;
2489 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2491 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2493 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2494 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2495 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2497 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2499 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2500 HANDLE DecoderHandle;
2501 HANDLE CryptoSessionHandle;
2502 HANDLE DeviceHandle;
2503 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2505 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2507 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2508 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2509 HANDLE ProcessHandle;
2510 BOOL AllowAccess;
2511 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2513 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2515 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2516 GUID EncryptionGuid;
2517 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2520 object,
2521 local,
2522 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2524 interface ID3D11DeviceChild : IUnknown
2526 void GetDevice(
2527 [out] ID3D11Device **ppDevice);
2528 HRESULT GetPrivateData(
2529 [in] REFGUID guid,
2530 [in, out] UINT *pDataSize,
2531 [out] void *pData);
2532 HRESULT SetPrivateData(
2533 [in] REFGUID guid,
2534 [in] UINT DataSize,
2535 [in] const void *pData);
2536 HRESULT SetPrivateDataInterface(
2537 [in] REFGUID guid,
2538 [in] const IUnknown *pData);
2542 object,
2543 local,
2544 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2546 interface ID3D11Asynchronous : ID3D11DeviceChild
2548 UINT GetDataSize();
2552 object,
2553 local,
2554 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2556 interface ID3D11Query : ID3D11Asynchronous
2558 void GetDesc(
2559 [out] D3D11_QUERY_DESC *pDesc);
2563 object,
2564 local,
2565 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2567 interface ID3D11Resource : ID3D11DeviceChild
2569 void GetType(
2570 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2571 void SetEvictionPriority(
2572 [in] UINT EvictionPriority);
2573 UINT GetEvictionPriority();
2577 object,
2578 local,
2579 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2581 interface ID3D11View : ID3D11DeviceChild
2583 void GetResource(
2584 [out] ID3D11Resource **ppResource);
2588 object,
2589 local,
2590 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2592 interface ID3D11BlendState : ID3D11DeviceChild
2594 void GetDesc(
2595 [out] D3D11_BLEND_DESC *pDesc);
2599 object,
2600 local,
2601 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2603 interface ID3D11Buffer : ID3D11Resource
2605 void GetDesc(
2606 [out] D3D11_BUFFER_DESC *pDesc);
2610 object,
2611 local,
2612 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2614 interface ID3D11ClassInstance : ID3D11DeviceChild
2616 void GetClassLinkage(
2617 [out] ID3D11ClassLinkage **ppLinkage);
2618 void GetDesc(
2619 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2620 void GetInstanceName(
2621 [out] LPSTR pInstanceName,
2622 [in, out] SIZE_T *pBufferLength);
2623 void GetTypeName(
2624 [out] LPSTR pTypeName,
2625 [in, out] SIZE_T *pBufferLength);
2629 object,
2630 local,
2631 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2633 interface ID3D11ClassLinkage : ID3D11DeviceChild
2635 HRESULT GetClassInstance(
2636 [in] LPCSTR pClassInstanceName,
2637 [in] UINT InstanceIndex,
2638 [out] ID3D11ClassInstance **ppInstance);
2639 HRESULT CreateClassInstance(
2640 [in] LPCSTR pClassTypeName,
2641 [in] UINT ConstantBufferOffset,
2642 [in] UINT ConstantVectorOffset,
2643 [in] UINT TextureOffset,
2644 [in] UINT SamplerOffset,
2645 [out] ID3D11ClassInstance **ppInstance);
2649 object,
2650 local,
2651 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2653 interface ID3D11CommandList : ID3D11DeviceChild
2655 UINT GetContextFlags();
2659 object,
2660 local,
2661 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2663 interface ID3D11ComputeShader : ID3D11DeviceChild
2668 object,
2669 local,
2670 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2672 interface ID3D11Counter : ID3D11Asynchronous
2674 void GetDesc(
2675 [out] D3D11_COUNTER_DESC *pDesc);
2679 object,
2680 local,
2681 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2683 interface ID3D11DepthStencilState : ID3D11DeviceChild
2685 void GetDesc(
2686 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2690 object,
2691 local,
2692 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2694 interface ID3D11DepthStencilView : ID3D11View
2696 void GetDesc(
2697 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2701 object,
2702 local,
2703 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2705 interface ID3D11DomainShader : ID3D11DeviceChild
2710 object,
2711 local,
2712 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2714 interface ID3D11GeometryShader : ID3D11DeviceChild
2719 object,
2720 local,
2721 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2723 interface ID3D11HullShader : ID3D11DeviceChild
2728 object,
2729 local,
2730 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2732 interface ID3D11InputLayout : ID3D11DeviceChild
2737 object,
2738 local,
2739 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2741 interface ID3D11PixelShader : ID3D11DeviceChild
2746 object,
2747 local,
2748 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2750 interface ID3D11Predicate : ID3D11Query
2755 object,
2756 local,
2757 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2759 interface ID3D11RasterizerState : ID3D11DeviceChild
2761 void GetDesc(
2762 [out] D3D11_RASTERIZER_DESC *pDesc);
2766 object,
2767 local,
2768 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2770 interface ID3D11RenderTargetView : ID3D11View
2772 void GetDesc(
2773 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2777 object,
2778 local,
2779 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2781 interface ID3D11SamplerState : ID3D11DeviceChild
2783 void GetDesc(
2784 [out] D3D11_SAMPLER_DESC *pDesc);
2788 object,
2789 local,
2790 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2792 interface ID3D11ShaderResourceView : ID3D11View
2794 void GetDesc(
2795 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2799 object,
2800 local,
2801 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2803 interface ID3D11Texture1D : ID3D11Resource
2805 void GetDesc(
2806 [out] D3D11_TEXTURE1D_DESC *pDesc);
2810 object,
2811 local,
2812 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2814 interface ID3D11Texture2D : ID3D11Resource
2816 void GetDesc(
2817 [out] D3D11_TEXTURE2D_DESC *pDesc);
2821 object,
2822 local,
2823 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2825 interface ID3D11Texture3D : ID3D11Resource
2827 void GetDesc(
2828 [out] D3D11_TEXTURE3D_DESC *pDesc);
2832 object,
2833 local,
2834 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2836 interface ID3D11UnorderedAccessView : ID3D11View
2838 void GetDesc(
2839 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2843 object,
2844 local,
2845 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2847 interface ID3D11VertexShader : ID3D11DeviceChild
2852 object,
2853 local,
2854 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2856 interface ID3D11DeviceContext : ID3D11DeviceChild
2858 void VSSetConstantBuffers(
2859 [in] UINT StartSlot,
2860 [in] UINT NumBuffers,
2861 [in] ID3D11Buffer *const *ppConstantBuffers);
2862 void PSSetShaderResources(
2863 [in] UINT StartSlot,
2864 [in] UINT NumViews,
2865 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2866 void PSSetShader(
2867 [in] ID3D11PixelShader *pPixelShader,
2868 [in] ID3D11ClassInstance *const *ppClassInstances,
2869 UINT NumClassInstances);
2870 void PSSetSamplers(
2871 [in] UINT StartSlot,
2872 [in] UINT NumSamplers,
2873 [in] ID3D11SamplerState *const *ppSamplers);
2874 void VSSetShader(
2875 [in] ID3D11VertexShader *pVertexShader,
2876 [in] ID3D11ClassInstance *const *ppClassInstances,
2877 UINT NumClassInstances);
2878 void DrawIndexed(
2879 [in] UINT IndexCount,
2880 [in] UINT StartIndexLocation,
2881 [in] INT BaseVertexLocation);
2882 void Draw(
2883 [in] UINT VertexCount,
2884 [in] UINT StartVertexLocation);
2885 HRESULT Map(
2886 [in] ID3D11Resource *pResource,
2887 [in] UINT Subresource,
2888 [in] D3D11_MAP MapType,
2889 [in] UINT MapFlags,
2890 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2891 void Unmap(
2892 [in] ID3D11Resource *pResource,
2893 [in] UINT Subresource);
2894 void PSSetConstantBuffers(
2895 [in] UINT StartSlot,
2896 [in] UINT NumBuffers,
2897 [in] ID3D11Buffer *const *ppConstantBuffers);
2898 void IASetInputLayout(
2899 [in] ID3D11InputLayout *pInputLayout);
2900 void IASetVertexBuffers(
2901 [in] UINT StartSlot,
2902 [in] UINT NumBuffers,
2903 [in] ID3D11Buffer *const *ppVertexBuffers,
2904 [in] const UINT *pStrides,
2905 [in] const UINT *pOffsets);
2906 void IASetIndexBuffer(
2907 [in] ID3D11Buffer *pIndexBuffer,
2908 [in] DXGI_FORMAT Format,
2909 [in] UINT Offset);
2910 void DrawIndexedInstanced(
2911 [in] UINT IndexCountPerInstance,
2912 [in] UINT InstanceCount,
2913 [in] UINT StartIndexLocation,
2914 [in] INT BaseVertexLocation,
2915 [in] UINT StartInstanceLocation);
2916 void DrawInstanced(
2917 [in] UINT VertexCountPerInstance,
2918 [in] UINT InstanceCount,
2919 [in] UINT StartVertexLocation,
2920 [in] UINT StartInstanceLocation);
2921 void GSSetConstantBuffers(
2922 [in] UINT StartSlot,
2923 [in] UINT NumBuffers,
2924 [in] ID3D11Buffer *const *ppConstantBuffers);
2925 void GSSetShader(
2926 [in] ID3D11GeometryShader *pShader,
2927 [in] ID3D11ClassInstance *const *ppClassInstances,
2928 UINT NumClassInstances);
2929 void IASetPrimitiveTopology(
2930 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2931 void VSSetShaderResources(
2932 [in] UINT StartSlot,
2933 [in] UINT NumViews,
2934 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2935 void VSSetSamplers(
2936 [in] UINT StartSlot,
2937 [in] UINT NumSamplers,
2938 [in] ID3D11SamplerState *const *ppSamplers);
2939 void Begin(
2940 [in] ID3D11Asynchronous *pAsync);
2941 void End(
2942 [in] ID3D11Asynchronous *pAsync);
2943 HRESULT GetData(
2944 [in] ID3D11Asynchronous *pAsync,
2945 [in] void *pData,
2946 [in] UINT DataSize,
2947 [in] UINT GetDataFlags);
2948 void SetPredication(
2949 [in] ID3D11Predicate *pPredicate,
2950 [in] BOOL PredicateValue);
2951 void GSSetShaderResources(
2952 [in] UINT StartSlot,
2953 [in] UINT NumViews,
2954 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2955 void GSSetSamplers(
2956 [in] UINT StartSlot,
2957 [in] UINT NumSamplers,
2958 [in] ID3D11SamplerState *const *ppSamplers);
2959 void OMSetRenderTargets(
2960 [in] UINT NumViews,
2961 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2962 [in] ID3D11DepthStencilView *pDepthStencilView);
2963 void OMSetRenderTargetsAndUnorderedAccessViews(
2964 [in] UINT NumRTVs,
2965 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2966 [in] ID3D11DepthStencilView *pDepthStencilView,
2967 [in] UINT UAVStartSlot,
2968 [in] UINT NumUAVs,
2969 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2970 [in] const UINT *pUAVInitialCounts);
2971 void OMSetBlendState(
2972 [in] ID3D11BlendState *pBlendState,
2973 [in] const FLOAT BlendFactor[4],
2974 [in] UINT SampleMask);
2975 void OMSetDepthStencilState(
2976 [in] ID3D11DepthStencilState *pDepthStencilState,
2977 [in] UINT StencilRef);
2978 void SOSetTargets(
2979 [in] UINT NumBuffers,
2980 [in] ID3D11Buffer *const *ppSOTargets,
2981 [in] const UINT *pOffsets);
2982 void DrawAuto();
2983 void DrawIndexedInstancedIndirect(
2984 [in] ID3D11Buffer *pBufferForArgs,
2985 [in] UINT AlignedByteOffsetForArgs);
2986 void DrawInstancedIndirect(
2987 [in] ID3D11Buffer *pBufferForArgs,
2988 [in] UINT AlignedByteOffsetForArgs);
2989 void Dispatch(
2990 [in] UINT ThreadGroupCountX,
2991 [in] UINT ThreadGroupCountY,
2992 [in] UINT ThreadGroupCountZ);
2993 void DispatchIndirect(
2994 [in] ID3D11Buffer *pBufferForArgs,
2995 [in] UINT AlignedByteOffsetForArgs);
2996 void RSSetState(
2997 [in] ID3D11RasterizerState *pRasterizerState);
2998 void RSSetViewports(
2999 [in] UINT NumViewports,
3000 [in] const D3D11_VIEWPORT *pViewports);
3001 void RSSetScissorRects(
3002 [in] UINT NumRects,
3003 [in] const D3D11_RECT *pRects);
3004 void CopySubresourceRegion(
3005 [in] ID3D11Resource *pDstResource,
3006 [in] UINT DstSubresource,
3007 [in] UINT DstX,
3008 [in] UINT DstY,
3009 [in] UINT DstZ,
3010 [in] ID3D11Resource *pSrcResource,
3011 [in] UINT SrcSubresource,
3012 [in] const D3D11_BOX *pSrcBox);
3013 void CopyResource(
3014 [in] ID3D11Resource *pDstResource,
3015 [in] ID3D11Resource *pSrcResource);
3016 void UpdateSubresource(
3017 [in] ID3D11Resource *pDstResource,
3018 [in] UINT DstSubresource,
3019 [in] const D3D11_BOX *pDstBox,
3020 [in] const void *pSrcData,
3021 [in] UINT SrcRowPitch,
3022 [in] UINT SrcDepthPitch);
3023 void CopyStructureCount(
3024 [in] ID3D11Buffer *pDstBuffer,
3025 [in] UINT DstAlignedByteOffset,
3026 [in] ID3D11UnorderedAccessView *pSrcView);
3027 void ClearRenderTargetView(
3028 [in] ID3D11RenderTargetView *pRenderTargetView,
3029 [in] const FLOAT ColorRGBA[4]);
3030 void ClearUnorderedAccessViewUint(
3031 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
3032 [in] const UINT Values[4]);
3033 void ClearUnorderedAccessViewFloat(
3034 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
3035 [in] const FLOAT Values[4]);
3036 void ClearDepthStencilView(
3037 [in] ID3D11DepthStencilView *pDepthStencilView,
3038 [in] UINT ClearFlags,
3039 [in] FLOAT Depth,
3040 [in] UINT8 Stencil);
3041 void GenerateMips(
3042 [in] ID3D11ShaderResourceView *pShaderResourceView);
3043 void SetResourceMinLOD(
3044 [in] ID3D11Resource *pResource, FLOAT MinLOD);
3045 FLOAT GetResourceMinLOD(
3046 [in] ID3D11Resource *pResource);
3047 void ResolveSubresource(
3048 [in] ID3D11Resource *pDstResource,
3049 [in] UINT DstSubresource,
3050 [in] ID3D11Resource *pSrcResource,
3051 [in] UINT SrcSubresource,
3052 [in] DXGI_FORMAT Format);
3053 void ExecuteCommandList(
3054 [in] ID3D11CommandList *pCommandList,
3055 BOOL RestoreContextState);
3056 void HSSetShaderResources(
3057 [in] UINT StartSlot,
3058 [in] UINT NumViews,
3059 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
3060 void HSSetShader(
3061 [in] ID3D11HullShader *pHullShader,
3062 [in] ID3D11ClassInstance *const *ppClassInstances,
3063 UINT NumClassInstances);
3064 void HSSetSamplers(
3065 [in] UINT StartSlot,
3066 [in] UINT NumSamplers,
3067 [in] ID3D11SamplerState *const *ppSamplers);
3068 void HSSetConstantBuffers(
3069 [in] UINT StartSlot,
3070 [in] UINT NumBuffers,
3071 [in] ID3D11Buffer *const *ppConstantBuffers);
3072 void DSSetShaderResources(
3073 [in] UINT StartSlot,
3074 [in] UINT NumViews,
3075 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
3076 void DSSetShader(
3077 [in] ID3D11DomainShader *pDomainShader,
3078 [in] ID3D11ClassInstance *const *ppClassInstances,
3079 UINT NumClassInstances);
3080 void DSSetSamplers(
3081 [in] UINT StartSlot,
3082 [in] UINT NumSamplers,
3083 [in] ID3D11SamplerState *const *ppSamplers);
3084 void DSSetConstantBuffers(
3085 [in] UINT StartSlot,
3086 [in] UINT NumBuffers,
3087 [in] ID3D11Buffer *const *ppConstantBuffers);
3088 void CSSetShaderResources(
3089 [in] UINT StartSlot,
3090 [in] UINT NumViews,
3091 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
3092 void CSSetUnorderedAccessViews(
3093 [in] UINT StartSlot,
3094 [in] UINT NumUAVs,
3095 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
3096 [in] const UINT *pUAVInitialCounts);
3097 void CSSetShader(
3098 [in] ID3D11ComputeShader *pComputeShader,
3099 [in] ID3D11ClassInstance *const *ppClassInstances,
3100 UINT NumClassInstances);
3101 void CSSetSamplers(
3102 [in] UINT StartSlot,
3103 [in] UINT NumSamplers,
3104 [in] ID3D11SamplerState *const *ppSamplers);
3105 void CSSetConstantBuffers(
3106 [in] UINT StartSlot,
3107 [in] UINT NumBuffers,
3108 [in] ID3D11Buffer *const *ppConstantBuffers);
3109 void VSGetConstantBuffers(
3110 [in] UINT StartSlot,
3111 [in] UINT NumBuffers,
3112 [out] ID3D11Buffer **ppConstantBuffers);
3113 void PSGetShaderResources(
3114 [in] UINT StartSlot,
3115 [in] UINT NumViews,
3116 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3117 void PSGetShader(
3118 [out] ID3D11PixelShader **ppPixelShader,
3119 [out] ID3D11ClassInstance **ppClassInstances,
3120 [in, out] UINT *pNumClassInstances);
3121 void PSGetSamplers(
3122 [in] UINT StartSlot,
3123 [in] UINT NumSamplers,
3124 [out] ID3D11SamplerState **ppSamplers);
3125 void VSGetShader(
3126 [out] ID3D11VertexShader **ppVertexShader,
3127 [out] ID3D11ClassInstance **ppClassInstances,
3128 [in, out] UINT *pNumClassInstances);
3129 void PSGetConstantBuffers(
3130 [in] UINT StartSlot,
3131 [in] UINT NumBuffers,
3132 [out] ID3D11Buffer **ppConstantBuffers);
3133 void IAGetInputLayout(
3134 [out] ID3D11InputLayout **ppInputLayout);
3135 void IAGetVertexBuffers(
3136 [in] UINT StartSlot,
3137 [in] UINT NumBuffers,
3138 [out] ID3D11Buffer **ppVertexBuffers,
3139 [out] UINT *pStrides,
3140 [out] UINT *pOffsets);
3141 void IAGetIndexBuffer(
3142 [out] ID3D11Buffer **pIndexBuffer,
3143 [out] DXGI_FORMAT* Format,
3144 [out] UINT* Offset);
3145 void GSGetConstantBuffers(
3146 [in] UINT StartSlot,
3147 [in] UINT NumBuffers,
3148 [out] ID3D11Buffer **ppConstantBuffers);
3149 void GSGetShader(
3150 [out] ID3D11GeometryShader **ppGeometryShader,
3151 [out] ID3D11ClassInstance **ppClassInstances,
3152 [in, out] UINT *pNumClassInstances);
3153 void IAGetPrimitiveTopology(
3154 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
3155 void VSGetShaderResources(
3156 [in] UINT StartSlot,
3157 [in] UINT NumViews,
3158 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3159 void VSGetSamplers(
3160 [in] UINT StartSlot,
3161 [in] UINT NumSamplers,
3162 [out] ID3D11SamplerState **ppSamplers);
3163 void GetPredication(
3164 [out] ID3D11Predicate **ppPredicate,
3165 [out] BOOL *pPredicateValue);
3166 void GSGetShaderResources(
3167 [in] UINT StartSlot,
3168 [in] UINT NumViews,
3169 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3170 void GSGetSamplers(
3171 [in] UINT StartSlot,
3172 [in] UINT NumSamplers,
3173 [out] ID3D11SamplerState **ppSamplers);
3174 void OMGetRenderTargets(
3175 [in] UINT NumViews,
3176 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3177 [out] ID3D11DepthStencilView **ppDepthStencilView);
3178 void OMGetRenderTargetsAndUnorderedAccessViews(
3179 [in] UINT NumRTVs,
3180 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3181 [out] ID3D11DepthStencilView **ppDepthStencilView,
3182 [in] UINT UAVStartSlot,
3183 [in] UINT NumUAVs,
3184 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3185 void OMGetBlendState(
3186 [out] ID3D11BlendState **ppBlendState,
3187 [out] FLOAT BlendFactor[4],
3188 [out] UINT *pSampleMask);
3189 void OMGetDepthStencilState(
3190 [out] ID3D11DepthStencilState **ppDepthStencilState,
3191 [out] UINT *pStencilRef);
3192 void SOGetTargets(
3193 [in] UINT NumBuffers,
3194 [out] ID3D11Buffer **ppSOTargets);
3195 void RSGetState(
3196 [out] ID3D11RasterizerState **ppRasterizerState);
3197 void RSGetViewports(
3198 [in, out] UINT *pNumViewports,
3199 [out] D3D11_VIEWPORT *pViewports);
3200 void RSGetScissorRects(
3201 [in, out] UINT *pNumRects,
3202 [out] D3D11_RECT *pRects);
3203 void HSGetShaderResources(
3204 [in] UINT StartSlot,
3205 [in] UINT NumViews,
3206 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3207 void HSGetShader(
3208 [out] ID3D11HullShader **ppHullShader,
3209 [out] ID3D11ClassInstance **ppClassInstances,
3210 [in, out] UINT *pNumClassInstances);
3211 void HSGetSamplers(
3212 [in] UINT StartSlot,
3213 [in] UINT NumSamplers,
3214 [out] ID3D11SamplerState **ppSamplers);
3215 void HSGetConstantBuffers(
3216 [in] UINT StartSlot,
3217 [in] UINT NumBuffers,
3218 [out] ID3D11Buffer **ppConstantBuffers);
3219 void DSGetShaderResources(
3220 [in] UINT StartSlot,
3221 [in] UINT NumViews,
3222 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3223 void DSGetShader(
3224 [out] ID3D11DomainShader **ppDomainShader,
3225 [out] ID3D11ClassInstance **ppClassInstances,
3226 [in, out] UINT *pNumClassInstances);
3227 void DSGetSamplers(
3228 [in] UINT StartSlot,
3229 [in] UINT NumSamplers,
3230 [out] ID3D11SamplerState **ppSamplers);
3231 void DSGetConstantBuffers(
3232 [in] UINT StartSlot,
3233 [in] UINT NumBuffers,
3234 [out] ID3D11Buffer **ppConstantBuffers);
3235 void CSGetShaderResources(
3236 [in] UINT StartSlot,
3237 [in] UINT NumViews,
3238 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3239 void CSGetUnorderedAccessViews(
3240 [in] UINT StartSlot,
3241 [in] UINT NumUAVs,
3242 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3243 void CSGetShader(
3244 [out] ID3D11ComputeShader **ppComputeShader,
3245 [out] ID3D11ClassInstance **ppClassInstances,
3246 [in, out] UINT *pNumClassInstances);
3247 void CSGetSamplers(
3248 [in] UINT StartSlot,
3249 [in] UINT NumSamplers,
3250 [out] ID3D11SamplerState **ppSamplers);
3251 void CSGetConstantBuffers(
3252 [in] UINT StartSlot,
3253 [in] UINT NumBuffers,
3254 [out] ID3D11Buffer **ppConstantBuffers);
3255 void ClearState();
3256 void Flush();
3257 D3D11_DEVICE_CONTEXT_TYPE GetType();
3258 UINT GetContextFlags();
3259 HRESULT FinishCommandList(
3260 BOOL RestoreDeferredContextState,
3261 [out] ID3D11CommandList **ppCommandList);
3265 object,
3266 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3267 local,
3268 pointer_default(unique)
3270 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3272 HRESULT GetCertificateSize(
3273 UINT *pCertificateSize);
3274 HRESULT GetCertificate(
3275 UINT CertificateSize,
3276 BYTE *pCertificate);
3277 void GetChannelHandle(
3278 HANDLE *pChannelHandle);
3282 object,
3283 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3284 local,
3285 pointer_default(unique)
3287 interface ID3D11CryptoSession : ID3D11DeviceChild
3289 void GetCryptoType(
3290 GUID *pCryptoType);
3291 void GetDecoderProfile(
3292 GUID *pDecoderProfile);
3293 HRESULT GetCertificateSize(
3294 UINT *pCertificateSize);
3295 HRESULT GetCertificate(
3296 UINT CertificateSize,
3297 BYTE *pCertificate);
3298 void GetCryptoSessionHandle(
3299 HANDLE *pCryptoSessionHandle);
3303 object,
3304 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3305 local,
3306 pointer_default(unique)
3308 interface ID3D11VideoDecoder : ID3D11DeviceChild
3310 HRESULT GetCreationParameters(
3311 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3312 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3313 HRESULT GetDriverHandle(
3314 HANDLE *pDriverHandle);
3318 object,
3319 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3320 local,
3321 pointer_default(unique)
3323 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3325 HRESULT GetVideoProcessorContentDesc(
3326 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3327 HRESULT CheckVideoProcessorFormat(
3328 DXGI_FORMAT Format,
3329 UINT *pFlags);
3330 HRESULT GetVideoProcessorCaps(
3331 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3332 HRESULT GetVideoProcessorRateConversionCaps(
3333 UINT TypeIndex,
3334 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3335 HRESULT GetVideoProcessorCustomRate(
3336 UINT TypeIndex,
3337 UINT CustomRateIndex,
3338 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3339 HRESULT GetVideoProcessorFilterRange(
3340 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3341 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3345 object,
3346 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3347 local,
3348 pointer_default(unique)
3350 interface ID3D11VideoProcessor : ID3D11DeviceChild
3352 void GetContentDesc(
3353 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3354 void GetRateConversionCaps(
3355 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3359 object,
3360 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3361 local,
3362 pointer_default(unique)
3364 interface ID3D11VideoDecoderOutputView : ID3D11View
3366 void GetDesc(
3367 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3371 object,
3372 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3373 local,
3374 pointer_default(unique)
3376 interface ID3D11VideoProcessorInputView : ID3D11View
3378 void GetDesc(
3379 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3383 object,
3384 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3385 local,
3386 pointer_default(unique)
3388 interface ID3D11VideoProcessorOutputView : ID3D11View
3390 void GetDesc(
3391 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3395 object,
3396 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3397 local,
3398 pointer_default(unique)
3400 interface ID3D11VideoDevice : IUnknown
3402 HRESULT CreateVideoDecoder(
3403 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3404 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3405 ID3D11VideoDecoder **ppDecoder);
3406 HRESULT CreateVideoProcessor(
3407 ID3D11VideoProcessorEnumerator *pEnum,
3408 UINT RateConversionIndex,
3409 ID3D11VideoProcessor **ppVideoProcessor);
3410 HRESULT CreateAuthenticatedChannel(
3411 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3412 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3413 HRESULT CreateCryptoSession(
3414 const GUID *pCryptoType,
3415 const GUID *pDecoderProfile,
3416 const GUID *pKeyExchangeType,
3417 ID3D11CryptoSession **ppCryptoSession);
3418 HRESULT CreateVideoDecoderOutputView(
3419 ID3D11Resource *pResource,
3420 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3421 ID3D11VideoDecoderOutputView **ppVDOVView);
3422 HRESULT CreateVideoProcessorInputView(
3423 ID3D11Resource *pResource,
3424 ID3D11VideoProcessorEnumerator *pEnum,
3425 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3426 ID3D11VideoProcessorInputView **ppVPIView);
3427 HRESULT CreateVideoProcessorOutputView(
3428 ID3D11Resource *pResource,
3429 ID3D11VideoProcessorEnumerator *pEnum,
3430 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3431 ID3D11VideoProcessorOutputView **ppVPOView);
3432 HRESULT CreateVideoProcessorEnumerator(
3433 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3434 ID3D11VideoProcessorEnumerator **ppEnum);
3435 UINT GetVideoDecoderProfileCount();
3436 HRESULT GetVideoDecoderProfile(
3437 UINT Index,
3438 GUID *pDecoderProfile);
3439 HRESULT CheckVideoDecoderFormat(
3440 const GUID *pDecoderProfile,
3441 DXGI_FORMAT Format,
3442 BOOL *pSupported);
3443 HRESULT GetVideoDecoderConfigCount(
3444 const D3D11_VIDEO_DECODER_DESC *pDesc,
3445 UINT *pCount);
3446 HRESULT GetVideoDecoderConfig(
3447 const D3D11_VIDEO_DECODER_DESC *pDesc,
3448 UINT Index,
3449 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3450 HRESULT GetContentProtectionCaps(
3451 const GUID *pCryptoType,
3452 const GUID *pDecoderProfile,
3453 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3454 HRESULT CheckCryptoKeyExchange(
3455 const GUID *pCryptoType,
3456 const GUID *pDecoderProfile,
3457 UINT Index,
3458 GUID *pKeyExchangeType);
3459 HRESULT SetPrivateData(
3460 REFGUID guid,
3461 UINT DataSize,
3462 const void *pData);
3463 HRESULT SetPrivateDataInterface(
3464 REFGUID guid,
3465 const IUnknown *pData);
3469 object,
3470 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3471 local,
3472 pointer_default(unique)
3474 interface ID3D11VideoContext : ID3D11DeviceChild
3476 HRESULT GetDecoderBuffer(
3477 [in] ID3D11VideoDecoder *decoder,
3478 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3479 [out] UINT *buffer_size,
3480 [out] void **buffer
3482 HRESULT ReleaseDecoderBuffer(
3483 [in] ID3D11VideoDecoder *decoder,
3484 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3486 HRESULT DecoderBeginFrame(
3487 [in] ID3D11VideoDecoder *decoder,
3488 [in] ID3D11VideoDecoderOutputView *view,
3489 [in] UINT key_size,
3490 [in] const void *key
3492 HRESULT DecoderEndFrame(
3493 [in] ID3D11VideoDecoder *decoder
3495 HRESULT SubmitDecoderBuffers(
3496 [in] ID3D11VideoDecoder *decoder,
3497 [in] UINT buffers_count,
3498 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3500 HRESULT DecoderExtension(
3501 [in] ID3D11VideoDecoder *decoder,
3502 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3504 void VideoProcessorSetOutputTargetRect(
3505 [in] ID3D11VideoProcessor *processor,
3506 [in] BOOL enable,
3507 [in] const RECT *rect
3509 void VideoProcessorSetOutputBackgroundColor(
3510 [in] ID3D11VideoProcessor *processor,
3511 [in] BOOL y_cb_cr,
3512 [in] const D3D11_VIDEO_COLOR *color
3514 void VideoProcessorSetOutputColorSpace(
3515 [in] ID3D11VideoProcessor *processor,
3516 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3518 void VideoProcessorSetOutputAlphaFillMode(
3519 [in] ID3D11VideoProcessor *processor,
3520 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3521 [in] UINT stream_idx
3523 void VideoProcessorSetOutputConstriction(
3524 [in] ID3D11VideoProcessor *processor,
3525 [in] BOOL enable,
3526 [in] SIZE size
3528 void VideoProcessorSetOutputStereoMode(
3529 [in] ID3D11VideoProcessor *processor,
3530 [in] BOOL enable
3532 HRESULT VideoProcessorSetOutputExtension(
3533 [in] ID3D11VideoProcessor *processor,
3534 [in] const GUID *guid,
3535 [in] UINT data_size,
3536 [in] void *data
3538 void VideoProcessorGetOutputTargetRect(
3539 [in] ID3D11VideoProcessor *processor,
3540 [out] BOOL *enabled,
3541 [out] RECT *rect
3543 void VideoProcessorGetOutputBackgroundColor(
3544 [in] ID3D11VideoProcessor *processor,
3545 [out] BOOL *y_cb_cr,
3546 [out] D3D11_VIDEO_COLOR *color
3548 void VideoProcessorGetOutputColorSpace(
3549 [in] ID3D11VideoProcessor *processor,
3550 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3552 void VideoProcessorGetOutputAlphaFillMode(
3553 [in] ID3D11VideoProcessor *processor,
3554 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3555 [out] UINT *stream_idx
3557 void VideoProcessorGetOutputConstriction(
3558 [in] ID3D11VideoProcessor *processor,
3559 [out] BOOL *enabled,
3560 [out] SIZE *size
3562 void VideoProcessorGetOutputStereoMode(
3563 [in] ID3D11VideoProcessor *processor,
3564 [out] BOOL *enabled
3566 HRESULT VideoProcessorGetOutputExtension(
3567 [in] ID3D11VideoProcessor *processor,
3568 [in] const GUID *guid,
3569 [in] UINT data_size,
3570 [out] void *data
3572 void VideoProcessorSetStreamFrameFormat(
3573 [in] ID3D11VideoProcessor *processor,
3574 [in] UINT stream_idx,
3575 [in] D3D11_VIDEO_FRAME_FORMAT format
3577 void VideoProcessorSetStreamColorSpace(
3578 [in] ID3D11VideoProcessor *processor,
3579 [in] UINT stream_idx,
3580 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3582 void VideoProcessorSetStreamOutputRate(
3583 [in] ID3D11VideoProcessor *processor,
3584 [in] UINT stream_idx,
3585 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3586 [in] BOOL repeat,
3587 [in] const DXGI_RATIONAL *custom_rate
3589 void VideoProcessorSetStreamSourceRect(
3590 [in] ID3D11VideoProcessor *processor,
3591 [in] UINT stream_idx,
3592 [in] BOOL enable,
3593 [in] const RECT *rect
3595 void VideoProcessorSetStreamDestRect(
3596 [in] ID3D11VideoProcessor *processor,
3597 [in] UINT stream_idx,
3598 [in] BOOL enable,
3599 [in] const RECT *rect
3601 void VideoProcessorSetStreamAlpha(
3602 [in] ID3D11VideoProcessor *processor,
3603 [in] UINT stream_idx,
3604 [in] BOOL enable,
3605 [in] float alpha
3607 void VideoProcessorSetStreamPalette(
3608 [in] ID3D11VideoProcessor *processor,
3609 [in] UINT stream_idx,
3610 [in] UINT entry_count,
3611 [in] const UINT *entries
3613 void VideoProcessorSetStreamPixelAspectRatio(
3614 [in] ID3D11VideoProcessor *processor,
3615 [in] UINT stream_idx,
3616 [in] BOOL enable,
3617 [in] const DXGI_RATIONAL *src_aspect_ratio,
3618 [in] const DXGI_RATIONAL *dst_aspect_ratio
3620 void VideoProcessorSetStreamLumaKey(
3621 [in] ID3D11VideoProcessor *processor,
3622 [in] UINT stream_idx,
3623 [in] BOOL enable,
3624 [in] float lower,
3625 [in] float upper
3627 void VideoProcessorSetStreamStereoFormat(
3628 [in] ID3D11VideoProcessor *processor,
3629 [in] UINT stream_idx,
3630 [in] BOOL enable,
3631 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3632 [in] BOOL left_view_frame0,
3633 [in] BOOL base_view_frame0,
3634 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3635 [in] int mono_offset
3637 void VideoProcessorSetStreamAutoProcessingMode(
3638 [in] ID3D11VideoProcessor *processor,
3639 [in] UINT stream_idx,
3640 [in] BOOL enable
3642 void VideoProcessorSetStreamFilter(
3643 [in] ID3D11VideoProcessor *processor,
3644 [in] UINT stream_idx,
3645 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3646 [in] BOOL enable,
3647 [in] int level
3649 HRESULT VideoProcessorSetStreamExtension(
3650 [in] ID3D11VideoProcessor *processor,
3651 [in] UINT stream_idx,
3652 [in] const GUID *guid,
3653 [in] UINT data_size,
3654 [in] void *data
3656 void VideoProcessorGetStreamFrameFormat(
3657 [in] ID3D11VideoProcessor *processor,
3658 [in] UINT stream_idx,
3659 [out] D3D11_VIDEO_FRAME_FORMAT *format
3661 void VideoProcessorGetStreamColorSpace(
3662 [in] ID3D11VideoProcessor *processor,
3663 [in] UINT stream_idx,
3664 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3666 void VideoProcessorGetStreamOutputRate(
3667 [in] ID3D11VideoProcessor *processor,
3668 [in] UINT stream_idx,
3669 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3670 [out] BOOL *repeat,
3671 [out] DXGI_RATIONAL *custom_rate
3673 void VideoProcessorGetStreamSourceRect(
3674 [in] ID3D11VideoProcessor *processor,
3675 [in] UINT stream_idx,
3676 [out] BOOL *enabled,
3677 [out] RECT *rect
3679 void VideoProcessorGetStreamDestRect(
3680 [in] ID3D11VideoProcessor *processor,
3681 [in] UINT stream_idx,
3682 [out] BOOL *enabled,
3683 [out] RECT *rect
3685 void VideoProcessorGetStreamAlpha(
3686 [in] ID3D11VideoProcessor *processor,
3687 [in] UINT stream_idx,
3688 [out] BOOL *enabled,
3689 [out] float *alpha
3691 void VideoProcessorGetStreamPalette(
3692 [in] ID3D11VideoProcessor *processor,
3693 [in] UINT stream_idx,
3694 [in] UINT entry_count,
3695 [out] UINT *entries
3697 void VideoProcessorGetStreamPixelAspectRatio(
3698 [in] ID3D11VideoProcessor *processor,
3699 [in] UINT stream_idx,
3700 [out] BOOL *enabled,
3701 [out] DXGI_RATIONAL *src_aspect_ratio,
3702 [out] DXGI_RATIONAL *dst_aspect_ratio
3704 void VideoProcessorGetStreamLumaKey(
3705 [in] ID3D11VideoProcessor *processor,
3706 [in] UINT stream_idx,
3707 [out] BOOL *enabled,
3708 [out] float *lower,
3709 [out] float *upper
3711 void VideoProcessorGetStreamStereoFormat(
3712 [in] ID3D11VideoProcessor *processor,
3713 [in] UINT stream_idx,
3714 [out] BOOL *enabled,
3715 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3716 [out] BOOL *left_view_frame0,
3717 [out] BOOL *base_view_frame0,
3718 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3719 [out] int *mono_offset
3721 void VideoProcessorGetStreamAutoProcessingMode(
3722 [in] ID3D11VideoProcessor *processor,
3723 [in] UINT stream_idx,
3724 [out] BOOL *enabled
3726 void VideoProcessorGetStreamFilter(
3727 [in] ID3D11VideoProcessor *processor,
3728 [in] UINT stream_idx,
3729 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3730 [out] BOOL *enabled,
3731 [out] int *level
3733 HRESULT VideoProcessorGetStreamExtension(
3734 [in] ID3D11VideoProcessor *processor,
3735 [in] UINT stream_idx,
3736 [in] const GUID *guid,
3737 [in] UINT data_size,
3738 [out] void *data
3740 HRESULT VideoProcessorBlt(
3741 [in] ID3D11VideoProcessor *processor,
3742 [in] ID3D11VideoProcessorOutputView *view,
3743 [in] UINT frame_idx,
3744 [in] UINT stream_count,
3745 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3747 HRESULT NegotiateCryptoSessionKeyExchange(
3748 [in] ID3D11CryptoSession *session,
3749 [in] UINT data_size,
3750 [in, out] void *data
3752 void EncryptionBlt(
3753 [in] ID3D11CryptoSession *session,
3754 [in] ID3D11Texture2D *src_surface,
3755 [in] ID3D11Texture2D *dst_surface,
3756 [in] UINT iv_size,
3757 [in, out] void *iv
3759 void DecryptionBlt(
3760 [in] ID3D11CryptoSession *session,
3761 [in] ID3D11Texture2D *src_surface,
3762 [in] ID3D11Texture2D *dst_surface,
3763 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3764 [in] UINT key_size,
3765 [in] const void *key,
3766 [in] UINT iv_size,
3767 [in, out] void *iv
3769 void StartSessionKeyRefresh(
3770 [in] ID3D11CryptoSession *session,
3771 [in] UINT random_number_size,
3772 [out] void *random_number
3774 void FinishSessionKeyRefresh(
3775 [in] ID3D11CryptoSession *session
3777 HRESULT GetEncryptionBltKey(
3778 [in] ID3D11CryptoSession *session,
3779 [in] UINT key_size,
3780 [out] void *key
3782 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3783 [in] ID3D11AuthenticatedChannel *channel,
3784 [in] UINT data_size,
3785 [in, out] void *data
3787 HRESULT QueryAuthenticatedChannel(
3788 [in] ID3D11AuthenticatedChannel *channel,
3789 [in] UINT input_size,
3790 [in] const void *input,
3791 [in] UINT output_size,
3792 [out] void *output
3794 HRESULT ConfigureAuthenticatedChannel(
3795 [in] ID3D11AuthenticatedChannel *channel,
3796 [in] UINT input_size,
3797 [in] const void *input,
3798 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3800 void VideoProcessorSetStreamRotation(
3801 [in] ID3D11VideoProcessor *processor,
3802 [in] UINT stream_idx,
3803 [in] BOOL enable,
3804 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3806 void VideoProcessorGetStreamRotation(
3807 [in] ID3D11VideoProcessor *processor,
3808 [in] UINT stream_idx,
3809 [out] BOOL *enable,
3810 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3815 object,
3816 local,
3817 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3819 interface ID3D11Device : IUnknown
3821 HRESULT CreateBuffer(
3822 [in] const D3D11_BUFFER_DESC *pDesc,
3823 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3824 [out] ID3D11Buffer **ppBuffer);
3825 HRESULT CreateTexture1D(
3826 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3827 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3828 [out] ID3D11Texture1D **ppTexture1D);
3829 HRESULT CreateTexture2D(
3830 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3831 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3832 [out] ID3D11Texture2D **ppTexture2D);
3833 HRESULT CreateTexture3D(
3834 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3835 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3836 [out] ID3D11Texture3D **ppTexture3D);
3837 HRESULT CreateShaderResourceView(
3838 [in] ID3D11Resource *pResource,
3839 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3840 [out] ID3D11ShaderResourceView **ppSRView);
3841 HRESULT CreateUnorderedAccessView(
3842 [in] ID3D11Resource *pResource,
3843 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3844 [out] ID3D11UnorderedAccessView **ppUAView);
3845 HRESULT CreateRenderTargetView(
3846 [in] ID3D11Resource *pResource,
3847 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3848 [out] ID3D11RenderTargetView **ppRTView);
3849 HRESULT CreateDepthStencilView(
3850 [in] ID3D11Resource *pResource,
3851 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3852 [out] ID3D11DepthStencilView **ppDepthStencilView);
3853 HRESULT CreateInputLayout(
3854 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3855 [in] UINT NumElements,
3856 [in] const void *pShaderBytecodeWithInputSignature,
3857 [in] SIZE_T BytecodeLength,
3858 [out] ID3D11InputLayout **ppInputLayout);
3859 HRESULT CreateVertexShader(
3860 [in] const void *pShaderBytecode,
3861 [in] SIZE_T BytecodeLength,
3862 [in] ID3D11ClassLinkage *pClassLinkage,
3863 [out] ID3D11VertexShader **ppVertexShader);
3864 HRESULT CreateGeometryShader(
3865 [in] const void *pShaderBytecode,
3866 [in] SIZE_T BytecodeLength,
3867 [in] ID3D11ClassLinkage *pClassLinkage,
3868 [out] ID3D11GeometryShader **ppGeometryShader);
3869 HRESULT CreateGeometryShaderWithStreamOutput(
3870 [in] const void *pShaderBytecode,
3871 [in] SIZE_T BytecodeLength,
3872 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3873 [in] UINT NumEntries,
3874 [in] const UINT *pBufferStrides,
3875 [in] UINT NumStrides,
3876 [in] UINT RasterizedStream,
3877 [in] ID3D11ClassLinkage *pClassLinkage,
3878 [out] ID3D11GeometryShader **ppGeometryShader);
3879 HRESULT CreatePixelShader(
3880 [in] const void *pShaderBytecode,
3881 [in] SIZE_T BytecodeLength,
3882 [in] ID3D11ClassLinkage *pClassLinkage,
3883 [out] ID3D11PixelShader **ppPixelShader);
3884 HRESULT CreateHullShader(
3885 [in] const void *pShaderBytecode,
3886 [in] SIZE_T BytecodeLength,
3887 [in] ID3D11ClassLinkage *pClassLinkage,
3888 [out] ID3D11HullShader **ppHullShader);
3889 HRESULT CreateDomainShader(
3890 [in] const void *pShaderBytecode,
3891 [in] SIZE_T BytecodeLength,
3892 [in] ID3D11ClassLinkage *pClassLinkage,
3893 [out] ID3D11DomainShader **ppDomainShader);
3894 HRESULT CreateComputeShader(
3895 [in] const void *pShaderBytecode,
3896 [in] SIZE_T BytecodeLength,
3897 [in] ID3D11ClassLinkage *pClassLinkage,
3898 [out] ID3D11ComputeShader **ppComputeShader);
3899 HRESULT CreateClassLinkage(
3900 [out] ID3D11ClassLinkage **ppLinkage);
3901 HRESULT CreateBlendState(
3902 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3903 [out] ID3D11BlendState **ppBlendState);
3904 HRESULT CreateDepthStencilState(
3905 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3906 [out] ID3D11DepthStencilState **ppDepthStencilState);
3907 HRESULT CreateRasterizerState(
3908 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3909 [out] ID3D11RasterizerState **ppRasterizerState);
3910 HRESULT CreateSamplerState(
3911 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3912 [out] ID3D11SamplerState **ppSamplerState);
3913 HRESULT CreateQuery(
3914 [in] const D3D11_QUERY_DESC *pQueryDesc,
3915 [out] ID3D11Query **ppQuery);
3916 HRESULT CreatePredicate(
3917 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3918 [out] ID3D11Predicate **ppPredicate);
3919 HRESULT CreateCounter(
3920 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3921 [out] ID3D11Counter **ppCounter);
3922 HRESULT CreateDeferredContext(
3923 UINT ContextFlags,
3924 [out] ID3D11DeviceContext **ppDeferredContext);
3925 HRESULT OpenSharedResource(
3926 [in] HANDLE hResource,
3927 [in] REFIID ReturnedInterface,
3928 [out] void **ppResource);
3929 HRESULT CheckFormatSupport(
3930 [in] DXGI_FORMAT Format,
3931 [out] UINT *pFormatSupport);
3932 HRESULT CheckMultisampleQualityLevels(
3933 [in] DXGI_FORMAT Format,
3934 [in] UINT SampleCount,
3935 [out] UINT *pNumQualityLevels);
3936 void CheckCounterInfo(
3937 [out] D3D11_COUNTER_INFO *pCounterInfo);
3938 HRESULT CheckCounter(
3939 [in] const D3D11_COUNTER_DESC *pDesc,
3940 [out] D3D11_COUNTER_TYPE *pType,
3941 [out] UINT *pActiveCounters,
3942 [out] LPSTR szName,
3943 [in, out] UINT *pNameLength,
3944 [out] LPSTR szUnits,
3945 [in, out] UINT *pUnitsLength,
3946 [out] LPSTR szDescription,
3947 [in, out] UINT *pDescriptionLength);
3948 HRESULT CheckFeatureSupport(
3949 D3D11_FEATURE Feature,
3950 [out] void *pFeatureSupportData,
3951 UINT FeatureSupportDataSize);
3952 HRESULT GetPrivateData(
3953 [in] REFGUID guid,
3954 [in, out] UINT *pDataSize,
3955 [out] void *pData);
3956 HRESULT SetPrivateData(
3957 [in] REFGUID guid,
3958 [in] UINT DataSize,
3959 [in] const void *pData);
3960 HRESULT SetPrivateDataInterface(
3961 [in] REFGUID guid,
3962 [in] const IUnknown *pData);
3963 D3D_FEATURE_LEVEL GetFeatureLevel();
3964 UINT GetCreationFlags();
3965 HRESULT GetDeviceRemovedReason();
3966 void GetImmediateContext(
3967 [out] ID3D11DeviceContext **ppImmediateContext);
3968 HRESULT SetExceptionMode(UINT RaiseFlags);
3969 UINT GetExceptionMode();
3972 typedef enum D3D11_CREATE_DEVICE_FLAG {
3973 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3974 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3975 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3976 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3977 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3978 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3979 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3980 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3981 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3982 } D3D11_CREATE_DEVICE_FLAG;
3984 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
3986 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001,
3987 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002,
3988 } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
3990 const UINT D3D11_SDK_VERSION = 7;
3992 cpp_quote("#include <d3d10_1.h>")
3993 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3994 cpp_quote("# include <d3d11sdklayers.h>")
3995 cpp_quote("#endif")
3996 cpp_quote("#include <d3d10misc.h>")
3997 cpp_quote("#include <d3d10shader.h>")
3998 cpp_quote("#include <d3d10effect.h>")
3999 cpp_quote("#include <d3d10_1shader.h>")
4001 const UINT _FACD3D11 = 0x87c;
4002 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
4004 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
4005 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
4007 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
4008 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
4010 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
4011 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
4012 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
4014 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
4015 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
4016 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
4017 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);