libport: Add a replacement implementation for strnlen.
[wine.git] / include / d3d11.idl
bloba7b98126a107be0d31ba51ca80d90950a101e9aa
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 typedef enum D3D11_BLEND
265 D3D11_BLEND_ZERO = 1,
266 D3D11_BLEND_ONE = 2,
267 D3D11_BLEND_SRC_COLOR = 3,
268 D3D11_BLEND_INV_SRC_COLOR = 4,
269 D3D11_BLEND_SRC_ALPHA = 5,
270 D3D11_BLEND_INV_SRC_ALPHA = 6,
271 D3D11_BLEND_DEST_ALPHA = 7,
272 D3D11_BLEND_INV_DEST_ALPHA = 8,
273 D3D11_BLEND_DEST_COLOR = 9,
274 D3D11_BLEND_INV_DEST_COLOR = 10,
275 D3D11_BLEND_SRC_ALPHA_SAT = 11,
276 D3D11_BLEND_BLEND_FACTOR = 14,
277 D3D11_BLEND_INV_BLEND_FACTOR = 15,
278 D3D11_BLEND_SRC1_COLOR = 16,
279 D3D11_BLEND_INV_SRC1_COLOR = 17,
280 D3D11_BLEND_SRC1_ALPHA = 18,
281 D3D11_BLEND_INV_SRC1_ALPHA = 19,
282 } D3D11_BLEND;
284 typedef enum D3D11_BLEND_OP
286 D3D11_BLEND_OP_ADD = 1,
287 D3D11_BLEND_OP_SUBTRACT,
288 D3D11_BLEND_OP_REV_SUBTRACT,
289 D3D11_BLEND_OP_MIN,
290 D3D11_BLEND_OP_MAX
291 } D3D11_BLEND_OP;
293 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
295 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
296 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
297 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
298 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
299 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
300 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
301 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
302 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
303 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
304 } D3D11_VIDEO_DECODER_BUFFER_TYPE;
306 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
308 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
309 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
310 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
311 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
312 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
314 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
316 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
317 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
318 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
319 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
321 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
323 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
324 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
325 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
326 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
327 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
328 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
329 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
330 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
331 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
333 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
335 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
336 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
337 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
338 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
340 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
342 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
343 D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
344 D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
345 D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
346 } D3D11_VIDEO_PROCESSOR_ROTATION;
348 typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
350 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
351 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
352 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
353 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
354 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
355 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
356 } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
358 typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
360 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
361 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
362 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
363 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
364 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
365 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
366 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
367 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
368 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
369 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
370 } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
372 typedef enum D3D11_CONTENT_PROTECTION_CAPS
374 D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
375 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
376 D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
377 D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
378 D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
379 D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
380 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
381 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
382 D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
383 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
384 D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
385 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
386 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
387 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
388 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
389 } D3D11_CONTENT_PROTECTION_CAPS;
391 typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
393 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
394 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
395 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
396 } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
398 typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
400 D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
401 D3D11_PROCESSIDTYPE_DWM = 0x00000001,
402 D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
403 } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
405 typedef enum D3D11_BUS_TYPE
407 D3D11_BUS_TYPE_OTHER = 0x00000000,
408 D3D11_BUS_TYPE_PCI = 0x00000001,
409 D3D11_BUS_TYPE_PCIX = 0x00000002,
410 D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
411 D3D11_BUS_TYPE_AGP = 0x00000004,
412 D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
413 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
414 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
415 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
416 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
417 D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
418 } D3D11_BUS_TYPE;
420 typedef struct D3D11_BOX
422 UINT left;
423 UINT top;
424 UINT front;
425 UINT right;
426 UINT bottom;
427 UINT back;
428 } D3D11_BOX;
430 typedef struct D3D11_BUFFER_RTV
432 union
434 UINT FirstElement;
435 UINT ElementOffset;
437 union
439 UINT NumElements;
440 UINT ElementWidth;
442 } D3D11_BUFFER_RTV;
444 typedef struct D3D11_BUFFER_SRV
446 union
448 UINT FirstElement;
449 UINT ElementOffset;
451 union
453 UINT NumElements;
454 UINT ElementWidth;
456 } D3D11_BUFFER_SRV;
458 typedef struct D3D11_BUFFER_UAV
460 UINT FirstElement;
461 UINT NumElements;
462 UINT Flags;
463 } D3D11_BUFFER_UAV;
465 typedef struct D3D11_BUFFEREX_SRV
467 UINT FirstElement;
468 UINT NumElements;
469 UINT Flags;
470 } D3D11_BUFFEREX_SRV;
472 typedef struct D3D11_CLASS_INSTANCE_DESC
474 UINT InstanceId;
475 UINT InstanceIndex;
476 UINT TypeId;
477 UINT ConstantBuffer;
478 UINT BaseConstantBufferOffset;
479 UINT BaseTexture;
480 UINT BaseSampler;
481 BOOL Created;
482 } D3D11_CLASS_INSTANCE_DESC;
484 typedef enum D3D11_COMPARISON_FUNC
486 D3D11_COMPARISON_NEVER = 1,
487 D3D11_COMPARISON_LESS,
488 D3D11_COMPARISON_EQUAL,
489 D3D11_COMPARISON_LESS_EQUAL,
490 D3D11_COMPARISON_GREATER,
491 D3D11_COMPARISON_NOT_EQUAL,
492 D3D11_COMPARISON_GREATER_EQUAL,
493 D3D11_COMPARISON_ALWAYS
494 } D3D11_COMPARISON_FUNC;
496 typedef enum D3D11_COUNTER
498 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
499 } D3D11_COUNTER;
501 typedef struct D3D11_COUNTER_DESC
503 D3D11_COUNTER Counter;
504 UINT MiscFlags;
505 } D3D11_COUNTER_DESC;
507 typedef struct D3D11_COUNTER_INFO
509 D3D11_COUNTER LastDeviceDependentCounter;
510 UINT NumSimultaneousCounters;
511 UINT8 NumDetectableParallelUnits;
512 } D3D11_COUNTER_INFO;
514 typedef enum D3D11_COUNTER_TYPE
516 D3D11_COUNTER_TYPE_FLOAT32,
517 D3D11_COUNTER_TYPE_UINT16,
518 D3D11_COUNTER_TYPE_UINT32,
519 D3D11_COUNTER_TYPE_UINT64,
520 } D3D11_COUNTER_TYPE;
522 typedef enum D3D11_CULL_MODE
524 D3D11_CULL_NONE = 1,
525 D3D11_CULL_FRONT,
526 D3D11_CULL_BACK
527 } D3D11_CULL_MODE;
529 typedef enum D3D11_DEPTH_WRITE_MASK
531 D3D11_DEPTH_WRITE_MASK_ZERO,
532 D3D11_DEPTH_WRITE_MASK_ALL,
533 } D3D11_DEPTH_WRITE_MASK;
535 typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
537 D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
538 D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
539 } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
541 typedef enum D3D11_DEVICE_CONTEXT_TYPE
543 D3D11_DEVICE_CONTEXT_IMMEDIATE,
544 D3D11_DEVICE_CONTEXT_DEFERRED,
545 } D3D11_DEVICE_CONTEXT_TYPE;
547 typedef enum D3D11_DSV_DIMENSION
549 D3D11_DSV_DIMENSION_UNKNOWN,
550 D3D11_DSV_DIMENSION_TEXTURE1D,
551 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
552 D3D11_DSV_DIMENSION_TEXTURE2D,
553 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
554 D3D11_DSV_DIMENSION_TEXTURE2DMS,
555 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
556 } D3D11_DSV_DIMENSION;
558 typedef enum D3D11_FEATURE
560 D3D11_FEATURE_THREADING,
561 D3D11_FEATURE_DOUBLES,
562 D3D11_FEATURE_FORMAT_SUPPORT,
563 D3D11_FEATURE_FORMAT_SUPPORT2,
564 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
565 D3D11_FEATURE_D3D11_OPTIONS,
566 D3D11_FEATURE_ARCHITECTURE_INFO,
567 D3D11_FEATURE_D3D9_OPTIONS,
568 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
569 D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
570 D3D11_FEATURE_D3D11_OPTIONS1,
571 D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
572 D3D11_FEATURE_MARKER_SUPPORT,
573 D3D11_FEATURE_D3D9_OPTIONS1,
574 D3D11_FEATURE_D3D11_OPTIONS2,
575 D3D11_FEATURE_D3D11_OPTIONS3,
576 D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
577 D3D11_FEATURE_D3D11_OPTIONS4,
578 D3D11_FEATURE_SHADER_CACHE,
579 } D3D11_FEATURE;
581 typedef struct D3D11_FEATURE_DATA_THREADING
583 BOOL DriverConcurrentCreates;
584 BOOL DriverCommandLists;
585 } D3D11_FEATURE_DATA_THREADING;
587 typedef struct D3D11_FEATURE_DATA_DOUBLES
589 BOOL DoublePrecisionFloatShaderOps;
590 } D3D11_FEATURE_DATA_DOUBLES;
592 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
594 DXGI_FORMAT InFormat;
595 UINT OutFormatSupport;
596 } D3D11_FEATURE_DATA_FORMAT_SUPPORT;
598 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
600 DXGI_FORMAT InFormat;
601 UINT OutFormatSupport2;
602 } D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
604 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
606 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
607 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
609 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
611 BOOL OutputMergerLogicOp;
612 BOOL UAVOnlyRenderingForcedSampleCount;
613 BOOL DiscardAPIsSeenByDriver;
614 BOOL FlagsForUpdateAndCopySeenByDriver;
615 BOOL ClearView;
616 BOOL CopyWithOverlap;
617 BOOL ConstantBufferPartialUpdate;
618 BOOL ConstantBufferOffsetting;
619 BOOL MapNoOverwriteOnDynamicConstantBuffer;
620 BOOL MapNoOverwriteOnDynamicBufferSRV;
621 BOOL MultisampleRTVWithForcedSampleCountOne;
622 BOOL SAD4ShaderInstructions;
623 BOOL ExtendedDoublesShaderInstructions;
624 BOOL ExtendedResourceSharing;
625 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
627 typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
629 BOOL TileBasedDeferredRenderer;
630 } D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
632 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
634 BOOL FullNonPow2TextureSupport;
635 } D3D11_FEATURE_DATA_D3D9_OPTIONS;
637 typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
639 BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
640 } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
642 typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
644 D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
645 D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
646 } D3D11_SHADER_MIN_PRECISION_SUPPORT;
648 typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
650 UINT PixelShaderMinPrecision;
651 UINT AllOtherShaderStagesMinPrecision;
652 } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
654 typedef enum D3D11_TILED_RESOURCES_TIER
656 D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
657 D3D11_TILED_RESOURCES_TIER_1 = 0x1,
658 D3D11_TILED_RESOURCES_TIER_2 = 0x2,
659 D3D11_TILED_RESOURCES_TIER_3 = 0x3,
660 } D3D11_TILED_RESOURCES_TIER;
662 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
664 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
665 BOOL MinMaxFiltering;
666 BOOL ClearViewAlsoSupportsDepthOnlyFormats;
667 BOOL MapOnDefaultBuffers;
668 } D3D11_FEATURE_DATA_D3D11_OPTIONS1;
670 typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
672 BOOL SimpleInstancingSupported;
673 } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
675 typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
677 BOOL Profile;
678 } D3D11_FEATURE_DATA_MARKER_SUPPORT;
680 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
682 BOOL FullNonPow2TextureSupported;
683 BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
684 BOOL SimpleInstancingSupported;
685 BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
686 } D3D11_FEATURE_DATA_D3D9_OPTIONS1;
688 typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
690 D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
691 D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
692 D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
693 D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
694 } D3D11_CONSERVATIVE_RASTERIZATION_TIER;
696 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
698 BOOL PSSpecifiedStencilRefSupported;
699 BOOL TypedUAVLoadAdditionalFormats;
700 BOOL ROVsSupported;
701 D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
702 D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
703 BOOL MapOnDefaultTextures;
704 BOOL StandardSwizzle;
705 BOOL UnifiedMemoryArchitecture;
706 } D3D11_FEATURE_DATA_D3D11_OPTIONS2;
708 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
710 BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
711 } D3D11_FEATURE_DATA_D3D11_OPTIONS3;
713 typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
715 UINT MaxGPUVirtualAddressBitsPerResource;
716 UINT MaxGPUVirtualAddressBitsPerProcess;
717 } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
719 typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
721 D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
722 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
723 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
724 } D3D11_SHADER_CACHE_SUPPORT_FLAGS;
726 typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
728 UINT SupportFlags;
729 } D3D11_FEATURE_DATA_SHADER_CACHE;
731 typedef enum D3D11_FILL_MODE
733 D3D11_FILL_WIREFRAME = 2,
734 D3D11_FILL_SOLID
735 } D3D11_FILL_MODE;
737 typedef enum D3D11_FILTER_TYPE
739 D3D11_FILTER_TYPE_POINT = 0,
740 D3D11_FILTER_TYPE_LINEAR = 1
741 } D3D11_FILTER_TYPE;
743 const UINT D3D11_MIN_FILTER_SHIFT = 4;
744 const UINT D3D11_MAG_FILTER_SHIFT = 2;
745 const UINT D3D11_MIP_FILTER_SHIFT = 0;
746 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
747 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
748 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
750 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
751 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
752 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
753 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
754 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
756 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
757 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
758 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
759 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
761 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
762 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
764 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
765 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
767 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
768 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
770 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
772 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
773 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
774 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
775 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
776 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
778 typedef enum D3D11_FILTER
780 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
781 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
782 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
783 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
784 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
785 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
786 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
787 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
788 D3D11_FILTER_ANISOTROPIC = 0x55,
789 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
790 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
791 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
792 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
793 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
794 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
795 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
796 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
797 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
798 } D3D11_FILTER;
800 typedef enum D3D11_DSV_FLAG
802 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
803 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
804 } D3D11_DSV_FLAG;
806 typedef enum D3D11_BUFFEREX_SRV_FLAG
808 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
809 } D3D11_BUFFEREX_SRV_FLAG;
811 typedef enum D3D11_UAV_FLAG
813 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
814 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
815 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
816 } D3D11_UAV_FLAG;
818 typedef enum D3D11_INPUT_CLASSIFICATION
820 D3D11_INPUT_PER_VERTEX_DATA,
821 D3D11_INPUT_PER_INSTANCE_DATA,
822 } D3D11_INPUT_CLASSIFICATION;
824 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
826 typedef struct D3D11_INPUT_ELEMENT_DESC
828 LPCSTR SemanticName;
829 UINT SemanticIndex;
830 DXGI_FORMAT Format;
831 UINT InputSlot;
832 UINT AlignedByteOffset;
833 D3D11_INPUT_CLASSIFICATION InputSlotClass;
834 UINT InstanceDataStepRate;
835 } D3D11_INPUT_ELEMENT_DESC;
837 typedef enum D3D11_MAP
839 D3D11_MAP_READ = 1,
840 D3D11_MAP_WRITE,
841 D3D11_MAP_READ_WRITE,
842 D3D11_MAP_WRITE_DISCARD,
843 D3D11_MAP_WRITE_NO_OVERWRITE
844 } D3D11_MAP;
846 typedef enum D3D11_MAP_FLAG
848 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
849 } D3D11_MAP_FLAG;
851 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
853 UINT64 NumPrimitivesWritten;
854 UINT64 PrimitivesStorageNeeded;
855 } D3D11_QUERY_DATA_SO_STATISTICS;
857 typedef struct D3D11_MAPPED_SUBRESOURCE
859 void *pData;
860 UINT RowPitch;
861 UINT DepthPitch;
862 } D3D11_MAPPED_SUBRESOURCE;
864 typedef enum D3D11_QUERY
866 D3D11_QUERY_EVENT,
867 D3D11_QUERY_OCCLUSION,
868 D3D11_QUERY_TIMESTAMP,
869 D3D11_QUERY_TIMESTAMP_DISJOINT,
870 D3D11_QUERY_PIPELINE_STATISTICS,
871 D3D11_QUERY_OCCLUSION_PREDICATE,
872 D3D11_QUERY_SO_STATISTICS,
873 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
874 D3D11_QUERY_SO_STATISTICS_STREAM0,
875 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
876 D3D11_QUERY_SO_STATISTICS_STREAM1,
877 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
878 D3D11_QUERY_SO_STATISTICS_STREAM2,
879 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
880 D3D11_QUERY_SO_STATISTICS_STREAM3,
881 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
882 } D3D11_QUERY;
884 typedef enum D3D11_QUERY_MISC_FLAG
886 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
887 } D3D11_QUERY_MISC_FLAG;
889 typedef enum D3D11_ASYNC_GETDATA_FLAG
891 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
892 } D3D11_ASYNC_GETDATA_FLAG;
894 typedef enum D3D11_RESOURCE_MISC_FLAG
896 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
897 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
898 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
899 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
900 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
901 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
902 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
903 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
904 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
905 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
906 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
907 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
908 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
909 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
910 } D3D11_RESOURCE_MISC_FLAG;
912 typedef struct D3D11_QUERY_DESC
914 D3D11_QUERY Query;
915 UINT MiscFlags;
916 } D3D11_QUERY_DESC;
918 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
919 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
920 cpp_quote(" CD3D11_QUERY_DESC() {}")
921 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
922 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
923 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
924 cpp_quote(" Query = query;")
925 cpp_quote(" MiscFlags = misc_flags;")
926 cpp_quote(" }")
927 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
928 cpp_quote(" return *this;")
929 cpp_quote(" }")
930 cpp_quote("};")
931 cpp_quote("#endif")
933 typedef struct D3D11_RASTERIZER_DESC
935 D3D11_FILL_MODE FillMode;
936 D3D11_CULL_MODE CullMode;
937 BOOL FrontCounterClockwise;
938 INT DepthBias;
939 FLOAT DepthBiasClamp;
940 FLOAT SlopeScaledDepthBias;
941 BOOL DepthClipEnable;
942 BOOL ScissorEnable;
943 BOOL MultisampleEnable;
944 BOOL AntialiasedLineEnable;
945 } D3D11_RASTERIZER_DESC;
947 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
948 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
949 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
950 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
951 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
952 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
953 cpp_quote(" CullMode = D3D11_CULL_BACK;")
954 cpp_quote(" FrontCounterClockwise = FALSE;")
955 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
956 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
957 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
958 cpp_quote(" DepthClipEnable = TRUE;")
959 cpp_quote(" ScissorEnable = FALSE;")
960 cpp_quote(" MultisampleEnable = FALSE;")
961 cpp_quote(" AntialiasedLineEnable = FALSE;")
962 cpp_quote(" }")
963 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
964 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
965 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
966 cpp_quote(" FillMode = fillMode;")
967 cpp_quote(" CullMode = cullMode;")
968 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
969 cpp_quote(" DepthBias = depthBias;")
970 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
971 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
972 cpp_quote(" DepthClipEnable = depthClipEnable;")
973 cpp_quote(" ScissorEnable = scissorEnable;")
974 cpp_quote(" MultisampleEnable = multisampleEnable;")
975 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
976 cpp_quote(" }")
977 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
978 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
979 cpp_quote("};")
980 cpp_quote("#endif")
982 typedef enum D3D11_RESOURCE_DIMENSION
984 D3D11_RESOURCE_DIMENSION_UNKNOWN,
985 D3D11_RESOURCE_DIMENSION_BUFFER,
986 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
987 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
988 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
989 } D3D11_RESOURCE_DIMENSION;
991 typedef enum D3D11_RTV_DIMENSION
993 D3D11_RTV_DIMENSION_UNKNOWN,
994 D3D11_RTV_DIMENSION_BUFFER,
995 D3D11_RTV_DIMENSION_TEXTURE1D,
996 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
997 D3D11_RTV_DIMENSION_TEXTURE2D,
998 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
999 D3D11_RTV_DIMENSION_TEXTURE2DMS,
1000 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
1001 D3D11_RTV_DIMENSION_TEXTURE3D,
1002 } D3D11_RTV_DIMENSION;
1004 typedef struct D3D11_SO_DECLARATION_ENTRY
1006 UINT Stream;
1007 LPCSTR SemanticName;
1008 UINT SemanticIndex;
1009 BYTE StartComponent;
1010 BYTE ComponentCount;
1011 BYTE OutputSlot;
1012 } D3D11_SO_DECLARATION_ENTRY;
1014 typedef enum D3D11_STENCIL_OP
1016 D3D11_STENCIL_OP_KEEP = 1,
1017 D3D11_STENCIL_OP_ZERO,
1018 D3D11_STENCIL_OP_REPLACE,
1019 D3D11_STENCIL_OP_INCR_SAT,
1020 D3D11_STENCIL_OP_DECR_SAT,
1021 D3D11_STENCIL_OP_INVERT,
1022 D3D11_STENCIL_OP_INCR,
1023 D3D11_STENCIL_OP_DECR
1024 } D3D11_STENCIL_OP;
1026 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1027 cpp_quote("}")
1028 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1029 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
1030 cpp_quote("}")
1031 cpp_quote("extern \"C\"{")
1032 cpp_quote("#endif")
1034 typedef struct D3D11_SUBRESOURCE_DATA
1036 const void *pSysMem;
1037 UINT SysMemPitch;
1038 UINT SysMemSlicePitch;
1039 } D3D11_SUBRESOURCE_DATA;
1041 typedef struct D3D11_TEX1D_ARRAY_DSV
1043 UINT MipSlice;
1044 UINT FirstArraySlice;
1045 UINT ArraySize;
1046 } D3D11_TEX1D_ARRAY_DSV;
1048 typedef struct D3D11_TEX1D_ARRAY_RTV
1050 UINT MipSlice;
1051 UINT FirstArraySlice;
1052 UINT ArraySize;
1053 } D3D11_TEX1D_ARRAY_RTV;
1055 typedef struct D3D11_TEX1D_ARRAY_SRV
1057 UINT MostDetailedMip;
1058 UINT MipLevels;
1059 UINT FirstArraySlice;
1060 UINT ArraySize;
1061 } D3D11_TEX1D_ARRAY_SRV;
1063 typedef struct D3D11_TEX1D_ARRAY_UAV
1065 UINT MipSlice;
1066 UINT FirstArraySlice;
1067 UINT ArraySize;
1068 } D3D11_TEX1D_ARRAY_UAV;
1070 typedef struct D3D11_TEX1D_DSV
1072 UINT MipSlice;
1073 } D3D11_TEX1D_DSV;
1075 typedef struct D3D11_TEX1D_RTV
1077 UINT MipSlice;
1078 } D3D11_TEX1D_RTV;
1080 typedef struct D3D11_TEX1D_SRV
1082 UINT MostDetailedMip;
1083 UINT MipLevels;
1084 } D3D11_TEX1D_SRV;
1086 typedef struct D3D11_TEX1D_UAV
1088 UINT MipSlice;
1089 } D3D11_TEX1D_UAV;
1091 typedef struct D3D11_TEX2D_ARRAY_DSV
1093 UINT MipSlice;
1094 UINT FirstArraySlice;
1095 UINT ArraySize;
1096 } D3D11_TEX2D_ARRAY_DSV;
1098 typedef struct D3D11_TEX2D_ARRAY_RTV
1100 UINT MipSlice;
1101 UINT FirstArraySlice;
1102 UINT ArraySize;
1103 } D3D11_TEX2D_ARRAY_RTV;
1105 typedef struct D3D11_TEX2D_ARRAY_SRV
1107 UINT MostDetailedMip;
1108 UINT MipLevels;
1109 UINT FirstArraySlice;
1110 UINT ArraySize;
1111 } D3D11_TEX2D_ARRAY_SRV;
1113 typedef struct D3D11_TEX2D_ARRAY_UAV
1115 UINT MipSlice;
1116 UINT FirstArraySlice;
1117 UINT ArraySize;
1118 } D3D11_TEX2D_ARRAY_UAV;
1120 typedef struct D3D11_TEX2D_DSV
1122 UINT MipSlice;
1123 } D3D11_TEX2D_DSV;
1125 typedef struct D3D11_TEX2D_RTV
1127 UINT MipSlice;
1128 } D3D11_TEX2D_RTV;
1130 typedef struct D3D11_TEX2D_SRV
1132 UINT MostDetailedMip;
1133 UINT MipLevels;
1134 } D3D11_TEX2D_SRV;
1136 typedef struct D3D11_TEX2D_UAV
1138 UINT MipSlice;
1139 } D3D11_TEX2D_UAV;
1141 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1143 UINT FirstArraySlice;
1144 UINT ArraySize;
1145 } D3D11_TEX2DMS_ARRAY_DSV;
1147 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1149 UINT FirstArraySlice;
1150 UINT ArraySize;
1151 } D3D11_TEX2DMS_ARRAY_RTV;
1153 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1155 UINT FirstArraySlice;
1156 UINT ArraySize;
1157 } D3D11_TEX2DMS_ARRAY_SRV;
1159 typedef struct D3D11_TEX2DMS_DSV
1161 UINT UnusedField_NothingToDefine;
1162 } D3D11_TEX2DMS_DSV;
1164 typedef struct D3D11_TEX2DMS_RTV
1166 UINT UnusedField_NothingToDefine;
1167 } D3D11_TEX2DMS_RTV;
1169 typedef struct D3D11_TEX2DMS_SRV
1171 UINT UnusedField_NothingToDefine;
1172 } D3D11_TEX2DMS_SRV;
1174 typedef struct D3D11_TEX3D_RTV
1176 UINT MipSlice;
1177 UINT FirstWSlice;
1178 UINT WSize;
1179 } D3D11_TEX3D_RTV;
1181 typedef struct D3D11_TEX3D_SRV
1183 UINT MostDetailedMip;
1184 UINT MipLevels;
1185 } D3D11_TEX3D_SRV;
1187 typedef struct D3D11_TEX3D_UAV
1189 UINT MipSlice;
1190 UINT FirstWSlice;
1191 UINT WSize;
1192 } D3D11_TEX3D_UAV;
1194 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1196 UINT MostDetailedMip;
1197 UINT MipLevels;
1198 UINT First2DArrayFace;
1199 UINT NumCubes;
1200 } D3D11_TEXCUBE_ARRAY_SRV;
1202 typedef struct D3D11_TEXCUBE_SRV
1204 UINT MostDetailedMip;
1205 UINT MipLevels;
1206 } D3D11_TEXCUBE_SRV;
1208 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1210 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1211 D3D11_TEXTURE_ADDRESS_MIRROR,
1212 D3D11_TEXTURE_ADDRESS_CLAMP,
1213 D3D11_TEXTURE_ADDRESS_BORDER,
1214 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1215 } D3D11_TEXTURE_ADDRESS_MODE;
1217 typedef enum D3D11_UAV_DIMENSION
1219 D3D11_UAV_DIMENSION_UNKNOWN,
1220 D3D11_UAV_DIMENSION_BUFFER,
1221 D3D11_UAV_DIMENSION_TEXTURE1D,
1222 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1223 D3D11_UAV_DIMENSION_TEXTURE2D,
1224 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1225 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1226 } D3D11_UAV_DIMENSION;
1228 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1230 DXGI_FORMAT Format;
1231 D3D11_UAV_DIMENSION ViewDimension;
1233 union
1235 D3D11_BUFFER_UAV Buffer;
1236 D3D11_TEX1D_UAV Texture1D;
1237 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1238 D3D11_TEX2D_UAV Texture2D;
1239 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1240 D3D11_TEX3D_UAV Texture3D;
1242 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1244 typedef enum D3D11_USAGE
1246 D3D11_USAGE_DEFAULT,
1247 D3D11_USAGE_IMMUTABLE,
1248 D3D11_USAGE_DYNAMIC,
1249 D3D11_USAGE_STAGING,
1250 } D3D11_USAGE;
1252 typedef enum D3D11_BIND_FLAG
1254 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1255 D3D11_BIND_INDEX_BUFFER = 0x0002,
1256 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1257 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1258 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1259 D3D11_BIND_RENDER_TARGET = 0x0020,
1260 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1261 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1262 D3D11_BIND_DECODER = 0x0200,
1263 D3D11_BIND_VIDEO_ENCODER = 0x0400
1264 } D3D11_BIND_FLAG;
1266 typedef enum D3D11_CPU_ACCESS_FLAG
1268 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1269 D3D11_CPU_ACCESS_READ = 0x00020000
1270 } D3D11_CPU_ACCESS_FLAG;
1272 typedef struct D3D11_VIEWPORT
1274 FLOAT TopLeftX;
1275 FLOAT TopLeftY;
1276 FLOAT Width;
1277 FLOAT Height;
1278 FLOAT MinDepth;
1279 FLOAT MaxDepth;
1280 } D3D11_VIEWPORT;
1282 typedef enum D3D11_COLOR_WRITE_ENABLE
1284 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1285 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1286 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1287 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1288 D3D11_COLOR_WRITE_ENABLE_ALL =
1289 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1290 } D3D11_COLOR_WRITE_ENABLE;
1292 typedef enum D3D11_FORMAT_SUPPORT
1294 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1295 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1296 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1297 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1298 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1299 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1300 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1301 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1302 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1303 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1304 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1305 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1306 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1307 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1308 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1309 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1310 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1311 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1312 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1313 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1314 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1315 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1316 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1317 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1318 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1319 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1320 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1321 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1322 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1323 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1324 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1325 } D3D11_FORMAT_SUPPORT;
1327 typedef enum D3D11_CLEAR_FLAG
1329 D3D11_CLEAR_DEPTH = 0x0001L,
1330 D3D11_CLEAR_STENCIL = 0x0002L
1331 } D3D11_CLEAR_FLAG;
1333 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1335 BOOL BlendEnable;
1336 D3D11_BLEND SrcBlend;
1337 D3D11_BLEND DestBlend;
1338 D3D11_BLEND_OP BlendOp;
1339 D3D11_BLEND SrcBlendAlpha;
1340 D3D11_BLEND DestBlendAlpha;
1341 D3D11_BLEND_OP BlendOpAlpha;
1342 UINT8 RenderTargetWriteMask;
1343 } D3D11_RENDER_TARGET_BLEND_DESC;
1345 typedef struct D3D11_BLEND_DESC
1347 BOOL AlphaToCoverageEnable;
1348 BOOL IndependentBlendEnable;
1349 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1350 } D3D11_BLEND_DESC;
1352 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1353 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1354 cpp_quote(" CD3D11_BLEND_DESC() {}")
1355 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1356 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1357 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1358 cpp_quote(" IndependentBlendEnable = FALSE;")
1359 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1360 cpp_quote(" target->BlendEnable = FALSE;")
1361 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1362 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1363 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1364 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1365 cpp_quote(" }")
1366 cpp_quote(" }")
1367 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1368 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1369 cpp_quote("};" )
1370 cpp_quote("#endif" )
1372 typedef struct D3D11_BUFFER_DESC
1374 UINT ByteWidth;
1375 D3D11_USAGE Usage;
1376 UINT BindFlags;
1377 UINT CPUAccessFlags;
1378 UINT MiscFlags;
1379 UINT StructureByteStride;
1380 } D3D11_BUFFER_DESC;
1382 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1383 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1384 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1385 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1386 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1387 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1388 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1389 cpp_quote(" ByteWidth = byteWidth;")
1390 cpp_quote(" Usage = usage;")
1391 cpp_quote(" BindFlags = bindFlags;")
1392 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1393 cpp_quote(" MiscFlags = miscFlags;" )
1394 cpp_quote(" StructureByteStride = structureByteStride;")
1395 cpp_quote(" }")
1396 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1397 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1398 cpp_quote("};" )
1399 cpp_quote("#endif" )
1401 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1403 DXGI_FORMAT Format;
1404 D3D11_DSV_DIMENSION ViewDimension;
1405 UINT Flags;
1407 union
1409 D3D11_TEX1D_DSV Texture1D;
1410 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1411 D3D11_TEX2D_DSV Texture2D;
1412 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1413 D3D11_TEX2DMS_DSV Texture2DMS;
1414 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1416 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1418 typedef struct D3D11_DEPTH_STENCILOP_DESC
1420 D3D11_STENCIL_OP StencilFailOp;
1421 D3D11_STENCIL_OP StencilDepthFailOp;
1422 D3D11_STENCIL_OP StencilPassOp;
1423 D3D11_COMPARISON_FUNC StencilFunc;
1424 } D3D11_DEPTH_STENCILOP_DESC;
1426 typedef struct D3D11_DEPTH_STENCIL_DESC
1428 BOOL DepthEnable;
1429 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1430 D3D11_COMPARISON_FUNC DepthFunc;
1431 BOOL StencilEnable;
1432 UINT8 StencilReadMask;
1433 UINT8 StencilWriteMask;
1434 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1435 D3D11_DEPTH_STENCILOP_DESC BackFace;
1436 } D3D11_DEPTH_STENCIL_DESC;
1438 cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1439 cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1440 cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
1441 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1442 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1443 cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1444 cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1445 cpp_quote(" DepthEnable = TRUE;")
1446 cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1447 cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
1448 cpp_quote(" StencilEnable = FALSE;")
1449 cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1450 cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1451 cpp_quote(" FrontFace = default_op;")
1452 cpp_quote(" BackFace = default_op;")
1453 cpp_quote(" }")
1454 cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1455 cpp_quote(" BOOL depth_enable,")
1456 cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1457 cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
1458 cpp_quote(" BOOL stencil_enable,")
1459 cpp_quote(" UINT8 stencil_read_mask,")
1460 cpp_quote(" UINT8 stencil_write_mask,")
1461 cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
1462 cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1463 cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
1464 cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
1465 cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
1466 cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1467 cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
1468 cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1469 cpp_quote(" DepthEnable = depth_enable;")
1470 cpp_quote(" DepthWriteMask = depth_write_mask;")
1471 cpp_quote(" DepthFunc = depth_func;")
1472 cpp_quote(" StencilEnable = stencil_enable;")
1473 cpp_quote(" StencilReadMask = stencil_read_mask;")
1474 cpp_quote(" StencilWriteMask = stencil_write_mask;")
1475 cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1476 cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1477 cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1478 cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
1479 cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
1480 cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1481 cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
1482 cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
1483 cpp_quote(" }")
1484 cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1485 cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1486 cpp_quote("};")
1487 cpp_quote("#endif")
1489 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1491 DXGI_FORMAT Format;
1492 D3D11_RTV_DIMENSION ViewDimension;
1494 union
1496 D3D11_BUFFER_RTV Buffer;
1497 D3D11_TEX1D_RTV Texture1D;
1498 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1499 D3D11_TEX2D_RTV Texture2D;
1500 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1501 D3D11_TEX2DMS_RTV Texture2DMS;
1502 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1503 D3D11_TEX3D_RTV Texture3D;
1505 } D3D11_RENDER_TARGET_VIEW_DESC;
1507 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1508 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1509 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1510 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1511 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1512 cpp_quote(" Format = format;")
1513 cpp_quote(" ViewDimension = dim;")
1514 cpp_quote(" switch(dim) {")
1515 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1516 cpp_quote(" Buffer.FirstElement = mip_slice;")
1517 cpp_quote(" Buffer.NumElements = first_slice;")
1518 cpp_quote(" break;")
1519 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1520 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1521 cpp_quote(" break;")
1522 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1523 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1524 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1525 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1526 cpp_quote(" break;")
1527 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1528 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1529 cpp_quote(" break;")
1530 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1531 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1532 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1533 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1534 cpp_quote(" break;")
1535 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1536 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1537 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1538 cpp_quote(" break;")
1539 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1540 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1541 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1542 cpp_quote(" Texture3D.WSize = array_size;")
1543 cpp_quote(" break;")
1544 cpp_quote(" default:")
1545 cpp_quote(" break;")
1546 cpp_quote(" }")
1547 cpp_quote(" }")
1548 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1549 cpp_quote(" UINT elem_cnt) {")
1550 cpp_quote(" Format = format;")
1551 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1552 cpp_quote(" Buffer.FirstElement = first_elem;")
1553 cpp_quote(" Buffer.NumElements = elem_cnt;")
1554 cpp_quote(" }")
1555 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1556 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1557 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1558 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1559 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1560 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1561 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1562 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1563 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1564 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1565 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1566 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1567 cpp_quote(" return *this;")
1568 cpp_quote(" }")
1569 cpp_quote("};")
1570 cpp_quote("#endif")
1573 typedef struct D3D11_SAMPLER_DESC
1575 D3D11_FILTER Filter;
1576 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1577 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1578 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1579 FLOAT MipLODBias;
1580 UINT MaxAnisotropy;
1581 D3D11_COMPARISON_FUNC ComparisonFunc;
1582 FLOAT BorderColor[4];
1583 FLOAT MinLOD;
1584 FLOAT MaxLOD;
1585 } D3D11_SAMPLER_DESC;
1587 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1588 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1589 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1590 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1591 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1592 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1593 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1594 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1595 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1596 cpp_quote(" MipLODBias = 0;")
1597 cpp_quote(" MaxAnisotropy = 1;")
1598 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1599 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1600 cpp_quote(" MinLOD = -3.402823466e+38f;")
1601 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1602 cpp_quote(" }")
1603 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1604 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1605 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1606 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1607 cpp_quote(" Filter = filter;")
1608 cpp_quote(" AddressU = addressU;")
1609 cpp_quote(" AddressV = addressV;")
1610 cpp_quote(" AddressW = addressW;")
1611 cpp_quote(" MipLODBias = mipLODBias;")
1612 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1613 cpp_quote(" ComparisonFunc = comparisonFunc;")
1614 cpp_quote(" if(borderColor) {")
1615 cpp_quote(" BorderColor[0] = borderColor[0];")
1616 cpp_quote(" BorderColor[1] = borderColor[1];")
1617 cpp_quote(" BorderColor[2] = borderColor[2];")
1618 cpp_quote(" BorderColor[3] = borderColor[3];")
1619 cpp_quote(" }else {")
1620 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1621 cpp_quote(" }")
1622 cpp_quote(" MinLOD = minLOD;")
1623 cpp_quote(" MaxLOD = maxLOD;")
1624 cpp_quote(" }")
1625 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1626 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1627 cpp_quote("};")
1628 cpp_quote("#endif")
1630 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1632 DXGI_FORMAT Format;
1633 D3D11_SRV_DIMENSION ViewDimension;
1635 union
1637 D3D11_BUFFER_SRV Buffer;
1638 D3D11_TEX1D_SRV Texture1D;
1639 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1640 D3D11_TEX2D_SRV Texture2D;
1641 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1642 D3D11_TEX2DMS_SRV Texture2DMS;
1643 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1644 D3D11_TEX3D_SRV Texture3D;
1645 D3D11_TEXCUBE_SRV TextureCube;
1646 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1647 D3D11_BUFFEREX_SRV BufferEx;
1649 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1651 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1652 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1653 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1654 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1655 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1656 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1657 cpp_quote(" Format = format;")
1658 cpp_quote(" ViewDimension = dim;")
1659 cpp_quote(" switch(ViewDimension) {")
1660 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1661 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1662 cpp_quote(" Buffer.NumElements = mip_levels;")
1663 cpp_quote(" break;")
1664 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1665 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1666 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1667 cpp_quote(" break;")
1668 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1669 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1670 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1671 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1672 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1673 cpp_quote(" break;")
1674 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1675 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1676 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1677 cpp_quote(" break;")
1678 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1679 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1680 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1681 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1682 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1683 cpp_quote(" break;")
1684 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1685 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1686 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1687 cpp_quote(" break;")
1688 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1689 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1690 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1691 cpp_quote(" break;")
1692 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1693 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1694 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1695 cpp_quote(" break;")
1696 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1697 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1698 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1699 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1700 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1701 cpp_quote(" break;")
1702 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1703 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1704 cpp_quote(" BufferEx.NumElements = mip_levels;")
1705 cpp_quote(" BufferEx.Flags = flags;")
1706 cpp_quote(" break;")
1707 cpp_quote(" default:")
1708 cpp_quote(" break;")
1709 cpp_quote(" }")
1710 cpp_quote(" }")
1711 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1712 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1713 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1714 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1715 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1716 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1717 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1718 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1719 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1720 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1721 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1722 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1723 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1724 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1725 cpp_quote(" return *this;")
1726 cpp_quote(" }")
1727 cpp_quote("};")
1728 cpp_quote("#endif")
1730 typedef struct D3D11_TEXTURE1D_DESC
1732 UINT Width;
1733 UINT MipLevels;
1734 UINT ArraySize;
1735 DXGI_FORMAT Format;
1736 D3D11_USAGE Usage;
1737 UINT BindFlags;
1738 UINT CPUAccessFlags;
1739 UINT MiscFlags;
1740 } D3D11_TEXTURE1D_DESC;
1742 typedef struct D3D11_TEXTURE2D_DESC
1744 UINT Width;
1745 UINT Height;
1746 UINT MipLevels;
1747 UINT ArraySize;
1748 DXGI_FORMAT Format;
1749 DXGI_SAMPLE_DESC SampleDesc;
1750 D3D11_USAGE Usage;
1751 UINT BindFlags;
1752 UINT CPUAccessFlags;
1753 UINT MiscFlags;
1754 } D3D11_TEXTURE2D_DESC;
1756 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1757 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1758 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1759 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1760 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1761 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1762 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1763 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1764 cpp_quote(" Width = width;")
1765 cpp_quote(" Height = height;")
1766 cpp_quote(" MipLevels = mipLevels;")
1767 cpp_quote(" ArraySize = arraySize;")
1768 cpp_quote(" Format = format;")
1769 cpp_quote(" SampleDesc.Count = sampleCount;")
1770 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1771 cpp_quote(" Usage = usage;")
1772 cpp_quote(" BindFlags = bindFlags;")
1773 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1774 cpp_quote(" MiscFlags = miscFlags;")
1775 cpp_quote(" }" )
1776 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1777 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1778 cpp_quote("};")
1779 cpp_quote("#endif")
1781 typedef struct D3D11_TEXTURE3D_DESC
1783 UINT Width;
1784 UINT Height;
1785 UINT Depth;
1786 UINT MipLevels;
1787 DXGI_FORMAT Format;
1788 D3D11_USAGE Usage;
1789 UINT BindFlags;
1790 UINT CPUAccessFlags;
1791 UINT MiscFlags;
1792 } D3D11_TEXTURE3D_DESC;
1794 typedef struct D3D11_VIDEO_DECODER_DESC
1796 GUID Guid;
1797 UINT SampleWidth;
1798 UINT SampleHeight;
1799 DXGI_FORMAT OutputFormat;
1800 } D3D11_VIDEO_DECODER_DESC;
1802 typedef struct D3D11_VIDEO_DECODER_CONFIG
1804 GUID guidConfigBitstreamEncryption;
1805 GUID guidConfigMBcontrolEncryption;
1806 GUID guidConfigResidDiffEncryption;
1807 UINT ConfigBitstreamRaw;
1808 UINT ConfigMBcontrolRasterOrder;
1809 UINT ConfigResidDiffHost;
1810 UINT ConfigSpatialResid8;
1811 UINT ConfigResid8Subtraction;
1812 UINT ConfigSpatialHost8or9Clipping;
1813 UINT ConfigSpatialResidInterleaved;
1814 UINT ConfigIntraResidUnsigned;
1815 UINT ConfigResidDiffAccelerator;
1816 UINT ConfigHostInverseScan;
1817 UINT ConfigSpecificIDCT;
1818 UINT Config4GroupedCoefs;
1819 USHORT ConfigMinRenderTargetBuffCount;
1820 USHORT ConfigDecoderSpecific;
1821 } D3D11_VIDEO_DECODER_CONFIG;
1823 typedef enum D3D11_VIDEO_FRAME_FORMAT
1825 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1826 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1827 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1828 } D3D11_VIDEO_FRAME_FORMAT;
1830 typedef enum D3D11_VIDEO_USAGE
1832 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1833 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1834 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1835 } D3D11_VIDEO_USAGE;
1837 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1839 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1840 DXGI_RATIONAL InputFrameRate;
1841 UINT InputWidth;
1842 UINT InputHeight;
1843 DXGI_RATIONAL OutputFrameRate;
1844 UINT OutputWidth;
1845 UINT OutputHeight;
1846 D3D11_VIDEO_USAGE Usage;
1847 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1849 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1851 UINT DeviceCaps;
1852 UINT FeatureCaps;
1853 UINT FilterCaps;
1854 UINT InputFormatCaps;
1855 UINT AutoStreamCaps;
1856 UINT StereoCaps;
1857 UINT RateConversionCapsCount;
1858 UINT MaxInputStreams;
1859 UINT MaxStreamStates;
1860 } D3D11_VIDEO_PROCESSOR_CAPS;
1862 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1864 UINT PastFrames;
1865 UINT FutureFrames;
1866 UINT ProcessorCaps;
1867 UINT ITelecineCaps;
1868 UINT CustomRateCount;
1869 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1871 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1873 DXGI_RATIONAL CustomRate;
1874 UINT OutputFrames;
1875 BOOL InputInterlaced;
1876 UINT InputFramesOrFields;
1877 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1879 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1881 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1882 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1883 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1884 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1885 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1886 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1887 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1888 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1889 } D3D11_VIDEO_PROCESSOR_FILTER;
1891 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1893 int Minimum;
1894 int Maximum;
1895 int Default;
1896 float Multiplier;
1897 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1899 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1901 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1902 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1903 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1904 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1906 typedef enum D3D11_VDOV_DIMENSION
1908 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1909 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1910 } D3D11_VDOV_DIMENSION;
1912 typedef struct D3D11_TEX2D_VDOV
1914 UINT ArraySlice;
1915 } D3D11_TEX2D_VDOV;
1917 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1919 GUID DecodeProfile;
1920 D3D11_VDOV_DIMENSION ViewDimension;
1921 union {
1922 D3D11_TEX2D_VDOV Texture2D;
1924 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1926 typedef enum D3D11_VPIV_DIMENSION
1928 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1929 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1930 } D3D11_VPIV_DIMENSION;
1932 typedef struct D3D11_TEX2D_VPIV
1934 UINT MipSlice;
1935 UINT ArraySlice;
1936 } D3D11_TEX2D_VPIV;
1938 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1940 UINT FourCC;
1941 D3D11_VPIV_DIMENSION ViewDimension;
1942 union {
1943 D3D11_TEX2D_VPIV Texture2D;
1945 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1947 typedef enum D3D11_VPOV_DIMENSION
1949 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1950 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1951 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1952 } D3D11_VPOV_DIMENSION;
1954 typedef struct D3D11_TEX2D_VPOV
1956 UINT MipSlice;
1957 } D3D11_TEX2D_VPOV;
1959 typedef struct D3D11_TEX2D_ARRAY_VPOV
1961 UINT MipSlice;
1962 UINT FirstArraySlice;
1963 UINT ArraySize;
1964 } D3D11_TEX2D_ARRAY_VPOV;
1966 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1968 D3D11_VPOV_DIMENSION ViewDimension;
1969 union {
1970 D3D11_TEX2D_VPOV Texture2D;
1971 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1973 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1975 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1977 UINT Caps;
1978 UINT KeyExchangeTypeCount;
1979 UINT BlockAlignmentSize;
1980 ULONGLONG ProtectedMemorySize;
1981 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1983 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1985 UINT NumEncryptedBytesAtBeginning;
1986 UINT NumBytesInSkipPattern;
1987 UINT NumBytesInEncryptPattern;
1988 } D3D11_ENCRYPTED_BLOCK_INFO;
1990 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
1992 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
1993 UINT BufferIndex;
1994 UINT DataOffset;
1995 UINT DataSize;
1996 UINT FirstMBaddress;
1997 UINT NumMBsInBuffer;
1998 UINT Width;
1999 UINT Height;
2000 UINT Stride;
2001 UINT ReservedBits;
2002 void *pIV;
2003 UINT IVSize;
2004 BOOL PartialEncryption;
2005 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
2006 } D3D11_VIDEO_DECODER_BUFFER_DESC;
2008 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2010 UINT Function;
2011 void *pPrivateInputData;
2012 UINT PrivateInputDataSize;
2013 void *pPrivateOutputData;
2014 UINT PrivateOutputDataSize;
2015 UINT ResourceCount;
2016 ID3D11Resource **ppResourceList;
2017 } D3D11_VIDEO_DECODER_EXTENSION;
2019 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2021 float Y;
2022 float Cb;
2023 float Cr;
2024 float A;
2025 } D3D11_VIDEO_COLOR_YCbCrA;
2027 typedef struct D3D11_VIDEO_COLOR_RGBA
2029 float R;
2030 float G;
2031 float B;
2032 float A;
2033 } D3D11_VIDEO_COLOR_RGBA;
2035 typedef struct D3D11_VIDEO_COLOR
2037 union
2039 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
2040 D3D11_VIDEO_COLOR_RGBA RGBA;
2042 } D3D11_VIDEO_COLOR;
2044 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2046 UINT Usage : 1;
2047 UINT RGB_Range : 1;
2048 UINT YCbCr_Matrix : 1;
2049 UINT YCbCr_xvYCC : 1;
2050 UINT Nominal_Range : 2;
2051 UINT Reserved : 26;
2052 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
2054 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2056 BOOL Enable;
2057 UINT OutputIndex;
2058 UINT InputFrameOrField;
2059 UINT PastFrames;
2060 UINT FutureFrames;
2061 ID3D11VideoProcessorInputView **ppPastSurfaces;
2062 ID3D11VideoProcessorInputView *pInputSurface;
2063 ID3D11VideoProcessorInputView **ppFutureSurfaces;
2064 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
2065 ID3D11VideoProcessorInputView *pInputSurfaceRight;
2066 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
2067 } D3D11_VIDEO_PROCESSOR_STREAM;
2069 typedef struct D3D11_OMAC
2071 BYTE Omac[D3D11_OMAC_SIZE];
2072 } D3D11_OMAC;
2074 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2076 D3D11_OMAC omac;
2077 GUID ConfigureType;
2078 HANDLE hChannel;
2079 UINT SequenceNumber;
2080 HRESULT ReturnCode;
2081 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
2083 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2085 UINT64 Frequency;
2086 BOOL Disjoint;
2087 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
2089 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2091 UINT64 IAVertices;
2092 UINT64 IAPrimitives;
2093 UINT64 VSInvocations;
2094 UINT64 GSInvocations;
2095 UINT64 GSPrimitives;
2096 UINT64 CInvocations;
2097 UINT64 CPrimitives;
2098 UINT64 PSInvocations;
2099 UINT64 HSInvocations;
2100 UINT64 DSInvocations;
2101 UINT64 CSInvocations;
2102 } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
2104 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2106 UINT VertexCountPerInstance;
2107 UINT InstanceCount;
2108 UINT StartVertexLocation;
2109 UINT StartInstanceLocation;
2110 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
2112 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2114 UINT IndexCountPerInstance;
2115 UINT InstanceCount;
2116 UINT StartIndexLocation;
2117 INT BaseVertexLocation;
2118 UINT StartInstanceLocation;
2119 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
2121 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2123 D3D11_OMAC omac;
2124 GUID ConfigureType;
2125 HANDLE hChannel;
2126 UINT SequenceNumber;
2127 } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
2129 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2131 GUID QueryType;
2132 HANDLE hChannel;
2133 UINT SequenceNumber;
2134 } D3D11_AUTHENTICATED_QUERY_INPUT;
2136 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2138 D3D11_OMAC omac;
2139 GUID QueryType;
2140 HANDLE hChannel;
2141 UINT SequenceNumber;
2142 HRESULT ReturnCode;
2143 } D3D11_AUTHENTICATED_QUERY_OUTPUT;
2145 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2147 struct
2149 UINT ProtectionEnabled : 1;
2150 UINT OverlayOrFullscreenRequired : 1;
2151 UINT Reserved : 30;
2152 } Flags;
2153 UINT Value;
2154 } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
2156 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2158 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2159 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
2160 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
2162 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2164 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2165 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
2166 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
2168 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2170 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2171 HANDLE DeviceHandle;
2172 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
2174 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2176 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2177 HANDLE DecoderHandle;
2178 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
2180 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2182 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2183 HANDLE DecoderHandle;
2184 HANDLE CryptoSessionHandle;
2185 HANDLE DeviceHandle;
2186 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
2188 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2190 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2191 UINT RestrictedSharedResourceProcessCount;
2192 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
2194 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2196 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2197 UINT ProcessIndex;
2198 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
2200 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2202 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2203 UINT ProcessIndex;
2204 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
2205 HANDLE ProcessHandle;
2206 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
2208 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2210 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2211 UINT UnrestrictedProtectedSharedResourceCount;
2212 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
2214 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2216 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2217 HANDLE DeviceHandle;
2218 HANDLE CryptoSessionHandle;
2219 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
2221 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2223 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2224 HANDLE DeviceHandle;
2225 HANDLE CryptoSessionHandle;
2226 UINT OutputIDCount;
2227 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
2229 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2231 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2232 HANDLE DeviceHandle;
2233 HANDLE CryptoSessionHandle;
2234 UINT OutputIDIndex;
2235 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
2237 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2239 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2240 HANDLE DeviceHandle;
2241 HANDLE CryptoSessionHandle;
2242 UINT OutputIDIndex;
2243 UINT64 OutputID;
2244 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
2246 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2248 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2249 D3D11_BUS_TYPE BusType;
2250 BOOL AccessibleInContiguousBlocks;
2251 BOOL AccessibleInNonContiguousBlocks;
2252 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
2254 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2256 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2257 UINT EncryptionGuidCount;
2258 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
2260 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2262 D3D11_AUTHENTICATED_QUERY_INPUT Input;
2263 UINT EncryptionGuidIndex;
2264 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
2266 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2268 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2269 UINT EncryptionGuidIndex;
2270 GUID EncryptionGuid;
2271 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
2273 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2275 D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
2276 GUID EncryptionGuid;
2277 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
2279 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2281 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2282 UINT StartSequenceQuery;
2283 UINT StartSequenceConfigure;
2284 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
2286 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2288 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2289 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
2290 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
2292 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2294 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2295 HANDLE DecoderHandle;
2296 HANDLE CryptoSessionHandle;
2297 HANDLE DeviceHandle;
2298 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
2300 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2302 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2303 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
2304 HANDLE ProcessHandle;
2305 BOOL AllowAccess;
2306 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
2308 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2310 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
2311 GUID EncryptionGuid;
2312 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
2315 object,
2316 local,
2317 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
2319 interface ID3D11DeviceChild : IUnknown
2321 void GetDevice(
2322 [out] ID3D11Device **ppDevice);
2323 HRESULT GetPrivateData(
2324 [in] REFGUID guid,
2325 [in, out] UINT *pDataSize,
2326 [out] void *pData);
2327 HRESULT SetPrivateData(
2328 [in] REFGUID guid,
2329 [in] UINT DataSize,
2330 [in] const void *pData);
2331 HRESULT SetPrivateDataInterface(
2332 [in] REFGUID guid,
2333 [in] const IUnknown *pData);
2337 object,
2338 local,
2339 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
2341 interface ID3D11Asynchronous : ID3D11DeviceChild
2343 UINT GetDataSize();
2347 object,
2348 local,
2349 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
2351 interface ID3D11Query : ID3D11Asynchronous
2353 void GetDesc(
2354 [out] D3D11_QUERY_DESC *pDesc);
2358 object,
2359 local,
2360 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
2362 interface ID3D11Resource : ID3D11DeviceChild
2364 void GetType(
2365 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
2366 void SetEvictionPriority(
2367 [in] UINT EvictionPriority);
2368 UINT GetEvictionPriority();
2372 object,
2373 local,
2374 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
2376 interface ID3D11View : ID3D11DeviceChild
2378 void GetResource(
2379 [out] ID3D11Resource **ppResource);
2383 object,
2384 local,
2385 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
2387 interface ID3D11BlendState : ID3D11DeviceChild
2389 void GetDesc(
2390 [out] D3D11_BLEND_DESC *pDesc);
2394 object,
2395 local,
2396 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
2398 interface ID3D11Buffer : ID3D11Resource
2400 void GetDesc(
2401 [out] D3D11_BUFFER_DESC *pDesc);
2405 object,
2406 local,
2407 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
2409 interface ID3D11ClassInstance : ID3D11DeviceChild
2411 void GetClassLinkage(
2412 [out] ID3D11ClassLinkage **ppLinkage);
2413 void GetDesc(
2414 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
2415 void GetInstanceName(
2416 [out] LPSTR pInstanceName,
2417 [in, out] SIZE_T *pBufferLength);
2418 void GetTypeName(
2419 [out] LPSTR pTypeName,
2420 [in, out] SIZE_T *pBufferLength);
2424 object,
2425 local,
2426 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
2428 interface ID3D11ClassLinkage : ID3D11DeviceChild
2430 HRESULT GetClassInstance(
2431 [in] LPCSTR pClassInstanceName,
2432 [in] UINT InstanceIndex,
2433 [out] ID3D11ClassInstance **ppInstance);
2434 HRESULT CreateClassInstance(
2435 [in] LPCSTR pClassTypeName,
2436 [in] UINT ConstantBufferOffset,
2437 [in] UINT ConstantVectorOffset,
2438 [in] UINT TextureOffset,
2439 [in] UINT SamplerOffset,
2440 [out] ID3D11ClassInstance **ppInstance);
2444 object,
2445 local,
2446 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
2448 interface ID3D11CommandList : ID3D11DeviceChild
2450 UINT GetContextFlags();
2454 object,
2455 local,
2456 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
2458 interface ID3D11ComputeShader : ID3D11DeviceChild
2463 object,
2464 local,
2465 uuid(6e8c49fb-a371-4770-b440-29086022b741)
2467 interface ID3D11Counter : ID3D11Asynchronous
2469 void GetDesc(
2470 [out] D3D11_COUNTER_DESC *pDesc);
2474 object,
2475 local,
2476 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
2478 interface ID3D11DepthStencilState : ID3D11DeviceChild
2480 void GetDesc(
2481 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2485 object,
2486 local,
2487 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2489 interface ID3D11DepthStencilView : ID3D11View
2491 void GetDesc(
2492 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2496 object,
2497 local,
2498 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2500 interface ID3D11DomainShader : ID3D11DeviceChild
2505 object,
2506 local,
2507 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2509 interface ID3D11GeometryShader : ID3D11DeviceChild
2514 object,
2515 local,
2516 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2518 interface ID3D11HullShader : ID3D11DeviceChild
2523 object,
2524 local,
2525 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2527 interface ID3D11InputLayout : ID3D11DeviceChild
2532 object,
2533 local,
2534 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2536 interface ID3D11PixelShader : ID3D11DeviceChild
2541 object,
2542 local,
2543 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2545 interface ID3D11Predicate : ID3D11Query
2550 object,
2551 local,
2552 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2554 interface ID3D11RasterizerState : ID3D11DeviceChild
2556 void GetDesc(
2557 [out] D3D11_RASTERIZER_DESC *pDesc);
2561 object,
2562 local,
2563 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2565 interface ID3D11RenderTargetView : ID3D11View
2567 void GetDesc(
2568 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2572 object,
2573 local,
2574 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2576 interface ID3D11SamplerState : ID3D11DeviceChild
2578 void GetDesc(
2579 [out] D3D11_SAMPLER_DESC *pDesc);
2583 object,
2584 local,
2585 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2587 interface ID3D11ShaderResourceView : ID3D11View
2589 void GetDesc(
2590 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2594 object,
2595 local,
2596 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2598 interface ID3D11Texture1D : ID3D11Resource
2600 void GetDesc(
2601 [out] D3D11_TEXTURE1D_DESC *pDesc);
2605 object,
2606 local,
2607 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2609 interface ID3D11Texture2D : ID3D11Resource
2611 void GetDesc(
2612 [out] D3D11_TEXTURE2D_DESC *pDesc);
2616 object,
2617 local,
2618 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2620 interface ID3D11Texture3D : ID3D11Resource
2622 void GetDesc(
2623 [out] D3D11_TEXTURE3D_DESC *pDesc);
2627 object,
2628 local,
2629 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2631 interface ID3D11UnorderedAccessView : ID3D11View
2633 void GetDesc(
2634 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2638 object,
2639 local,
2640 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2642 interface ID3D11VertexShader : ID3D11DeviceChild
2647 object,
2648 local,
2649 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2651 interface ID3D11DeviceContext : ID3D11DeviceChild
2653 void VSSetConstantBuffers(
2654 [in] UINT StartSlot,
2655 [in] UINT NumBuffers,
2656 [in] ID3D11Buffer *const *ppConstantBuffers);
2657 void PSSetShaderResources(
2658 [in] UINT StartSlot,
2659 [in] UINT NumViews,
2660 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2661 void PSSetShader(
2662 [in] ID3D11PixelShader *pPixelShader,
2663 [in] ID3D11ClassInstance *const *ppClassInstances,
2664 UINT NumClassInstances);
2665 void PSSetSamplers(
2666 [in] UINT StartSlot,
2667 [in] UINT NumSamplers,
2668 [in] ID3D11SamplerState *const *ppSamplers);
2669 void VSSetShader(
2670 [in] ID3D11VertexShader *pVertexShader,
2671 [in] ID3D11ClassInstance *const *ppClassInstances,
2672 UINT NumClassInstances);
2673 void DrawIndexed(
2674 [in] UINT IndexCount,
2675 [in] UINT StartIndexLocation,
2676 [in] INT BaseVertexLocation);
2677 void Draw(
2678 [in] UINT VertexCount,
2679 [in] UINT StartVertexLocation);
2680 HRESULT Map(
2681 [in] ID3D11Resource *pResource,
2682 [in] UINT Subresource,
2683 [in] D3D11_MAP MapType,
2684 [in] UINT MapFlags,
2685 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2686 void Unmap(
2687 [in] ID3D11Resource *pResource,
2688 [in] UINT Subresource);
2689 void PSSetConstantBuffers(
2690 [in] UINT StartSlot,
2691 [in] UINT NumBuffers,
2692 [in] ID3D11Buffer *const *ppConstantBuffers);
2693 void IASetInputLayout(
2694 [in] ID3D11InputLayout *pInputLayout);
2695 void IASetVertexBuffers(
2696 [in] UINT StartSlot,
2697 [in] UINT NumBuffers,
2698 [in] ID3D11Buffer *const *ppVertexBuffers,
2699 [in] const UINT *pStrides,
2700 [in] const UINT *pOffsets);
2701 void IASetIndexBuffer(
2702 [in] ID3D11Buffer *pIndexBuffer,
2703 [in] DXGI_FORMAT Format,
2704 [in] UINT Offset);
2705 void DrawIndexedInstanced(
2706 [in] UINT IndexCountPerInstance,
2707 [in] UINT InstanceCount,
2708 [in] UINT StartIndexLocation,
2709 [in] INT BaseVertexLocation,
2710 [in] UINT StartInstanceLocation);
2711 void DrawInstanced(
2712 [in] UINT VertexCountPerInstance,
2713 [in] UINT InstanceCount,
2714 [in] UINT StartVertexLocation,
2715 [in] UINT StartInstanceLocation);
2716 void GSSetConstantBuffers(
2717 [in] UINT StartSlot,
2718 [in] UINT NumBuffers,
2719 [in] ID3D11Buffer *const *ppConstantBuffers);
2720 void GSSetShader(
2721 [in] ID3D11GeometryShader *pShader,
2722 [in] ID3D11ClassInstance *const *ppClassInstances,
2723 UINT NumClassInstances);
2724 void IASetPrimitiveTopology(
2725 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2726 void VSSetShaderResources(
2727 [in] UINT StartSlot,
2728 [in] UINT NumViews,
2729 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2730 void VSSetSamplers(
2731 [in] UINT StartSlot,
2732 [in] UINT NumSamplers,
2733 [in] ID3D11SamplerState *const *ppSamplers);
2734 void Begin(
2735 [in] ID3D11Asynchronous *pAsync);
2736 void End(
2737 [in] ID3D11Asynchronous *pAsync);
2738 HRESULT GetData(
2739 [in] ID3D11Asynchronous *pAsync,
2740 [in] void *pData,
2741 [in] UINT DataSize,
2742 [in] UINT GetDataFlags);
2743 void SetPredication(
2744 [in] ID3D11Predicate *pPredicate,
2745 [in] BOOL PredicateValue);
2746 void GSSetShaderResources(
2747 [in] UINT StartSlot,
2748 [in] UINT NumViews,
2749 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2750 void GSSetSamplers(
2751 [in] UINT StartSlot,
2752 [in] UINT NumSamplers,
2753 [in] ID3D11SamplerState *const *ppSamplers);
2754 void OMSetRenderTargets(
2755 [in] UINT NumViews,
2756 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2757 [in] ID3D11DepthStencilView *pDepthStencilView);
2758 void OMSetRenderTargetsAndUnorderedAccessViews(
2759 [in] UINT NumRTVs,
2760 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2761 [in] ID3D11DepthStencilView *pDepthStencilView,
2762 [in] UINT UAVStartSlot,
2763 [in] UINT NumUAVs,
2764 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2765 [in] const UINT *pUAVInitialCounts);
2766 void OMSetBlendState(
2767 [in] ID3D11BlendState *pBlendState,
2768 [in] const FLOAT BlendFactor[4],
2769 [in] UINT SampleMask);
2770 void OMSetDepthStencilState(
2771 [in] ID3D11DepthStencilState *pDepthStencilState,
2772 [in] UINT StencilRef);
2773 void SOSetTargets(
2774 [in] UINT NumBuffers,
2775 [in] ID3D11Buffer *const *ppSOTargets,
2776 [in] const UINT *pOffsets);
2777 void DrawAuto();
2778 void DrawIndexedInstancedIndirect(
2779 [in] ID3D11Buffer *pBufferForArgs,
2780 [in] UINT AlignedByteOffsetForArgs);
2781 void DrawInstancedIndirect(
2782 [in] ID3D11Buffer *pBufferForArgs,
2783 [in] UINT AlignedByteOffsetForArgs);
2784 void Dispatch(
2785 [in] UINT ThreadGroupCountX,
2786 [in] UINT ThreadGroupCountY,
2787 [in] UINT ThreadGroupCountZ);
2788 void DispatchIndirect(
2789 [in] ID3D11Buffer *pBufferForArgs,
2790 [in] UINT AlignedByteOffsetForArgs);
2791 void RSSetState(
2792 [in] ID3D11RasterizerState *pRasterizerState);
2793 void RSSetViewports(
2794 [in] UINT NumViewports,
2795 [in] const D3D11_VIEWPORT *pViewports);
2796 void RSSetScissorRects(
2797 [in] UINT NumRects,
2798 [in] const D3D11_RECT *pRects);
2799 void CopySubresourceRegion(
2800 [in] ID3D11Resource *pDstResource,
2801 [in] UINT DstSubresource,
2802 [in] UINT DstX,
2803 [in] UINT DstY,
2804 [in] UINT DstZ,
2805 [in] ID3D11Resource *pSrcResource,
2806 [in] UINT SrcSubresource,
2807 [in] const D3D11_BOX *pSrcBox);
2808 void CopyResource(
2809 [in] ID3D11Resource *pDstResource,
2810 [in] ID3D11Resource *pSrcResource);
2811 void UpdateSubresource(
2812 [in] ID3D11Resource *pDstResource,
2813 [in] UINT DstSubresource,
2814 [in] const D3D11_BOX *pDstBox,
2815 [in] const void *pSrcData,
2816 [in] UINT SrcRowPitch,
2817 [in] UINT SrcDepthPitch);
2818 void CopyStructureCount(
2819 [in] ID3D11Buffer *pDstBuffer,
2820 [in] UINT DstAlignedByteOffset,
2821 [in] ID3D11UnorderedAccessView *pSrcView);
2822 void ClearRenderTargetView(
2823 [in] ID3D11RenderTargetView *pRenderTargetView,
2824 [in] const FLOAT ColorRGBA[4]);
2825 void ClearUnorderedAccessViewUint(
2826 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2827 [in] const UINT Values[4]);
2828 void ClearUnorderedAccessViewFloat(
2829 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2830 [in] const FLOAT Values[4]);
2831 void ClearDepthStencilView(
2832 [in] ID3D11DepthStencilView *pDepthStencilView,
2833 [in] UINT ClearFlags,
2834 [in] FLOAT Depth,
2835 [in] UINT8 Stencil);
2836 void GenerateMips(
2837 [in] ID3D11ShaderResourceView *pShaderResourceView);
2838 void SetResourceMinLOD(
2839 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2840 FLOAT GetResourceMinLOD(
2841 [in] ID3D11Resource *pResource);
2842 void ResolveSubresource(
2843 [in] ID3D11Resource *pDstResource,
2844 [in] UINT DstSubresource,
2845 [in] ID3D11Resource *pSrcResource,
2846 [in] UINT SrcSubresource,
2847 [in] DXGI_FORMAT Format);
2848 void ExecuteCommandList(
2849 [in] ID3D11CommandList *pCommandList,
2850 BOOL RestoreContextState);
2851 void HSSetShaderResources(
2852 [in] UINT StartSlot,
2853 [in] UINT NumViews,
2854 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2855 void HSSetShader(
2856 [in] ID3D11HullShader *pHullShader,
2857 [in] ID3D11ClassInstance *const *ppClassInstances,
2858 UINT NumClassInstances);
2859 void HSSetSamplers(
2860 [in] UINT StartSlot,
2861 [in] UINT NumSamplers,
2862 [in] ID3D11SamplerState *const *ppSamplers);
2863 void HSSetConstantBuffers(
2864 [in] UINT StartSlot,
2865 [in] UINT NumBuffers,
2866 [in] ID3D11Buffer *const *ppConstantBuffers);
2867 void DSSetShaderResources(
2868 [in] UINT StartSlot,
2869 [in] UINT NumViews,
2870 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2871 void DSSetShader(
2872 [in] ID3D11DomainShader *pDomainShader,
2873 [in] ID3D11ClassInstance *const *ppClassInstances,
2874 UINT NumClassInstances);
2875 void DSSetSamplers(
2876 [in] UINT StartSlot,
2877 [in] UINT NumSamplers,
2878 [in] ID3D11SamplerState *const *ppSamplers);
2879 void DSSetConstantBuffers(
2880 [in] UINT StartSlot,
2881 [in] UINT NumBuffers,
2882 [in] ID3D11Buffer *const *ppConstantBuffers);
2883 void CSSetShaderResources(
2884 [in] UINT StartSlot,
2885 [in] UINT NumViews,
2886 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2887 void CSSetUnorderedAccessViews(
2888 [in] UINT StartSlot,
2889 [in] UINT NumUAVs,
2890 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2891 [in] const UINT *pUAVInitialCounts);
2892 void CSSetShader(
2893 [in] ID3D11ComputeShader *pComputeShader,
2894 [in] ID3D11ClassInstance *const *ppClassInstances,
2895 UINT NumClassInstances);
2896 void CSSetSamplers(
2897 [in] UINT StartSlot,
2898 [in] UINT NumSamplers,
2899 [in] ID3D11SamplerState *const *ppSamplers);
2900 void CSSetConstantBuffers(
2901 [in] UINT StartSlot,
2902 [in] UINT NumBuffers,
2903 [in] ID3D11Buffer *const *ppConstantBuffers);
2904 void VSGetConstantBuffers(
2905 [in] UINT StartSlot,
2906 [in] UINT NumBuffers,
2907 [out] ID3D11Buffer **ppConstantBuffers);
2908 void PSGetShaderResources(
2909 [in] UINT StartSlot,
2910 [in] UINT NumViews,
2911 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2912 void PSGetShader(
2913 [out] ID3D11PixelShader **ppPixelShader,
2914 [out] ID3D11ClassInstance **ppClassInstances,
2915 [in, out] UINT *pNumClassInstances);
2916 void PSGetSamplers(
2917 [in] UINT StartSlot,
2918 [in] UINT NumSamplers,
2919 [out] ID3D11SamplerState **ppSamplers);
2920 void VSGetShader(
2921 [out] ID3D11VertexShader **ppVertexShader,
2922 [out] ID3D11ClassInstance **ppClassInstances,
2923 [in, out] UINT *pNumClassInstances);
2924 void PSGetConstantBuffers(
2925 [in] UINT StartSlot,
2926 [in] UINT NumBuffers,
2927 [out] ID3D11Buffer **ppConstantBuffers);
2928 void IAGetInputLayout(
2929 [out] ID3D11InputLayout **ppInputLayout);
2930 void IAGetVertexBuffers(
2931 [in] UINT StartSlot,
2932 [in] UINT NumBuffers,
2933 [out] ID3D11Buffer **ppVertexBuffers,
2934 [out] UINT *pStrides,
2935 [out] UINT *pOffsets);
2936 void IAGetIndexBuffer(
2937 [out] ID3D11Buffer **pIndexBuffer,
2938 [out] DXGI_FORMAT* Format,
2939 [out] UINT* Offset);
2940 void GSGetConstantBuffers(
2941 [in] UINT StartSlot,
2942 [in] UINT NumBuffers,
2943 [out] ID3D11Buffer **ppConstantBuffers);
2944 void GSGetShader(
2945 [out] ID3D11GeometryShader **ppGeometryShader,
2946 [out] ID3D11ClassInstance **ppClassInstances,
2947 [in, out] UINT *pNumClassInstances);
2948 void IAGetPrimitiveTopology(
2949 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2950 void VSGetShaderResources(
2951 [in] UINT StartSlot,
2952 [in] UINT NumViews,
2953 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2954 void VSGetSamplers(
2955 [in] UINT StartSlot,
2956 [in] UINT NumSamplers,
2957 [out] ID3D11SamplerState **ppSamplers);
2958 void GetPredication(
2959 [out] ID3D11Predicate **ppPredicate,
2960 [out] BOOL *pPredicateValue);
2961 void GSGetShaderResources(
2962 [in] UINT StartSlot,
2963 [in] UINT NumViews,
2964 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2965 void GSGetSamplers(
2966 [in] UINT StartSlot,
2967 [in] UINT NumSamplers,
2968 [out] ID3D11SamplerState **ppSamplers);
2969 void OMGetRenderTargets(
2970 [in] UINT NumViews,
2971 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2972 [out] ID3D11DepthStencilView **ppDepthStencilView);
2973 void OMGetRenderTargetsAndUnorderedAccessViews(
2974 [in] UINT NumRTVs,
2975 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2976 [out] ID3D11DepthStencilView **ppDepthStencilView,
2977 [in] UINT UAVStartSlot,
2978 [in] UINT NumUAVs,
2979 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2980 void OMGetBlendState(
2981 [out] ID3D11BlendState **ppBlendState,
2982 [out] FLOAT BlendFactor[4],
2983 [out] UINT *pSampleMask);
2984 void OMGetDepthStencilState(
2985 [out] ID3D11DepthStencilState **ppDepthStencilState,
2986 [out] UINT *pStencilRef);
2987 void SOGetTargets(
2988 [in] UINT NumBuffers,
2989 [out] ID3D11Buffer **ppSOTargets);
2990 void RSGetState(
2991 [out] ID3D11RasterizerState **ppRasterizerState);
2992 void RSGetViewports(
2993 [in, out] UINT *pNumViewports,
2994 [out] D3D11_VIEWPORT *pViewports);
2995 void RSGetScissorRects(
2996 [in, out] UINT *pNumRects,
2997 [out] D3D11_RECT *pRects);
2998 void HSGetShaderResources(
2999 [in] UINT StartSlot,
3000 [in] UINT NumViews,
3001 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3002 void HSGetShader(
3003 [out] ID3D11HullShader **ppHullShader,
3004 [out] ID3D11ClassInstance **ppClassInstances,
3005 [in, out] UINT *pNumClassInstances);
3006 void HSGetSamplers(
3007 [in] UINT StartSlot,
3008 [in] UINT NumSamplers,
3009 [out] ID3D11SamplerState **ppSamplers);
3010 void HSGetConstantBuffers(
3011 [in] UINT StartSlot,
3012 [in] UINT NumBuffers,
3013 [out] ID3D11Buffer **ppConstantBuffers);
3014 void DSGetShaderResources(
3015 [in] UINT StartSlot,
3016 [in] UINT NumViews,
3017 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3018 void DSGetShader(
3019 [out] ID3D11DomainShader **ppDomainShader,
3020 [out] ID3D11ClassInstance **ppClassInstances,
3021 [in, out] UINT *pNumClassInstances);
3022 void DSGetSamplers(
3023 [in] UINT StartSlot,
3024 [in] UINT NumSamplers,
3025 [out] ID3D11SamplerState **ppSamplers);
3026 void DSGetConstantBuffers(
3027 [in] UINT StartSlot,
3028 [in] UINT NumBuffers,
3029 [out] ID3D11Buffer **ppConstantBuffers);
3030 void CSGetShaderResources(
3031 [in] UINT StartSlot,
3032 [in] UINT NumViews,
3033 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
3034 void CSGetUnorderedAccessViews(
3035 [in] UINT StartSlot,
3036 [in] UINT NumUAVs,
3037 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
3038 void CSGetShader(
3039 [out] ID3D11ComputeShader **ppComputeShader,
3040 [out] ID3D11ClassInstance **ppClassInstances,
3041 [in, out] UINT *pNumClassInstances);
3042 void CSGetSamplers(
3043 [in] UINT StartSlot,
3044 [in] UINT NumSamplers,
3045 [out] ID3D11SamplerState **ppSamplers);
3046 void CSGetConstantBuffers(
3047 [in] UINT StartSlot,
3048 [in] UINT NumBuffers,
3049 [out] ID3D11Buffer **ppConstantBuffers);
3050 void ClearState();
3051 void Flush();
3052 D3D11_DEVICE_CONTEXT_TYPE GetType();
3053 UINT GetContextFlags();
3054 HRESULT FinishCommandList(
3055 BOOL RestoreDeferredContextState,
3056 [out] ID3D11CommandList **ppCommandList);
3060 object,
3061 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
3062 local,
3063 pointer_default(unique)
3065 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
3067 HRESULT GetCertificateSize(
3068 UINT *pCertificateSize);
3069 HRESULT GetCertificate(
3070 UINT CertificateSize,
3071 BYTE *pCertificate);
3072 void GetChannelHandle(
3073 HANDLE *pChannelHandle);
3077 object,
3078 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
3079 local,
3080 pointer_default(unique)
3082 interface ID3D11CryptoSession : ID3D11DeviceChild
3084 void GetCryptoType(
3085 GUID *pCryptoType);
3086 void GetDecoderProfile(
3087 GUID *pDecoderProfile);
3088 HRESULT GetCertificateSize(
3089 UINT *pCertificateSize);
3090 HRESULT GetCertificate(
3091 UINT CertificateSize,
3092 BYTE *pCertificate);
3093 void GetCryptoSessionHandle(
3094 HANDLE *pCryptoSessionHandle);
3098 object,
3099 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
3100 local,
3101 pointer_default(unique)
3103 interface ID3D11VideoDecoder : ID3D11DeviceChild
3105 HRESULT GetCreationParameters(
3106 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3107 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3108 HRESULT GetDriverHandle(
3109 HANDLE *pDriverHandle);
3113 object,
3114 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
3115 local,
3116 pointer_default(unique)
3118 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
3120 HRESULT GetVideoProcessorContentDesc(
3121 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
3122 HRESULT CheckVideoProcessorFormat(
3123 DXGI_FORMAT Format,
3124 UINT *pFlags);
3125 HRESULT GetVideoProcessorCaps(
3126 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
3127 HRESULT GetVideoProcessorRateConversionCaps(
3128 UINT TypeIndex,
3129 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3130 HRESULT GetVideoProcessorCustomRate(
3131 UINT TypeIndex,
3132 UINT CustomRateIndex,
3133 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
3134 HRESULT GetVideoProcessorFilterRange(
3135 D3D11_VIDEO_PROCESSOR_FILTER Filter,
3136 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
3140 object,
3141 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
3142 local,
3143 pointer_default(unique)
3145 interface ID3D11VideoProcessor : ID3D11DeviceChild
3147 void GetContentDesc(
3148 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
3149 void GetRateConversionCaps(
3150 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
3154 object,
3155 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
3156 local,
3157 pointer_default(unique)
3159 interface ID3D11VideoDecoderOutputView : ID3D11View
3161 void GetDesc(
3162 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
3166 object,
3167 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
3168 local,
3169 pointer_default(unique)
3171 interface ID3D11VideoProcessorInputView : ID3D11View
3173 void GetDesc(
3174 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
3178 object,
3179 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
3180 local,
3181 pointer_default(unique)
3183 interface ID3D11VideoProcessorOutputView : ID3D11View
3185 void GetDesc(
3186 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
3190 object,
3191 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
3192 local,
3193 pointer_default(unique)
3195 interface ID3D11VideoDevice : IUnknown
3197 HRESULT CreateVideoDecoder(
3198 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
3199 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
3200 ID3D11VideoDecoder **ppDecoder);
3201 HRESULT CreateVideoProcessor(
3202 ID3D11VideoProcessorEnumerator *pEnum,
3203 UINT RateConversionIndex,
3204 ID3D11VideoProcessor **ppVideoProcessor);
3205 HRESULT CreateAuthenticatedChannel(
3206 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
3207 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
3208 HRESULT CreateCryptoSession(
3209 const GUID *pCryptoType,
3210 const GUID *pDecoderProfile,
3211 const GUID *pKeyExchangeType,
3212 ID3D11CryptoSession **ppCryptoSession);
3213 HRESULT CreateVideoDecoderOutputView(
3214 ID3D11Resource *pResource,
3215 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
3216 ID3D11VideoDecoderOutputView **ppVDOVView);
3217 HRESULT CreateVideoProcessorInputView(
3218 ID3D11Resource *pResource,
3219 ID3D11VideoProcessorEnumerator *pEnum,
3220 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
3221 ID3D11VideoProcessorInputView **ppVPIView);
3222 HRESULT CreateVideoProcessorOutputView(
3223 ID3D11Resource *pResource,
3224 ID3D11VideoProcessorEnumerator *pEnum,
3225 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
3226 ID3D11VideoProcessorOutputView **ppVPOView);
3227 HRESULT CreateVideoProcessorEnumerator(
3228 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
3229 ID3D11VideoProcessorEnumerator **ppEnum);
3230 UINT GetVideoDecoderProfileCount();
3231 HRESULT GetVideoDecoderProfile(
3232 UINT Index,
3233 GUID *pDecoderProfile);
3234 HRESULT CheckVideoDecoderFormat(
3235 const GUID *pDecoderProfile,
3236 DXGI_FORMAT Format,
3237 BOOL *pSupported);
3238 HRESULT GetVideoDecoderConfigCount(
3239 const D3D11_VIDEO_DECODER_DESC *pDesc,
3240 UINT *pCount);
3241 HRESULT GetVideoDecoderConfig(
3242 const D3D11_VIDEO_DECODER_DESC *pDesc,
3243 UINT Index,
3244 D3D11_VIDEO_DECODER_CONFIG *pConfig);
3245 HRESULT GetContentProtectionCaps(
3246 const GUID *pCryptoType,
3247 const GUID *pDecoderProfile,
3248 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
3249 HRESULT CheckCryptoKeyExchange(
3250 const GUID *pCryptoType,
3251 const GUID *pDecoderProfile,
3252 UINT Index,
3253 GUID *pKeyExchangeType);
3254 HRESULT SetPrivateData(
3255 REFGUID guid,
3256 UINT DataSize,
3257 const void *pData);
3258 HRESULT SetPrivateDataInterface(
3259 REFGUID guid,
3260 const IUnknown *pData);
3264 object,
3265 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
3266 local,
3267 pointer_default(unique)
3269 interface ID3D11VideoContext : ID3D11DeviceChild
3271 HRESULT GetDecoderBuffer(
3272 [in] ID3D11VideoDecoder *decoder,
3273 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
3274 [out] UINT *buffer_size,
3275 [out] void **buffer
3277 HRESULT ReleaseDecoderBuffer(
3278 [in] ID3D11VideoDecoder *decoder,
3279 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3281 HRESULT DecoderBeginFrame(
3282 [in] ID3D11VideoDecoder *decoder,
3283 [in] ID3D11VideoDecoderOutputView *view,
3284 [in] UINT key_size,
3285 [in] const void *key
3287 HRESULT DecoderEndFrame(
3288 [in] ID3D11VideoDecoder *decoder
3290 HRESULT SubmitDecoderBuffers(
3291 [in] ID3D11VideoDecoder *decoder,
3292 [in] UINT buffers_count,
3293 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
3295 HRESULT DecoderExtension(
3296 [in] ID3D11VideoDecoder *decoder,
3297 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
3299 void VideoProcessorSetOutputTargetRect(
3300 [in] ID3D11VideoProcessor *processor,
3301 [in] BOOL enable,
3302 [in] const RECT *rect
3304 void VideoProcessorSetOutputBackgroundColor(
3305 [in] ID3D11VideoProcessor *processor,
3306 [in] BOOL y_cb_cr,
3307 [in] const D3D11_VIDEO_COLOR *color
3309 void VideoProcessorSetOutputColorSpace(
3310 [in] ID3D11VideoProcessor *processor,
3311 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3313 void VideoProcessorSetOutputAlphaFillMode(
3314 [in] ID3D11VideoProcessor *processor,
3315 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
3316 [in] UINT stream_idx
3318 void VideoProcessorSetOutputConstriction(
3319 [in] ID3D11VideoProcessor *processor,
3320 [in] BOOL enable,
3321 [in] SIZE size
3323 void VideoProcessorSetOutputStereoMode(
3324 [in] ID3D11VideoProcessor *processor,
3325 [in] BOOL enable
3327 HRESULT VideoProcessorSetOutputExtension(
3328 [in] ID3D11VideoProcessor *processor,
3329 [in] const GUID *guid,
3330 [in] UINT data_size,
3331 [in] void *data
3333 void VideoProcessorGetOutputTargetRect(
3334 [in] ID3D11VideoProcessor *processor,
3335 [out] BOOL *enabled,
3336 [out] RECT *rect
3338 void VideoProcessorGetOutputBackgroundColor(
3339 [in] ID3D11VideoProcessor *processor,
3340 [out] BOOL *y_cb_cr,
3341 [out] D3D11_VIDEO_COLOR *color
3343 void VideoProcessorGetOutputColorSpace(
3344 [in] ID3D11VideoProcessor *processor,
3345 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3347 void VideoProcessorGetOutputAlphaFillMode(
3348 [in] ID3D11VideoProcessor *processor,
3349 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
3350 [out] UINT *stream_idx
3352 void VideoProcessorGetOutputConstriction(
3353 [in] ID3D11VideoProcessor *processor,
3354 [out] BOOL *enabled,
3355 [out] SIZE *size
3357 void VideoProcessorGetOutputStereoMode(
3358 [in] ID3D11VideoProcessor *processor,
3359 [out] BOOL *enabled
3361 HRESULT VideoProcessorGetOutputExtension(
3362 [in] ID3D11VideoProcessor *processor,
3363 [in] const GUID *guid,
3364 [in] UINT data_size,
3365 [out] void *data
3367 void VideoProcessorSetStreamFrameFormat(
3368 [in] ID3D11VideoProcessor *processor,
3369 [in] UINT stream_idx,
3370 [in] D3D11_VIDEO_FRAME_FORMAT format
3372 void VideoProcessorSetStreamColorSpace(
3373 [in] ID3D11VideoProcessor *processor,
3374 [in] UINT stream_idx,
3375 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3377 void VideoProcessorSetStreamOutputRate(
3378 [in] ID3D11VideoProcessor *processor,
3379 [in] UINT stream_idx,
3380 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
3381 [in] BOOL repeat,
3382 [in] const DXGI_RATIONAL *custom_rate
3384 void VideoProcessorSetStreamSourceRect(
3385 [in] ID3D11VideoProcessor *processor,
3386 [in] UINT stream_idx,
3387 [in] BOOL enable,
3388 [in] const RECT *rect
3390 void VideoProcessorSetStreamDestRect(
3391 [in] ID3D11VideoProcessor *processor,
3392 [in] UINT stream_idx,
3393 [in] BOOL enable,
3394 [in] const RECT *rect
3396 void VideoProcessorSetStreamAlpha(
3397 [in] ID3D11VideoProcessor *processor,
3398 [in] UINT stream_idx,
3399 [in] BOOL enable,
3400 [in] float alpha
3402 void VideoProcessorSetStreamPalette(
3403 [in] ID3D11VideoProcessor *processor,
3404 [in] UINT stream_idx,
3405 [in] UINT entry_count,
3406 [in] const UINT *entries
3408 void VideoProcessorSetStreamPixelAspectRatio(
3409 [in] ID3D11VideoProcessor *processor,
3410 [in] UINT stream_idx,
3411 [in] BOOL enable,
3412 [in] const DXGI_RATIONAL *src_aspect_ratio,
3413 [in] const DXGI_RATIONAL *dst_aspect_ratio
3415 void VideoProcessorSetStreamLumaKey(
3416 [in] ID3D11VideoProcessor *processor,
3417 [in] UINT stream_idx,
3418 [in] BOOL enable,
3419 [in] float lower,
3420 [in] float upper
3422 void VideoProcessorSetStreamStereoFormat(
3423 [in] ID3D11VideoProcessor *processor,
3424 [in] UINT stream_idx,
3425 [in] BOOL enable,
3426 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
3427 [in] BOOL left_view_frame0,
3428 [in] BOOL base_view_frame0,
3429 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
3430 [in] int mono_offset
3432 void VideoProcessorSetStreamAutoProcessingMode(
3433 [in] ID3D11VideoProcessor *processor,
3434 [in] UINT stream_idx,
3435 [in] BOOL enable
3437 void VideoProcessorSetStreamFilter(
3438 [in] ID3D11VideoProcessor *processor,
3439 [in] UINT stream_idx,
3440 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3441 [in] BOOL enable,
3442 [in] int level
3444 HRESULT VideoProcessorSetStreamExtension(
3445 [in] ID3D11VideoProcessor *processor,
3446 [in] UINT stream_idx,
3447 [in] const GUID *guid,
3448 [in] UINT data_size,
3449 [in] void *data
3451 void VideoProcessorGetStreamFrameFormat(
3452 [in] ID3D11VideoProcessor *processor,
3453 [in] UINT stream_idx,
3454 [out] D3D11_VIDEO_FRAME_FORMAT *format
3456 void VideoProcessorGetStreamColorSpace(
3457 [in] ID3D11VideoProcessor *processor,
3458 [in] UINT stream_idx,
3459 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
3461 void VideoProcessorGetStreamOutputRate(
3462 [in] ID3D11VideoProcessor *processor,
3463 [in] UINT stream_idx,
3464 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
3465 [out] BOOL *repeat,
3466 [out] DXGI_RATIONAL *custom_rate
3468 void VideoProcessorGetStreamSourceRect(
3469 [in] ID3D11VideoProcessor *processor,
3470 [in] UINT stream_idx,
3471 [out] BOOL *enabled,
3472 [out] RECT *rect
3474 void VideoProcessorGetStreamDestRect(
3475 [in] ID3D11VideoProcessor *processor,
3476 [in] UINT stream_idx,
3477 [out] BOOL *enabled,
3478 [out] RECT *rect
3480 void VideoProcessorGetStreamAlpha(
3481 [in] ID3D11VideoProcessor *processor,
3482 [in] UINT stream_idx,
3483 [out] BOOL *enabled,
3484 [out] float *alpha
3486 void VideoProcessorGetStreamPalette(
3487 [in] ID3D11VideoProcessor *processor,
3488 [in] UINT stream_idx,
3489 [in] UINT entry_count,
3490 [out] UINT *entries
3492 void VideoProcessorGetStreamPixelAspectRatio(
3493 [in] ID3D11VideoProcessor *processor,
3494 [in] UINT stream_idx,
3495 [out] BOOL *enabled,
3496 [out] DXGI_RATIONAL *src_aspect_ratio,
3497 [out] DXGI_RATIONAL *dst_aspect_ratio
3499 void VideoProcessorGetStreamLumaKey(
3500 [in] ID3D11VideoProcessor *processor,
3501 [in] UINT stream_idx,
3502 [out] BOOL *enabled,
3503 [out] float *lower,
3504 [out] float *upper
3506 void VideoProcessorGetStreamStereoFormat(
3507 [in] ID3D11VideoProcessor *processor,
3508 [in] UINT stream_idx,
3509 [out] BOOL *enabled,
3510 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3511 [out] BOOL *left_view_frame0,
3512 [out] BOOL *base_view_frame0,
3513 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3514 [out] int *mono_offset
3516 void VideoProcessorGetStreamAutoProcessingMode(
3517 [in] ID3D11VideoProcessor *processor,
3518 [in] UINT stream_idx,
3519 [out] BOOL *enabled
3521 void VideoProcessorGetStreamFilter(
3522 [in] ID3D11VideoProcessor *processor,
3523 [in] UINT stream_idx,
3524 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3525 [out] BOOL *enabled,
3526 [out] int *level
3528 HRESULT VideoProcessorGetStreamExtension(
3529 [in] ID3D11VideoProcessor *processor,
3530 [in] UINT stream_idx,
3531 [in] const GUID *guid,
3532 [in] UINT data_size,
3533 [out] void *data
3535 HRESULT VideoProcessorBlt(
3536 [in] ID3D11VideoProcessor *processor,
3537 [in] ID3D11VideoProcessorOutputView *view,
3538 [in] UINT frame_idx,
3539 [in] UINT stream_count,
3540 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3542 HRESULT NegotiateCryptoSessionKeyExchange(
3543 [in] ID3D11CryptoSession *session,
3544 [in] UINT data_size,
3545 [in, out] void *data
3547 void EncryptionBlt(
3548 [in] ID3D11CryptoSession *session,
3549 [in] ID3D11Texture2D *src_surface,
3550 [in] ID3D11Texture2D *dst_surface,
3551 [in] UINT iv_size,
3552 [in, out] void *iv
3554 void DecryptionBlt(
3555 [in] ID3D11CryptoSession *session,
3556 [in] ID3D11Texture2D *src_surface,
3557 [in] ID3D11Texture2D *dst_surface,
3558 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3559 [in] UINT key_size,
3560 [in] const void *key,
3561 [in] UINT iv_size,
3562 [in, out] void *iv
3564 void StartSessionKeyRefresh(
3565 [in] ID3D11CryptoSession *session,
3566 [in] UINT random_number_size,
3567 [out] void *random_number
3569 void FinishSessionKeyRefresh(
3570 [in] ID3D11CryptoSession *session
3572 HRESULT GetEncryptionBltKey(
3573 [in] ID3D11CryptoSession *session,
3574 [in] UINT key_size,
3575 [out] void *key
3577 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3578 [in] ID3D11AuthenticatedChannel *channel,
3579 [in] UINT data_size,
3580 [in, out] void *data
3582 HRESULT QueryAuthenticatedChannel(
3583 [in] ID3D11AuthenticatedChannel *channel,
3584 [in] UINT input_size,
3585 [in] const void *input,
3586 [in] UINT output_size,
3587 [out] void *output
3589 HRESULT ConfigureAuthenticatedChannel(
3590 [in] ID3D11AuthenticatedChannel *channel,
3591 [in] UINT input_size,
3592 [in] const void *input,
3593 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3595 void VideoProcessorSetStreamRotation(
3596 [in] ID3D11VideoProcessor *processor,
3597 [in] UINT stream_idx,
3598 [in] BOOL enable,
3599 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3601 void VideoProcessorGetStreamRotation(
3602 [in] ID3D11VideoProcessor *processor,
3603 [in] UINT stream_idx,
3604 [out] BOOL *enable,
3605 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3610 object,
3611 local,
3612 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3614 interface ID3D11Device : IUnknown
3616 HRESULT CreateBuffer(
3617 [in] const D3D11_BUFFER_DESC *pDesc,
3618 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3619 [out] ID3D11Buffer **ppBuffer);
3620 HRESULT CreateTexture1D(
3621 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3622 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3623 [out] ID3D11Texture1D **ppTexture1D);
3624 HRESULT CreateTexture2D(
3625 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3626 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3627 [out] ID3D11Texture2D **ppTexture2D);
3628 HRESULT CreateTexture3D(
3629 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3630 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3631 [out] ID3D11Texture3D **ppTexture3D);
3632 HRESULT CreateShaderResourceView(
3633 [in] ID3D11Resource *pResource,
3634 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3635 [out] ID3D11ShaderResourceView **ppSRView);
3636 HRESULT CreateUnorderedAccessView(
3637 [in] ID3D11Resource *pResource,
3638 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3639 [out] ID3D11UnorderedAccessView **ppUAView);
3640 HRESULT CreateRenderTargetView(
3641 [in] ID3D11Resource *pResource,
3642 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3643 [out] ID3D11RenderTargetView **ppRTView);
3644 HRESULT CreateDepthStencilView(
3645 [in] ID3D11Resource *pResource,
3646 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3647 [out] ID3D11DepthStencilView **ppDepthStencilView);
3648 HRESULT CreateInputLayout(
3649 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3650 [in] UINT NumElements,
3651 [in] const void *pShaderBytecodeWithInputSignature,
3652 [in] SIZE_T BytecodeLength,
3653 [out] ID3D11InputLayout **ppInputLayout);
3654 HRESULT CreateVertexShader(
3655 [in] const void *pShaderBytecode,
3656 [in] SIZE_T BytecodeLength,
3657 [in] ID3D11ClassLinkage *pClassLinkage,
3658 [out] ID3D11VertexShader **ppVertexShader);
3659 HRESULT CreateGeometryShader(
3660 [in] const void *pShaderBytecode,
3661 [in] SIZE_T BytecodeLength,
3662 [in] ID3D11ClassLinkage *pClassLinkage,
3663 [out] ID3D11GeometryShader **ppGeometryShader);
3664 HRESULT CreateGeometryShaderWithStreamOutput(
3665 [in] const void *pShaderBytecode,
3666 [in] SIZE_T BytecodeLength,
3667 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3668 [in] UINT NumEntries,
3669 [in] const UINT *pBufferStrides,
3670 [in] UINT NumStrides,
3671 [in] UINT RasterizedStream,
3672 [in] ID3D11ClassLinkage *pClassLinkage,
3673 [out] ID3D11GeometryShader **ppGeometryShader);
3674 HRESULT CreatePixelShader(
3675 [in] const void *pShaderBytecode,
3676 [in] SIZE_T BytecodeLength,
3677 [in] ID3D11ClassLinkage *pClassLinkage,
3678 [out] ID3D11PixelShader **ppPixelShader);
3679 HRESULT CreateHullShader(
3680 [in] const void *pShaderBytecode,
3681 [in] SIZE_T BytecodeLength,
3682 [in] ID3D11ClassLinkage *pClassLinkage,
3683 [out] ID3D11HullShader **ppHullShader);
3684 HRESULT CreateDomainShader(
3685 [in] const void *pShaderBytecode,
3686 [in] SIZE_T BytecodeLength,
3687 [in] ID3D11ClassLinkage *pClassLinkage,
3688 [out] ID3D11DomainShader **ppDomainShader);
3689 HRESULT CreateComputeShader(
3690 [in] const void *pShaderBytecode,
3691 [in] SIZE_T BytecodeLength,
3692 [in] ID3D11ClassLinkage *pClassLinkage,
3693 [out] ID3D11ComputeShader **ppComputeShader);
3694 HRESULT CreateClassLinkage(
3695 [out] ID3D11ClassLinkage **ppLinkage);
3696 HRESULT CreateBlendState(
3697 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3698 [out] ID3D11BlendState **ppBlendState);
3699 HRESULT CreateDepthStencilState(
3700 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3701 [out] ID3D11DepthStencilState **ppDepthStencilState);
3702 HRESULT CreateRasterizerState(
3703 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3704 [out] ID3D11RasterizerState **ppRasterizerState);
3705 HRESULT CreateSamplerState(
3706 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3707 [out] ID3D11SamplerState **ppSamplerState);
3708 HRESULT CreateQuery(
3709 [in] const D3D11_QUERY_DESC *pQueryDesc,
3710 [out] ID3D11Query **ppQuery);
3711 HRESULT CreatePredicate(
3712 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3713 [out] ID3D11Predicate **ppPredicate);
3714 HRESULT CreateCounter(
3715 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3716 [out] ID3D11Counter **ppCounter);
3717 HRESULT CreateDeferredContext(
3718 UINT ContextFlags,
3719 [out] ID3D11DeviceContext **ppDeferredContext);
3720 HRESULT OpenSharedResource(
3721 [in] HANDLE hResource,
3722 [in] REFIID ReturnedInterface,
3723 [out] void **ppResource);
3724 HRESULT CheckFormatSupport(
3725 [in] DXGI_FORMAT Format,
3726 [out] UINT *pFormatSupport);
3727 HRESULT CheckMultisampleQualityLevels(
3728 [in] DXGI_FORMAT Format,
3729 [in] UINT SampleCount,
3730 [out] UINT *pNumQualityLevels);
3731 void CheckCounterInfo(
3732 [out] D3D11_COUNTER_INFO *pCounterInfo);
3733 HRESULT CheckCounter(
3734 [in] const D3D11_COUNTER_DESC *pDesc,
3735 [out] D3D11_COUNTER_TYPE *pType,
3736 [out] UINT *pActiveCounters,
3737 [out] LPSTR szName,
3738 [in, out] UINT *pNameLength,
3739 [out] LPSTR szUnits,
3740 [in, out] UINT *pUnitsLength,
3741 [out] LPSTR szDescription,
3742 [in, out] UINT *pDescriptionLength);
3743 HRESULT CheckFeatureSupport(
3744 D3D11_FEATURE Feature,
3745 [out] void *pFeatureSupportData,
3746 UINT FeatureSupportDataSize);
3747 HRESULT GetPrivateData(
3748 [in] REFGUID guid,
3749 [in, out] UINT *pDataSize,
3750 [out] void *pData);
3751 HRESULT SetPrivateData(
3752 [in] REFGUID guid,
3753 [in] UINT DataSize,
3754 [in] const void *pData);
3755 HRESULT SetPrivateDataInterface(
3756 [in] REFGUID guid,
3757 [in] const IUnknown *pData);
3758 D3D_FEATURE_LEVEL GetFeatureLevel();
3759 UINT GetCreationFlags();
3760 HRESULT GetDeviceRemovedReason();
3761 void GetImmediateContext(
3762 [out] ID3D11DeviceContext **ppImmediateContext);
3763 HRESULT SetExceptionMode(UINT RaiseFlags);
3764 UINT GetExceptionMode();
3767 typedef enum D3D11_CREATE_DEVICE_FLAG {
3768 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3769 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3770 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3771 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3772 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3773 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3774 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3775 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3776 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3777 } D3D11_CREATE_DEVICE_FLAG;
3779 const UINT D3D11_SDK_VERSION = 7;
3781 cpp_quote("#include <d3d10_1.h>")
3782 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3783 cpp_quote("# include <d3d11sdklayers.h>")
3784 cpp_quote("#endif")
3785 cpp_quote("#include <d3d10misc.h>")
3786 cpp_quote("#include <d3d10shader.h>")
3787 cpp_quote("#include <d3d10effect.h>")
3788 cpp_quote("#include <d3d10_1shader.h>")
3790 const UINT _FACD3D11 = 0x87c;
3791 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3793 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3794 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3796 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3797 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3799 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3800 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3801 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3803 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3804 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3805 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3806 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);