winex11: Use a helper to change internal composition status.
[wine.git] / include / d3d11.idl
blob3aff03448c4213f8773dad1f7e0bf7f9f1c0b9a6
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_FLAG;
1042 typedef struct D3D11_QUERY_DESC
1044 D3D11_QUERY Query;
1045 UINT MiscFlags;
1046 } D3D11_QUERY_DESC;
1048 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1049 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
1050 cpp_quote(" CD3D11_QUERY_DESC() {}")
1051 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
1052 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
1053 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
1054 cpp_quote(" Query = query;")
1055 cpp_quote(" MiscFlags = misc_flags;")
1056 cpp_quote(" }")
1057 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
1058 cpp_quote(" return *this;")
1059 cpp_quote(" }")
1060 cpp_quote("};")
1061 cpp_quote("#endif")
1063 typedef struct D3D11_RASTERIZER_DESC
1065 D3D11_FILL_MODE FillMode;
1066 D3D11_CULL_MODE CullMode;
1067 BOOL FrontCounterClockwise;
1068 INT DepthBias;
1069 FLOAT DepthBiasClamp;
1070 FLOAT SlopeScaledDepthBias;
1071 BOOL DepthClipEnable;
1072 BOOL ScissorEnable;
1073 BOOL MultisampleEnable;
1074 BOOL AntialiasedLineEnable;
1075 } D3D11_RASTERIZER_DESC;
1077 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1078 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
1079 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
1080 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
1081 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
1082 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
1083 cpp_quote(" CullMode = D3D11_CULL_BACK;")
1084 cpp_quote(" FrontCounterClockwise = FALSE;")
1085 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
1086 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
1087 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
1088 cpp_quote(" DepthClipEnable = TRUE;")
1089 cpp_quote(" ScissorEnable = FALSE;")
1090 cpp_quote(" MultisampleEnable = FALSE;")
1091 cpp_quote(" AntialiasedLineEnable = FALSE;")
1092 cpp_quote(" }")
1093 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
1094 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
1095 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
1096 cpp_quote(" FillMode = fillMode;")
1097 cpp_quote(" CullMode = cullMode;")
1098 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
1099 cpp_quote(" DepthBias = depthBias;")
1100 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
1101 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
1102 cpp_quote(" DepthClipEnable = depthClipEnable;")
1103 cpp_quote(" ScissorEnable = scissorEnable;")
1104 cpp_quote(" MultisampleEnable = multisampleEnable;")
1105 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
1106 cpp_quote(" }")
1107 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
1108 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
1109 cpp_quote("};")
1110 cpp_quote("#endif")
1112 typedef enum D3D11_RESOURCE_DIMENSION
1114 D3D11_RESOURCE_DIMENSION_UNKNOWN,
1115 D3D11_RESOURCE_DIMENSION_BUFFER,
1116 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
1117 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
1118 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
1119 } D3D11_RESOURCE_DIMENSION;
1121 typedef enum D3D11_RTV_DIMENSION
1123 D3D11_RTV_DIMENSION_UNKNOWN,
1124 D3D11_RTV_DIMENSION_BUFFER,
1125 D3D11_RTV_DIMENSION_TEXTURE1D,
1126 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
1127 D3D11_RTV_DIMENSION_TEXTURE2D,
1128 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
1129 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1130 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1131 D3D11_RTV_DIMENSION_TEXTURE3D,
1132 } D3D11_RTV_DIMENSION;
1134 typedef struct D3D11_SO_DECLARATION_ENTRY
1136 UINT Stream;
1137 LPCSTR SemanticName;
1138 UINT SemanticIndex;
1139 BYTE StartComponent;
1140 BYTE ComponentCount;
1141 BYTE OutputSlot;
1142 } D3D11_SO_DECLARATION_ENTRY;
1144 typedef enum D3D11_STENCIL_OP
1146 D3D11_STENCIL_OP_KEEP = 1,
1147 D3D11_STENCIL_OP_ZERO,
1148 D3D11_STENCIL_OP_REPLACE,
1149 D3D11_STENCIL_OP_INCR_SAT,
1150 D3D11_STENCIL_OP_DECR_SAT,
1151 D3D11_STENCIL_OP_INVERT,
1152 D3D11_STENCIL_OP_INCR,
1153 D3D11_STENCIL_OP_DECR
1154 } D3D11_STENCIL_OP;
1156 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1157 cpp_quote("}")
1158 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1159 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1160 cpp_quote("}")
1161 cpp_quote("extern \"C\"{")
1162 cpp_quote("#endif")
1164 typedef struct D3D11_SUBRESOURCE_DATA
1166 const void *pSysMem;
1167 UINT SysMemPitch;
1168 UINT SysMemSlicePitch;
1169 } D3D11_SUBRESOURCE_DATA;
1171 typedef struct D3D11_TEX1D_ARRAY_DSV
1173 UINT MipSlice;
1174 UINT FirstArraySlice;
1175 UINT ArraySize;
1176 } D3D11_TEX1D_ARRAY_DSV;
1178 typedef struct D3D11_TEX1D_ARRAY_RTV
1180 UINT MipSlice;
1181 UINT FirstArraySlice;
1182 UINT ArraySize;
1183 } D3D11_TEX1D_ARRAY_RTV;
1185 typedef struct D3D11_TEX1D_ARRAY_SRV
1187 UINT MostDetailedMip;
1188 UINT MipLevels;
1189 UINT FirstArraySlice;
1190 UINT ArraySize;
1191 } D3D11_TEX1D_ARRAY_SRV;
1193 typedef struct D3D11_TEX1D_ARRAY_UAV
1195 UINT MipSlice;
1196 UINT FirstArraySlice;
1197 UINT ArraySize;
1198 } D3D11_TEX1D_ARRAY_UAV;
1200 typedef struct D3D11_TEX1D_DSV
1202 UINT MipSlice;
1203 } D3D11_TEX1D_DSV;
1205 typedef struct D3D11_TEX1D_RTV
1207 UINT MipSlice;
1208 } D3D11_TEX1D_RTV;
1210 typedef struct D3D11_TEX1D_SRV
1212 UINT MostDetailedMip;
1213 UINT MipLevels;
1214 } D3D11_TEX1D_SRV;
1216 typedef struct D3D11_TEX1D_UAV
1218 UINT MipSlice;
1219 } D3D11_TEX1D_UAV;
1221 typedef struct D3D11_TEX2D_ARRAY_DSV
1223 UINT MipSlice;
1224 UINT FirstArraySlice;
1225 UINT ArraySize;
1226 } D3D11_TEX2D_ARRAY_DSV;
1228 typedef struct D3D11_TEX2D_ARRAY_RTV
1230 UINT MipSlice;
1231 UINT FirstArraySlice;
1232 UINT ArraySize;
1233 } D3D11_TEX2D_ARRAY_RTV;
1235 typedef struct D3D11_TEX2D_ARRAY_SRV
1237 UINT MostDetailedMip;
1238 UINT MipLevels;
1239 UINT FirstArraySlice;
1240 UINT ArraySize;
1241 } D3D11_TEX2D_ARRAY_SRV;
1243 typedef struct D3D11_TEX2D_ARRAY_UAV
1245 UINT MipSlice;
1246 UINT FirstArraySlice;
1247 UINT ArraySize;
1248 } D3D11_TEX2D_ARRAY_UAV;
1250 typedef struct D3D11_TEX2D_DSV
1252 UINT MipSlice;
1253 } D3D11_TEX2D_DSV;
1255 typedef struct D3D11_TEX2D_RTV
1257 UINT MipSlice;
1258 } D3D11_TEX2D_RTV;
1260 typedef struct D3D11_TEX2D_SRV
1262 UINT MostDetailedMip;
1263 UINT MipLevels;
1264 } D3D11_TEX2D_SRV;
1266 typedef struct D3D11_TEX2D_UAV
1268 UINT MipSlice;
1269 } D3D11_TEX2D_UAV;
1271 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1273 UINT FirstArraySlice;
1274 UINT ArraySize;
1275 } D3D11_TEX2DMS_ARRAY_DSV;
1277 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1279 UINT FirstArraySlice;
1280 UINT ArraySize;
1281 } D3D11_TEX2DMS_ARRAY_RTV;
1283 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1285 UINT FirstArraySlice;
1286 UINT ArraySize;
1287 } D3D11_TEX2DMS_ARRAY_SRV;
1289 typedef struct D3D11_TEX2DMS_DSV
1291 UINT UnusedField_NothingToDefine;
1292 } D3D11_TEX2DMS_DSV;
1294 typedef struct D3D11_TEX2DMS_RTV
1296 UINT UnusedField_NothingToDefine;
1297 } D3D11_TEX2DMS_RTV;
1299 typedef struct D3D11_TEX2DMS_SRV
1301 UINT UnusedField_NothingToDefine;
1302 } D3D11_TEX2DMS_SRV;
1304 typedef struct D3D11_TEX3D_RTV
1306 UINT MipSlice;
1307 UINT FirstWSlice;
1308 UINT WSize;
1309 } D3D11_TEX3D_RTV;
1311 typedef struct D3D11_TEX3D_SRV
1313 UINT MostDetailedMip;
1314 UINT MipLevels;
1315 } D3D11_TEX3D_SRV;
1317 typedef struct D3D11_TEX3D_UAV
1319 UINT MipSlice;
1320 UINT FirstWSlice;
1321 UINT WSize;
1322 } D3D11_TEX3D_UAV;
1324 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1326 UINT MostDetailedMip;
1327 UINT MipLevels;
1328 UINT First2DArrayFace;
1329 UINT NumCubes;
1330 } D3D11_TEXCUBE_ARRAY_SRV;
1332 typedef struct D3D11_TEXCUBE_SRV
1334 UINT MostDetailedMip;
1335 UINT MipLevels;
1336 } D3D11_TEXCUBE_SRV;
1338 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1340 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1341 D3D11_TEXTURE_ADDRESS_MIRROR,
1342 D3D11_TEXTURE_ADDRESS_CLAMP,
1343 D3D11_TEXTURE_ADDRESS_BORDER,
1344 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1345 } D3D11_TEXTURE_ADDRESS_MODE;
1347 typedef enum D3D11_UAV_DIMENSION
1349 D3D11_UAV_DIMENSION_UNKNOWN,
1350 D3D11_UAV_DIMENSION_BUFFER,
1351 D3D11_UAV_DIMENSION_TEXTURE1D,
1352 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1353 D3D11_UAV_DIMENSION_TEXTURE2D,
1354 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1355 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1356 } D3D11_UAV_DIMENSION;
1358 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1360 DXGI_FORMAT Format;
1361 D3D11_UAV_DIMENSION ViewDimension;
1363 union
1365 D3D11_BUFFER_UAV Buffer;
1366 D3D11_TEX1D_UAV Texture1D;
1367 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1368 D3D11_TEX2D_UAV Texture2D;
1369 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1370 D3D11_TEX3D_UAV Texture3D;
1372 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1374 typedef enum D3D11_USAGE
1376 D3D11_USAGE_DEFAULT,
1377 D3D11_USAGE_IMMUTABLE,
1378 D3D11_USAGE_DYNAMIC,
1379 D3D11_USAGE_STAGING,
1380 } D3D11_USAGE;
1382 typedef enum D3D11_BIND_FLAG
1384 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1385 D3D11_BIND_INDEX_BUFFER = 0x0002,
1386 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1387 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1388 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1389 D3D11_BIND_RENDER_TARGET = 0x0020,
1390 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1391 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1392 D3D11_BIND_DECODER = 0x0200,
1393 D3D11_BIND_VIDEO_ENCODER = 0x0400
1394 } D3D11_BIND_FLAG;
1396 typedef enum D3D11_CPU_ACCESS_FLAG
1398 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1399 D3D11_CPU_ACCESS_READ = 0x00020000
1400 } D3D11_CPU_ACCESS_FLAG;
1402 typedef struct D3D11_VIEWPORT
1404 FLOAT TopLeftX;
1405 FLOAT TopLeftY;
1406 FLOAT Width;
1407 FLOAT Height;
1408 FLOAT MinDepth;
1409 FLOAT MaxDepth;
1410 } D3D11_VIEWPORT;
1412 typedef enum D3D11_COLOR_WRITE_ENABLE
1414 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1415 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1416 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1417 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1418 D3D11_COLOR_WRITE_ENABLE_ALL =
1419 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1420 } D3D11_COLOR_WRITE_ENABLE;
1422 typedef enum D3D11_FORMAT_SUPPORT
1424 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1425 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1426 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1427 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1428 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1429 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1430 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1431 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1432 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1433 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1434 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1435 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1436 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1437 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1438 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1439 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1440 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1441 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1442 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1443 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1444 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1445 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1446 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1447 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1448 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1449 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1450 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1451 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1452 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1453 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1454 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1455 } D3D11_FORMAT_SUPPORT;
1457 typedef enum D3D11_FORMAT_SUPPORT2
1459 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x00000001,
1460 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x00000002,
1461 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x00000004,
1462 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x00000008,
1463 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x00000010,
1464 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x00000020,
1465 D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x00000040,
1466 D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x00000080,
1467 D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x00000100,
1468 D3D11_FORMAT_SUPPORT2_TILED = 0x00000200,
1469 D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x00000400,
1470 D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x00004000,
1471 } D3D11_FORMAT_SUPPORT2;
1473 typedef enum D3D11_CLEAR_FLAG
1475 D3D11_CLEAR_DEPTH = 0x0001L,
1476 D3D11_CLEAR_STENCIL = 0x0002L
1477 } D3D11_CLEAR_FLAG;
1479 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1481 BOOL BlendEnable;
1482 D3D11_BLEND SrcBlend;
1483 D3D11_BLEND DestBlend;
1484 D3D11_BLEND_OP BlendOp;
1485 D3D11_BLEND SrcBlendAlpha;
1486 D3D11_BLEND DestBlendAlpha;
1487 D3D11_BLEND_OP BlendOpAlpha;
1488 UINT8 RenderTargetWriteMask;
1489 } D3D11_RENDER_TARGET_BLEND_DESC;
1491 typedef struct D3D11_BLEND_DESC
1493 BOOL AlphaToCoverageEnable;
1494 BOOL IndependentBlendEnable;
1495 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1496 } D3D11_BLEND_DESC;
1498 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1499 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1500 cpp_quote(" CD3D11_BLEND_DESC() {}")
1501 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1502 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1503 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1504 cpp_quote(" IndependentBlendEnable = FALSE;")
1505 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
1506 cpp_quote(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
1507 cpp_quote(" target++) {")
1508 cpp_quote(" target->BlendEnable = FALSE;")
1509 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1510 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1511 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1512 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1513 cpp_quote(" }")
1514 cpp_quote(" }")
1515 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1516 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1517 cpp_quote("};" )
1518 cpp_quote("#endif" )
1520 typedef struct D3D11_BUFFER_DESC
1522 UINT ByteWidth;
1523 D3D11_USAGE Usage;
1524 UINT BindFlags;
1525 UINT CPUAccessFlags;
1526 UINT MiscFlags;
1527 UINT StructureByteStride;
1528 } D3D11_BUFFER_DESC;
1530 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1531 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1532 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1533 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1534 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1535 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1536 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1537 cpp_quote(" ByteWidth = byteWidth;")
1538 cpp_quote(" Usage = usage;")
1539 cpp_quote(" BindFlags = bindFlags;")
1540 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1541 cpp_quote(" MiscFlags = miscFlags;" )
1542 cpp_quote(" StructureByteStride = structureByteStride;")
1543 cpp_quote(" }")
1544 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1545 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1546 cpp_quote("};" )
1547 cpp_quote("#endif" )
1549 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1551 DXGI_FORMAT Format;
1552 D3D11_DSV_DIMENSION ViewDimension;
1553 UINT Flags;
1555 union
1557 D3D11_TEX1D_DSV Texture1D;
1558 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1559 D3D11_TEX2D_DSV Texture2D;
1560 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1561 D3D11_TEX2DMS_DSV Texture2DMS;
1562 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1564 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1566 typedef struct D3D11_DEPTH_STENCILOP_DESC
1568 D3D11_STENCIL_OP StencilFailOp;
1569 D3D11_STENCIL_OP StencilDepthFailOp;
1570 D3D11_STENCIL_OP StencilPassOp;
1571 D3D11_COMPARISON_FUNC StencilFunc;
1572 } D3D11_DEPTH_STENCILOP_DESC;
1574 typedef struct D3D11_DEPTH_STENCIL_DESC
1576 BOOL DepthEnable;
1577 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1578 D3D11_COMPARISON_FUNC DepthFunc;
1579 BOOL StencilEnable;
1580 UINT8 StencilReadMask;
1581 UINT8 StencilWriteMask;
1582 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1583 D3D11_DEPTH_STENCILOP_DESC BackFace;
1584 } D3D11_DEPTH_STENCIL_DESC;
1586 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1587 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1588 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1589 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1590 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1591 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1592 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1593 cpp_quote(" DepthEnable = TRUE;")
1594 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1595 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1596 cpp_quote(" StencilEnable = FALSE;")
1597 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1598 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1599 cpp_quote(" FrontFace = default_op;")
1600 cpp_quote(" BackFace = default_op;")
1601 cpp_quote(" }")
1602 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1603 cpp_quote(" BOOL depth_enable,")
1604 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1605 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1606 cpp_quote(" BOOL stencil_enable,")
1607 cpp_quote(" UINT8 stencil_read_mask,")
1608 cpp_quote(" UINT8 stencil_write_mask,")
1609 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1610 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1611 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1612 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1613 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1614 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1615 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1616 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1617 cpp_quote(" DepthEnable = depth_enable;")
1618 cpp_quote(" DepthWriteMask = depth_write_mask;")
1619 cpp_quote(" DepthFunc = depth_func;")
1620 cpp_quote(" StencilEnable = stencil_enable;")
1621 cpp_quote(" StencilReadMask = stencil_read_mask;")
1622 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1623 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1624 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1625 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1626 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1627 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1628 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1629 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1630 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1631 cpp_quote(" }")
1632 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1633 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1634 cpp_quote("};")
1635 cpp_quote("#endif")
1637 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1639 DXGI_FORMAT Format;
1640 D3D11_RTV_DIMENSION ViewDimension;
1642 union
1644 D3D11_BUFFER_RTV Buffer;
1645 D3D11_TEX1D_RTV Texture1D;
1646 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1647 D3D11_TEX2D_RTV Texture2D;
1648 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1649 D3D11_TEX2DMS_RTV Texture2DMS;
1650 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1651 D3D11_TEX3D_RTV Texture3D;
1653 } D3D11_RENDER_TARGET_VIEW_DESC;
1655 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1656 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1657 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1658 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1659 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1660 cpp_quote(" Format = format;")
1661 cpp_quote(" ViewDimension = dim;")
1662 cpp_quote(" switch(dim) {")
1663 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1664 cpp_quote(" Buffer.FirstElement = mip_slice;")
1665 cpp_quote(" Buffer.NumElements = first_slice;")
1666 cpp_quote(" break;")
1667 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1668 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1669 cpp_quote(" break;")
1670 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1671 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1672 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1673 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1674 cpp_quote(" break;")
1675 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1676 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1677 cpp_quote(" break;")
1678 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1679 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1680 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1681 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1682 cpp_quote(" break;")
1683 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1684 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1685 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1686 cpp_quote(" break;")
1687 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1688 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1689 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1690 cpp_quote(" Texture3D.WSize = array_size;")
1691 cpp_quote(" break;")
1692 cpp_quote(" default:")
1693 cpp_quote(" break;")
1694 cpp_quote(" }")
1695 cpp_quote(" }")
1696 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1697 cpp_quote(" UINT elem_cnt) {")
1698 cpp_quote(" Format = format;")
1699 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1700 cpp_quote(" Buffer.FirstElement = first_elem;")
1701 cpp_quote(" Buffer.NumElements = elem_cnt;")
1702 cpp_quote(" }")
1703 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1704 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1705 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1706 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1707 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1708 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1709 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1710 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1711 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1712 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1713 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1714 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1715 cpp_quote(" return *this;")
1716 cpp_quote(" }")
1717 cpp_quote("};")
1718 cpp_quote("#endif")
1721 typedef struct D3D11_SAMPLER_DESC
1723 D3D11_FILTER Filter;
1724 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1725 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1726 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1727 FLOAT MipLODBias;
1728 UINT MaxAnisotropy;
1729 D3D11_COMPARISON_FUNC ComparisonFunc;
1730 FLOAT BorderColor[4];
1731 FLOAT MinLOD;
1732 FLOAT MaxLOD;
1733 } D3D11_SAMPLER_DESC;
1735 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1736 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1737 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1738 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1739 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1740 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1741 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1742 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1743 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1744 cpp_quote(" MipLODBias = 0;")
1745 cpp_quote(" MaxAnisotropy = 1;")
1746 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1747 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1748 cpp_quote(" MinLOD = -3.402823466e+38f;")
1749 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1750 cpp_quote(" }")
1751 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1752 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1753 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1754 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1755 cpp_quote(" Filter = filter;")
1756 cpp_quote(" AddressU = addressU;")
1757 cpp_quote(" AddressV = addressV;")
1758 cpp_quote(" AddressW = addressW;")
1759 cpp_quote(" MipLODBias = mipLODBias;")
1760 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1761 cpp_quote(" ComparisonFunc = comparisonFunc;")
1762 cpp_quote(" if(borderColor) {")
1763 cpp_quote(" BorderColor[0] = borderColor[0];")
1764 cpp_quote(" BorderColor[1] = borderColor[1];")
1765 cpp_quote(" BorderColor[2] = borderColor[2];")
1766 cpp_quote(" BorderColor[3] = borderColor[3];")
1767 cpp_quote(" }else {")
1768 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1769 cpp_quote(" }")
1770 cpp_quote(" MinLOD = minLOD;")
1771 cpp_quote(" MaxLOD = maxLOD;")
1772 cpp_quote(" }")
1773 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1774 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1775 cpp_quote("};")
1776 cpp_quote("#endif")
1778 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1780 DXGI_FORMAT Format;
1781 D3D11_SRV_DIMENSION ViewDimension;
1783 union
1785 D3D11_BUFFER_SRV Buffer;
1786 D3D11_TEX1D_SRV Texture1D;
1787 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1788 D3D11_TEX2D_SRV Texture2D;
1789 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1790 D3D11_TEX2DMS_SRV Texture2DMS;
1791 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1792 D3D11_TEX3D_SRV Texture3D;
1793 D3D11_TEXCUBE_SRV TextureCube;
1794 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1795 D3D11_BUFFEREX_SRV BufferEx;
1797 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1799 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1800 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1801 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1802 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1803 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1804 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1805 cpp_quote(" Format = format;")
1806 cpp_quote(" ViewDimension = dim;")
1807 cpp_quote(" switch(ViewDimension) {")
1808 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1809 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1810 cpp_quote(" Buffer.NumElements = mip_levels;")
1811 cpp_quote(" break;")
1812 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1813 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1814 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1815 cpp_quote(" break;")
1816 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1817 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1818 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1819 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1820 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1821 cpp_quote(" break;")
1822 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1823 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1824 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1825 cpp_quote(" break;")
1826 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1827 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1828 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1829 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1830 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1831 cpp_quote(" break;")
1832 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1833 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1834 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1835 cpp_quote(" break;")
1836 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1837 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1838 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1839 cpp_quote(" break;")
1840 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1841 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1842 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1843 cpp_quote(" break;")
1844 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1845 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1846 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1847 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1848 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1849 cpp_quote(" break;")
1850 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1851 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1852 cpp_quote(" BufferEx.NumElements = mip_levels;")
1853 cpp_quote(" BufferEx.Flags = flags;")
1854 cpp_quote(" break;")
1855 cpp_quote(" default:")
1856 cpp_quote(" break;")
1857 cpp_quote(" }")
1858 cpp_quote(" }")
1859 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1860 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1861 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1862 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1863 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1864 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1865 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1866 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1867 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1868 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1869 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1870 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1871 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1872 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1873 cpp_quote(" return *this;")
1874 cpp_quote(" }")
1875 cpp_quote("};")
1876 cpp_quote("#endif")
1878 typedef struct D3D11_TEXTURE1D_DESC
1880 UINT Width;
1881 UINT MipLevels;
1882 UINT ArraySize;
1883 DXGI_FORMAT Format;
1884 D3D11_USAGE Usage;
1885 UINT BindFlags;
1886 UINT CPUAccessFlags;
1887 UINT MiscFlags;
1888 } D3D11_TEXTURE1D_DESC;
1890 typedef struct D3D11_TEXTURE2D_DESC
1892 UINT Width;
1893 UINT Height;
1894 UINT MipLevels;
1895 UINT ArraySize;
1896 DXGI_FORMAT Format;
1897 DXGI_SAMPLE_DESC SampleDesc;
1898 D3D11_USAGE Usage;
1899 UINT BindFlags;
1900 UINT CPUAccessFlags;
1901 UINT MiscFlags;
1902 } D3D11_TEXTURE2D_DESC;
1904 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1905 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1906 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1907 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1908 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1909 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1910 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1911 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1912 cpp_quote(" Width = width;")
1913 cpp_quote(" Height = height;")
1914 cpp_quote(" MipLevels = mipLevels;")
1915 cpp_quote(" ArraySize = arraySize;")
1916 cpp_quote(" Format = format;")
1917 cpp_quote(" SampleDesc.Count = sampleCount;")
1918 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1919 cpp_quote(" Usage = usage;")
1920 cpp_quote(" BindFlags = bindFlags;")
1921 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1922 cpp_quote(" MiscFlags = miscFlags;")
1923 cpp_quote(" }" )
1924 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1925 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1926 cpp_quote("};")
1927 cpp_quote("#endif")
1929 typedef struct D3D11_TEXTURE3D_DESC
1931 UINT Width;
1932 UINT Height;
1933 UINT Depth;
1934 UINT MipLevels;
1935 DXGI_FORMAT Format;
1936 D3D11_USAGE Usage;
1937 UINT BindFlags;
1938 UINT CPUAccessFlags;
1939 UINT MiscFlags;
1940 } D3D11_TEXTURE3D_DESC;
1944 * D3D11 video decoder profiles
1948 /* MPEG1 & MPEG2 */
1949 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_MOCOMP, 0xe6a9f44b,0x61b0,0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);")
1950 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_IDCT, 0xbf22ad00,0x03ea,0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);")
1951 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_VLD, 0xee27417f,0x5e28,0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);")
1952 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG1_VLD, 0x6f3ec719,0x3735,0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);")
1953 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2and1_VLD, 0x86695f12,0x340e,0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);")
1955 /* H264 */
1956 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT, 0x1b81be64,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1957 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_FGT, 0x1b81be65,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1958 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_NOFGT, 0x1b81be66,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1959 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_FGT, 0x1b81be67,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1960 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_NOFGT, 0x1b81be68,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1961 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_FGT, 0x1b81be69,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1962 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT, 0xd5f04ff9,0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);")
1963 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT, 0xd79be8da,0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);")
1964 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT, 0xf9aaccbb,0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);")
1965 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT, 0x705b9d82,0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);")
1967 /* WMV8 */
1968 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_POSTPROC, 0x1b81be80,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1969 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_MOCOMP, 0x1b81be81,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1971 /* WMV9 */
1972 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_POSTPROC, 0x1b81be90,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1973 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_MOCOMP, 0x1b81be91,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1974 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_IDCT, 0x1b81be94,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1976 /* VC1 */
1977 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_POSTPROC, 0x1b81beA0,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1978 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_MOCOMP, 0x1b81beA1,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1979 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_IDCT, 0x1b81beA2,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1980 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_VLD, 0x1b81beA3,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1981 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_D2010, 0x1b81beA4,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
1983 /* MPEG4 */
1984 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE, 0xefd64d74,0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);")
1985 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC, 0xed418a9f,0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);")
1986 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC, 0xab998b5b,0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);")
1988 /* HVEC */
1989 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN, 0x5b11d51b,0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);")
1990 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10, 0x107af0e0,0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);")
1992 /* VP9 */
1993 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0, 0x463707f8,0xa1d0,0x4585,0x87,0x6d,0x83,0xaa,0x6d,0x60,0xb8,0x9e);")
1994 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2, 0xa4c749ef,0x6ecf,0x48aa,0x84,0x48,0x50,0xa7,0xa1,0x16,0x5f,0xf7);")
1995 cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP8_VLD, 0x90b899ea,0x3a62,0x4705,0x88,0xb3,0x8d,0xf0,0x4b,0x27,0x44,0xe7);")
1997 typedef struct D3D11_VIDEO_DECODER_DESC
1999 GUID Guid;
2000 UINT SampleWidth;
2001 UINT SampleHeight;
2002 DXGI_FORMAT OutputFormat;
2003 } D3D11_VIDEO_DECODER_DESC;
2005 typedef struct D3D11_VIDEO_DECODER_CONFIG
2007 GUID guidConfigBitstreamEncryption;
2008 GUID guidConfigMBcontrolEncryption;
2009 GUID guidConfigResidDiffEncryption;
2010 UINT ConfigBitstreamRaw;
2011 UINT ConfigMBcontrolRasterOrder;
2012 UINT ConfigResidDiffHost;
2013 UINT ConfigSpatialResid8;
2014 UINT ConfigResid8Subtraction;
2015 UINT ConfigSpatialHost8or9Clipping;
2016 UINT ConfigSpatialResidInterleaved;
2017 UINT ConfigIntraResidUnsigned;
2018 UINT ConfigResidDiffAccelerator;
2019 UINT ConfigHostInverseScan;
2020 UINT ConfigSpecificIDCT;
2021 UINT Config4GroupedCoefs;
2022 USHORT ConfigMinRenderTargetBuffCount;
2023 USHORT ConfigDecoderSpecific;
2024 } D3D11_VIDEO_DECODER_CONFIG;
2026 typedef enum D3D11_VIDEO_FRAME_FORMAT
2028 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
2029 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
2030 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
2031 } D3D11_VIDEO_FRAME_FORMAT;
2033 typedef enum D3D11_VIDEO_USAGE
2035 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
2036 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
2037 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
2038 } D3D11_VIDEO_USAGE;
2040 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
2042 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
2043 DXGI_RATIONAL InputFrameRate;
2044 UINT InputWidth;
2045 UINT InputHeight;
2046 DXGI_RATIONAL OutputFrameRate;
2047 UINT OutputWidth;
2048 UINT OutputHeight;
2049 D3D11_VIDEO_USAGE Usage;
2050 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
2052 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
2054 UINT DeviceCaps;
2055 UINT FeatureCaps;
2056 UINT FilterCaps;
2057 UINT InputFormatCaps;
2058 UINT AutoStreamCaps;
2059 UINT StereoCaps;
2060 UINT RateConversionCapsCount;
2061 UINT MaxInputStreams;
2062 UINT MaxStreamStates;
2063 } D3D11_VIDEO_PROCESSOR_CAPS;
2065 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
2067 UINT PastFrames;
2068 UINT FutureFrames;
2069 UINT ProcessorCaps;
2070 UINT ITelecineCaps;
2071 UINT CustomRateCount;
2072 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
2074 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
2076 DXGI_RATIONAL CustomRate;
2077 UINT OutputFrames;
2078 BOOL InputInterlaced;
2079 UINT InputFramesOrFields;
2080 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
2082 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
2084 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
2085 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
2086 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
2087 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
2088 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
2089 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
2090 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
2091 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
2092 } D3D11_VIDEO_PROCESSOR_FILTER;
2094 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
2096 int Minimum;
2097 int Maximum;
2098 int Default;
2099 float Multiplier;
2100 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
2102 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
2104 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
2105 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
2106 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
2107 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
2109 typedef enum D3D11_VDOV_DIMENSION
2111 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
2112 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
2113 } D3D11_VDOV_DIMENSION;
2115 typedef struct D3D11_TEX2D_VDOV
2117 UINT ArraySlice;
2118 } D3D11_TEX2D_VDOV;
2120 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
2122 GUID DecodeProfile;
2123 D3D11_VDOV_DIMENSION ViewDimension;
2124 union {
2125 D3D11_TEX2D_VDOV Texture2D;
2127 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
2129 typedef enum D3D11_VPIV_DIMENSION
2131 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
2132 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
2133 } D3D11_VPIV_DIMENSION;
2135 typedef struct D3D11_TEX2D_VPIV
2137 UINT MipSlice;
2138 UINT ArraySlice;
2139 } D3D11_TEX2D_VPIV;
2141 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
2143 UINT FourCC;
2144 D3D11_VPIV_DIMENSION ViewDimension;
2145 union {
2146 D3D11_TEX2D_VPIV Texture2D;
2148 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
2150 typedef enum D3D11_VPOV_DIMENSION
2152 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
2153 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
2154 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
2155 } D3D11_VPOV_DIMENSION;
2157 typedef struct D3D11_TEX2D_VPOV
2159 UINT MipSlice;
2160 } D3D11_TEX2D_VPOV;
2162 typedef struct D3D11_TEX2D_ARRAY_VPOV
2164 UINT MipSlice;
2165 UINT FirstArraySlice;
2166 UINT ArraySize;
2167 } D3D11_TEX2D_ARRAY_VPOV;
2169 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
2171 D3D11_VPOV_DIMENSION ViewDimension;
2172 union {
2173 D3D11_TEX2D_VPOV Texture2D;
2174 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
2176 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
2178 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
2180 UINT Caps;
2181 UINT KeyExchangeTypeCount;
2182 UINT BlockAlignmentSize;
2183 ULONGLONG ProtectedMemorySize;
2184 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
2186 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
2188 UINT NumEncryptedBytesAtBeginning;
2189 UINT NumBytesInSkipPattern;
2190 UINT NumBytesInEncryptPattern;
2191 } D3D11_ENCRYPTED_BLOCK_INFO;
2193 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2195 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
2196 UINT BufferIndex;
2197 UINT DataOffset;
2198 UINT DataSize;
2199 UINT FirstMBaddress;
2200 UINT NumMBsInBuffer;
2201 UINT Width;
2202 UINT Height;
2203 UINT Stride;
2204 UINT ReservedBits;
2205 void *pIV;
2206 UINT IVSize;
2207 BOOL PartialEncryption;
2208 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2209 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2211 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2213 UINT Function;
2214 void *pPrivateInputData;
2215 UINT PrivateInputDataSize;
2216 void *pPrivateOutputData;
2217 UINT PrivateOutputDataSize;
2218 UINT ResourceCount;
2219 ID3D11Resource **ppResourceList;
2220 } D3D11_VIDEO_DECODER_EXTENSION;
2222 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2224 float Y;
2225 float Cb;
2226 float Cr;
2227 float A;
2228 } D3D11_VIDEO_COLOR_YCbCrA;
2230 typedef struct D3D11_VIDEO_COLOR_RGBA
2232 float R;
2233 float G;
2234 float B;
2235 float A;
2236 } D3D11_VIDEO_COLOR_RGBA;
2238 typedef struct D3D11_VIDEO_COLOR
2240 union
2242 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2243 D3D11_VIDEO_COLOR_RGBA RGBA;
2245 } D3D11_VIDEO_COLOR;
2247 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2249 UINT Usage : 1;
2250 UINT RGB_Range : 1;
2251 UINT YCbCr_Matrix : 1;
2252 UINT YCbCr_xvYCC : 1;
2253 UINT Nominal_Range : 2;
2254 UINT Reserved : 26;
2255 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2257 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2259 BOOL Enable;
2260 UINT OutputIndex;
2261 UINT InputFrameOrField;
2262 UINT PastFrames;
2263 UINT FutureFrames;
2264 ID3D11VideoProcessorInputView **ppPastSurfaces;
2265 ID3D11VideoProcessorInputView *pInputSurface;
2266 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2267 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2268 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2269 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2270 } D3D11_VIDEO_PROCESSOR_STREAM;
2272 typedef struct D3D11_OMAC
2274 BYTE Omac[D3D11_OMAC_SIZE];
2275 } D3D11_OMAC;
2277 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2279 D3D11_OMAC omac;
2280 GUID ConfigureType;
2281 HANDLE hChannel;
2282 UINT SequenceNumber;
2283 HRESULT ReturnCode;
2284 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2286 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2288 UINT64 Frequency;
2289 BOOL Disjoint;
2290 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2292 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2294 UINT64 IAVertices;
2295 UINT64 IAPrimitives;
2296 UINT64 VSInvocations;
2297 UINT64 GSInvocations;
2298 UINT64 GSPrimitives;
2299 UINT64 CInvocations;
2300 UINT64 CPrimitives;
2301 UINT64 PSInvocations;
2302 UINT64 HSInvocations;
2303 UINT64 DSInvocations;
2304 UINT64 CSInvocations;
2305 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2307 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2309 UINT VertexCountPerInstance;
2310 UINT InstanceCount;
2311 UINT StartVertexLocation;
2312 UINT StartInstanceLocation;
2313 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2315 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2317 UINT IndexCountPerInstance;
2318 UINT InstanceCount;
2319 UINT StartIndexLocation;
2320 INT BaseVertexLocation;
2321 UINT StartInstanceLocation;
2322 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2324 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2326 D3D11_OMAC omac;
2327 GUID ConfigureType;
2328 HANDLE hChannel;
2329 UINT SequenceNumber;
2330 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2332 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2334 GUID QueryType;
2335 HANDLE hChannel;
2336 UINT SequenceNumber;
2337 } D3D11_AUTHENTICATED_QUERY_INPUT;
2339 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2341 D3D11_OMAC omac;
2342 GUID QueryType;
2343 HANDLE hChannel;
2344 UINT SequenceNumber;
2345 HRESULT ReturnCode;
2346 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2348 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2350 struct
2352 UINT ProtectionEnabled : 1;
2353 UINT OverlayOrFullscreenRequired : 1;
2354 UINT Reserved : 30;
2355 } Flags;
2356 UINT Value;
2357 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2359 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2361 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2362 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2363 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2365 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2367 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2368 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2369 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2371 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2373 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2374 HANDLE DeviceHandle;
2375 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2377 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2379 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2380 HANDLE DecoderHandle;
2381 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2383 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2385 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2386 HANDLE DecoderHandle;
2387 HANDLE CryptoSessionHandle;
2388 HANDLE DeviceHandle;
2389 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2391 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2393 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2394 UINT RestrictedSharedResourceProcessCount;
2395 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2397 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2399 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2400 UINT ProcessIndex;
2401 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2403 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2405 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2406 UINT ProcessIndex;
2407 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2408 HANDLE ProcessHandle;
2409 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2411 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2413 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2414 UINT UnrestrictedProtectedSharedResourceCount;
2415 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2417 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2419 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2420 HANDLE DeviceHandle;
2421 HANDLE CryptoSessionHandle;
2422 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2424 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2426 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2427 HANDLE DeviceHandle;
2428 HANDLE CryptoSessionHandle;
2429 UINT OutputIDCount;
2430 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2432 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2434 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2435 HANDLE DeviceHandle;
2436 HANDLE CryptoSessionHandle;
2437 UINT OutputIDIndex;
2438 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2440 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2442 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2443 HANDLE DeviceHandle;
2444 HANDLE CryptoSessionHandle;
2445 UINT OutputIDIndex;
2446 UINT64 OutputID;
2447 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2449 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2451 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2452 D3D11_BUS_TYPE BusType;
2453 BOOL AccessibleInContiguousBlocks;
2454 BOOL AccessibleInNonContiguousBlocks;
2455 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2457 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2459 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2460 UINT EncryptionGuidCount;
2461 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2463 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2465 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2466 UINT EncryptionGuidIndex;
2467 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2469 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2471 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2472 UINT EncryptionGuidIndex;
2473 GUID EncryptionGuid;
2474 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2476 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2478 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2479 GUID EncryptionGuid;
2480 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2482 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2484 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2485 UINT StartSequenceQuery;
2486 UINT StartSequenceConfigure;
2487 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2489 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2491 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2492 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2493 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2495 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2497 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2498 HANDLE DecoderHandle;
2499 HANDLE CryptoSessionHandle;
2500 HANDLE DeviceHandle;
2501 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2503 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2505 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2506 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2507 HANDLE ProcessHandle;
2508 BOOL AllowAccess;
2509 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2511 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2513 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2514 GUID EncryptionGuid;
2515 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2518 object,
2519 local,
2520 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2522 interface ID3D11DeviceChild : IUnknown
2524 void GetDevice(
2525 [out] ID3D11Device **ppDevice);
2526 HRESULT GetPrivateData(
2527 [in] REFGUID guid,
2528 [in, out] UINT *pDataSize,
2529 [out] void *pData);
2530 HRESULT SetPrivateData(
2531 [in] REFGUID guid,
2532 [in] UINT DataSize,
2533 [in] const void *pData);
2534 HRESULT SetPrivateDataInterface(
2535 [in] REFGUID guid,
2536 [in] const IUnknown *pData);
2540 object,
2541 local,
2542 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2544 interface ID3D11Asynchronous : ID3D11DeviceChild
2546 UINT GetDataSize();
2550 object,
2551 local,
2552 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2554 interface ID3D11Query : ID3D11Asynchronous
2556 void GetDesc(
2557 [out] D3D11_QUERY_DESC *pDesc);
2561 object,
2562 local,
2563 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2565 interface ID3D11Resource : ID3D11DeviceChild
2567 void GetType(
2568 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2569 void SetEvictionPriority(
2570 [in] UINT EvictionPriority);
2571 UINT GetEvictionPriority();
2575 object,
2576 local,
2577 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2579 interface ID3D11View : ID3D11DeviceChild
2581 void GetResource(
2582 [out] ID3D11Resource **ppResource);
2586 object,
2587 local,
2588 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2590 interface ID3D11BlendState : ID3D11DeviceChild
2592 void GetDesc(
2593 [out] D3D11_BLEND_DESC *pDesc);
2597 object,
2598 local,
2599 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2601 interface ID3D11Buffer : ID3D11Resource
2603 void GetDesc(
2604 [out] D3D11_BUFFER_DESC *pDesc);
2608 object,
2609 local,
2610 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2612 interface ID3D11ClassInstance : ID3D11DeviceChild
2614 void GetClassLinkage(
2615 [out] ID3D11ClassLinkage **ppLinkage);
2616 void GetDesc(
2617 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2618 void GetInstanceName(
2619 [out] LPSTR pInstanceName,
2620 [in, out] SIZE_T *pBufferLength);
2621 void GetTypeName(
2622 [out] LPSTR pTypeName,
2623 [in, out] SIZE_T *pBufferLength);
2627 object,
2628 local,
2629 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2631 interface ID3D11ClassLinkage : ID3D11DeviceChild
2633 HRESULT GetClassInstance(
2634 [in] LPCSTR pClassInstanceName,
2635 [in] UINT InstanceIndex,
2636 [out] ID3D11ClassInstance **ppInstance);
2637 HRESULT CreateClassInstance(
2638 [in] LPCSTR pClassTypeName,
2639 [in] UINT ConstantBufferOffset,
2640 [in] UINT ConstantVectorOffset,
2641 [in] UINT TextureOffset,
2642 [in] UINT SamplerOffset,
2643 [out] ID3D11ClassInstance **ppInstance);
2647 object,
2648 local,
2649 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2651 interface ID3D11CommandList : ID3D11DeviceChild
2653 UINT GetContextFlags();
2657 object,
2658 local,
2659 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2661 interface ID3D11ComputeShader : ID3D11DeviceChild
2666 object,
2667 local,
2668 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2670 interface ID3D11Counter : ID3D11Asynchronous
2672 void GetDesc(
2673 [out] D3D11_COUNTER_DESC *pDesc);
2677 object,
2678 local,
2679 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2681 interface ID3D11DepthStencilState : ID3D11DeviceChild
2683 void GetDesc(
2684 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2688 object,
2689 local,
2690 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2692 interface ID3D11DepthStencilView : ID3D11View
2694 void GetDesc(
2695 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2699 object,
2700 local,
2701 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2703 interface ID3D11DomainShader : ID3D11DeviceChild
2708 object,
2709 local,
2710 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2712 interface ID3D11GeometryShader : ID3D11DeviceChild
2717 object,
2718 local,
2719 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2721 interface ID3D11HullShader : ID3D11DeviceChild
2726 object,
2727 local,
2728 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2730 interface ID3D11InputLayout : ID3D11DeviceChild
2735 object,
2736 local,
2737 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2739 interface ID3D11PixelShader : ID3D11DeviceChild
2744 object,
2745 local,
2746 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2748 interface ID3D11Predicate : ID3D11Query
2753 object,
2754 local,
2755 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2757 interface ID3D11RasterizerState : ID3D11DeviceChild
2759 void GetDesc(
2760 [out] D3D11_RASTERIZER_DESC *pDesc);
2764 object,
2765 local,
2766 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2768 interface ID3D11RenderTargetView : ID3D11View
2770 void GetDesc(
2771 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2775 object,
2776 local,
2777 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2779 interface ID3D11SamplerState : ID3D11DeviceChild
2781 void GetDesc(
2782 [out] D3D11_SAMPLER_DESC *pDesc);
2786 object,
2787 local,
2788 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2790 interface ID3D11ShaderResourceView : ID3D11View
2792 void GetDesc(
2793 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2797 object,
2798 local,
2799 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2801 interface ID3D11Texture1D : ID3D11Resource
2803 void GetDesc(
2804 [out] D3D11_TEXTURE1D_DESC *pDesc);
2808 object,
2809 local,
2810 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2812 interface ID3D11Texture2D : ID3D11Resource
2814 void GetDesc(
2815 [out] D3D11_TEXTURE2D_DESC *pDesc);
2819 object,
2820 local,
2821 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2823 interface ID3D11Texture3D : ID3D11Resource
2825 void GetDesc(
2826 [out] D3D11_TEXTURE3D_DESC *pDesc);
2830 object,
2831 local,
2832 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2834 interface ID3D11UnorderedAccessView : ID3D11View
2836 void GetDesc(
2837 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2841 object,
2842 local,
2843 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2845 interface ID3D11VertexShader : ID3D11DeviceChild
2850 object,
2851 local,
2852 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2854 interface ID3D11DeviceContext : ID3D11DeviceChild
2856 void VSSetConstantBuffers(
2857 [in] UINT StartSlot,
2858 [in] UINT NumBuffers,
2859 [in] ID3D11Buffer *const *ppConstantBuffers);
2860 void PSSetShaderResources(
2861 [in] UINT StartSlot,
2862 [in] UINT NumViews,
2863 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2864 void PSSetShader(
2865 [in] ID3D11PixelShader *pPixelShader,
2866 [in] ID3D11ClassInstance *const *ppClassInstances,
2867 UINT NumClassInstances);
2868 void PSSetSamplers(
2869 [in] UINT StartSlot,
2870 [in] UINT NumSamplers,
2871 [in] ID3D11SamplerState *const *ppSamplers);
2872 void VSSetShader(
2873 [in] ID3D11VertexShader *pVertexShader,
2874 [in] ID3D11ClassInstance *const *ppClassInstances,
2875 UINT NumClassInstances);
2876 void DrawIndexed(
2877 [in] UINT IndexCount,
2878 [in] UINT StartIndexLocation,
2879 [in] INT BaseVertexLocation);
2880 void Draw(
2881 [in] UINT VertexCount,
2882 [in] UINT StartVertexLocation);
2883 HRESULT Map(
2884 [in] ID3D11Resource *pResource,
2885 [in] UINT Subresource,
2886 [in] D3D11_MAP MapType,
2887 [in] UINT MapFlags,
2888 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2889 void Unmap(
2890 [in] ID3D11Resource *pResource,
2891 [in] UINT Subresource);
2892 void PSSetConstantBuffers(
2893 [in] UINT StartSlot,
2894 [in] UINT NumBuffers,
2895 [in] ID3D11Buffer *const *ppConstantBuffers);
2896 void IASetInputLayout(
2897 [in] ID3D11InputLayout *pInputLayout);
2898 void IASetVertexBuffers(
2899 [in] UINT StartSlot,
2900 [in] UINT NumBuffers,
2901 [in] ID3D11Buffer *const *ppVertexBuffers,
2902 [in] const UINT *pStrides,
2903 [in] const UINT *pOffsets);
2904 void IASetIndexBuffer(
2905 [in] ID3D11Buffer *pIndexBuffer,
2906 [in] DXGI_FORMAT Format,
2907 [in] UINT Offset);
2908 void DrawIndexedInstanced(
2909 [in] UINT IndexCountPerInstance,
2910 [in] UINT InstanceCount,
2911 [in] UINT StartIndexLocation,
2912 [in] INT BaseVertexLocation,
2913 [in] UINT StartInstanceLocation);
2914 void DrawInstanced(
2915 [in] UINT VertexCountPerInstance,
2916 [in] UINT InstanceCount,
2917 [in] UINT StartVertexLocation,
2918 [in] UINT StartInstanceLocation);
2919 void GSSetConstantBuffers(
2920 [in] UINT StartSlot,
2921 [in] UINT NumBuffers,
2922 [in] ID3D11Buffer *const *ppConstantBuffers);
2923 void GSSetShader(
2924 [in] ID3D11GeometryShader *pShader,
2925 [in] ID3D11ClassInstance *const *ppClassInstances,
2926 UINT NumClassInstances);
2927 void IASetPrimitiveTopology(
2928 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2929 void VSSetShaderResources(
2930 [in] UINT StartSlot,
2931 [in] UINT NumViews,
2932 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2933 void VSSetSamplers(
2934 [in] UINT StartSlot,
2935 [in] UINT NumSamplers,
2936 [in] ID3D11SamplerState *const *ppSamplers);
2937 void Begin(
2938 [in] ID3D11Asynchronous *pAsync);
2939 void End(
2940 [in] ID3D11Asynchronous *pAsync);
2941 HRESULT GetData(
2942 [in] ID3D11Asynchronous *pAsync,
2943 [in] void *pData,
2944 [in] UINT DataSize,
2945 [in] UINT GetDataFlags);
2946 void SetPredication(
2947 [in] ID3D11Predicate *pPredicate,
2948 [in] BOOL PredicateValue);
2949 void GSSetShaderResources(
2950 [in] UINT StartSlot,
2951 [in] UINT NumViews,
2952 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2953 void GSSetSamplers(
2954 [in] UINT StartSlot,
2955 [in] UINT NumSamplers,
2956 [in] ID3D11SamplerState *const *ppSamplers);
2957 void OMSetRenderTargets(
2958 [in] UINT NumViews,
2959 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2960 [in] ID3D11DepthStencilView *pDepthStencilView);
2961 void OMSetRenderTargetsAndUnorderedAccessViews(
2962 [in] UINT NumRTVs,
2963 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2964 [in] ID3D11DepthStencilView *pDepthStencilView,
2965 [in] UINT UAVStartSlot,
2966 [in] UINT NumUAVs,
2967 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2968 [in] const UINT *pUAVInitialCounts);
2969 void OMSetBlendState(
2970 [in] ID3D11BlendState *pBlendState,
2971 [in] const FLOAT BlendFactor[4],
2972 [in] UINT SampleMask);
2973 void OMSetDepthStencilState(
2974 [in] ID3D11DepthStencilState *pDepthStencilState,
2975 [in] UINT StencilRef);
2976 void SOSetTargets(
2977 [in] UINT NumBuffers,
2978 [in] ID3D11Buffer *const *ppSOTargets,
2979 [in] const UINT *pOffsets);
2980 void DrawAuto();
2981 void DrawIndexedInstancedIndirect(
2982 [in] ID3D11Buffer *pBufferForArgs,
2983 [in] UINT AlignedByteOffsetForArgs);
2984 void DrawInstancedIndirect(
2985 [in] ID3D11Buffer *pBufferForArgs,
2986 [in] UINT AlignedByteOffsetForArgs);
2987 void Dispatch(
2988 [in] UINT ThreadGroupCountX,
2989 [in] UINT ThreadGroupCountY,
2990 [in] UINT ThreadGroupCountZ);
2991 void DispatchIndirect(
2992 [in] ID3D11Buffer *pBufferForArgs,
2993 [in] UINT AlignedByteOffsetForArgs);
2994 void RSSetState(
2995 [in] ID3D11RasterizerState *pRasterizerState);
2996 void RSSetViewports(
2997 [in] UINT NumViewports,
2998 [in] const D3D11_VIEWPORT *pViewports);
2999 void RSSetScissorRects(
3000 [in] UINT NumRects,
3001 [in] const D3D11_RECT *pRects);
3002 void CopySubresourceRegion(
3003 [in] ID3D11Resource *pDstResource,
3004 [in] UINT DstSubresource,
3005 [in] UINT DstX,
3006 [in] UINT DstY,
3007 [in] UINT DstZ,
3008 [in] ID3D11Resource *pSrcResource,
3009 [in] UINT SrcSubresource,
3010 [in] const D3D11_BOX *pSrcBox);
3011 void CopyResource(
3012 [in] ID3D11Resource *pDstResource,
3013 [in] ID3D11Resource *pSrcResource);
3014 void UpdateSubresource(
3015 [in] ID3D11Resource *pDstResource,
3016 [in] UINT DstSubresource,
3017 [in] const D3D11_BOX *pDstBox,
3018 [in] const void *pSrcData,
3019 [in] UINT SrcRowPitch,
3020 [in] UINT SrcDepthPitch);
3021 void CopyStructureCount(
3022 [in] ID3D11Buffer *pDstBuffer,
3023 [in] UINT DstAlignedByteOffset,
3024 [in] ID3D11UnorderedAccessView *pSrcView);
3025 void ClearRenderTargetView(
3026 [in] ID3D11RenderTargetView *pRenderTargetView,
3027 [in] const FLOAT ColorRGBA[4]);
3028 void ClearUnorderedAccessViewUint(
3029 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
3030 [in] const UINT Values[4]);
3031 void ClearUnorderedAccessViewFloat(
3032 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
3033 [in] const FLOAT Values[4]);
3034 void ClearDepthStencilView(
3035 [in] ID3D11DepthStencilView *pDepthStencilView,
3036 [in] UINT ClearFlags,
3037 [in] FLOAT Depth,
3038 [in] UINT8 Stencil);
3039 void GenerateMips(
3040 [in] ID3D11ShaderResourceView *pShaderResourceView);
3041 void SetResourceMinLOD(
3042 [in] ID3D11Resource *pResource, FLOAT MinLOD);
3043 FLOAT GetResourceMinLOD(
3044 [in] ID3D11Resource *pResource);
3045 void ResolveSubresource(
3046 [in] ID3D11Resource *pDstResource,
3047 [in] UINT DstSubresource,
3048 [in] ID3D11Resource *pSrcResource,
3049 [in] UINT SrcSubresource,
3050 [in] DXGI_FORMAT Format);
3051 void ExecuteCommandList(
3052 [in] ID3D11CommandList *pCommandList,
3053 BOOL RestoreContextState);
3054 void HSSetShaderResources(
3055 [in] UINT StartSlot,
3056 [in] UINT NumViews,
3057 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
3058 void HSSetShader(
3059 [in] ID3D11HullShader *pHullShader,
3060 [in] ID3D11ClassInstance *const *ppClassInstances,
3061 UINT NumClassInstances);
3062 void HSSetSamplers(
3063 [in] UINT StartSlot,
3064 [in] UINT NumSamplers,
3065 [in] ID3D11SamplerState *const *ppSamplers);
3066 void HSSetConstantBuffers(
3067 [in] UINT StartSlot,
3068 [in] UINT NumBuffers,
3069 [in] ID3D11Buffer *const *ppConstantBuffers);
3070 void DSSetShaderResources(
3071 [in] UINT StartSlot,
3072 [in] UINT NumViews,
3073 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
3074 void DSSetShader(
3075 [in] ID3D11DomainShader *pDomainShader,
3076 [in] ID3D11ClassInstance *const *ppClassInstances,
3077 UINT NumClassInstances);
3078 void DSSetSamplers(
3079 [in] UINT StartSlot,
3080 [in] UINT NumSamplers,
3081 [in] ID3D11SamplerState *const *ppSamplers);
3082 void DSSetConstantBuffers(
3083 [in] UINT StartSlot,
3084 [in] UINT NumBuffers,
3085 [in] ID3D11Buffer *const *ppConstantBuffers);
3086 void CSSetShaderResources(
3087 [in] UINT StartSlot,
3088 [in] UINT NumViews,
3089 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
3090 void CSSetUnorderedAccessViews(
3091 [in] UINT StartSlot,
3092 [in] UINT NumUAVs,
3093 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
3094 [in] const UINT *pUAVInitialCounts);
3095 void CSSetShader(
3096 [in] ID3D11ComputeShader *pComputeShader,
3097 [in] ID3D11ClassInstance *const *ppClassInstances,
3098 UINT NumClassInstances);
3099 void CSSetSamplers(
3100 [in] UINT StartSlot,
3101 [in] UINT NumSamplers,
3102 [in] ID3D11SamplerState *const *ppSamplers);
3103 void CSSetConstantBuffers(
3104 [in] UINT StartSlot,
3105 [in] UINT NumBuffers,
3106 [in] ID3D11Buffer *const *ppConstantBuffers);
3107 void VSGetConstantBuffers(
3108 [in] UINT StartSlot,
3109 [in] UINT NumBuffers,
3110 [out] ID3D11Buffer **ppConstantBuffers);
3111 void PSGetShaderResources(
3112 [in] UINT StartSlot,
3113 [in] UINT NumViews,
3114 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3115 void PSGetShader(
3116 [out] ID3D11PixelShader **ppPixelShader,
3117 [out] ID3D11ClassInstance **ppClassInstances,
3118 [in, out] UINT *pNumClassInstances);
3119 void PSGetSamplers(
3120 [in] UINT StartSlot,
3121 [in] UINT NumSamplers,
3122 [out] ID3D11SamplerState **ppSamplers);
3123 void VSGetShader(
3124 [out] ID3D11VertexShader **ppVertexShader,
3125 [out] ID3D11ClassInstance **ppClassInstances,
3126 [in, out] UINT *pNumClassInstances);
3127 void PSGetConstantBuffers(
3128 [in] UINT StartSlot,
3129 [in] UINT NumBuffers,
3130 [out] ID3D11Buffer **ppConstantBuffers);
3131 void IAGetInputLayout(
3132 [out] ID3D11InputLayout **ppInputLayout);
3133 void IAGetVertexBuffers(
3134 [in] UINT StartSlot,
3135 [in] UINT NumBuffers,
3136 [out] ID3D11Buffer **ppVertexBuffers,
3137 [out] UINT *pStrides,
3138 [out] UINT *pOffsets);
3139 void IAGetIndexBuffer(
3140 [out] ID3D11Buffer **pIndexBuffer,
3141 [out] DXGI_FORMAT* Format,
3142 [out] UINT* Offset);
3143 void GSGetConstantBuffers(
3144 [in] UINT StartSlot,
3145 [in] UINT NumBuffers,
3146 [out] ID3D11Buffer **ppConstantBuffers);
3147 void GSGetShader(
3148 [out] ID3D11GeometryShader **ppGeometryShader,
3149 [out] ID3D11ClassInstance **ppClassInstances,
3150 [in, out] UINT *pNumClassInstances);
3151 void IAGetPrimitiveTopology(
3152 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
3153 void VSGetShaderResources(
3154 [in] UINT StartSlot,
3155 [in] UINT NumViews,
3156 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3157 void VSGetSamplers(
3158 [in] UINT StartSlot,
3159 [in] UINT NumSamplers,
3160 [out] ID3D11SamplerState **ppSamplers);
3161 void GetPredication(
3162 [out] ID3D11Predicate **ppPredicate,
3163 [out] BOOL *pPredicateValue);
3164 void GSGetShaderResources(
3165 [in] UINT StartSlot,
3166 [in] UINT NumViews,
3167 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3168 void GSGetSamplers(
3169 [in] UINT StartSlot,
3170 [in] UINT NumSamplers,
3171 [out] ID3D11SamplerState **ppSamplers);
3172 void OMGetRenderTargets(
3173 [in] UINT NumViews,
3174 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3175 [out] ID3D11DepthStencilView **ppDepthStencilView);
3176 void OMGetRenderTargetsAndUnorderedAccessViews(
3177 [in] UINT NumRTVs,
3178 [out] ID3D11RenderTargetView **ppRenderTargetViews,
3179 [out] ID3D11DepthStencilView **ppDepthStencilView,
3180 [in] UINT UAVStartSlot,
3181 [in] UINT NumUAVs,
3182 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3183 void OMGetBlendState(
3184 [out] ID3D11BlendState **ppBlendState,
3185 [out] FLOAT BlendFactor[4],
3186 [out] UINT *pSampleMask);
3187 void OMGetDepthStencilState(
3188 [out] ID3D11DepthStencilState **ppDepthStencilState,
3189 [out] UINT *pStencilRef);
3190 void SOGetTargets(
3191 [in] UINT NumBuffers,
3192 [out] ID3D11Buffer **ppSOTargets);
3193 void RSGetState(
3194 [out] ID3D11RasterizerState **ppRasterizerState);
3195 void RSGetViewports(
3196 [in, out] UINT *pNumViewports,
3197 [out] D3D11_VIEWPORT *pViewports);
3198 void RSGetScissorRects(
3199 [in, out] UINT *pNumRects,
3200 [out] D3D11_RECT *pRects);
3201 void HSGetShaderResources(
3202 [in] UINT StartSlot,
3203 [in] UINT NumViews,
3204 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3205 void HSGetShader(
3206 [out] ID3D11HullShader **ppHullShader,
3207 [out] ID3D11ClassInstance **ppClassInstances,
3208 [in, out] UINT *pNumClassInstances);
3209 void HSGetSamplers(
3210 [in] UINT StartSlot,
3211 [in] UINT NumSamplers,
3212 [out] ID3D11SamplerState **ppSamplers);
3213 void HSGetConstantBuffers(
3214 [in] UINT StartSlot,
3215 [in] UINT NumBuffers,
3216 [out] ID3D11Buffer **ppConstantBuffers);
3217 void DSGetShaderResources(
3218 [in] UINT StartSlot,
3219 [in] UINT NumViews,
3220 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3221 void DSGetShader(
3222 [out] ID3D11DomainShader **ppDomainShader,
3223 [out] ID3D11ClassInstance **ppClassInstances,
3224 [in, out] UINT *pNumClassInstances);
3225 void DSGetSamplers(
3226 [in] UINT StartSlot,
3227 [in] UINT NumSamplers,
3228 [out] ID3D11SamplerState **ppSamplers);
3229 void DSGetConstantBuffers(
3230 [in] UINT StartSlot,
3231 [in] UINT NumBuffers,
3232 [out] ID3D11Buffer **ppConstantBuffers);
3233 void CSGetShaderResources(
3234 [in] UINT StartSlot,
3235 [in] UINT NumViews,
3236 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3237 void CSGetUnorderedAccessViews(
3238 [in] UINT StartSlot,
3239 [in] UINT NumUAVs,
3240 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3241 void CSGetShader(
3242 [out] ID3D11ComputeShader **ppComputeShader,
3243 [out] ID3D11ClassInstance **ppClassInstances,
3244 [in, out] UINT *pNumClassInstances);
3245 void CSGetSamplers(
3246 [in] UINT StartSlot,
3247 [in] UINT NumSamplers,
3248 [out] ID3D11SamplerState **ppSamplers);
3249 void CSGetConstantBuffers(
3250 [in] UINT StartSlot,
3251 [in] UINT NumBuffers,
3252 [out] ID3D11Buffer **ppConstantBuffers);
3253 void ClearState();
3254 void Flush();
3255 D3D11_DEVICE_CONTEXT_TYPE GetType();
3256 UINT GetContextFlags();
3257 HRESULT FinishCommandList(
3258 BOOL RestoreDeferredContextState,
3259 [out] ID3D11CommandList **ppCommandList);
3263 object,
3264 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3265 local,
3266 pointer_default(unique)
3268 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3270 HRESULT GetCertificateSize(
3271 UINT *pCertificateSize);
3272 HRESULT GetCertificate(
3273 UINT CertificateSize,
3274 BYTE *pCertificate);
3275 void GetChannelHandle(
3276 HANDLE *pChannelHandle);
3280 object,
3281 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3282 local,
3283 pointer_default(unique)
3285 interface ID3D11CryptoSession : ID3D11DeviceChild
3287 void GetCryptoType(
3288 GUID *pCryptoType);
3289 void GetDecoderProfile(
3290 GUID *pDecoderProfile);
3291 HRESULT GetCertificateSize(
3292 UINT *pCertificateSize);
3293 HRESULT GetCertificate(
3294 UINT CertificateSize,
3295 BYTE *pCertificate);
3296 void GetCryptoSessionHandle(
3297 HANDLE *pCryptoSessionHandle);
3301 object,
3302 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3303 local,
3304 pointer_default(unique)
3306 interface ID3D11VideoDecoder : ID3D11DeviceChild
3308 HRESULT GetCreationParameters(
3309 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3310 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3311 HRESULT GetDriverHandle(
3312 HANDLE *pDriverHandle);
3316 object,
3317 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3318 local,
3319 pointer_default(unique)
3321 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3323 HRESULT GetVideoProcessorContentDesc(
3324 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3325 HRESULT CheckVideoProcessorFormat(
3326 DXGI_FORMAT Format,
3327 UINT *pFlags);
3328 HRESULT GetVideoProcessorCaps(
3329 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3330 HRESULT GetVideoProcessorRateConversionCaps(
3331 UINT TypeIndex,
3332 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3333 HRESULT GetVideoProcessorCustomRate(
3334 UINT TypeIndex,
3335 UINT CustomRateIndex,
3336 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3337 HRESULT GetVideoProcessorFilterRange(
3338 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3339 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3343 object,
3344 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3345 local,
3346 pointer_default(unique)
3348 interface ID3D11VideoProcessor : ID3D11DeviceChild
3350 void GetContentDesc(
3351 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3352 void GetRateConversionCaps(
3353 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3357 object,
3358 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3359 local,
3360 pointer_default(unique)
3362 interface ID3D11VideoDecoderOutputView : ID3D11View
3364 void GetDesc(
3365 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3369 object,
3370 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3371 local,
3372 pointer_default(unique)
3374 interface ID3D11VideoProcessorInputView : ID3D11View
3376 void GetDesc(
3377 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3381 object,
3382 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3383 local,
3384 pointer_default(unique)
3386 interface ID3D11VideoProcessorOutputView : ID3D11View
3388 void GetDesc(
3389 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3393 object,
3394 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3395 local,
3396 pointer_default(unique)
3398 interface ID3D11VideoDevice : IUnknown
3400 HRESULT CreateVideoDecoder(
3401 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3402 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3403 ID3D11VideoDecoder **ppDecoder);
3404 HRESULT CreateVideoProcessor(
3405 ID3D11VideoProcessorEnumerator *pEnum,
3406 UINT RateConversionIndex,
3407 ID3D11VideoProcessor **ppVideoProcessor);
3408 HRESULT CreateAuthenticatedChannel(
3409 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3410 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3411 HRESULT CreateCryptoSession(
3412 const GUID *pCryptoType,
3413 const GUID *pDecoderProfile,
3414 const GUID *pKeyExchangeType,
3415 ID3D11CryptoSession **ppCryptoSession);
3416 HRESULT CreateVideoDecoderOutputView(
3417 ID3D11Resource *pResource,
3418 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3419 ID3D11VideoDecoderOutputView **ppVDOVView);
3420 HRESULT CreateVideoProcessorInputView(
3421 ID3D11Resource *pResource,
3422 ID3D11VideoProcessorEnumerator *pEnum,
3423 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3424 ID3D11VideoProcessorInputView **ppVPIView);
3425 HRESULT CreateVideoProcessorOutputView(
3426 ID3D11Resource *pResource,
3427 ID3D11VideoProcessorEnumerator *pEnum,
3428 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3429 ID3D11VideoProcessorOutputView **ppVPOView);
3430 HRESULT CreateVideoProcessorEnumerator(
3431 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3432 ID3D11VideoProcessorEnumerator **ppEnum);
3433 UINT GetVideoDecoderProfileCount();
3434 HRESULT GetVideoDecoderProfile(
3435 UINT Index,
3436 GUID *pDecoderProfile);
3437 HRESULT CheckVideoDecoderFormat(
3438 const GUID *pDecoderProfile,
3439 DXGI_FORMAT Format,
3440 BOOL *pSupported);
3441 HRESULT GetVideoDecoderConfigCount(
3442 const D3D11_VIDEO_DECODER_DESC *pDesc,
3443 UINT *pCount);
3444 HRESULT GetVideoDecoderConfig(
3445 const D3D11_VIDEO_DECODER_DESC *pDesc,
3446 UINT Index,
3447 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3448 HRESULT GetContentProtectionCaps(
3449 const GUID *pCryptoType,
3450 const GUID *pDecoderProfile,
3451 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3452 HRESULT CheckCryptoKeyExchange(
3453 const GUID *pCryptoType,
3454 const GUID *pDecoderProfile,
3455 UINT Index,
3456 GUID *pKeyExchangeType);
3457 HRESULT SetPrivateData(
3458 REFGUID guid,
3459 UINT DataSize,
3460 const void *pData);
3461 HRESULT SetPrivateDataInterface(
3462 REFGUID guid,
3463 const IUnknown *pData);
3467 object,
3468 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3469 local,
3470 pointer_default(unique)
3472 interface ID3D11VideoContext : ID3D11DeviceChild
3474 HRESULT GetDecoderBuffer(
3475 [in] ID3D11VideoDecoder *decoder,
3476 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3477 [out] UINT *buffer_size,
3478 [out] void **buffer
3480 HRESULT ReleaseDecoderBuffer(
3481 [in] ID3D11VideoDecoder *decoder,
3482 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3484 HRESULT DecoderBeginFrame(
3485 [in] ID3D11VideoDecoder *decoder,
3486 [in] ID3D11VideoDecoderOutputView *view,
3487 [in] UINT key_size,
3488 [in] const void *key
3490 HRESULT DecoderEndFrame(
3491 [in] ID3D11VideoDecoder *decoder
3493 HRESULT SubmitDecoderBuffers(
3494 [in] ID3D11VideoDecoder *decoder,
3495 [in] UINT buffers_count,
3496 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3498 HRESULT DecoderExtension(
3499 [in] ID3D11VideoDecoder *decoder,
3500 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3502 void VideoProcessorSetOutputTargetRect(
3503 [in] ID3D11VideoProcessor *processor,
3504 [in] BOOL enable,
3505 [in] const RECT *rect
3507 void VideoProcessorSetOutputBackgroundColor(
3508 [in] ID3D11VideoProcessor *processor,
3509 [in] BOOL y_cb_cr,
3510 [in] const D3D11_VIDEO_COLOR *color
3512 void VideoProcessorSetOutputColorSpace(
3513 [in] ID3D11VideoProcessor *processor,
3514 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3516 void VideoProcessorSetOutputAlphaFillMode(
3517 [in] ID3D11VideoProcessor *processor,
3518 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3519 [in] UINT stream_idx
3521 void VideoProcessorSetOutputConstriction(
3522 [in] ID3D11VideoProcessor *processor,
3523 [in] BOOL enable,
3524 [in] SIZE size
3526 void VideoProcessorSetOutputStereoMode(
3527 [in] ID3D11VideoProcessor *processor,
3528 [in] BOOL enable
3530 HRESULT VideoProcessorSetOutputExtension(
3531 [in] ID3D11VideoProcessor *processor,
3532 [in] const GUID *guid,
3533 [in] UINT data_size,
3534 [in] void *data
3536 void VideoProcessorGetOutputTargetRect(
3537 [in] ID3D11VideoProcessor *processor,
3538 [out] BOOL *enabled,
3539 [out] RECT *rect
3541 void VideoProcessorGetOutputBackgroundColor(
3542 [in] ID3D11VideoProcessor *processor,
3543 [out] BOOL *y_cb_cr,
3544 [out] D3D11_VIDEO_COLOR *color
3546 void VideoProcessorGetOutputColorSpace(
3547 [in] ID3D11VideoProcessor *processor,
3548 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3550 void VideoProcessorGetOutputAlphaFillMode(
3551 [in] ID3D11VideoProcessor *processor,
3552 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3553 [out] UINT *stream_idx
3555 void VideoProcessorGetOutputConstriction(
3556 [in] ID3D11VideoProcessor *processor,
3557 [out] BOOL *enabled,
3558 [out] SIZE *size
3560 void VideoProcessorGetOutputStereoMode(
3561 [in] ID3D11VideoProcessor *processor,
3562 [out] BOOL *enabled
3564 HRESULT VideoProcessorGetOutputExtension(
3565 [in] ID3D11VideoProcessor *processor,
3566 [in] const GUID *guid,
3567 [in] UINT data_size,
3568 [out] void *data
3570 void VideoProcessorSetStreamFrameFormat(
3571 [in] ID3D11VideoProcessor *processor,
3572 [in] UINT stream_idx,
3573 [in] D3D11_VIDEO_FRAME_FORMAT format
3575 void VideoProcessorSetStreamColorSpace(
3576 [in] ID3D11VideoProcessor *processor,
3577 [in] UINT stream_idx,
3578 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3580 void VideoProcessorSetStreamOutputRate(
3581 [in] ID3D11VideoProcessor *processor,
3582 [in] UINT stream_idx,
3583 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3584 [in] BOOL repeat,
3585 [in] const DXGI_RATIONAL *custom_rate
3587 void VideoProcessorSetStreamSourceRect(
3588 [in] ID3D11VideoProcessor *processor,
3589 [in] UINT stream_idx,
3590 [in] BOOL enable,
3591 [in] const RECT *rect
3593 void VideoProcessorSetStreamDestRect(
3594 [in] ID3D11VideoProcessor *processor,
3595 [in] UINT stream_idx,
3596 [in] BOOL enable,
3597 [in] const RECT *rect
3599 void VideoProcessorSetStreamAlpha(
3600 [in] ID3D11VideoProcessor *processor,
3601 [in] UINT stream_idx,
3602 [in] BOOL enable,
3603 [in] float alpha
3605 void VideoProcessorSetStreamPalette(
3606 [in] ID3D11VideoProcessor *processor,
3607 [in] UINT stream_idx,
3608 [in] UINT entry_count,
3609 [in] const UINT *entries
3611 void VideoProcessorSetStreamPixelAspectRatio(
3612 [in] ID3D11VideoProcessor *processor,
3613 [in] UINT stream_idx,
3614 [in] BOOL enable,
3615 [in] const DXGI_RATIONAL *src_aspect_ratio,
3616 [in] const DXGI_RATIONAL *dst_aspect_ratio
3618 void VideoProcessorSetStreamLumaKey(
3619 [in] ID3D11VideoProcessor *processor,
3620 [in] UINT stream_idx,
3621 [in] BOOL enable,
3622 [in] float lower,
3623 [in] float upper
3625 void VideoProcessorSetStreamStereoFormat(
3626 [in] ID3D11VideoProcessor *processor,
3627 [in] UINT stream_idx,
3628 [in] BOOL enable,
3629 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3630 [in] BOOL left_view_frame0,
3631 [in] BOOL base_view_frame0,
3632 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3633 [in] int mono_offset
3635 void VideoProcessorSetStreamAutoProcessingMode(
3636 [in] ID3D11VideoProcessor *processor,
3637 [in] UINT stream_idx,
3638 [in] BOOL enable
3640 void VideoProcessorSetStreamFilter(
3641 [in] ID3D11VideoProcessor *processor,
3642 [in] UINT stream_idx,
3643 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3644 [in] BOOL enable,
3645 [in] int level
3647 HRESULT VideoProcessorSetStreamExtension(
3648 [in] ID3D11VideoProcessor *processor,
3649 [in] UINT stream_idx,
3650 [in] const GUID *guid,
3651 [in] UINT data_size,
3652 [in] void *data
3654 void VideoProcessorGetStreamFrameFormat(
3655 [in] ID3D11VideoProcessor *processor,
3656 [in] UINT stream_idx,
3657 [out] D3D11_VIDEO_FRAME_FORMAT *format
3659 void VideoProcessorGetStreamColorSpace(
3660 [in] ID3D11VideoProcessor *processor,
3661 [in] UINT stream_idx,
3662 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3664 void VideoProcessorGetStreamOutputRate(
3665 [in] ID3D11VideoProcessor *processor,
3666 [in] UINT stream_idx,
3667 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3668 [out] BOOL *repeat,
3669 [out] DXGI_RATIONAL *custom_rate
3671 void VideoProcessorGetStreamSourceRect(
3672 [in] ID3D11VideoProcessor *processor,
3673 [in] UINT stream_idx,
3674 [out] BOOL *enabled,
3675 [out] RECT *rect
3677 void VideoProcessorGetStreamDestRect(
3678 [in] ID3D11VideoProcessor *processor,
3679 [in] UINT stream_idx,
3680 [out] BOOL *enabled,
3681 [out] RECT *rect
3683 void VideoProcessorGetStreamAlpha(
3684 [in] ID3D11VideoProcessor *processor,
3685 [in] UINT stream_idx,
3686 [out] BOOL *enabled,
3687 [out] float *alpha
3689 void VideoProcessorGetStreamPalette(
3690 [in] ID3D11VideoProcessor *processor,
3691 [in] UINT stream_idx,
3692 [in] UINT entry_count,
3693 [out] UINT *entries
3695 void VideoProcessorGetStreamPixelAspectRatio(
3696 [in] ID3D11VideoProcessor *processor,
3697 [in] UINT stream_idx,
3698 [out] BOOL *enabled,
3699 [out] DXGI_RATIONAL *src_aspect_ratio,
3700 [out] DXGI_RATIONAL *dst_aspect_ratio
3702 void VideoProcessorGetStreamLumaKey(
3703 [in] ID3D11VideoProcessor *processor,
3704 [in] UINT stream_idx,
3705 [out] BOOL *enabled,
3706 [out] float *lower,
3707 [out] float *upper
3709 void VideoProcessorGetStreamStereoFormat(
3710 [in] ID3D11VideoProcessor *processor,
3711 [in] UINT stream_idx,
3712 [out] BOOL *enabled,
3713 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3714 [out] BOOL *left_view_frame0,
3715 [out] BOOL *base_view_frame0,
3716 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3717 [out] int *mono_offset
3719 void VideoProcessorGetStreamAutoProcessingMode(
3720 [in] ID3D11VideoProcessor *processor,
3721 [in] UINT stream_idx,
3722 [out] BOOL *enabled
3724 void VideoProcessorGetStreamFilter(
3725 [in] ID3D11VideoProcessor *processor,
3726 [in] UINT stream_idx,
3727 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3728 [out] BOOL *enabled,
3729 [out] int *level
3731 HRESULT VideoProcessorGetStreamExtension(
3732 [in] ID3D11VideoProcessor *processor,
3733 [in] UINT stream_idx,
3734 [in] const GUID *guid,
3735 [in] UINT data_size,
3736 [out] void *data
3738 HRESULT VideoProcessorBlt(
3739 [in] ID3D11VideoProcessor *processor,
3740 [in] ID3D11VideoProcessorOutputView *view,
3741 [in] UINT frame_idx,
3742 [in] UINT stream_count,
3743 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3745 HRESULT NegotiateCryptoSessionKeyExchange(
3746 [in] ID3D11CryptoSession *session,
3747 [in] UINT data_size,
3748 [in, out] void *data
3750 void EncryptionBlt(
3751 [in] ID3D11CryptoSession *session,
3752 [in] ID3D11Texture2D *src_surface,
3753 [in] ID3D11Texture2D *dst_surface,
3754 [in] UINT iv_size,
3755 [in, out] void *iv
3757 void DecryptionBlt(
3758 [in] ID3D11CryptoSession *session,
3759 [in] ID3D11Texture2D *src_surface,
3760 [in] ID3D11Texture2D *dst_surface,
3761 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3762 [in] UINT key_size,
3763 [in] const void *key,
3764 [in] UINT iv_size,
3765 [in, out] void *iv
3767 void StartSessionKeyRefresh(
3768 [in] ID3D11CryptoSession *session,
3769 [in] UINT random_number_size,
3770 [out] void *random_number
3772 void FinishSessionKeyRefresh(
3773 [in] ID3D11CryptoSession *session
3775 HRESULT GetEncryptionBltKey(
3776 [in] ID3D11CryptoSession *session,
3777 [in] UINT key_size,
3778 [out] void *key
3780 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3781 [in] ID3D11AuthenticatedChannel *channel,
3782 [in] UINT data_size,
3783 [in, out] void *data
3785 HRESULT QueryAuthenticatedChannel(
3786 [in] ID3D11AuthenticatedChannel *channel,
3787 [in] UINT input_size,
3788 [in] const void *input,
3789 [in] UINT output_size,
3790 [out] void *output
3792 HRESULT ConfigureAuthenticatedChannel(
3793 [in] ID3D11AuthenticatedChannel *channel,
3794 [in] UINT input_size,
3795 [in] const void *input,
3796 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3798 void VideoProcessorSetStreamRotation(
3799 [in] ID3D11VideoProcessor *processor,
3800 [in] UINT stream_idx,
3801 [in] BOOL enable,
3802 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3804 void VideoProcessorGetStreamRotation(
3805 [in] ID3D11VideoProcessor *processor,
3806 [in] UINT stream_idx,
3807 [out] BOOL *enable,
3808 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3813 object,
3814 local,
3815 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3817 interface ID3D11Device : IUnknown
3819 HRESULT CreateBuffer(
3820 [in] const D3D11_BUFFER_DESC *pDesc,
3821 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3822 [out] ID3D11Buffer **ppBuffer);
3823 HRESULT CreateTexture1D(
3824 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3825 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3826 [out] ID3D11Texture1D **ppTexture1D);
3827 HRESULT CreateTexture2D(
3828 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3829 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3830 [out] ID3D11Texture2D **ppTexture2D);
3831 HRESULT CreateTexture3D(
3832 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3833 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3834 [out] ID3D11Texture3D **ppTexture3D);
3835 HRESULT CreateShaderResourceView(
3836 [in] ID3D11Resource *pResource,
3837 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3838 [out] ID3D11ShaderResourceView **ppSRView);
3839 HRESULT CreateUnorderedAccessView(
3840 [in] ID3D11Resource *pResource,
3841 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3842 [out] ID3D11UnorderedAccessView **ppUAView);
3843 HRESULT CreateRenderTargetView(
3844 [in] ID3D11Resource *pResource,
3845 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3846 [out] ID3D11RenderTargetView **ppRTView);
3847 HRESULT CreateDepthStencilView(
3848 [in] ID3D11Resource *pResource,
3849 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3850 [out] ID3D11DepthStencilView **ppDepthStencilView);
3851 HRESULT CreateInputLayout(
3852 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3853 [in] UINT NumElements,
3854 [in] const void *pShaderBytecodeWithInputSignature,
3855 [in] SIZE_T BytecodeLength,
3856 [out] ID3D11InputLayout **ppInputLayout);
3857 HRESULT CreateVertexShader(
3858 [in] const void *pShaderBytecode,
3859 [in] SIZE_T BytecodeLength,
3860 [in] ID3D11ClassLinkage *pClassLinkage,
3861 [out] ID3D11VertexShader **ppVertexShader);
3862 HRESULT CreateGeometryShader(
3863 [in] const void *pShaderBytecode,
3864 [in] SIZE_T BytecodeLength,
3865 [in] ID3D11ClassLinkage *pClassLinkage,
3866 [out] ID3D11GeometryShader **ppGeometryShader);
3867 HRESULT CreateGeometryShaderWithStreamOutput(
3868 [in] const void *pShaderBytecode,
3869 [in] SIZE_T BytecodeLength,
3870 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3871 [in] UINT NumEntries,
3872 [in] const UINT *pBufferStrides,
3873 [in] UINT NumStrides,
3874 [in] UINT RasterizedStream,
3875 [in] ID3D11ClassLinkage *pClassLinkage,
3876 [out] ID3D11GeometryShader **ppGeometryShader);
3877 HRESULT CreatePixelShader(
3878 [in] const void *pShaderBytecode,
3879 [in] SIZE_T BytecodeLength,
3880 [in] ID3D11ClassLinkage *pClassLinkage,
3881 [out] ID3D11PixelShader **ppPixelShader);
3882 HRESULT CreateHullShader(
3883 [in] const void *pShaderBytecode,
3884 [in] SIZE_T BytecodeLength,
3885 [in] ID3D11ClassLinkage *pClassLinkage,
3886 [out] ID3D11HullShader **ppHullShader);
3887 HRESULT CreateDomainShader(
3888 [in] const void *pShaderBytecode,
3889 [in] SIZE_T BytecodeLength,
3890 [in] ID3D11ClassLinkage *pClassLinkage,
3891 [out] ID3D11DomainShader **ppDomainShader);
3892 HRESULT CreateComputeShader(
3893 [in] const void *pShaderBytecode,
3894 [in] SIZE_T BytecodeLength,
3895 [in] ID3D11ClassLinkage *pClassLinkage,
3896 [out] ID3D11ComputeShader **ppComputeShader);
3897 HRESULT CreateClassLinkage(
3898 [out] ID3D11ClassLinkage **ppLinkage);
3899 HRESULT CreateBlendState(
3900 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3901 [out] ID3D11BlendState **ppBlendState);
3902 HRESULT CreateDepthStencilState(
3903 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3904 [out] ID3D11DepthStencilState **ppDepthStencilState);
3905 HRESULT CreateRasterizerState(
3906 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3907 [out] ID3D11RasterizerState **ppRasterizerState);
3908 HRESULT CreateSamplerState(
3909 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3910 [out] ID3D11SamplerState **ppSamplerState);
3911 HRESULT CreateQuery(
3912 [in] const D3D11_QUERY_DESC *pQueryDesc,
3913 [out] ID3D11Query **ppQuery);
3914 HRESULT CreatePredicate(
3915 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3916 [out] ID3D11Predicate **ppPredicate);
3917 HRESULT CreateCounter(
3918 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3919 [out] ID3D11Counter **ppCounter);
3920 HRESULT CreateDeferredContext(
3921 UINT ContextFlags,
3922 [out] ID3D11DeviceContext **ppDeferredContext);
3923 HRESULT OpenSharedResource(
3924 [in] HANDLE hResource,
3925 [in] REFIID ReturnedInterface,
3926 [out] void **ppResource);
3927 HRESULT CheckFormatSupport(
3928 [in] DXGI_FORMAT Format,
3929 [out] UINT *pFormatSupport);
3930 HRESULT CheckMultisampleQualityLevels(
3931 [in] DXGI_FORMAT Format,
3932 [in] UINT SampleCount,
3933 [out] UINT *pNumQualityLevels);
3934 void CheckCounterInfo(
3935 [out] D3D11_COUNTER_INFO *pCounterInfo);
3936 HRESULT CheckCounter(
3937 [in] const D3D11_COUNTER_DESC *pDesc,
3938 [out] D3D11_COUNTER_TYPE *pType,
3939 [out] UINT *pActiveCounters,
3940 [out] LPSTR szName,
3941 [in, out] UINT *pNameLength,
3942 [out] LPSTR szUnits,
3943 [in, out] UINT *pUnitsLength,
3944 [out] LPSTR szDescription,
3945 [in, out] UINT *pDescriptionLength);
3946 HRESULT CheckFeatureSupport(
3947 D3D11_FEATURE Feature,
3948 [out] void *pFeatureSupportData,
3949 UINT FeatureSupportDataSize);
3950 HRESULT GetPrivateData(
3951 [in] REFGUID guid,
3952 [in, out] UINT *pDataSize,
3953 [out] void *pData);
3954 HRESULT SetPrivateData(
3955 [in] REFGUID guid,
3956 [in] UINT DataSize,
3957 [in] const void *pData);
3958 HRESULT SetPrivateDataInterface(
3959 [in] REFGUID guid,
3960 [in] const IUnknown *pData);
3961 D3D_FEATURE_LEVEL GetFeatureLevel();
3962 UINT GetCreationFlags();
3963 HRESULT GetDeviceRemovedReason();
3964 void GetImmediateContext(
3965 [out] ID3D11DeviceContext **ppImmediateContext);
3966 HRESULT SetExceptionMode(UINT RaiseFlags);
3967 UINT GetExceptionMode();
3970 typedef enum D3D11_CREATE_DEVICE_FLAG {
3971 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3972 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3973 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3974 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3975 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3976 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3977 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3978 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3979 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3980 } D3D11_CREATE_DEVICE_FLAG;
3982 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
3984 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001,
3985 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002,
3986 } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
3988 const UINT D3D11_SDK_VERSION = 7;
3990 cpp_quote("#include <d3d10_1.h>")
3991 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3992 cpp_quote("# include <d3d11sdklayers.h>")
3993 cpp_quote("#endif")
3994 cpp_quote("#include <d3d10misc.h>")
3995 cpp_quote("#include <d3d10shader.h>")
3996 cpp_quote("#include <d3d10effect.h>")
3997 cpp_quote("#include <d3d10_1shader.h>")
3999 const UINT _FACD3D11 = 0x87c;
4000 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
4002 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
4003 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
4005 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
4006 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
4008 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
4009 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
4010 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
4012 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
4013 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
4014 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
4015 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);