winex11: Build helper functions only when needed.
[wine.git] / include / d3d11.idl
blob8de20563651df144a1a6820aab9a020df2a6b48c
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 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
39 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
40 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
41 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
42 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
43 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
44 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
45 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
46 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
47 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
48 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
49 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
50 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
51 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
52 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
53 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
54 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
55 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
56 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
57 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
58 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
59 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
60 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
61 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
62 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
63 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
64 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
65 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
66 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
67 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
68 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
69 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
71 const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256;
72 const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64;
73 const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240;
74 const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68;
75 const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224;
76 const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72;
77 const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208;
78 const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76;
79 const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192;
80 const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84;
81 const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176;
82 const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92;
83 const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160;
84 const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100;
85 const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144;
86 const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112;
87 const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128;
88 const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128;
89 const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112;
90 const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144;
91 const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96;
92 const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168;
93 const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80;
94 const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204;
95 const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64;
96 const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256;
97 const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48;
98 const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340;
99 const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32;
100 const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512;
101 const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16;
102 const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768;
103 const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1;
104 const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256;
105 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768;
106 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768;
107 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768;
108 const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1;
109 const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535;
110 const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192;
111 const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1;
112 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1;
113 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1;
114 const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024;
115 const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024;
116 const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024;
117 const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64;
118 const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1;
119 const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1;
120 const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1;
121 const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384;
123 const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
124 cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
125 const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
126 cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
127 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
128 const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
129 const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
130 const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
131 const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
132 const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
133 cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
134 const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
135 const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
136 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
137 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
138 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
139 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
140 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
141 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
142 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
143 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
145 cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
147 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
149 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
151 const UINT D3D11_MAX_MAXANISOTROPY = 16;
152 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
153 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
154 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
155 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
156 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
158 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff;
159 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff;
161 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
162 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
163 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
164 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
165 const UINT D3D11_SHADER_MAX_TYPES = 65535;
166 const UINT D3D11_SHADER_MINOR_VERSION = 0;
167 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
169 const UINT D3D11_OMAC_SIZE = 16;
171 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
172 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
173 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
174 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
175 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
176 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
177 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
178 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
179 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
180 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
181 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
182 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
183 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
184 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
185 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
186 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
187 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
188 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
189 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
190 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
191 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
192 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
193 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
195 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
197 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
198 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
199 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
200 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
201 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
202 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
203 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
204 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
205 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
206 const UINT D3D11_REQ_MAXANISOTROPY = 16;
207 const UINT D3D11_REQ_MIP_LEVELS = 15;
208 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
209 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
210 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
211 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
212 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
213 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
214 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
215 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
216 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
217 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
218 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
219 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
220 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
221 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
223 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
225 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
226 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
228 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
229 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
230 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
231 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
232 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
233 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
234 const UINT D3D11_SO_STREAM_COUNT = 4;
236 const UINT D3D11_SPEC_DATE_DAY = 16;
237 const UINT D3D11_SPEC_DATE_MONTH = 05;
238 const UINT D3D11_SPEC_DATE_YEAR = 2011;
240 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
241 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
242 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
243 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
244 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
245 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
246 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
247 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
249 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
250 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
251 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
252 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
253 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
254 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
255 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
256 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
258 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
259 cpp_quote("struct CD3D11_DEFAULT {};")
260 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
261 cpp_quote("#endif")
263 cpp_quote("#ifndef _D3D11_1_CONSTANTS")
264 cpp_quote("#define _D3D11_1_CONSTANTS")
265 const UINT D3D11_1_UAV_SLOT_COUNT = 64;
266 cpp_quote("#endif")
268 cpp_quote("#ifndef _D3D11_2_CONSTANTS")
269 cpp_quote("#define _D3D11_2_CONSTANTS")
270 const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 0x10000;
271 cpp_quote("#endif")
273 typedef enum D3D11_BLEND
275 D3D11_BLEND_ZERO = 1,
276 D3D11_BLEND_ONE = 2,
277 D3D11_BLEND_SRC_COLOR = 3,
278 D3D11_BLEND_INV_SRC_COLOR = 4,
279 D3D11_BLEND_SRC_ALPHA = 5,
280 D3D11_BLEND_INV_SRC_ALPHA = 6,
281 D3D11_BLEND_DEST_ALPHA = 7,
282 D3D11_BLEND_INV_DEST_ALPHA = 8,
283 D3D11_BLEND_DEST_COLOR = 9,
284 D3D11_BLEND_INV_DEST_COLOR = 10,
285 D3D11_BLEND_SRC_ALPHA_SAT = 11,
286 D3D11_BLEND_BLEND_FACTOR = 14,
287 D3D11_BLEND_INV_BLEND_FACTOR = 15,
288 D3D11_BLEND_SRC1_COLOR = 16,
289 D3D11_BLEND_INV_SRC1_COLOR = 17,
290 D3D11_BLEND_SRC1_ALPHA = 18,
291 D3D11_BLEND_INV_SRC1_ALPHA = 19,
292 } D3D11_BLEND;
294 typedef enum D3D11_BLEND_OP
296 D3D11_BLEND_OP_ADD = 1,
297 D3D11_BLEND_OP_SUBTRACT,
298 D3D11_BLEND_OP_REV_SUBTRACT,
299 D3D11_BLEND_OP_MIN,
300 D3D11_BLEND_OP_MAX
301 } D3D11_BLEND_OP;
303 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
305 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
306 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
307 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
308 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
309 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
310 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
311 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
312 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
313 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
314 } D3D11_VIDEO_DECODER_BUFFER_TYPE;
316 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
318 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
319 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
320 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
321 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
322 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
324 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
326 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
327 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
328 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
329 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
331 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
333 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
334 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
335 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
336 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
337 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
338 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
339 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
340 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
341 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
343 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
345 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
346 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
347 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
348 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
350 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
352 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
353 D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
354 D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
355 D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
356 } D3D11_VIDEO_PROCESSOR_ROTATION;
358 typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
360 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
361 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
362 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
363 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
364 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
365 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
366 } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
368 typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
370 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
371 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
372 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
373 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
374 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
375 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
376 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
377 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
378 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
379 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
380 } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
382 typedef enum D3D11_CONTENT_PROTECTION_CAPS
384 D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
385 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
386 D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
387 D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
388 D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
389 D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
390 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
391 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
392 D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
393 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
394 D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
395 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
396 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
397 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
398 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
399 } D3D11_CONTENT_PROTECTION_CAPS;
401 typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
403 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
404 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
405 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
406 } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
408 typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
410 D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
411 D3D11_PROCESSIDTYPE_DWM = 0x00000001,
412 D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
413 } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
415 typedef enum D3D11_BUS_TYPE
417 D3D11_BUS_TYPE_OTHER = 0x00000000,
418 D3D11_BUS_TYPE_PCI = 0x00000001,
419 D3D11_BUS_TYPE_PCIX = 0x00000002,
420 D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
421 D3D11_BUS_TYPE_AGP = 0x00000004,
422 D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
423 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
424 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
425 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
426 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
427 D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
428 } D3D11_BUS_TYPE;
430 typedef struct D3D11_BOX
432 UINT left;
433 UINT top;
434 UINT front;
435 UINT right;
436 UINT bottom;
437 UINT back;
438 } D3D11_BOX;
440 typedef struct D3D11_BUFFER_RTV
442 union
444 UINT FirstElement;
445 UINT ElementOffset;
447 union
449 UINT NumElements;
450 UINT ElementWidth;
452 } D3D11_BUFFER_RTV;
454 typedef struct D3D11_BUFFER_SRV
456 union
458 UINT FirstElement;
459 UINT ElementOffset;
461 union
463 UINT NumElements;
464 UINT ElementWidth;
466 } D3D11_BUFFER_SRV;
468 typedef struct D3D11_BUFFER_UAV
470 UINT FirstElement;
471 UINT NumElements;
472 UINT Flags;
473 } D3D11_BUFFER_UAV;
475 typedef struct D3D11_BUFFEREX_SRV
477 UINT FirstElement;
478 UINT NumElements;
479 UINT Flags;
480 } D3D11_BUFFEREX_SRV;
482 typedef struct D3D11_CLASS_INSTANCE_DESC
484 UINT InstanceId;
485 UINT InstanceIndex;
486 UINT TypeId;
487 UINT ConstantBuffer;
488 UINT BaseConstantBufferOffset;
489 UINT BaseTexture;
490 UINT BaseSampler;
491 BOOL Created;
492 } D3D11_CLASS_INSTANCE_DESC;
494 typedef enum D3D11_COMPARISON_FUNC
496 D3D11_COMPARISON_NEVER = 1,
497 D3D11_COMPARISON_LESS,
498 D3D11_COMPARISON_EQUAL,
499 D3D11_COMPARISON_LESS_EQUAL,
500 D3D11_COMPARISON_GREATER,
501 D3D11_COMPARISON_NOT_EQUAL,
502 D3D11_COMPARISON_GREATER_EQUAL,
503 D3D11_COMPARISON_ALWAYS
504 } D3D11_COMPARISON_FUNC;
506 typedef enum D3D11_COUNTER
508 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
509 } D3D11_COUNTER;
511 typedef struct D3D11_COUNTER_DESC
513 D3D11_COUNTER Counter;
514 UINT MiscFlags;
515 } D3D11_COUNTER_DESC;
517 typedef struct D3D11_COUNTER_INFO
519 D3D11_COUNTER LastDeviceDependentCounter;
520 UINT NumSimultaneousCounters;
521 UINT8 NumDetectableParallelUnits;
522 } D3D11_COUNTER_INFO;
524 typedef enum D3D11_COUNTER_TYPE
526 D3D11_COUNTER_TYPE_FLOAT32,
527 D3D11_COUNTER_TYPE_UINT16,
528 D3D11_COUNTER_TYPE_UINT32,
529 D3D11_COUNTER_TYPE_UINT64,
530 } D3D11_COUNTER_TYPE;
532 typedef enum D3D11_CULL_MODE
534 D3D11_CULL_NONE = 1,
535 D3D11_CULL_FRONT,
536 D3D11_CULL_BACK
537 } D3D11_CULL_MODE;
539 typedef enum D3D11_DEPTH_WRITE_MASK
541 D3D11_DEPTH_WRITE_MASK_ZERO,
542 D3D11_DEPTH_WRITE_MASK_ALL,
543 } D3D11_DEPTH_WRITE_MASK;
545 typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
547 D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
548 D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
549 } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
551 typedef enum D3D11_DEVICE_CONTEXT_TYPE
553 D3D11_DEVICE_CONTEXT_IMMEDIATE,
554 D3D11_DEVICE_CONTEXT_DEFERRED,
555 } D3D11_DEVICE_CONTEXT_TYPE;
557 typedef enum D3D11_DSV_DIMENSION
559 D3D11_DSV_DIMENSION_UNKNOWN,
560 D3D11_DSV_DIMENSION_TEXTURE1D,
561 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
562 D3D11_DSV_DIMENSION_TEXTURE2D,
563 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
564 D3D11_DSV_DIMENSION_TEXTURE2DMS,
565 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
566 } D3D11_DSV_DIMENSION;
568 typedef enum D3D11_FEATURE
570 D3D11_FEATURE_THREADING,
571 D3D11_FEATURE_DOUBLES,
572 D3D11_FEATURE_FORMAT_SUPPORT,
573 D3D11_FEATURE_FORMAT_SUPPORT2,
574 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
575 D3D11_FEATURE_D3D11_OPTIONS,
576 D3D11_FEATURE_ARCHITECTURE_INFO,
577 D3D11_FEATURE_D3D9_OPTIONS,
578 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
579 D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
580 D3D11_FEATURE_D3D11_OPTIONS1,
581 D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
582 D3D11_FEATURE_MARKER_SUPPORT,
583 D3D11_FEATURE_D3D9_OPTIONS1,
584 D3D11_FEATURE_D3D11_OPTIONS2,
585 D3D11_FEATURE_D3D11_OPTIONS3,
586 D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
587 D3D11_FEATURE_D3D11_OPTIONS4,
588 D3D11_FEATURE_SHADER_CACHE,
589 } D3D11_FEATURE;
591 typedef struct D3D11_FEATURE_DATA_THREADING
593 BOOL DriverConcurrentCreates;
594 BOOL DriverCommandLists;
595 } D3D11_FEATURE_DATA_THREADING;
597 typedef struct D3D11_FEATURE_DATA_DOUBLES
599 BOOL DoublePrecisionFloatShaderOps;
600 } D3D11_FEATURE_DATA_DOUBLES;
602 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
604 DXGI_FORMAT InFormat;
605 UINT OutFormatSupport;
606 } D3D11_FEATURE_DATA_FORMAT_SUPPORT;
608 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
610 DXGI_FORMAT InFormat;
611 UINT OutFormatSupport2;
612 } D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
614 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
616 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
617 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
619 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
621 BOOL OutputMergerLogicOp;
622 BOOL UAVOnlyRenderingForcedSampleCount;
623 BOOL DiscardAPIsSeenByDriver;
624 BOOL FlagsForUpdateAndCopySeenByDriver;
625 BOOL ClearView;
626 BOOL CopyWithOverlap;
627 BOOL ConstantBufferPartialUpdate;
628 BOOL ConstantBufferOffsetting;
629 BOOL MapNoOverwriteOnDynamicConstantBuffer;
630 BOOL MapNoOverwriteOnDynamicBufferSRV;
631 BOOL MultisampleRTVWithForcedSampleCountOne;
632 BOOL SAD4ShaderInstructions;
633 BOOL ExtendedDoublesShaderInstructions;
634 BOOL ExtendedResourceSharing;
635 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
637 typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
639 BOOL TileBasedDeferredRenderer;
640 } D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
642 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
644 BOOL FullNonPow2TextureSupport;
645 } D3D11_FEATURE_DATA_D3D9_OPTIONS;
647 typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
649 BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
650 } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
652 typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
654 D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
655 D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
656 } D3D11_SHADER_MIN_PRECISION_SUPPORT;
658 typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
660 UINT PixelShaderMinPrecision;
661 UINT AllOtherShaderStagesMinPrecision;
662 } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
664 typedef enum D3D11_TILED_RESOURCES_TIER
666 D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
667 D3D11_TILED_RESOURCES_TIER_1 = 0x1,
668 D3D11_TILED_RESOURCES_TIER_2 = 0x2,
669 D3D11_TILED_RESOURCES_TIER_3 = 0x3,
670 } D3D11_TILED_RESOURCES_TIER;
672 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
674 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
675 BOOL MinMaxFiltering;
676 BOOL ClearViewAlsoSupportsDepthOnlyFormats;
677 BOOL MapOnDefaultBuffers;
678 } D3D11_FEATURE_DATA_D3D11_OPTIONS1;
680 typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
682 BOOL SimpleInstancingSupported;
683 } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
685 typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
687 BOOL Profile;
688 } D3D11_FEATURE_DATA_MARKER_SUPPORT;
690 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
692 BOOL FullNonPow2TextureSupported;
693 BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
694 BOOL SimpleInstancingSupported;
695 BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
696 } D3D11_FEATURE_DATA_D3D9_OPTIONS1;
698 typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
700 D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
701 D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
702 D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
703 D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
704 } D3D11_CONSERVATIVE_RASTERIZATION_TIER;
706 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
708 BOOL PSSpecifiedStencilRefSupported;
709 BOOL TypedUAVLoadAdditionalFormats;
710 BOOL ROVsSupported;
711 D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
712 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
713 BOOL MapOnDefaultTextures;
714 BOOL StandardSwizzle;
715 BOOL UnifiedMemoryArchitecture;
716 } D3D11_FEATURE_DATA_D3D11_OPTIONS2;
718 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
720 BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
721 } D3D11_FEATURE_DATA_D3D11_OPTIONS3;
723 typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
725 UINT MaxGPUVirtualAddressBitsPerResource;
726 UINT MaxGPUVirtualAddressBitsPerProcess;
727 } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
729 typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
731 D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
732 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
733 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
734 } D3D11_SHADER_CACHE_SUPPORT_FLAGS;
736 typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
738 UINT SupportFlags;
739 } D3D11_FEATURE_DATA_SHADER_CACHE;
741 typedef enum D3D11_FILL_MODE
743 D3D11_FILL_WIREFRAME = 2,
744 D3D11_FILL_SOLID
745 } D3D11_FILL_MODE;
747 typedef enum D3D11_FILTER_TYPE
749 D3D11_FILTER_TYPE_POINT = 0,
750 D3D11_FILTER_TYPE_LINEAR = 1
751 } D3D11_FILTER_TYPE;
753 const UINT D3D11_MIN_FILTER_SHIFT = 4;
754 const UINT D3D11_MAG_FILTER_SHIFT = 2;
755 const UINT D3D11_MIP_FILTER_SHIFT = 0;
756 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
757 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
758 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
760 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
761 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
762 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
763 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
764 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
766 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
767 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
768 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
769 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
771 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
772 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
774 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
775 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
777 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
778 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
780 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
782 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
783 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
784 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
785 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
786 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
788 typedef enum D3D11_FILTER
790 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
791 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
792 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
793 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
794 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
795 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
796 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
797 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
798 D3D11_FILTER_ANISOTROPIC = 0x55,
799 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
800 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
801 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
802 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
803 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
804 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
805 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
806 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
807 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
808 } D3D11_FILTER;
810 typedef enum D3D11_DSV_FLAG
812 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
813 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
814 } D3D11_DSV_FLAG;
816 typedef enum D3D11_BUFFEREX_SRV_FLAG
818 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
819 } D3D11_BUFFEREX_SRV_FLAG;
821 typedef enum D3D11_UAV_FLAG
823 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
824 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
825 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
826 } D3D11_UAV_FLAG;
828 typedef enum D3D11_INPUT_CLASSIFICATION
830 D3D11_INPUT_PER_VERTEX_DATA,
831 D3D11_INPUT_PER_INSTANCE_DATA,
832 } D3D11_INPUT_CLASSIFICATION;
834 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
836 typedef struct D3D11_INPUT_ELEMENT_DESC
838 LPCSTR SemanticName;
839 UINT SemanticIndex;
840 DXGI_FORMAT Format;
841 UINT InputSlot;
842 UINT AlignedByteOffset;
843 D3D11_INPUT_CLASSIFICATION InputSlotClass;
844 UINT InstanceDataStepRate;
845 } D3D11_INPUT_ELEMENT_DESC;
847 typedef enum D3D11_MAP
849 D3D11_MAP_READ = 1,
850 D3D11_MAP_WRITE,
851 D3D11_MAP_READ_WRITE,
852 D3D11_MAP_WRITE_DISCARD,
853 D3D11_MAP_WRITE_NO_OVERWRITE
854 } D3D11_MAP;
856 typedef enum D3D11_MAP_FLAG
858 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
859 } D3D11_MAP_FLAG;
861 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
863 UINT64 NumPrimitivesWritten;
864 UINT64 PrimitivesStorageNeeded;
865 } D3D11_QUERY_DATA_SO_STATISTICS;
867 typedef struct D3D11_MAPPED_SUBRESOURCE
869 void *pData;
870 UINT RowPitch;
871 UINT DepthPitch;
872 } D3D11_MAPPED_SUBRESOURCE;
874 typedef enum D3D11_QUERY
876 D3D11_QUERY_EVENT,
877 D3D11_QUERY_OCCLUSION,
878 D3D11_QUERY_TIMESTAMP,
879 D3D11_QUERY_TIMESTAMP_DISJOINT,
880 D3D11_QUERY_PIPELINE_STATISTICS,
881 D3D11_QUERY_OCCLUSION_PREDICATE,
882 D3D11_QUERY_SO_STATISTICS,
883 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
884 D3D11_QUERY_SO_STATISTICS_STREAM0,
885 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
886 D3D11_QUERY_SO_STATISTICS_STREAM1,
887 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
888 D3D11_QUERY_SO_STATISTICS_STREAM2,
889 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
890 D3D11_QUERY_SO_STATISTICS_STREAM3,
891 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
892 } D3D11_QUERY;
894 typedef enum D3D11_QUERY_MISC_FLAG
896 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
897 } D3D11_QUERY_MISC_FLAG;
899 typedef enum D3D11_ASYNC_GETDATA_FLAG
901 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
902 } D3D11_ASYNC_GETDATA_FLAG;
904 typedef enum D3D11_RESOURCE_MISC_FLAG
906 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
907 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
908 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
909 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
910 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
911 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
912 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
913 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
914 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
915 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
916 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
917 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
918 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
919 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
920 } D3D11_RESOURCE_MISC_FLAG;
922 typedef struct D3D11_QUERY_DESC
924 D3D11_QUERY Query;
925 UINT MiscFlags;
926 } D3D11_QUERY_DESC;
928 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
929 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
930 cpp_quote(" CD3D11_QUERY_DESC() {}")
931 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
932 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
933 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
934 cpp_quote(" Query = query;")
935 cpp_quote(" MiscFlags = misc_flags;")
936 cpp_quote(" }")
937 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
938 cpp_quote(" return *this;")
939 cpp_quote(" }")
940 cpp_quote("};")
941 cpp_quote("#endif")
943 typedef struct D3D11_RASTERIZER_DESC
945 D3D11_FILL_MODE FillMode;
946 D3D11_CULL_MODE CullMode;
947 BOOL FrontCounterClockwise;
948 INT DepthBias;
949 FLOAT DepthBiasClamp;
950 FLOAT SlopeScaledDepthBias;
951 BOOL DepthClipEnable;
952 BOOL ScissorEnable;
953 BOOL MultisampleEnable;
954 BOOL AntialiasedLineEnable;
955 } D3D11_RASTERIZER_DESC;
957 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
958 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
959 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
960 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
961 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
962 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
963 cpp_quote(" CullMode = D3D11_CULL_BACK;")
964 cpp_quote(" FrontCounterClockwise = FALSE;")
965 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
966 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
967 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
968 cpp_quote(" DepthClipEnable = TRUE;")
969 cpp_quote(" ScissorEnable = FALSE;")
970 cpp_quote(" MultisampleEnable = FALSE;")
971 cpp_quote(" AntialiasedLineEnable = FALSE;")
972 cpp_quote(" }")
973 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
974 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
975 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
976 cpp_quote(" FillMode = fillMode;")
977 cpp_quote(" CullMode = cullMode;")
978 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
979 cpp_quote(" DepthBias = depthBias;")
980 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
981 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
982 cpp_quote(" DepthClipEnable = depthClipEnable;")
983 cpp_quote(" ScissorEnable = scissorEnable;")
984 cpp_quote(" MultisampleEnable = multisampleEnable;")
985 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
986 cpp_quote(" }")
987 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
988 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
989 cpp_quote("};")
990 cpp_quote("#endif")
992 typedef enum D3D11_RESOURCE_DIMENSION
994 D3D11_RESOURCE_DIMENSION_UNKNOWN,
995 D3D11_RESOURCE_DIMENSION_BUFFER,
996 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
997 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
998 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
999 } D3D11_RESOURCE_DIMENSION;
1001 typedef enum D3D11_RTV_DIMENSION
1003 D3D11_RTV_DIMENSION_UNKNOWN,
1004 D3D11_RTV_DIMENSION_BUFFER,
1005 D3D11_RTV_DIMENSION_TEXTURE1D,
1006 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
1007 D3D11_RTV_DIMENSION_TEXTURE2D,
1008 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
1009 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1010 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1011 D3D11_RTV_DIMENSION_TEXTURE3D,
1012 } D3D11_RTV_DIMENSION;
1014 typedef struct D3D11_SO_DECLARATION_ENTRY
1016 UINT Stream;
1017 LPCSTR SemanticName;
1018 UINT SemanticIndex;
1019 BYTE StartComponent;
1020 BYTE ComponentCount;
1021 BYTE OutputSlot;
1022 } D3D11_SO_DECLARATION_ENTRY;
1024 typedef enum D3D11_STENCIL_OP
1026 D3D11_STENCIL_OP_KEEP = 1,
1027 D3D11_STENCIL_OP_ZERO,
1028 D3D11_STENCIL_OP_REPLACE,
1029 D3D11_STENCIL_OP_INCR_SAT,
1030 D3D11_STENCIL_OP_DECR_SAT,
1031 D3D11_STENCIL_OP_INVERT,
1032 D3D11_STENCIL_OP_INCR,
1033 D3D11_STENCIL_OP_DECR
1034 } D3D11_STENCIL_OP;
1036 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1037 cpp_quote("}")
1038 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1039 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1040 cpp_quote("}")
1041 cpp_quote("extern \"C\"{")
1042 cpp_quote("#endif")
1044 typedef struct D3D11_SUBRESOURCE_DATA
1046 const void *pSysMem;
1047 UINT SysMemPitch;
1048 UINT SysMemSlicePitch;
1049 } D3D11_SUBRESOURCE_DATA;
1051 typedef struct D3D11_TEX1D_ARRAY_DSV
1053 UINT MipSlice;
1054 UINT FirstArraySlice;
1055 UINT ArraySize;
1056 } D3D11_TEX1D_ARRAY_DSV;
1058 typedef struct D3D11_TEX1D_ARRAY_RTV
1060 UINT MipSlice;
1061 UINT FirstArraySlice;
1062 UINT ArraySize;
1063 } D3D11_TEX1D_ARRAY_RTV;
1065 typedef struct D3D11_TEX1D_ARRAY_SRV
1067 UINT MostDetailedMip;
1068 UINT MipLevels;
1069 UINT FirstArraySlice;
1070 UINT ArraySize;
1071 } D3D11_TEX1D_ARRAY_SRV;
1073 typedef struct D3D11_TEX1D_ARRAY_UAV
1075 UINT MipSlice;
1076 UINT FirstArraySlice;
1077 UINT ArraySize;
1078 } D3D11_TEX1D_ARRAY_UAV;
1080 typedef struct D3D11_TEX1D_DSV
1082 UINT MipSlice;
1083 } D3D11_TEX1D_DSV;
1085 typedef struct D3D11_TEX1D_RTV
1087 UINT MipSlice;
1088 } D3D11_TEX1D_RTV;
1090 typedef struct D3D11_TEX1D_SRV
1092 UINT MostDetailedMip;
1093 UINT MipLevels;
1094 } D3D11_TEX1D_SRV;
1096 typedef struct D3D11_TEX1D_UAV
1098 UINT MipSlice;
1099 } D3D11_TEX1D_UAV;
1101 typedef struct D3D11_TEX2D_ARRAY_DSV
1103 UINT MipSlice;
1104 UINT FirstArraySlice;
1105 UINT ArraySize;
1106 } D3D11_TEX2D_ARRAY_DSV;
1108 typedef struct D3D11_TEX2D_ARRAY_RTV
1110 UINT MipSlice;
1111 UINT FirstArraySlice;
1112 UINT ArraySize;
1113 } D3D11_TEX2D_ARRAY_RTV;
1115 typedef struct D3D11_TEX2D_ARRAY_SRV
1117 UINT MostDetailedMip;
1118 UINT MipLevels;
1119 UINT FirstArraySlice;
1120 UINT ArraySize;
1121 } D3D11_TEX2D_ARRAY_SRV;
1123 typedef struct D3D11_TEX2D_ARRAY_UAV
1125 UINT MipSlice;
1126 UINT FirstArraySlice;
1127 UINT ArraySize;
1128 } D3D11_TEX2D_ARRAY_UAV;
1130 typedef struct D3D11_TEX2D_DSV
1132 UINT MipSlice;
1133 } D3D11_TEX2D_DSV;
1135 typedef struct D3D11_TEX2D_RTV
1137 UINT MipSlice;
1138 } D3D11_TEX2D_RTV;
1140 typedef struct D3D11_TEX2D_SRV
1142 UINT MostDetailedMip;
1143 UINT MipLevels;
1144 } D3D11_TEX2D_SRV;
1146 typedef struct D3D11_TEX2D_UAV
1148 UINT MipSlice;
1149 } D3D11_TEX2D_UAV;
1151 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1153 UINT FirstArraySlice;
1154 UINT ArraySize;
1155 } D3D11_TEX2DMS_ARRAY_DSV;
1157 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1159 UINT FirstArraySlice;
1160 UINT ArraySize;
1161 } D3D11_TEX2DMS_ARRAY_RTV;
1163 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1165 UINT FirstArraySlice;
1166 UINT ArraySize;
1167 } D3D11_TEX2DMS_ARRAY_SRV;
1169 typedef struct D3D11_TEX2DMS_DSV
1171 UINT UnusedField_NothingToDefine;
1172 } D3D11_TEX2DMS_DSV;
1174 typedef struct D3D11_TEX2DMS_RTV
1176 UINT UnusedField_NothingToDefine;
1177 } D3D11_TEX2DMS_RTV;
1179 typedef struct D3D11_TEX2DMS_SRV
1181 UINT UnusedField_NothingToDefine;
1182 } D3D11_TEX2DMS_SRV;
1184 typedef struct D3D11_TEX3D_RTV
1186 UINT MipSlice;
1187 UINT FirstWSlice;
1188 UINT WSize;
1189 } D3D11_TEX3D_RTV;
1191 typedef struct D3D11_TEX3D_SRV
1193 UINT MostDetailedMip;
1194 UINT MipLevels;
1195 } D3D11_TEX3D_SRV;
1197 typedef struct D3D11_TEX3D_UAV
1199 UINT MipSlice;
1200 UINT FirstWSlice;
1201 UINT WSize;
1202 } D3D11_TEX3D_UAV;
1204 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1206 UINT MostDetailedMip;
1207 UINT MipLevels;
1208 UINT First2DArrayFace;
1209 UINT NumCubes;
1210 } D3D11_TEXCUBE_ARRAY_SRV;
1212 typedef struct D3D11_TEXCUBE_SRV
1214 UINT MostDetailedMip;
1215 UINT MipLevels;
1216 } D3D11_TEXCUBE_SRV;
1218 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1220 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1221 D3D11_TEXTURE_ADDRESS_MIRROR,
1222 D3D11_TEXTURE_ADDRESS_CLAMP,
1223 D3D11_TEXTURE_ADDRESS_BORDER,
1224 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1225 } D3D11_TEXTURE_ADDRESS_MODE;
1227 typedef enum D3D11_UAV_DIMENSION
1229 D3D11_UAV_DIMENSION_UNKNOWN,
1230 D3D11_UAV_DIMENSION_BUFFER,
1231 D3D11_UAV_DIMENSION_TEXTURE1D,
1232 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1233 D3D11_UAV_DIMENSION_TEXTURE2D,
1234 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1235 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1236 } D3D11_UAV_DIMENSION;
1238 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1240 DXGI_FORMAT Format;
1241 D3D11_UAV_DIMENSION ViewDimension;
1243 union
1245 D3D11_BUFFER_UAV Buffer;
1246 D3D11_TEX1D_UAV Texture1D;
1247 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1248 D3D11_TEX2D_UAV Texture2D;
1249 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1250 D3D11_TEX3D_UAV Texture3D;
1252 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1254 typedef enum D3D11_USAGE
1256 D3D11_USAGE_DEFAULT,
1257 D3D11_USAGE_IMMUTABLE,
1258 D3D11_USAGE_DYNAMIC,
1259 D3D11_USAGE_STAGING,
1260 } D3D11_USAGE;
1262 typedef enum D3D11_BIND_FLAG
1264 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1265 D3D11_BIND_INDEX_BUFFER = 0x0002,
1266 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1267 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1268 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1269 D3D11_BIND_RENDER_TARGET = 0x0020,
1270 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1271 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1272 D3D11_BIND_DECODER = 0x0200,
1273 D3D11_BIND_VIDEO_ENCODER = 0x0400
1274 } D3D11_BIND_FLAG;
1276 typedef enum D3D11_CPU_ACCESS_FLAG
1278 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1279 D3D11_CPU_ACCESS_READ = 0x00020000
1280 } D3D11_CPU_ACCESS_FLAG;
1282 typedef struct D3D11_VIEWPORT
1284 FLOAT TopLeftX;
1285 FLOAT TopLeftY;
1286 FLOAT Width;
1287 FLOAT Height;
1288 FLOAT MinDepth;
1289 FLOAT MaxDepth;
1290 } D3D11_VIEWPORT;
1292 typedef enum D3D11_COLOR_WRITE_ENABLE
1294 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1295 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1296 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1297 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1298 D3D11_COLOR_WRITE_ENABLE_ALL =
1299 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1300 } D3D11_COLOR_WRITE_ENABLE;
1302 typedef enum D3D11_FORMAT_SUPPORT
1304 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1305 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1306 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1307 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1308 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1309 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1310 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1311 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1312 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1313 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1314 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1315 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1316 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1317 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1318 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1319 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1320 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1321 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1322 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1323 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1324 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1325 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1326 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1327 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1328 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1329 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1330 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1331 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1332 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1333 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1334 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1335 } D3D11_FORMAT_SUPPORT;
1337 typedef enum D3D11_CLEAR_FLAG
1339 D3D11_CLEAR_DEPTH = 0x0001L,
1340 D3D11_CLEAR_STENCIL = 0x0002L
1341 } D3D11_CLEAR_FLAG;
1343 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1345 BOOL BlendEnable;
1346 D3D11_BLEND SrcBlend;
1347 D3D11_BLEND DestBlend;
1348 D3D11_BLEND_OP BlendOp;
1349 D3D11_BLEND SrcBlendAlpha;
1350 D3D11_BLEND DestBlendAlpha;
1351 D3D11_BLEND_OP BlendOpAlpha;
1352 UINT8 RenderTargetWriteMask;
1353 } D3D11_RENDER_TARGET_BLEND_DESC;
1355 typedef struct D3D11_BLEND_DESC
1357 BOOL AlphaToCoverageEnable;
1358 BOOL IndependentBlendEnable;
1359 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1360 } D3D11_BLEND_DESC;
1362 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1363 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1364 cpp_quote(" CD3D11_BLEND_DESC() {}")
1365 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1366 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1367 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1368 cpp_quote(" IndependentBlendEnable = FALSE;")
1369 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1370 cpp_quote(" target->BlendEnable = FALSE;")
1371 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1372 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1373 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1374 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1375 cpp_quote(" }")
1376 cpp_quote(" }")
1377 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1378 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1379 cpp_quote("};" )
1380 cpp_quote("#endif" )
1382 typedef struct D3D11_BUFFER_DESC
1384 UINT ByteWidth;
1385 D3D11_USAGE Usage;
1386 UINT BindFlags;
1387 UINT CPUAccessFlags;
1388 UINT MiscFlags;
1389 UINT StructureByteStride;
1390 } D3D11_BUFFER_DESC;
1392 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1393 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1394 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1395 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1396 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1397 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1398 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1399 cpp_quote(" ByteWidth = byteWidth;")
1400 cpp_quote(" Usage = usage;")
1401 cpp_quote(" BindFlags = bindFlags;")
1402 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1403 cpp_quote(" MiscFlags = miscFlags;" )
1404 cpp_quote(" StructureByteStride = structureByteStride;")
1405 cpp_quote(" }")
1406 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1407 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1408 cpp_quote("};" )
1409 cpp_quote("#endif" )
1411 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1413 DXGI_FORMAT Format;
1414 D3D11_DSV_DIMENSION ViewDimension;
1415 UINT Flags;
1417 union
1419 D3D11_TEX1D_DSV Texture1D;
1420 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1421 D3D11_TEX2D_DSV Texture2D;
1422 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1423 D3D11_TEX2DMS_DSV Texture2DMS;
1424 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1426 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1428 typedef struct D3D11_DEPTH_STENCILOP_DESC
1430 D3D11_STENCIL_OP StencilFailOp;
1431 D3D11_STENCIL_OP StencilDepthFailOp;
1432 D3D11_STENCIL_OP StencilPassOp;
1433 D3D11_COMPARISON_FUNC StencilFunc;
1434 } D3D11_DEPTH_STENCILOP_DESC;
1436 typedef struct D3D11_DEPTH_STENCIL_DESC
1438 BOOL DepthEnable;
1439 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1440 D3D11_COMPARISON_FUNC DepthFunc;
1441 BOOL StencilEnable;
1442 UINT8 StencilReadMask;
1443 UINT8 StencilWriteMask;
1444 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1445 D3D11_DEPTH_STENCILOP_DESC BackFace;
1446 } D3D11_DEPTH_STENCIL_DESC;
1448 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1449 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1450 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1451 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1452 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1453 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1454 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1455 cpp_quote(" DepthEnable = TRUE;")
1456 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1457 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1458 cpp_quote(" StencilEnable = FALSE;")
1459 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1460 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1461 cpp_quote(" FrontFace = default_op;")
1462 cpp_quote(" BackFace = default_op;")
1463 cpp_quote(" }")
1464 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1465 cpp_quote(" BOOL depth_enable,")
1466 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1467 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1468 cpp_quote(" BOOL stencil_enable,")
1469 cpp_quote(" UINT8 stencil_read_mask,")
1470 cpp_quote(" UINT8 stencil_write_mask,")
1471 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1472 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1473 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1474 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1475 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1476 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1477 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1478 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1479 cpp_quote(" DepthEnable = depth_enable;")
1480 cpp_quote(" DepthWriteMask = depth_write_mask;")
1481 cpp_quote(" DepthFunc = depth_func;")
1482 cpp_quote(" StencilEnable = stencil_enable;")
1483 cpp_quote(" StencilReadMask = stencil_read_mask;")
1484 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1485 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1486 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1487 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1488 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1489 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1490 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1491 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1492 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1493 cpp_quote(" }")
1494 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1495 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1496 cpp_quote("};")
1497 cpp_quote("#endif")
1499 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1501 DXGI_FORMAT Format;
1502 D3D11_RTV_DIMENSION ViewDimension;
1504 union
1506 D3D11_BUFFER_RTV Buffer;
1507 D3D11_TEX1D_RTV Texture1D;
1508 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1509 D3D11_TEX2D_RTV Texture2D;
1510 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1511 D3D11_TEX2DMS_RTV Texture2DMS;
1512 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1513 D3D11_TEX3D_RTV Texture3D;
1515 } D3D11_RENDER_TARGET_VIEW_DESC;
1517 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1518 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1519 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1520 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1521 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1522 cpp_quote(" Format = format;")
1523 cpp_quote(" ViewDimension = dim;")
1524 cpp_quote(" switch(dim) {")
1525 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1526 cpp_quote(" Buffer.FirstElement = mip_slice;")
1527 cpp_quote(" Buffer.NumElements = first_slice;")
1528 cpp_quote(" break;")
1529 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1530 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1531 cpp_quote(" break;")
1532 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1533 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1534 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1535 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1536 cpp_quote(" break;")
1537 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1538 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1539 cpp_quote(" break;")
1540 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1541 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1542 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1543 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1544 cpp_quote(" break;")
1545 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1546 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1547 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1548 cpp_quote(" break;")
1549 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1550 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1551 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1552 cpp_quote(" Texture3D.WSize = array_size;")
1553 cpp_quote(" break;")
1554 cpp_quote(" default:")
1555 cpp_quote(" break;")
1556 cpp_quote(" }")
1557 cpp_quote(" }")
1558 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1559 cpp_quote(" UINT elem_cnt) {")
1560 cpp_quote(" Format = format;")
1561 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1562 cpp_quote(" Buffer.FirstElement = first_elem;")
1563 cpp_quote(" Buffer.NumElements = elem_cnt;")
1564 cpp_quote(" }")
1565 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1566 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1567 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1568 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1569 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1570 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1571 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1572 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1573 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1574 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1575 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1576 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1577 cpp_quote(" return *this;")
1578 cpp_quote(" }")
1579 cpp_quote("};")
1580 cpp_quote("#endif")
1583 typedef struct D3D11_SAMPLER_DESC
1585 D3D11_FILTER Filter;
1586 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1587 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1588 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1589 FLOAT MipLODBias;
1590 UINT MaxAnisotropy;
1591 D3D11_COMPARISON_FUNC ComparisonFunc;
1592 FLOAT BorderColor[4];
1593 FLOAT MinLOD;
1594 FLOAT MaxLOD;
1595 } D3D11_SAMPLER_DESC;
1597 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1598 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1599 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1600 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1601 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1602 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1603 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1604 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1605 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1606 cpp_quote(" MipLODBias = 0;")
1607 cpp_quote(" MaxAnisotropy = 1;")
1608 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1609 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1610 cpp_quote(" MinLOD = -3.402823466e+38f;")
1611 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1612 cpp_quote(" }")
1613 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1614 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1615 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1616 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1617 cpp_quote(" Filter = filter;")
1618 cpp_quote(" AddressU = addressU;")
1619 cpp_quote(" AddressV = addressV;")
1620 cpp_quote(" AddressW = addressW;")
1621 cpp_quote(" MipLODBias = mipLODBias;")
1622 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1623 cpp_quote(" ComparisonFunc = comparisonFunc;")
1624 cpp_quote(" if(borderColor) {")
1625 cpp_quote(" BorderColor[0] = borderColor[0];")
1626 cpp_quote(" BorderColor[1] = borderColor[1];")
1627 cpp_quote(" BorderColor[2] = borderColor[2];")
1628 cpp_quote(" BorderColor[3] = borderColor[3];")
1629 cpp_quote(" }else {")
1630 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1631 cpp_quote(" }")
1632 cpp_quote(" MinLOD = minLOD;")
1633 cpp_quote(" MaxLOD = maxLOD;")
1634 cpp_quote(" }")
1635 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1636 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1637 cpp_quote("};")
1638 cpp_quote("#endif")
1640 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1642 DXGI_FORMAT Format;
1643 D3D11_SRV_DIMENSION ViewDimension;
1645 union
1647 D3D11_BUFFER_SRV Buffer;
1648 D3D11_TEX1D_SRV Texture1D;
1649 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1650 D3D11_TEX2D_SRV Texture2D;
1651 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1652 D3D11_TEX2DMS_SRV Texture2DMS;
1653 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1654 D3D11_TEX3D_SRV Texture3D;
1655 D3D11_TEXCUBE_SRV TextureCube;
1656 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1657 D3D11_BUFFEREX_SRV BufferEx;
1659 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1661 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1662 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1663 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1664 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1665 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1666 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1667 cpp_quote(" Format = format;")
1668 cpp_quote(" ViewDimension = dim;")
1669 cpp_quote(" switch(ViewDimension) {")
1670 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1671 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1672 cpp_quote(" Buffer.NumElements = mip_levels;")
1673 cpp_quote(" break;")
1674 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1675 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1676 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1677 cpp_quote(" break;")
1678 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1679 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1680 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1681 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1682 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1683 cpp_quote(" break;")
1684 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1685 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1686 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1687 cpp_quote(" break;")
1688 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1689 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1690 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1691 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1692 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1693 cpp_quote(" break;")
1694 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1695 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1696 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1697 cpp_quote(" break;")
1698 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1699 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1700 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1701 cpp_quote(" break;")
1702 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1703 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1704 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1705 cpp_quote(" break;")
1706 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1707 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1708 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1709 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1710 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1711 cpp_quote(" break;")
1712 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1713 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1714 cpp_quote(" BufferEx.NumElements = mip_levels;")
1715 cpp_quote(" BufferEx.Flags = flags;")
1716 cpp_quote(" break;")
1717 cpp_quote(" default:")
1718 cpp_quote(" break;")
1719 cpp_quote(" }")
1720 cpp_quote(" }")
1721 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1722 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1723 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1724 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1725 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1726 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1727 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1728 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1729 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1730 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1731 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1732 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1733 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1734 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1735 cpp_quote(" return *this;")
1736 cpp_quote(" }")
1737 cpp_quote("};")
1738 cpp_quote("#endif")
1740 typedef struct D3D11_TEXTURE1D_DESC
1742 UINT Width;
1743 UINT MipLevels;
1744 UINT ArraySize;
1745 DXGI_FORMAT Format;
1746 D3D11_USAGE Usage;
1747 UINT BindFlags;
1748 UINT CPUAccessFlags;
1749 UINT MiscFlags;
1750 } D3D11_TEXTURE1D_DESC;
1752 typedef struct D3D11_TEXTURE2D_DESC
1754 UINT Width;
1755 UINT Height;
1756 UINT MipLevels;
1757 UINT ArraySize;
1758 DXGI_FORMAT Format;
1759 DXGI_SAMPLE_DESC SampleDesc;
1760 D3D11_USAGE Usage;
1761 UINT BindFlags;
1762 UINT CPUAccessFlags;
1763 UINT MiscFlags;
1764 } D3D11_TEXTURE2D_DESC;
1766 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1767 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1768 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1769 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1770 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1771 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1772 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1773 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1774 cpp_quote(" Width = width;")
1775 cpp_quote(" Height = height;")
1776 cpp_quote(" MipLevels = mipLevels;")
1777 cpp_quote(" ArraySize = arraySize;")
1778 cpp_quote(" Format = format;")
1779 cpp_quote(" SampleDesc.Count = sampleCount;")
1780 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1781 cpp_quote(" Usage = usage;")
1782 cpp_quote(" BindFlags = bindFlags;")
1783 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1784 cpp_quote(" MiscFlags = miscFlags;")
1785 cpp_quote(" }" )
1786 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1787 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1788 cpp_quote("};")
1789 cpp_quote("#endif")
1791 typedef struct D3D11_TEXTURE3D_DESC
1793 UINT Width;
1794 UINT Height;
1795 UINT Depth;
1796 UINT MipLevels;
1797 DXGI_FORMAT Format;
1798 D3D11_USAGE Usage;
1799 UINT BindFlags;
1800 UINT CPUAccessFlags;
1801 UINT MiscFlags;
1802 } D3D11_TEXTURE3D_DESC;
1804 typedef struct D3D11_VIDEO_DECODER_DESC
1806 GUID Guid;
1807 UINT SampleWidth;
1808 UINT SampleHeight;
1809 DXGI_FORMAT OutputFormat;
1810 } D3D11_VIDEO_DECODER_DESC;
1812 typedef struct D3D11_VIDEO_DECODER_CONFIG
1814 GUID guidConfigBitstreamEncryption;
1815 GUID guidConfigMBcontrolEncryption;
1816 GUID guidConfigResidDiffEncryption;
1817 UINT ConfigBitstreamRaw;
1818 UINT ConfigMBcontrolRasterOrder;
1819 UINT ConfigResidDiffHost;
1820 UINT ConfigSpatialResid8;
1821 UINT ConfigResid8Subtraction;
1822 UINT ConfigSpatialHost8or9Clipping;
1823 UINT ConfigSpatialResidInterleaved;
1824 UINT ConfigIntraResidUnsigned;
1825 UINT ConfigResidDiffAccelerator;
1826 UINT ConfigHostInverseScan;
1827 UINT ConfigSpecificIDCT;
1828 UINT Config4GroupedCoefs;
1829 USHORT ConfigMinRenderTargetBuffCount;
1830 USHORT ConfigDecoderSpecific;
1831 } D3D11_VIDEO_DECODER_CONFIG;
1833 typedef enum D3D11_VIDEO_FRAME_FORMAT
1835 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1836 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1837 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1838 } D3D11_VIDEO_FRAME_FORMAT;
1840 typedef enum D3D11_VIDEO_USAGE
1842 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1843 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1844 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1845 } D3D11_VIDEO_USAGE;
1847 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1849 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1850 DXGI_RATIONAL InputFrameRate;
1851 UINT InputWidth;
1852 UINT InputHeight;
1853 DXGI_RATIONAL OutputFrameRate;
1854 UINT OutputWidth;
1855 UINT OutputHeight;
1856 D3D11_VIDEO_USAGE Usage;
1857 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1859 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1861 UINT DeviceCaps;
1862 UINT FeatureCaps;
1863 UINT FilterCaps;
1864 UINT InputFormatCaps;
1865 UINT AutoStreamCaps;
1866 UINT StereoCaps;
1867 UINT RateConversionCapsCount;
1868 UINT MaxInputStreams;
1869 UINT MaxStreamStates;
1870 } D3D11_VIDEO_PROCESSOR_CAPS;
1872 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1874 UINT PastFrames;
1875 UINT FutureFrames;
1876 UINT ProcessorCaps;
1877 UINT ITelecineCaps;
1878 UINT CustomRateCount;
1879 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1881 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1883 DXGI_RATIONAL CustomRate;
1884 UINT OutputFrames;
1885 BOOL InputInterlaced;
1886 UINT InputFramesOrFields;
1887 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1889 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1891 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1892 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1893 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1894 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1895 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1896 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1897 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1898 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1899 } D3D11_VIDEO_PROCESSOR_FILTER;
1901 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1903 int Minimum;
1904 int Maximum;
1905 int Default;
1906 float Multiplier;
1907 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1909 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1911 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1912 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1913 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1914 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1916 typedef enum D3D11_VDOV_DIMENSION
1918 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1919 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1920 } D3D11_VDOV_DIMENSION;
1922 typedef struct D3D11_TEX2D_VDOV
1924 UINT ArraySlice;
1925 } D3D11_TEX2D_VDOV;
1927 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1929 GUID DecodeProfile;
1930 D3D11_VDOV_DIMENSION ViewDimension;
1931 union {
1932 D3D11_TEX2D_VDOV Texture2D;
1934 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1936 typedef enum D3D11_VPIV_DIMENSION
1938 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1939 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1940 } D3D11_VPIV_DIMENSION;
1942 typedef struct D3D11_TEX2D_VPIV
1944 UINT MipSlice;
1945 UINT ArraySlice;
1946 } D3D11_TEX2D_VPIV;
1948 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1950 UINT FourCC;
1951 D3D11_VPIV_DIMENSION ViewDimension;
1952 union {
1953 D3D11_TEX2D_VPIV Texture2D;
1955 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1957 typedef enum D3D11_VPOV_DIMENSION
1959 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1960 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1961 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1962 } D3D11_VPOV_DIMENSION;
1964 typedef struct D3D11_TEX2D_VPOV
1966 UINT MipSlice;
1967 } D3D11_TEX2D_VPOV;
1969 typedef struct D3D11_TEX2D_ARRAY_VPOV
1971 UINT MipSlice;
1972 UINT FirstArraySlice;
1973 UINT ArraySize;
1974 } D3D11_TEX2D_ARRAY_VPOV;
1976 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1978 D3D11_VPOV_DIMENSION ViewDimension;
1979 union {
1980 D3D11_TEX2D_VPOV Texture2D;
1981 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1983 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1985 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1987 UINT Caps;
1988 UINT KeyExchangeTypeCount;
1989 UINT BlockAlignmentSize;
1990 ULONGLONG ProtectedMemorySize;
1991 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1993 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1995 UINT NumEncryptedBytesAtBeginning;
1996 UINT NumBytesInSkipPattern;
1997 UINT NumBytesInEncryptPattern;
1998 } D3D11_ENCRYPTED_BLOCK_INFO;
2000 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2002 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
2003 UINT BufferIndex;
2004 UINT DataOffset;
2005 UINT DataSize;
2006 UINT FirstMBaddress;
2007 UINT NumMBsInBuffer;
2008 UINT Width;
2009 UINT Height;
2010 UINT Stride;
2011 UINT ReservedBits;
2012 void *pIV;
2013 UINT IVSize;
2014 BOOL PartialEncryption;
2015 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2016 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2018 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2020 UINT Function;
2021 void *pPrivateInputData;
2022 UINT PrivateInputDataSize;
2023 void *pPrivateOutputData;
2024 UINT PrivateOutputDataSize;
2025 UINT ResourceCount;
2026 ID3D11Resource **ppResourceList;
2027 } D3D11_VIDEO_DECODER_EXTENSION;
2029 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2031 float Y;
2032 float Cb;
2033 float Cr;
2034 float A;
2035 } D3D11_VIDEO_COLOR_YCbCrA;
2037 typedef struct D3D11_VIDEO_COLOR_RGBA
2039 float R;
2040 float G;
2041 float B;
2042 float A;
2043 } D3D11_VIDEO_COLOR_RGBA;
2045 typedef struct D3D11_VIDEO_COLOR
2047 union
2049 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2050 D3D11_VIDEO_COLOR_RGBA RGBA;
2052 } D3D11_VIDEO_COLOR;
2054 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2056 UINT Usage : 1;
2057 UINT RGB_Range : 1;
2058 UINT YCbCr_Matrix : 1;
2059 UINT YCbCr_xvYCC : 1;
2060 UINT Nominal_Range : 2;
2061 UINT Reserved : 26;
2062 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2064 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2066 BOOL Enable;
2067 UINT OutputIndex;
2068 UINT InputFrameOrField;
2069 UINT PastFrames;
2070 UINT FutureFrames;
2071 ID3D11VideoProcessorInputView **ppPastSurfaces;
2072 ID3D11VideoProcessorInputView *pInputSurface;
2073 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2074 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2075 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2076 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2077 } D3D11_VIDEO_PROCESSOR_STREAM;
2079 typedef struct D3D11_OMAC
2081 BYTE Omac[D3D11_OMAC_SIZE];
2082 } D3D11_OMAC;
2084 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2086 D3D11_OMAC omac;
2087 GUID ConfigureType;
2088 HANDLE hChannel;
2089 UINT SequenceNumber;
2090 HRESULT ReturnCode;
2091 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2093 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2095 UINT64 Frequency;
2096 BOOL Disjoint;
2097 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2099 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2101 UINT64 IAVertices;
2102 UINT64 IAPrimitives;
2103 UINT64 VSInvocations;
2104 UINT64 GSInvocations;
2105 UINT64 GSPrimitives;
2106 UINT64 CInvocations;
2107 UINT64 CPrimitives;
2108 UINT64 PSInvocations;
2109 UINT64 HSInvocations;
2110 UINT64 DSInvocations;
2111 UINT64 CSInvocations;
2112 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2114 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2116 UINT VertexCountPerInstance;
2117 UINT InstanceCount;
2118 UINT StartVertexLocation;
2119 UINT StartInstanceLocation;
2120 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2122 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2124 UINT IndexCountPerInstance;
2125 UINT InstanceCount;
2126 UINT StartIndexLocation;
2127 INT BaseVertexLocation;
2128 UINT StartInstanceLocation;
2129 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2131 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2133 D3D11_OMAC omac;
2134 GUID ConfigureType;
2135 HANDLE hChannel;
2136 UINT SequenceNumber;
2137 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2139 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2141 GUID QueryType;
2142 HANDLE hChannel;
2143 UINT SequenceNumber;
2144 } D3D11_AUTHENTICATED_QUERY_INPUT;
2146 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2148 D3D11_OMAC omac;
2149 GUID QueryType;
2150 HANDLE hChannel;
2151 UINT SequenceNumber;
2152 HRESULT ReturnCode;
2153 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2155 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2157 struct
2159 UINT ProtectionEnabled : 1;
2160 UINT OverlayOrFullscreenRequired : 1;
2161 UINT Reserved : 30;
2162 } Flags;
2163 UINT Value;
2164 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2166 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2168 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2169 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2170 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2172 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2174 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2175 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2176 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2178 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2180 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2181 HANDLE DeviceHandle;
2182 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2184 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2186 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2187 HANDLE DecoderHandle;
2188 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2190 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2192 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2193 HANDLE DecoderHandle;
2194 HANDLE CryptoSessionHandle;
2195 HANDLE DeviceHandle;
2196 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2198 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2200 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2201 UINT RestrictedSharedResourceProcessCount;
2202 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2204 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2206 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2207 UINT ProcessIndex;
2208 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2210 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2212 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2213 UINT ProcessIndex;
2214 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2215 HANDLE ProcessHandle;
2216 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2218 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2220 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2221 UINT UnrestrictedProtectedSharedResourceCount;
2222 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2224 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2226 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2227 HANDLE DeviceHandle;
2228 HANDLE CryptoSessionHandle;
2229 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2231 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2233 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2234 HANDLE DeviceHandle;
2235 HANDLE CryptoSessionHandle;
2236 UINT OutputIDCount;
2237 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2239 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2241 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2242 HANDLE DeviceHandle;
2243 HANDLE CryptoSessionHandle;
2244 UINT OutputIDIndex;
2245 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2247 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2249 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2250 HANDLE DeviceHandle;
2251 HANDLE CryptoSessionHandle;
2252 UINT OutputIDIndex;
2253 UINT64 OutputID;
2254 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2256 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2258 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2259 D3D11_BUS_TYPE BusType;
2260 BOOL AccessibleInContiguousBlocks;
2261 BOOL AccessibleInNonContiguousBlocks;
2262 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2264 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2266 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2267 UINT EncryptionGuidCount;
2268 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2270 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2272 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2273 UINT EncryptionGuidIndex;
2274 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2276 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2278 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2279 UINT EncryptionGuidIndex;
2280 GUID EncryptionGuid;
2281 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2283 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2285 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2286 GUID EncryptionGuid;
2287 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2289 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2291 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2292 UINT StartSequenceQuery;
2293 UINT StartSequenceConfigure;
2294 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2296 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2298 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2299 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2300 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2302 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2304 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2305 HANDLE DecoderHandle;
2306 HANDLE CryptoSessionHandle;
2307 HANDLE DeviceHandle;
2308 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2310 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2312 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2313 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2314 HANDLE ProcessHandle;
2315 BOOL AllowAccess;
2316 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2318 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2320 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2321 GUID EncryptionGuid;
2322 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2325 object,
2326 local,
2327 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2329 interface ID3D11DeviceChild : IUnknown
2331 void GetDevice(
2332 [out] ID3D11Device **ppDevice);
2333 HRESULT GetPrivateData(
2334 [in] REFGUID guid,
2335 [in, out] UINT *pDataSize,
2336 [out] void *pData);
2337 HRESULT SetPrivateData(
2338 [in] REFGUID guid,
2339 [in] UINT DataSize,
2340 [in] const void *pData);
2341 HRESULT SetPrivateDataInterface(
2342 [in] REFGUID guid,
2343 [in] const IUnknown *pData);
2347 object,
2348 local,
2349 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2351 interface ID3D11Asynchronous : ID3D11DeviceChild
2353 UINT GetDataSize();
2357 object,
2358 local,
2359 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2361 interface ID3D11Query : ID3D11Asynchronous
2363 void GetDesc(
2364 [out] D3D11_QUERY_DESC *pDesc);
2368 object,
2369 local,
2370 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2372 interface ID3D11Resource : ID3D11DeviceChild
2374 void GetType(
2375 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2376 void SetEvictionPriority(
2377 [in] UINT EvictionPriority);
2378 UINT GetEvictionPriority();
2382 object,
2383 local,
2384 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2386 interface ID3D11View : ID3D11DeviceChild
2388 void GetResource(
2389 [out] ID3D11Resource **ppResource);
2393 object,
2394 local,
2395 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2397 interface ID3D11BlendState : ID3D11DeviceChild
2399 void GetDesc(
2400 [out] D3D11_BLEND_DESC *pDesc);
2404 object,
2405 local,
2406 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2408 interface ID3D11Buffer : ID3D11Resource
2410 void GetDesc(
2411 [out] D3D11_BUFFER_DESC *pDesc);
2415 object,
2416 local,
2417 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2419 interface ID3D11ClassInstance : ID3D11DeviceChild
2421 void GetClassLinkage(
2422 [out] ID3D11ClassLinkage **ppLinkage);
2423 void GetDesc(
2424 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2425 void GetInstanceName(
2426 [out] LPSTR pInstanceName,
2427 [in, out] SIZE_T *pBufferLength);
2428 void GetTypeName(
2429 [out] LPSTR pTypeName,
2430 [in, out] SIZE_T *pBufferLength);
2434 object,
2435 local,
2436 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2438 interface ID3D11ClassLinkage : ID3D11DeviceChild
2440 HRESULT GetClassInstance(
2441 [in] LPCSTR pClassInstanceName,
2442 [in] UINT InstanceIndex,
2443 [out] ID3D11ClassInstance **ppInstance);
2444 HRESULT CreateClassInstance(
2445 [in] LPCSTR pClassTypeName,
2446 [in] UINT ConstantBufferOffset,
2447 [in] UINT ConstantVectorOffset,
2448 [in] UINT TextureOffset,
2449 [in] UINT SamplerOffset,
2450 [out] ID3D11ClassInstance **ppInstance);
2454 object,
2455 local,
2456 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2458 interface ID3D11CommandList : ID3D11DeviceChild
2460 UINT GetContextFlags();
2464 object,
2465 local,
2466 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2468 interface ID3D11ComputeShader : ID3D11DeviceChild
2473 object,
2474 local,
2475 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2477 interface ID3D11Counter : ID3D11Asynchronous
2479 void GetDesc(
2480 [out] D3D11_COUNTER_DESC *pDesc);
2484 object,
2485 local,
2486 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2488 interface ID3D11DepthStencilState : ID3D11DeviceChild
2490 void GetDesc(
2491 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2495 object,
2496 local,
2497 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2499 interface ID3D11DepthStencilView : ID3D11View
2501 void GetDesc(
2502 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2506 object,
2507 local,
2508 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2510 interface ID3D11DomainShader : ID3D11DeviceChild
2515 object,
2516 local,
2517 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2519 interface ID3D11GeometryShader : ID3D11DeviceChild
2524 object,
2525 local,
2526 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2528 interface ID3D11HullShader : ID3D11DeviceChild
2533 object,
2534 local,
2535 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2537 interface ID3D11InputLayout : ID3D11DeviceChild
2542 object,
2543 local,
2544 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2546 interface ID3D11PixelShader : ID3D11DeviceChild
2551 object,
2552 local,
2553 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2555 interface ID3D11Predicate : ID3D11Query
2560 object,
2561 local,
2562 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2564 interface ID3D11RasterizerState : ID3D11DeviceChild
2566 void GetDesc(
2567 [out] D3D11_RASTERIZER_DESC *pDesc);
2571 object,
2572 local,
2573 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2575 interface ID3D11RenderTargetView : ID3D11View
2577 void GetDesc(
2578 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2582 object,
2583 local,
2584 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2586 interface ID3D11SamplerState : ID3D11DeviceChild
2588 void GetDesc(
2589 [out] D3D11_SAMPLER_DESC *pDesc);
2593 object,
2594 local,
2595 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2597 interface ID3D11ShaderResourceView : ID3D11View
2599 void GetDesc(
2600 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2604 object,
2605 local,
2606 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2608 interface ID3D11Texture1D : ID3D11Resource
2610 void GetDesc(
2611 [out] D3D11_TEXTURE1D_DESC *pDesc);
2615 object,
2616 local,
2617 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2619 interface ID3D11Texture2D : ID3D11Resource
2621 void GetDesc(
2622 [out] D3D11_TEXTURE2D_DESC *pDesc);
2626 object,
2627 local,
2628 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2630 interface ID3D11Texture3D : ID3D11Resource
2632 void GetDesc(
2633 [out] D3D11_TEXTURE3D_DESC *pDesc);
2637 object,
2638 local,
2639 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2641 interface ID3D11UnorderedAccessView : ID3D11View
2643 void GetDesc(
2644 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2648 object,
2649 local,
2650 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2652 interface ID3D11VertexShader : ID3D11DeviceChild
2657 object,
2658 local,
2659 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2661 interface ID3D11DeviceContext : ID3D11DeviceChild
2663 void VSSetConstantBuffers(
2664 [in] UINT StartSlot,
2665 [in] UINT NumBuffers,
2666 [in] ID3D11Buffer *const *ppConstantBuffers);
2667 void PSSetShaderResources(
2668 [in] UINT StartSlot,
2669 [in] UINT NumViews,
2670 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2671 void PSSetShader(
2672 [in] ID3D11PixelShader *pPixelShader,
2673 [in] ID3D11ClassInstance *const *ppClassInstances,
2674 UINT NumClassInstances);
2675 void PSSetSamplers(
2676 [in] UINT StartSlot,
2677 [in] UINT NumSamplers,
2678 [in] ID3D11SamplerState *const *ppSamplers);
2679 void VSSetShader(
2680 [in] ID3D11VertexShader *pVertexShader,
2681 [in] ID3D11ClassInstance *const *ppClassInstances,
2682 UINT NumClassInstances);
2683 void DrawIndexed(
2684 [in] UINT IndexCount,
2685 [in] UINT StartIndexLocation,
2686 [in] INT BaseVertexLocation);
2687 void Draw(
2688 [in] UINT VertexCount,
2689 [in] UINT StartVertexLocation);
2690 HRESULT Map(
2691 [in] ID3D11Resource *pResource,
2692 [in] UINT Subresource,
2693 [in] D3D11_MAP MapType,
2694 [in] UINT MapFlags,
2695 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2696 void Unmap(
2697 [in] ID3D11Resource *pResource,
2698 [in] UINT Subresource);
2699 void PSSetConstantBuffers(
2700 [in] UINT StartSlot,
2701 [in] UINT NumBuffers,
2702 [in] ID3D11Buffer *const *ppConstantBuffers);
2703 void IASetInputLayout(
2704 [in] ID3D11InputLayout *pInputLayout);
2705 void IASetVertexBuffers(
2706 [in] UINT StartSlot,
2707 [in] UINT NumBuffers,
2708 [in] ID3D11Buffer *const *ppVertexBuffers,
2709 [in] const UINT *pStrides,
2710 [in] const UINT *pOffsets);
2711 void IASetIndexBuffer(
2712 [in] ID3D11Buffer *pIndexBuffer,
2713 [in] DXGI_FORMAT Format,
2714 [in] UINT Offset);
2715 void DrawIndexedInstanced(
2716 [in] UINT IndexCountPerInstance,
2717 [in] UINT InstanceCount,
2718 [in] UINT StartIndexLocation,
2719 [in] INT BaseVertexLocation,
2720 [in] UINT StartInstanceLocation);
2721 void DrawInstanced(
2722 [in] UINT VertexCountPerInstance,
2723 [in] UINT InstanceCount,
2724 [in] UINT StartVertexLocation,
2725 [in] UINT StartInstanceLocation);
2726 void GSSetConstantBuffers(
2727 [in] UINT StartSlot,
2728 [in] UINT NumBuffers,
2729 [in] ID3D11Buffer *const *ppConstantBuffers);
2730 void GSSetShader(
2731 [in] ID3D11GeometryShader *pShader,
2732 [in] ID3D11ClassInstance *const *ppClassInstances,
2733 UINT NumClassInstances);
2734 void IASetPrimitiveTopology(
2735 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2736 void VSSetShaderResources(
2737 [in] UINT StartSlot,
2738 [in] UINT NumViews,
2739 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2740 void VSSetSamplers(
2741 [in] UINT StartSlot,
2742 [in] UINT NumSamplers,
2743 [in] ID3D11SamplerState *const *ppSamplers);
2744 void Begin(
2745 [in] ID3D11Asynchronous *pAsync);
2746 void End(
2747 [in] ID3D11Asynchronous *pAsync);
2748 HRESULT GetData(
2749 [in] ID3D11Asynchronous *pAsync,
2750 [in] void *pData,
2751 [in] UINT DataSize,
2752 [in] UINT GetDataFlags);
2753 void SetPredication(
2754 [in] ID3D11Predicate *pPredicate,
2755 [in] BOOL PredicateValue);
2756 void GSSetShaderResources(
2757 [in] UINT StartSlot,
2758 [in] UINT NumViews,
2759 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2760 void GSSetSamplers(
2761 [in] UINT StartSlot,
2762 [in] UINT NumSamplers,
2763 [in] ID3D11SamplerState *const *ppSamplers);
2764 void OMSetRenderTargets(
2765 [in] UINT NumViews,
2766 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2767 [in] ID3D11DepthStencilView *pDepthStencilView);
2768 void OMSetRenderTargetsAndUnorderedAccessViews(
2769 [in] UINT NumRTVs,
2770 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2771 [in] ID3D11DepthStencilView *pDepthStencilView,
2772 [in] UINT UAVStartSlot,
2773 [in] UINT NumUAVs,
2774 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2775 [in] const UINT *pUAVInitialCounts);
2776 void OMSetBlendState(
2777 [in] ID3D11BlendState *pBlendState,
2778 [in] const FLOAT BlendFactor[4],
2779 [in] UINT SampleMask);
2780 void OMSetDepthStencilState(
2781 [in] ID3D11DepthStencilState *pDepthStencilState,
2782 [in] UINT StencilRef);
2783 void SOSetTargets(
2784 [in] UINT NumBuffers,
2785 [in] ID3D11Buffer *const *ppSOTargets,
2786 [in] const UINT *pOffsets);
2787 void DrawAuto();
2788 void DrawIndexedInstancedIndirect(
2789 [in] ID3D11Buffer *pBufferForArgs,
2790 [in] UINT AlignedByteOffsetForArgs);
2791 void DrawInstancedIndirect(
2792 [in] ID3D11Buffer *pBufferForArgs,
2793 [in] UINT AlignedByteOffsetForArgs);
2794 void Dispatch(
2795 [in] UINT ThreadGroupCountX,
2796 [in] UINT ThreadGroupCountY,
2797 [in] UINT ThreadGroupCountZ);
2798 void DispatchIndirect(
2799 [in] ID3D11Buffer *pBufferForArgs,
2800 [in] UINT AlignedByteOffsetForArgs);
2801 void RSSetState(
2802 [in] ID3D11RasterizerState *pRasterizerState);
2803 void RSSetViewports(
2804 [in] UINT NumViewports,
2805 [in] const D3D11_VIEWPORT *pViewports);
2806 void RSSetScissorRects(
2807 [in] UINT NumRects,
2808 [in] const D3D11_RECT *pRects);
2809 void CopySubresourceRegion(
2810 [in] ID3D11Resource *pDstResource,
2811 [in] UINT DstSubresource,
2812 [in] UINT DstX,
2813 [in] UINT DstY,
2814 [in] UINT DstZ,
2815 [in] ID3D11Resource *pSrcResource,
2816 [in] UINT SrcSubresource,
2817 [in] const D3D11_BOX *pSrcBox);
2818 void CopyResource(
2819 [in] ID3D11Resource *pDstResource,
2820 [in] ID3D11Resource *pSrcResource);
2821 void UpdateSubresource(
2822 [in] ID3D11Resource *pDstResource,
2823 [in] UINT DstSubresource,
2824 [in] const D3D11_BOX *pDstBox,
2825 [in] const void *pSrcData,
2826 [in] UINT SrcRowPitch,
2827 [in] UINT SrcDepthPitch);
2828 void CopyStructureCount(
2829 [in] ID3D11Buffer *pDstBuffer,
2830 [in] UINT DstAlignedByteOffset,
2831 [in] ID3D11UnorderedAccessView *pSrcView);
2832 void ClearRenderTargetView(
2833 [in] ID3D11RenderTargetView *pRenderTargetView,
2834 [in] const FLOAT ColorRGBA[4]);
2835 void ClearUnorderedAccessViewUint(
2836 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2837 [in] const UINT Values[4]);
2838 void ClearUnorderedAccessViewFloat(
2839 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2840 [in] const FLOAT Values[4]);
2841 void ClearDepthStencilView(
2842 [in] ID3D11DepthStencilView *pDepthStencilView,
2843 [in] UINT ClearFlags,
2844 [in] FLOAT Depth,
2845 [in] UINT8 Stencil);
2846 void GenerateMips(
2847 [in] ID3D11ShaderResourceView *pShaderResourceView);
2848 void SetResourceMinLOD(
2849 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2850 FLOAT GetResourceMinLOD(
2851 [in] ID3D11Resource *pResource);
2852 void ResolveSubresource(
2853 [in] ID3D11Resource *pDstResource,
2854 [in] UINT DstSubresource,
2855 [in] ID3D11Resource *pSrcResource,
2856 [in] UINT SrcSubresource,
2857 [in] DXGI_FORMAT Format);
2858 void ExecuteCommandList(
2859 [in] ID3D11CommandList *pCommandList,
2860 BOOL RestoreContextState);
2861 void HSSetShaderResources(
2862 [in] UINT StartSlot,
2863 [in] UINT NumViews,
2864 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2865 void HSSetShader(
2866 [in] ID3D11HullShader *pHullShader,
2867 [in] ID3D11ClassInstance *const *ppClassInstances,
2868 UINT NumClassInstances);
2869 void HSSetSamplers(
2870 [in] UINT StartSlot,
2871 [in] UINT NumSamplers,
2872 [in] ID3D11SamplerState *const *ppSamplers);
2873 void HSSetConstantBuffers(
2874 [in] UINT StartSlot,
2875 [in] UINT NumBuffers,
2876 [in] ID3D11Buffer *const *ppConstantBuffers);
2877 void DSSetShaderResources(
2878 [in] UINT StartSlot,
2879 [in] UINT NumViews,
2880 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2881 void DSSetShader(
2882 [in] ID3D11DomainShader *pDomainShader,
2883 [in] ID3D11ClassInstance *const *ppClassInstances,
2884 UINT NumClassInstances);
2885 void DSSetSamplers(
2886 [in] UINT StartSlot,
2887 [in] UINT NumSamplers,
2888 [in] ID3D11SamplerState *const *ppSamplers);
2889 void DSSetConstantBuffers(
2890 [in] UINT StartSlot,
2891 [in] UINT NumBuffers,
2892 [in] ID3D11Buffer *const *ppConstantBuffers);
2893 void CSSetShaderResources(
2894 [in] UINT StartSlot,
2895 [in] UINT NumViews,
2896 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2897 void CSSetUnorderedAccessViews(
2898 [in] UINT StartSlot,
2899 [in] UINT NumUAVs,
2900 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2901 [in] const UINT *pUAVInitialCounts);
2902 void CSSetShader(
2903 [in] ID3D11ComputeShader *pComputeShader,
2904 [in] ID3D11ClassInstance *const *ppClassInstances,
2905 UINT NumClassInstances);
2906 void CSSetSamplers(
2907 [in] UINT StartSlot,
2908 [in] UINT NumSamplers,
2909 [in] ID3D11SamplerState *const *ppSamplers);
2910 void CSSetConstantBuffers(
2911 [in] UINT StartSlot,
2912 [in] UINT NumBuffers,
2913 [in] ID3D11Buffer *const *ppConstantBuffers);
2914 void VSGetConstantBuffers(
2915 [in] UINT StartSlot,
2916 [in] UINT NumBuffers,
2917 [out] ID3D11Buffer **ppConstantBuffers);
2918 void PSGetShaderResources(
2919 [in] UINT StartSlot,
2920 [in] UINT NumViews,
2921 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2922 void PSGetShader(
2923 [out] ID3D11PixelShader **ppPixelShader,
2924 [out] ID3D11ClassInstance **ppClassInstances,
2925 [in, out] UINT *pNumClassInstances);
2926 void PSGetSamplers(
2927 [in] UINT StartSlot,
2928 [in] UINT NumSamplers,
2929 [out] ID3D11SamplerState **ppSamplers);
2930 void VSGetShader(
2931 [out] ID3D11VertexShader **ppVertexShader,
2932 [out] ID3D11ClassInstance **ppClassInstances,
2933 [in, out] UINT *pNumClassInstances);
2934 void PSGetConstantBuffers(
2935 [in] UINT StartSlot,
2936 [in] UINT NumBuffers,
2937 [out] ID3D11Buffer **ppConstantBuffers);
2938 void IAGetInputLayout(
2939 [out] ID3D11InputLayout **ppInputLayout);
2940 void IAGetVertexBuffers(
2941 [in] UINT StartSlot,
2942 [in] UINT NumBuffers,
2943 [out] ID3D11Buffer **ppVertexBuffers,
2944 [out] UINT *pStrides,
2945 [out] UINT *pOffsets);
2946 void IAGetIndexBuffer(
2947 [out] ID3D11Buffer **pIndexBuffer,
2948 [out] DXGI_FORMAT* Format,
2949 [out] UINT* Offset);
2950 void GSGetConstantBuffers(
2951 [in] UINT StartSlot,
2952 [in] UINT NumBuffers,
2953 [out] ID3D11Buffer **ppConstantBuffers);
2954 void GSGetShader(
2955 [out] ID3D11GeometryShader **ppGeometryShader,
2956 [out] ID3D11ClassInstance **ppClassInstances,
2957 [in, out] UINT *pNumClassInstances);
2958 void IAGetPrimitiveTopology(
2959 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2960 void VSGetShaderResources(
2961 [in] UINT StartSlot,
2962 [in] UINT NumViews,
2963 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2964 void VSGetSamplers(
2965 [in] UINT StartSlot,
2966 [in] UINT NumSamplers,
2967 [out] ID3D11SamplerState **ppSamplers);
2968 void GetPredication(
2969 [out] ID3D11Predicate **ppPredicate,
2970 [out] BOOL *pPredicateValue);
2971 void GSGetShaderResources(
2972 [in] UINT StartSlot,
2973 [in] UINT NumViews,
2974 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2975 void GSGetSamplers(
2976 [in] UINT StartSlot,
2977 [in] UINT NumSamplers,
2978 [out] ID3D11SamplerState **ppSamplers);
2979 void OMGetRenderTargets(
2980 [in] UINT NumViews,
2981 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2982 [out] ID3D11DepthStencilView **ppDepthStencilView);
2983 void OMGetRenderTargetsAndUnorderedAccessViews(
2984 [in] UINT NumRTVs,
2985 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2986 [out] ID3D11DepthStencilView **ppDepthStencilView,
2987 [in] UINT UAVStartSlot,
2988 [in] UINT NumUAVs,
2989 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2990 void OMGetBlendState(
2991 [out] ID3D11BlendState **ppBlendState,
2992 [out] FLOAT BlendFactor[4],
2993 [out] UINT *pSampleMask);
2994 void OMGetDepthStencilState(
2995 [out] ID3D11DepthStencilState **ppDepthStencilState,
2996 [out] UINT *pStencilRef);
2997 void SOGetTargets(
2998 [in] UINT NumBuffers,
2999 [out] ID3D11Buffer **ppSOTargets);
3000 void RSGetState(
3001 [out] ID3D11RasterizerState **ppRasterizerState);
3002 void RSGetViewports(
3003 [in, out] UINT *pNumViewports,
3004 [out] D3D11_VIEWPORT *pViewports);
3005 void RSGetScissorRects(
3006 [in, out] UINT *pNumRects,
3007 [out] D3D11_RECT *pRects);
3008 void HSGetShaderResources(
3009 [in] UINT StartSlot,
3010 [in] UINT NumViews,
3011 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3012 void HSGetShader(
3013 [out] ID3D11HullShader **ppHullShader,
3014 [out] ID3D11ClassInstance **ppClassInstances,
3015 [in, out] UINT *pNumClassInstances);
3016 void HSGetSamplers(
3017 [in] UINT StartSlot,
3018 [in] UINT NumSamplers,
3019 [out] ID3D11SamplerState **ppSamplers);
3020 void HSGetConstantBuffers(
3021 [in] UINT StartSlot,
3022 [in] UINT NumBuffers,
3023 [out] ID3D11Buffer **ppConstantBuffers);
3024 void DSGetShaderResources(
3025 [in] UINT StartSlot,
3026 [in] UINT NumViews,
3027 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3028 void DSGetShader(
3029 [out] ID3D11DomainShader **ppDomainShader,
3030 [out] ID3D11ClassInstance **ppClassInstances,
3031 [in, out] UINT *pNumClassInstances);
3032 void DSGetSamplers(
3033 [in] UINT StartSlot,
3034 [in] UINT NumSamplers,
3035 [out] ID3D11SamplerState **ppSamplers);
3036 void DSGetConstantBuffers(
3037 [in] UINT StartSlot,
3038 [in] UINT NumBuffers,
3039 [out] ID3D11Buffer **ppConstantBuffers);
3040 void CSGetShaderResources(
3041 [in] UINT StartSlot,
3042 [in] UINT NumViews,
3043 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3044 void CSGetUnorderedAccessViews(
3045 [in] UINT StartSlot,
3046 [in] UINT NumUAVs,
3047 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3048 void CSGetShader(
3049 [out] ID3D11ComputeShader **ppComputeShader,
3050 [out] ID3D11ClassInstance **ppClassInstances,
3051 [in, out] UINT *pNumClassInstances);
3052 void CSGetSamplers(
3053 [in] UINT StartSlot,
3054 [in] UINT NumSamplers,
3055 [out] ID3D11SamplerState **ppSamplers);
3056 void CSGetConstantBuffers(
3057 [in] UINT StartSlot,
3058 [in] UINT NumBuffers,
3059 [out] ID3D11Buffer **ppConstantBuffers);
3060 void ClearState();
3061 void Flush();
3062 D3D11_DEVICE_CONTEXT_TYPE GetType();
3063 UINT GetContextFlags();
3064 HRESULT FinishCommandList(
3065 BOOL RestoreDeferredContextState,
3066 [out] ID3D11CommandList **ppCommandList);
3070 object,
3071 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3072 local,
3073 pointer_default(unique)
3075 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3077 HRESULT GetCertificateSize(
3078 UINT *pCertificateSize);
3079 HRESULT GetCertificate(
3080 UINT CertificateSize,
3081 BYTE *pCertificate);
3082 void GetChannelHandle(
3083 HANDLE *pChannelHandle);
3087 object,
3088 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3089 local,
3090 pointer_default(unique)
3092 interface ID3D11CryptoSession : ID3D11DeviceChild
3094 void GetCryptoType(
3095 GUID *pCryptoType);
3096 void GetDecoderProfile(
3097 GUID *pDecoderProfile);
3098 HRESULT GetCertificateSize(
3099 UINT *pCertificateSize);
3100 HRESULT GetCertificate(
3101 UINT CertificateSize,
3102 BYTE *pCertificate);
3103 void GetCryptoSessionHandle(
3104 HANDLE *pCryptoSessionHandle);
3108 object,
3109 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3110 local,
3111 pointer_default(unique)
3113 interface ID3D11VideoDecoder : ID3D11DeviceChild
3115 HRESULT GetCreationParameters(
3116 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3117 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3118 HRESULT GetDriverHandle(
3119 HANDLE *pDriverHandle);
3123 object,
3124 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3125 local,
3126 pointer_default(unique)
3128 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3130 HRESULT GetVideoProcessorContentDesc(
3131 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3132 HRESULT CheckVideoProcessorFormat(
3133 DXGI_FORMAT Format,
3134 UINT *pFlags);
3135 HRESULT GetVideoProcessorCaps(
3136 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3137 HRESULT GetVideoProcessorRateConversionCaps(
3138 UINT TypeIndex,
3139 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3140 HRESULT GetVideoProcessorCustomRate(
3141 UINT TypeIndex,
3142 UINT CustomRateIndex,
3143 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3144 HRESULT GetVideoProcessorFilterRange(
3145 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3146 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3150 object,
3151 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3152 local,
3153 pointer_default(unique)
3155 interface ID3D11VideoProcessor : ID3D11DeviceChild
3157 void GetContentDesc(
3158 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3159 void GetRateConversionCaps(
3160 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3164 object,
3165 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3166 local,
3167 pointer_default(unique)
3169 interface ID3D11VideoDecoderOutputView : ID3D11View
3171 void GetDesc(
3172 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3176 object,
3177 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3178 local,
3179 pointer_default(unique)
3181 interface ID3D11VideoProcessorInputView : ID3D11View
3183 void GetDesc(
3184 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3188 object,
3189 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3190 local,
3191 pointer_default(unique)
3193 interface ID3D11VideoProcessorOutputView : ID3D11View
3195 void GetDesc(
3196 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3200 object,
3201 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3202 local,
3203 pointer_default(unique)
3205 interface ID3D11VideoDevice : IUnknown
3207 HRESULT CreateVideoDecoder(
3208 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3209 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3210 ID3D11VideoDecoder **ppDecoder);
3211 HRESULT CreateVideoProcessor(
3212 ID3D11VideoProcessorEnumerator *pEnum,
3213 UINT RateConversionIndex,
3214 ID3D11VideoProcessor **ppVideoProcessor);
3215 HRESULT CreateAuthenticatedChannel(
3216 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3217 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3218 HRESULT CreateCryptoSession(
3219 const GUID *pCryptoType,
3220 const GUID *pDecoderProfile,
3221 const GUID *pKeyExchangeType,
3222 ID3D11CryptoSession **ppCryptoSession);
3223 HRESULT CreateVideoDecoderOutputView(
3224 ID3D11Resource *pResource,
3225 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3226 ID3D11VideoDecoderOutputView **ppVDOVView);
3227 HRESULT CreateVideoProcessorInputView(
3228 ID3D11Resource *pResource,
3229 ID3D11VideoProcessorEnumerator *pEnum,
3230 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3231 ID3D11VideoProcessorInputView **ppVPIView);
3232 HRESULT CreateVideoProcessorOutputView(
3233 ID3D11Resource *pResource,
3234 ID3D11VideoProcessorEnumerator *pEnum,
3235 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3236 ID3D11VideoProcessorOutputView **ppVPOView);
3237 HRESULT CreateVideoProcessorEnumerator(
3238 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3239 ID3D11VideoProcessorEnumerator **ppEnum);
3240 UINT GetVideoDecoderProfileCount();
3241 HRESULT GetVideoDecoderProfile(
3242 UINT Index,
3243 GUID *pDecoderProfile);
3244 HRESULT CheckVideoDecoderFormat(
3245 const GUID *pDecoderProfile,
3246 DXGI_FORMAT Format,
3247 BOOL *pSupported);
3248 HRESULT GetVideoDecoderConfigCount(
3249 const D3D11_VIDEO_DECODER_DESC *pDesc,
3250 UINT *pCount);
3251 HRESULT GetVideoDecoderConfig(
3252 const D3D11_VIDEO_DECODER_DESC *pDesc,
3253 UINT Index,
3254 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3255 HRESULT GetContentProtectionCaps(
3256 const GUID *pCryptoType,
3257 const GUID *pDecoderProfile,
3258 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3259 HRESULT CheckCryptoKeyExchange(
3260 const GUID *pCryptoType,
3261 const GUID *pDecoderProfile,
3262 UINT Index,
3263 GUID *pKeyExchangeType);
3264 HRESULT SetPrivateData(
3265 REFGUID guid,
3266 UINT DataSize,
3267 const void *pData);
3268 HRESULT SetPrivateDataInterface(
3269 REFGUID guid,
3270 const IUnknown *pData);
3274 object,
3275 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3276 local,
3277 pointer_default(unique)
3279 interface ID3D11VideoContext : ID3D11DeviceChild
3281 HRESULT GetDecoderBuffer(
3282 [in] ID3D11VideoDecoder *decoder,
3283 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3284 [out] UINT *buffer_size,
3285 [out] void **buffer
3287 HRESULT ReleaseDecoderBuffer(
3288 [in] ID3D11VideoDecoder *decoder,
3289 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3291 HRESULT DecoderBeginFrame(
3292 [in] ID3D11VideoDecoder *decoder,
3293 [in] ID3D11VideoDecoderOutputView *view,
3294 [in] UINT key_size,
3295 [in] const void *key
3297 HRESULT DecoderEndFrame(
3298 [in] ID3D11VideoDecoder *decoder
3300 HRESULT SubmitDecoderBuffers(
3301 [in] ID3D11VideoDecoder *decoder,
3302 [in] UINT buffers_count,
3303 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3305 HRESULT DecoderExtension(
3306 [in] ID3D11VideoDecoder *decoder,
3307 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3309 void VideoProcessorSetOutputTargetRect(
3310 [in] ID3D11VideoProcessor *processor,
3311 [in] BOOL enable,
3312 [in] const RECT *rect
3314 void VideoProcessorSetOutputBackgroundColor(
3315 [in] ID3D11VideoProcessor *processor,
3316 [in] BOOL y_cb_cr,
3317 [in] const D3D11_VIDEO_COLOR *color
3319 void VideoProcessorSetOutputColorSpace(
3320 [in] ID3D11VideoProcessor *processor,
3321 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3323 void VideoProcessorSetOutputAlphaFillMode(
3324 [in] ID3D11VideoProcessor *processor,
3325 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3326 [in] UINT stream_idx
3328 void VideoProcessorSetOutputConstriction(
3329 [in] ID3D11VideoProcessor *processor,
3330 [in] BOOL enable,
3331 [in] SIZE size
3333 void VideoProcessorSetOutputStereoMode(
3334 [in] ID3D11VideoProcessor *processor,
3335 [in] BOOL enable
3337 HRESULT VideoProcessorSetOutputExtension(
3338 [in] ID3D11VideoProcessor *processor,
3339 [in] const GUID *guid,
3340 [in] UINT data_size,
3341 [in] void *data
3343 void VideoProcessorGetOutputTargetRect(
3344 [in] ID3D11VideoProcessor *processor,
3345 [out] BOOL *enabled,
3346 [out] RECT *rect
3348 void VideoProcessorGetOutputBackgroundColor(
3349 [in] ID3D11VideoProcessor *processor,
3350 [out] BOOL *y_cb_cr,
3351 [out] D3D11_VIDEO_COLOR *color
3353 void VideoProcessorGetOutputColorSpace(
3354 [in] ID3D11VideoProcessor *processor,
3355 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3357 void VideoProcessorGetOutputAlphaFillMode(
3358 [in] ID3D11VideoProcessor *processor,
3359 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3360 [out] UINT *stream_idx
3362 void VideoProcessorGetOutputConstriction(
3363 [in] ID3D11VideoProcessor *processor,
3364 [out] BOOL *enabled,
3365 [out] SIZE *size
3367 void VideoProcessorGetOutputStereoMode(
3368 [in] ID3D11VideoProcessor *processor,
3369 [out] BOOL *enabled
3371 HRESULT VideoProcessorGetOutputExtension(
3372 [in] ID3D11VideoProcessor *processor,
3373 [in] const GUID *guid,
3374 [in] UINT data_size,
3375 [out] void *data
3377 void VideoProcessorSetStreamFrameFormat(
3378 [in] ID3D11VideoProcessor *processor,
3379 [in] UINT stream_idx,
3380 [in] D3D11_VIDEO_FRAME_FORMAT format
3382 void VideoProcessorSetStreamColorSpace(
3383 [in] ID3D11VideoProcessor *processor,
3384 [in] UINT stream_idx,
3385 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3387 void VideoProcessorSetStreamOutputRate(
3388 [in] ID3D11VideoProcessor *processor,
3389 [in] UINT stream_idx,
3390 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3391 [in] BOOL repeat,
3392 [in] const DXGI_RATIONAL *custom_rate
3394 void VideoProcessorSetStreamSourceRect(
3395 [in] ID3D11VideoProcessor *processor,
3396 [in] UINT stream_idx,
3397 [in] BOOL enable,
3398 [in] const RECT *rect
3400 void VideoProcessorSetStreamDestRect(
3401 [in] ID3D11VideoProcessor *processor,
3402 [in] UINT stream_idx,
3403 [in] BOOL enable,
3404 [in] const RECT *rect
3406 void VideoProcessorSetStreamAlpha(
3407 [in] ID3D11VideoProcessor *processor,
3408 [in] UINT stream_idx,
3409 [in] BOOL enable,
3410 [in] float alpha
3412 void VideoProcessorSetStreamPalette(
3413 [in] ID3D11VideoProcessor *processor,
3414 [in] UINT stream_idx,
3415 [in] UINT entry_count,
3416 [in] const UINT *entries
3418 void VideoProcessorSetStreamPixelAspectRatio(
3419 [in] ID3D11VideoProcessor *processor,
3420 [in] UINT stream_idx,
3421 [in] BOOL enable,
3422 [in] const DXGI_RATIONAL *src_aspect_ratio,
3423 [in] const DXGI_RATIONAL *dst_aspect_ratio
3425 void VideoProcessorSetStreamLumaKey(
3426 [in] ID3D11VideoProcessor *processor,
3427 [in] UINT stream_idx,
3428 [in] BOOL enable,
3429 [in] float lower,
3430 [in] float upper
3432 void VideoProcessorSetStreamStereoFormat(
3433 [in] ID3D11VideoProcessor *processor,
3434 [in] UINT stream_idx,
3435 [in] BOOL enable,
3436 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3437 [in] BOOL left_view_frame0,
3438 [in] BOOL base_view_frame0,
3439 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3440 [in] int mono_offset
3442 void VideoProcessorSetStreamAutoProcessingMode(
3443 [in] ID3D11VideoProcessor *processor,
3444 [in] UINT stream_idx,
3445 [in] BOOL enable
3447 void VideoProcessorSetStreamFilter(
3448 [in] ID3D11VideoProcessor *processor,
3449 [in] UINT stream_idx,
3450 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3451 [in] BOOL enable,
3452 [in] int level
3454 HRESULT VideoProcessorSetStreamExtension(
3455 [in] ID3D11VideoProcessor *processor,
3456 [in] UINT stream_idx,
3457 [in] const GUID *guid,
3458 [in] UINT data_size,
3459 [in] void *data
3461 void VideoProcessorGetStreamFrameFormat(
3462 [in] ID3D11VideoProcessor *processor,
3463 [in] UINT stream_idx,
3464 [out] D3D11_VIDEO_FRAME_FORMAT *format
3466 void VideoProcessorGetStreamColorSpace(
3467 [in] ID3D11VideoProcessor *processor,
3468 [in] UINT stream_idx,
3469 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3471 void VideoProcessorGetStreamOutputRate(
3472 [in] ID3D11VideoProcessor *processor,
3473 [in] UINT stream_idx,
3474 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3475 [out] BOOL *repeat,
3476 [out] DXGI_RATIONAL *custom_rate
3478 void VideoProcessorGetStreamSourceRect(
3479 [in] ID3D11VideoProcessor *processor,
3480 [in] UINT stream_idx,
3481 [out] BOOL *enabled,
3482 [out] RECT *rect
3484 void VideoProcessorGetStreamDestRect(
3485 [in] ID3D11VideoProcessor *processor,
3486 [in] UINT stream_idx,
3487 [out] BOOL *enabled,
3488 [out] RECT *rect
3490 void VideoProcessorGetStreamAlpha(
3491 [in] ID3D11VideoProcessor *processor,
3492 [in] UINT stream_idx,
3493 [out] BOOL *enabled,
3494 [out] float *alpha
3496 void VideoProcessorGetStreamPalette(
3497 [in] ID3D11VideoProcessor *processor,
3498 [in] UINT stream_idx,
3499 [in] UINT entry_count,
3500 [out] UINT *entries
3502 void VideoProcessorGetStreamPixelAspectRatio(
3503 [in] ID3D11VideoProcessor *processor,
3504 [in] UINT stream_idx,
3505 [out] BOOL *enabled,
3506 [out] DXGI_RATIONAL *src_aspect_ratio,
3507 [out] DXGI_RATIONAL *dst_aspect_ratio
3509 void VideoProcessorGetStreamLumaKey(
3510 [in] ID3D11VideoProcessor *processor,
3511 [in] UINT stream_idx,
3512 [out] BOOL *enabled,
3513 [out] float *lower,
3514 [out] float *upper
3516 void VideoProcessorGetStreamStereoFormat(
3517 [in] ID3D11VideoProcessor *processor,
3518 [in] UINT stream_idx,
3519 [out] BOOL *enabled,
3520 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3521 [out] BOOL *left_view_frame0,
3522 [out] BOOL *base_view_frame0,
3523 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3524 [out] int *mono_offset
3526 void VideoProcessorGetStreamAutoProcessingMode(
3527 [in] ID3D11VideoProcessor *processor,
3528 [in] UINT stream_idx,
3529 [out] BOOL *enabled
3531 void VideoProcessorGetStreamFilter(
3532 [in] ID3D11VideoProcessor *processor,
3533 [in] UINT stream_idx,
3534 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3535 [out] BOOL *enabled,
3536 [out] int *level
3538 HRESULT VideoProcessorGetStreamExtension(
3539 [in] ID3D11VideoProcessor *processor,
3540 [in] UINT stream_idx,
3541 [in] const GUID *guid,
3542 [in] UINT data_size,
3543 [out] void *data
3545 HRESULT VideoProcessorBlt(
3546 [in] ID3D11VideoProcessor *processor,
3547 [in] ID3D11VideoProcessorOutputView *view,
3548 [in] UINT frame_idx,
3549 [in] UINT stream_count,
3550 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3552 HRESULT NegotiateCryptoSessionKeyExchange(
3553 [in] ID3D11CryptoSession *session,
3554 [in] UINT data_size,
3555 [in, out] void *data
3557 void EncryptionBlt(
3558 [in] ID3D11CryptoSession *session,
3559 [in] ID3D11Texture2D *src_surface,
3560 [in] ID3D11Texture2D *dst_surface,
3561 [in] UINT iv_size,
3562 [in, out] void *iv
3564 void DecryptionBlt(
3565 [in] ID3D11CryptoSession *session,
3566 [in] ID3D11Texture2D *src_surface,
3567 [in] ID3D11Texture2D *dst_surface,
3568 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3569 [in] UINT key_size,
3570 [in] const void *key,
3571 [in] UINT iv_size,
3572 [in, out] void *iv
3574 void StartSessionKeyRefresh(
3575 [in] ID3D11CryptoSession *session,
3576 [in] UINT random_number_size,
3577 [out] void *random_number
3579 void FinishSessionKeyRefresh(
3580 [in] ID3D11CryptoSession *session
3582 HRESULT GetEncryptionBltKey(
3583 [in] ID3D11CryptoSession *session,
3584 [in] UINT key_size,
3585 [out] void *key
3587 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3588 [in] ID3D11AuthenticatedChannel *channel,
3589 [in] UINT data_size,
3590 [in, out] void *data
3592 HRESULT QueryAuthenticatedChannel(
3593 [in] ID3D11AuthenticatedChannel *channel,
3594 [in] UINT input_size,
3595 [in] const void *input,
3596 [in] UINT output_size,
3597 [out] void *output
3599 HRESULT ConfigureAuthenticatedChannel(
3600 [in] ID3D11AuthenticatedChannel *channel,
3601 [in] UINT input_size,
3602 [in] const void *input,
3603 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3605 void VideoProcessorSetStreamRotation(
3606 [in] ID3D11VideoProcessor *processor,
3607 [in] UINT stream_idx,
3608 [in] BOOL enable,
3609 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3611 void VideoProcessorGetStreamRotation(
3612 [in] ID3D11VideoProcessor *processor,
3613 [in] UINT stream_idx,
3614 [out] BOOL *enable,
3615 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3620 object,
3621 local,
3622 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3624 interface ID3D11Device : IUnknown
3626 HRESULT CreateBuffer(
3627 [in] const D3D11_BUFFER_DESC *pDesc,
3628 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3629 [out] ID3D11Buffer **ppBuffer);
3630 HRESULT CreateTexture1D(
3631 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3632 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3633 [out] ID3D11Texture1D **ppTexture1D);
3634 HRESULT CreateTexture2D(
3635 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3636 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3637 [out] ID3D11Texture2D **ppTexture2D);
3638 HRESULT CreateTexture3D(
3639 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3640 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3641 [out] ID3D11Texture3D **ppTexture3D);
3642 HRESULT CreateShaderResourceView(
3643 [in] ID3D11Resource *pResource,
3644 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3645 [out] ID3D11ShaderResourceView **ppSRView);
3646 HRESULT CreateUnorderedAccessView(
3647 [in] ID3D11Resource *pResource,
3648 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3649 [out] ID3D11UnorderedAccessView **ppUAView);
3650 HRESULT CreateRenderTargetView(
3651 [in] ID3D11Resource *pResource,
3652 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3653 [out] ID3D11RenderTargetView **ppRTView);
3654 HRESULT CreateDepthStencilView(
3655 [in] ID3D11Resource *pResource,
3656 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3657 [out] ID3D11DepthStencilView **ppDepthStencilView);
3658 HRESULT CreateInputLayout(
3659 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3660 [in] UINT NumElements,
3661 [in] const void *pShaderBytecodeWithInputSignature,
3662 [in] SIZE_T BytecodeLength,
3663 [out] ID3D11InputLayout **ppInputLayout);
3664 HRESULT CreateVertexShader(
3665 [in] const void *pShaderBytecode,
3666 [in] SIZE_T BytecodeLength,
3667 [in] ID3D11ClassLinkage *pClassLinkage,
3668 [out] ID3D11VertexShader **ppVertexShader);
3669 HRESULT CreateGeometryShader(
3670 [in] const void *pShaderBytecode,
3671 [in] SIZE_T BytecodeLength,
3672 [in] ID3D11ClassLinkage *pClassLinkage,
3673 [out] ID3D11GeometryShader **ppGeometryShader);
3674 HRESULT CreateGeometryShaderWithStreamOutput(
3675 [in] const void *pShaderBytecode,
3676 [in] SIZE_T BytecodeLength,
3677 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3678 [in] UINT NumEntries,
3679 [in] const UINT *pBufferStrides,
3680 [in] UINT NumStrides,
3681 [in] UINT RasterizedStream,
3682 [in] ID3D11ClassLinkage *pClassLinkage,
3683 [out] ID3D11GeometryShader **ppGeometryShader);
3684 HRESULT CreatePixelShader(
3685 [in] const void *pShaderBytecode,
3686 [in] SIZE_T BytecodeLength,
3687 [in] ID3D11ClassLinkage *pClassLinkage,
3688 [out] ID3D11PixelShader **ppPixelShader);
3689 HRESULT CreateHullShader(
3690 [in] const void *pShaderBytecode,
3691 [in] SIZE_T BytecodeLength,
3692 [in] ID3D11ClassLinkage *pClassLinkage,
3693 [out] ID3D11HullShader **ppHullShader);
3694 HRESULT CreateDomainShader(
3695 [in] const void *pShaderBytecode,
3696 [in] SIZE_T BytecodeLength,
3697 [in] ID3D11ClassLinkage *pClassLinkage,
3698 [out] ID3D11DomainShader **ppDomainShader);
3699 HRESULT CreateComputeShader(
3700 [in] const void *pShaderBytecode,
3701 [in] SIZE_T BytecodeLength,
3702 [in] ID3D11ClassLinkage *pClassLinkage,
3703 [out] ID3D11ComputeShader **ppComputeShader);
3704 HRESULT CreateClassLinkage(
3705 [out] ID3D11ClassLinkage **ppLinkage);
3706 HRESULT CreateBlendState(
3707 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3708 [out] ID3D11BlendState **ppBlendState);
3709 HRESULT CreateDepthStencilState(
3710 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3711 [out] ID3D11DepthStencilState **ppDepthStencilState);
3712 HRESULT CreateRasterizerState(
3713 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3714 [out] ID3D11RasterizerState **ppRasterizerState);
3715 HRESULT CreateSamplerState(
3716 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3717 [out] ID3D11SamplerState **ppSamplerState);
3718 HRESULT CreateQuery(
3719 [in] const D3D11_QUERY_DESC *pQueryDesc,
3720 [out] ID3D11Query **ppQuery);
3721 HRESULT CreatePredicate(
3722 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3723 [out] ID3D11Predicate **ppPredicate);
3724 HRESULT CreateCounter(
3725 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3726 [out] ID3D11Counter **ppCounter);
3727 HRESULT CreateDeferredContext(
3728 UINT ContextFlags,
3729 [out] ID3D11DeviceContext **ppDeferredContext);
3730 HRESULT OpenSharedResource(
3731 [in] HANDLE hResource,
3732 [in] REFIID ReturnedInterface,
3733 [out] void **ppResource);
3734 HRESULT CheckFormatSupport(
3735 [in] DXGI_FORMAT Format,
3736 [out] UINT *pFormatSupport);
3737 HRESULT CheckMultisampleQualityLevels(
3738 [in] DXGI_FORMAT Format,
3739 [in] UINT SampleCount,
3740 [out] UINT *pNumQualityLevels);
3741 void CheckCounterInfo(
3742 [out] D3D11_COUNTER_INFO *pCounterInfo);
3743 HRESULT CheckCounter(
3744 [in] const D3D11_COUNTER_DESC *pDesc,
3745 [out] D3D11_COUNTER_TYPE *pType,
3746 [out] UINT *pActiveCounters,
3747 [out] LPSTR szName,
3748 [in, out] UINT *pNameLength,
3749 [out] LPSTR szUnits,
3750 [in, out] UINT *pUnitsLength,
3751 [out] LPSTR szDescription,
3752 [in, out] UINT *pDescriptionLength);
3753 HRESULT CheckFeatureSupport(
3754 D3D11_FEATURE Feature,
3755 [out] void *pFeatureSupportData,
3756 UINT FeatureSupportDataSize);
3757 HRESULT GetPrivateData(
3758 [in] REFGUID guid,
3759 [in, out] UINT *pDataSize,
3760 [out] void *pData);
3761 HRESULT SetPrivateData(
3762 [in] REFGUID guid,
3763 [in] UINT DataSize,
3764 [in] const void *pData);
3765 HRESULT SetPrivateDataInterface(
3766 [in] REFGUID guid,
3767 [in] const IUnknown *pData);
3768 D3D_FEATURE_LEVEL GetFeatureLevel();
3769 UINT GetCreationFlags();
3770 HRESULT GetDeviceRemovedReason();
3771 void GetImmediateContext(
3772 [out] ID3D11DeviceContext **ppImmediateContext);
3773 HRESULT SetExceptionMode(UINT RaiseFlags);
3774 UINT GetExceptionMode();
3777 typedef enum D3D11_CREATE_DEVICE_FLAG {
3778 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3779 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3780 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3781 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3782 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3783 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3784 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3785 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3786 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3787 } D3D11_CREATE_DEVICE_FLAG;
3789 const UINT D3D11_SDK_VERSION = 7;
3791 cpp_quote("#include <d3d10_1.h>")
3792 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3793 cpp_quote("# include <d3d11sdklayers.h>")
3794 cpp_quote("#endif")
3795 cpp_quote("#include <d3d10misc.h>")
3796 cpp_quote("#include <d3d10shader.h>")
3797 cpp_quote("#include <d3d10effect.h>")
3798 cpp_quote("#include <d3d10_1shader.h>")
3800 const UINT _FACD3D11 = 0x87c;
3801 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3803 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3804 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3806 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3807 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3809 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3810 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3811 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3813 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3814 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3815 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3816 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);