winemine: Added Shift+LClick hotkey to uncover multiple cells.
[wine.git] / include / d3d11.idl
blobad676c75a85de122db9a030ae4abdffb14a7abac
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 struct D3D11_BOX
350 UINT left;
351 UINT top;
352 UINT front;
353 UINT right;
354 UINT bottom;
355 UINT back;
356 } D3D11_BOX;
358 typedef struct D3D11_BUFFER_RTV
360 union
362 UINT FirstElement;
363 UINT ElementOffset;
365 union
367 UINT NumElements;
368 UINT ElementWidth;
370 } D3D11_BUFFER_RTV;
372 typedef struct D3D11_BUFFER_SRV
374 union
376 UINT FirstElement;
377 UINT ElementOffset;
379 union
381 UINT NumElements;
382 UINT ElementWidth;
384 } D3D11_BUFFER_SRV;
386 typedef struct D3D11_BUFFER_UAV
388 UINT FirstElement;
389 UINT NumElements;
390 UINT Flags;
391 } D3D11_BUFFER_UAV;
393 typedef struct D3D11_BUFFEREX_SRV
395 UINT FirstElement;
396 UINT NumElements;
397 UINT Flags;
398 } D3D11_BUFFEREX_SRV;
400 typedef struct D3D11_CLASS_INSTANCE_DESC
402 UINT InstanceId;
403 UINT InstanceIndex;
404 UINT TypeId;
405 UINT ConstantBuffer;
406 UINT BaseConstantBufferOffset;
407 UINT BaseTexture;
408 UINT BaseSampler;
409 BOOL Created;
410 } D3D11_CLASS_INSTANCE_DESC;
412 typedef enum D3D11_COMPARISON_FUNC
414 D3D11_COMPARISON_NEVER = 1,
415 D3D11_COMPARISON_LESS,
416 D3D11_COMPARISON_EQUAL,
417 D3D11_COMPARISON_LESS_EQUAL,
418 D3D11_COMPARISON_GREATER,
419 D3D11_COMPARISON_NOT_EQUAL,
420 D3D11_COMPARISON_GREATER_EQUAL,
421 D3D11_COMPARISON_ALWAYS
422 } D3D11_COMPARISON_FUNC;
424 typedef enum D3D11_COUNTER
426 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
427 } D3D11_COUNTER;
429 typedef struct D3D11_COUNTER_DESC
431 D3D11_COUNTER Counter;
432 UINT MiscFlags;
433 } D3D11_COUNTER_DESC;
435 typedef struct D3D11_COUNTER_INFO
437 D3D11_COUNTER LastDeviceDependentCounter;
438 UINT NumSimultaneousCounters;
439 UINT8 NumDetectableParallelUnits;
440 } D3D11_COUNTER_INFO;
442 typedef enum D3D11_COUNTER_TYPE
444 D3D11_COUNTER_TYPE_FLOAT32,
445 D3D11_COUNTER_TYPE_UINT16,
446 D3D11_COUNTER_TYPE_UINT32,
447 D3D11_COUNTER_TYPE_UINT64,
448 } D3D11_COUNTER_TYPE;
450 typedef enum D3D11_CULL_MODE
452 D3D11_CULL_NONE = 1,
453 D3D11_CULL_FRONT,
454 D3D11_CULL_BACK
455 } D3D11_CULL_MODE;
457 typedef enum D3D11_DEPTH_WRITE_MASK
459 D3D11_DEPTH_WRITE_MASK_ZERO,
460 D3D11_DEPTH_WRITE_MASK_ALL,
461 } D3D11_DEPTH_WRITE_MASK;
463 typedef enum D3D11_DEVICE_CONTEXT_TYPE
465 D3D11_DEVICE_CONTEXT_IMMEDIATE,
466 D3D11_DEVICE_CONTEXT_DEFERRED,
467 } D3D11_DEVICE_CONTEXT_TYPE;
469 typedef enum D3D11_DSV_DIMENSION
471 D3D11_DSV_DIMENSION_UNKNOWN,
472 D3D11_DSV_DIMENSION_TEXTURE1D,
473 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
474 D3D11_DSV_DIMENSION_TEXTURE2D,
475 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
476 D3D11_DSV_DIMENSION_TEXTURE2DMS,
477 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
478 } D3D11_DSV_DIMENSION;
480 typedef enum D3D11_FEATURE
482 D3D11_FEATURE_THREADING,
483 D3D11_FEATURE_DOUBLES,
484 D3D11_FEATURE_FORMAT_SUPPORT,
485 D3D11_FEATURE_FORMAT_SUPPORT2,
486 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
487 D3D11_FEATURE_D3D11_OPTIONS,
488 D3D11_FEATURE_ARCHITECTURE_INFO,
489 D3D11_FEATURE_D3D9_OPTIONS,
490 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
491 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
492 } D3D11_FEATURE;
494 typedef struct D3D11_FEATURE_DATA_THREADING
496 BOOL DriverConcurrentCreates;
497 BOOL DriverCommandLists;
498 } D3D11_FEATURE_DATA_THREADING;
500 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
502 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
503 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
505 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
507 BOOL OutputMergerLogicOp;
508 BOOL UAVOnlyRenderingForcedSampleCount;
509 BOOL DiscardAPIsSeenByDriver;
510 BOOL FlagsForUpdateAndCopySeenByDriver;
511 BOOL ClearView;
512 BOOL CopyWithOverlap;
513 BOOL ConstantBufferPartialUpdate;
514 BOOL ConstantBufferOffsetting;
515 BOOL MapNoOverwriteOnDynamicConstantBuffer;
516 BOOL MapNoOverwriteOnDynamicBufferSRV;
517 BOOL MultisampleRTVWithForcedSampleCountOne;
518 BOOL SAD4ShaderInstructions;
519 BOOL ExtendedDoublesShaderInstructions;
520 BOOL ExtendedResourceSharing;
521 } D3D11_FEATURE_DATA_D3D11_OPTIONS;
523 typedef enum D3D11_FILL_MODE
525 D3D11_FILL_WIREFRAME = 2,
526 D3D11_FILL_SOLID
527 } D3D11_FILL_MODE;
529 typedef enum D3D11_FILTER_TYPE
531 D3D11_FILTER_TYPE_POINT = 0,
532 D3D11_FILTER_TYPE_LINEAR = 1
533 } D3D11_FILTER_TYPE;
535 const UINT D3D11_MIN_FILTER_SHIFT = 4;
536 const UINT D3D11_MAG_FILTER_SHIFT = 2;
537 const UINT D3D11_MIP_FILTER_SHIFT = 0;
538 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
539 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
540 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
542 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
543 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
544 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
545 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
546 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
548 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
549 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
550 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
551 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
553 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
554 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
556 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
557 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
559 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
560 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
562 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
564 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
565 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
566 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
567 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
568 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
570 typedef enum D3D11_FILTER
572 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
573 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
574 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
575 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
576 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
577 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
578 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
579 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
580 D3D11_FILTER_ANISOTROPIC = 0x55,
581 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
582 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
583 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
584 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
585 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
586 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
587 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
588 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
589 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
590 } D3D11_FILTER;
592 typedef enum D3D11_DSV_FLAG
594 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
595 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
596 } D3D11_DSV_FLAG;
598 typedef enum D3D11_BUFFEREX_SRV_FLAG
600 D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
601 } D3D11_BUFFEREX_SRV_FLAG;
603 typedef enum D3D11_UAV_FLAG
605 D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
606 D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
607 D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
608 } D3D11_UAV_FLAG;
610 typedef enum D3D11_INPUT_CLASSIFICATION
612 D3D11_INPUT_PER_VERTEX_DATA,
613 D3D11_INPUT_PER_INSTANCE_DATA,
614 } D3D11_INPUT_CLASSIFICATION;
616 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
618 typedef struct D3D11_INPUT_ELEMENT_DESC
620 LPCSTR SemanticName;
621 UINT SemanticIndex;
622 DXGI_FORMAT Format;
623 UINT InputSlot;
624 UINT AlignedByteOffset;
625 D3D11_INPUT_CLASSIFICATION InputSlotClass;
626 UINT InstanceDataStepRate;
627 } D3D11_INPUT_ELEMENT_DESC;
629 typedef enum D3D11_MAP
631 D3D11_MAP_READ = 1,
632 D3D11_MAP_WRITE,
633 D3D11_MAP_READ_WRITE,
634 D3D11_MAP_WRITE_DISCARD,
635 D3D11_MAP_WRITE_NO_OVERWRITE
636 } D3D11_MAP;
638 typedef enum D3D11_MAP_FLAG
640 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
641 } D3D11_MAP_FLAG;
643 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
645 UINT64 NumPrimitivesWritten;
646 UINT64 PrimitivesStorageNeeded;
647 } D3D11_QUERY_DATA_SO_STATISTICS;
649 typedef struct D3D11_MAPPED_SUBRESOURCE
651 void *pData;
652 UINT RowPitch;
653 UINT DepthPitch;
654 } D3D11_MAPPED_SUBRESOURCE;
656 typedef enum D3D11_QUERY
658 D3D11_QUERY_EVENT,
659 D3D11_QUERY_OCCLUSION,
660 D3D11_QUERY_TIMESTAMP,
661 D3D11_QUERY_TIMESTAMP_DISJOINT,
662 D3D11_QUERY_PIPELINE_STATISTICS,
663 D3D11_QUERY_OCCLUSION_PREDICATE,
664 D3D11_QUERY_SO_STATISTICS,
665 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
666 D3D11_QUERY_SO_STATISTICS_STREAM0,
667 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
668 D3D11_QUERY_SO_STATISTICS_STREAM1,
669 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
670 D3D11_QUERY_SO_STATISTICS_STREAM2,
671 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
672 D3D11_QUERY_SO_STATISTICS_STREAM3,
673 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
674 } D3D11_QUERY;
676 typedef enum D3D11_QUERY_MISC_FLAG
678 D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
679 } D3D11_QUERY_MISC_FLAG;
681 typedef enum D3D11_ASYNC_GETDATA_FLAG
683 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
684 } D3D11_ASYNC_GETDATA_FLAG;
686 typedef enum D3D11_RESOURCE_MISC_FLAG
688 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
689 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
690 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
691 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
692 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
693 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
694 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
695 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
696 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
697 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
698 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
699 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
700 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
701 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
702 } D3D11_RESOURCE_MISC_FLAG;
704 typedef struct D3D11_QUERY_DESC
706 D3D11_QUERY Query;
707 UINT MiscFlags;
708 } D3D11_QUERY_DESC;
710 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
711 cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
712 cpp_quote(" CD3D11_QUERY_DESC() {}")
713 cpp_quote(" ~CD3D11_QUERY_DESC() {}")
714 cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
715 cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
716 cpp_quote(" Query = query;")
717 cpp_quote(" MiscFlags = misc_flags;")
718 cpp_quote(" }")
719 cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
720 cpp_quote(" return *this;")
721 cpp_quote(" }")
722 cpp_quote("};")
723 cpp_quote("#endif")
725 typedef struct D3D11_RASTERIZER_DESC
727 D3D11_FILL_MODE FillMode;
728 D3D11_CULL_MODE CullMode;
729 BOOL FrontCounterClockwise;
730 INT DepthBias;
731 FLOAT DepthBiasClamp;
732 FLOAT SlopeScaledDepthBias;
733 BOOL DepthClipEnable;
734 BOOL ScissorEnable;
735 BOOL MultisampleEnable;
736 BOOL AntialiasedLineEnable;
737 } D3D11_RASTERIZER_DESC;
739 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
740 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
741 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
742 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
743 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
744 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
745 cpp_quote(" CullMode = D3D11_CULL_BACK;")
746 cpp_quote(" FrontCounterClockwise = FALSE;")
747 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
748 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
749 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
750 cpp_quote(" DepthClipEnable = TRUE;")
751 cpp_quote(" ScissorEnable = FALSE;")
752 cpp_quote(" MultisampleEnable = FALSE;")
753 cpp_quote(" AntialiasedLineEnable = FALSE;")
754 cpp_quote(" }")
755 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
756 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
757 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
758 cpp_quote(" FillMode = fillMode;")
759 cpp_quote(" CullMode = cullMode;")
760 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
761 cpp_quote(" DepthBias = depthBias;")
762 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
763 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
764 cpp_quote(" DepthClipEnable = depthClipEnable;")
765 cpp_quote(" ScissorEnable = scissorEnable;")
766 cpp_quote(" MultisampleEnable = multisampleEnable;")
767 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
768 cpp_quote(" }")
769 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
770 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
771 cpp_quote("};")
772 cpp_quote("#endif")
774 typedef enum D3D11_RESOURCE_DIMENSION
776 D3D11_RESOURCE_DIMENSION_UNKNOWN,
777 D3D11_RESOURCE_DIMENSION_BUFFER,
778 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
779 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
780 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
781 } D3D11_RESOURCE_DIMENSION;
783 typedef enum D3D11_RTV_DIMENSION
785 D3D11_RTV_DIMENSION_UNKNOWN,
786 D3D11_RTV_DIMENSION_BUFFER,
787 D3D11_RTV_DIMENSION_TEXTURE1D,
788 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
789 D3D11_RTV_DIMENSION_TEXTURE2D,
790 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
791 D3D11_RTV_DIMENSION_TEXTURE2DMS,
792 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
793 D3D11_RTV_DIMENSION_TEXTURE3D,
794 } D3D11_RTV_DIMENSION;
796 typedef struct D3D11_SO_DECLARATION_ENTRY
798 UINT Stream;
799 LPCSTR SemanticName;
800 UINT SemanticIndex;
801 BYTE StartComponent;
802 BYTE ComponentCount;
803 BYTE OutputSlot;
804 } D3D11_SO_DECLARATION_ENTRY;
806 typedef enum D3D11_STENCIL_OP
808 D3D11_STENCIL_OP_KEEP = 1,
809 D3D11_STENCIL_OP_ZERO,
810 D3D11_STENCIL_OP_REPLACE,
811 D3D11_STENCIL_OP_INCR_SAT,
812 D3D11_STENCIL_OP_DECR_SAT,
813 D3D11_STENCIL_OP_INVERT,
814 D3D11_STENCIL_OP_INCR,
815 D3D11_STENCIL_OP_DECR
816 } D3D11_STENCIL_OP;
818 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
819 cpp_quote("}")
820 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
821 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
822 cpp_quote("}")
823 cpp_quote("extern \"C\"{")
824 cpp_quote("#endif")
826 typedef struct D3D11_SUBRESOURCE_DATA
828 const void *pSysMem;
829 UINT SysMemPitch;
830 UINT SysMemSlicePitch;
831 } D3D11_SUBRESOURCE_DATA;
833 typedef struct D3D11_TEX1D_ARRAY_DSV
835 UINT MipSlice;
836 UINT FirstArraySlice;
837 UINT ArraySize;
838 } D3D11_TEX1D_ARRAY_DSV;
840 typedef struct D3D11_TEX1D_ARRAY_RTV
842 UINT MipSlice;
843 UINT FirstArraySlice;
844 UINT ArraySize;
845 } D3D11_TEX1D_ARRAY_RTV;
847 typedef struct D3D11_TEX1D_ARRAY_SRV
849 UINT MostDetailedMip;
850 UINT MipLevels;
851 UINT FirstArraySlice;
852 UINT ArraySize;
853 } D3D11_TEX1D_ARRAY_SRV;
855 typedef struct D3D11_TEX1D_ARRAY_UAV
857 UINT MipSlice;
858 UINT FirstArraySlice;
859 UINT ArraySize;
860 } D3D11_TEX1D_ARRAY_UAV;
862 typedef struct D3D11_TEX1D_DSV
864 UINT MipSlice;
865 } D3D11_TEX1D_DSV;
867 typedef struct D3D11_TEX1D_RTV
869 UINT MipSlice;
870 } D3D11_TEX1D_RTV;
872 typedef struct D3D11_TEX1D_SRV
874 UINT MostDetailedMip;
875 UINT MipLevels;
876 } D3D11_TEX1D_SRV;
878 typedef struct D3D11_TEX1D_UAV
880 UINT MipSlice;
881 } D3D11_TEX1D_UAV;
883 typedef struct D3D11_TEX2D_ARRAY_DSV
885 UINT MipSlice;
886 UINT FirstArraySlice;
887 UINT ArraySize;
888 } D3D11_TEX2D_ARRAY_DSV;
890 typedef struct D3D11_TEX2D_ARRAY_RTV
892 UINT MipSlice;
893 UINT FirstArraySlice;
894 UINT ArraySize;
895 } D3D11_TEX2D_ARRAY_RTV;
897 typedef struct D3D11_TEX2D_ARRAY_SRV
899 UINT MostDetailedMip;
900 UINT MipLevels;
901 UINT FirstArraySlice;
902 UINT ArraySize;
903 } D3D11_TEX2D_ARRAY_SRV;
905 typedef struct D3D11_TEX2D_ARRAY_UAV
907 UINT MipSlice;
908 UINT FirstArraySlice;
909 UINT ArraySize;
910 } D3D11_TEX2D_ARRAY_UAV;
912 typedef struct D3D11_TEX2D_DSV
914 UINT MipSlice;
915 } D3D11_TEX2D_DSV;
917 typedef struct D3D11_TEX2D_RTV
919 UINT MipSlice;
920 } D3D11_TEX2D_RTV;
922 typedef struct D3D11_TEX2D_SRV
924 UINT MostDetailedMip;
925 UINT MipLevels;
926 } D3D11_TEX2D_SRV;
928 typedef struct D3D11_TEX2D_UAV
930 UINT MipSlice;
931 } D3D11_TEX2D_UAV;
933 typedef struct D3D11_TEX2DMS_ARRAY_DSV
935 UINT FirstArraySlice;
936 UINT ArraySize;
937 } D3D11_TEX2DMS_ARRAY_DSV;
939 typedef struct D3D11_TEX2DMS_ARRAY_RTV
941 UINT FirstArraySlice;
942 UINT ArraySize;
943 } D3D11_TEX2DMS_ARRAY_RTV;
945 typedef struct D3D11_TEX2DMS_ARRAY_SRV
947 UINT FirstArraySlice;
948 UINT ArraySize;
949 } D3D11_TEX2DMS_ARRAY_SRV;
951 typedef struct D3D11_TEX2DMS_DSV
953 UINT UnusedField_NothingToDefine;
954 } D3D11_TEX2DMS_DSV;
956 typedef struct D3D11_TEX2DMS_RTV
958 UINT UnusedField_NothingToDefine;
959 } D3D11_TEX2DMS_RTV;
961 typedef struct D3D11_TEX2DMS_SRV
963 UINT UnusedField_NothingToDefine;
964 } D3D11_TEX2DMS_SRV;
966 typedef struct D3D11_TEX3D_RTV
968 UINT MipSlice;
969 UINT FirstWSlice;
970 UINT WSize;
971 } D3D11_TEX3D_RTV;
973 typedef struct D3D11_TEX3D_SRV
975 UINT MostDetailedMip;
976 UINT MipLevels;
977 } D3D11_TEX3D_SRV;
979 typedef struct D3D11_TEX3D_UAV
981 UINT MipSlice;
982 UINT FirstWSlice;
983 UINT WSize;
984 } D3D11_TEX3D_UAV;
986 typedef struct D3D11_TEXCUBE_ARRAY_SRV
988 UINT MostDetailedMip;
989 UINT MipLevels;
990 UINT First2DArrayFace;
991 UINT NumCubes;
992 } D3D11_TEXCUBE_ARRAY_SRV;
994 typedef struct D3D11_TEXCUBE_SRV
996 UINT MostDetailedMip;
997 UINT MipLevels;
998 } D3D11_TEXCUBE_SRV;
1000 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1002 D3D11_TEXTURE_ADDRESS_WRAP = 1,
1003 D3D11_TEXTURE_ADDRESS_MIRROR,
1004 D3D11_TEXTURE_ADDRESS_CLAMP,
1005 D3D11_TEXTURE_ADDRESS_BORDER,
1006 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1007 } D3D11_TEXTURE_ADDRESS_MODE;
1009 typedef enum D3D11_UAV_DIMENSION
1011 D3D11_UAV_DIMENSION_UNKNOWN,
1012 D3D11_UAV_DIMENSION_BUFFER,
1013 D3D11_UAV_DIMENSION_TEXTURE1D,
1014 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
1015 D3D11_UAV_DIMENSION_TEXTURE2D,
1016 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
1017 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
1018 } D3D11_UAV_DIMENSION;
1020 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1022 DXGI_FORMAT Format;
1023 D3D11_UAV_DIMENSION ViewDimension;
1025 union
1027 D3D11_BUFFER_UAV Buffer;
1028 D3D11_TEX1D_UAV Texture1D;
1029 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
1030 D3D11_TEX2D_UAV Texture2D;
1031 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
1032 D3D11_TEX3D_UAV Texture3D;
1034 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
1036 typedef enum D3D11_USAGE
1038 D3D11_USAGE_DEFAULT,
1039 D3D11_USAGE_IMMUTABLE,
1040 D3D11_USAGE_DYNAMIC,
1041 D3D11_USAGE_STAGING,
1042 } D3D11_USAGE;
1044 typedef enum D3D11_BIND_FLAG
1046 D3D11_BIND_VERTEX_BUFFER = 0x0001,
1047 D3D11_BIND_INDEX_BUFFER = 0x0002,
1048 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
1049 D3D11_BIND_SHADER_RESOURCE = 0x0008,
1050 D3D11_BIND_STREAM_OUTPUT = 0x0010,
1051 D3D11_BIND_RENDER_TARGET = 0x0020,
1052 D3D11_BIND_DEPTH_STENCIL = 0x0040,
1053 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
1054 D3D11_BIND_DECODER = 0x0200,
1055 D3D11_BIND_VIDEO_ENCODER = 0x0400
1056 } D3D11_BIND_FLAG;
1058 typedef enum D3D11_CPU_ACCESS_FLAG
1060 D3D11_CPU_ACCESS_WRITE = 0x00010000,
1061 D3D11_CPU_ACCESS_READ = 0x00020000
1062 } D3D11_CPU_ACCESS_FLAG;
1064 typedef struct D3D11_VIEWPORT
1066 FLOAT TopLeftX;
1067 FLOAT TopLeftY;
1068 FLOAT Width;
1069 FLOAT Height;
1070 FLOAT MinDepth;
1071 FLOAT MaxDepth;
1072 } D3D11_VIEWPORT;
1074 typedef enum D3D11_COLOR_WRITE_ENABLE
1076 D3D11_COLOR_WRITE_ENABLE_RED = 1,
1077 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
1078 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
1079 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
1080 D3D11_COLOR_WRITE_ENABLE_ALL =
1081 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
1082 } D3D11_COLOR_WRITE_ENABLE;
1084 typedef enum D3D11_FORMAT_SUPPORT
1086 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
1087 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
1088 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
1089 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
1090 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
1091 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
1092 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
1093 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
1094 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
1095 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
1096 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
1097 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
1098 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
1099 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
1100 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
1101 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
1102 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
1103 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
1104 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
1105 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
1106 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
1107 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
1108 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
1109 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
1110 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
1111 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
1112 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
1113 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
1114 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
1115 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
1116 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
1117 } D3D11_FORMAT_SUPPORT;
1119 typedef enum D3D11_CLEAR_FLAG
1121 D3D11_CLEAR_DEPTH = 0x0001L,
1122 D3D11_CLEAR_STENCIL = 0x0002L
1123 } D3D11_CLEAR_FLAG;
1125 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1127 BOOL BlendEnable;
1128 D3D11_BLEND SrcBlend;
1129 D3D11_BLEND DestBlend;
1130 D3D11_BLEND_OP BlendOp;
1131 D3D11_BLEND SrcBlendAlpha;
1132 D3D11_BLEND DestBlendAlpha;
1133 D3D11_BLEND_OP BlendOpAlpha;
1134 UINT8 RenderTargetWriteMask;
1135 } D3D11_RENDER_TARGET_BLEND_DESC;
1137 typedef struct D3D11_BLEND_DESC
1139 BOOL AlphaToCoverageEnable;
1140 BOOL IndependentBlendEnable;
1141 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
1142 } D3D11_BLEND_DESC;
1144 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1145 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1146 cpp_quote(" CD3D11_BLEND_DESC() {}")
1147 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1148 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1149 cpp_quote(" AlphaToCoverageEnable = FALSE;")
1150 cpp_quote(" IndependentBlendEnable = FALSE;")
1151 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1152 cpp_quote(" target->BlendEnable = FALSE;")
1153 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1154 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1155 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1156 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1157 cpp_quote(" }")
1158 cpp_quote(" }")
1159 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
1160 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1161 cpp_quote("};" )
1162 cpp_quote("#endif" )
1164 typedef struct D3D11_BUFFER_DESC
1166 UINT ByteWidth;
1167 D3D11_USAGE Usage;
1168 UINT BindFlags;
1169 UINT CPUAccessFlags;
1170 UINT MiscFlags;
1171 UINT StructureByteStride;
1172 } D3D11_BUFFER_DESC;
1174 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1175 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1176 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
1177 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1178 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1179 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1180 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1181 cpp_quote(" ByteWidth = byteWidth;")
1182 cpp_quote(" Usage = usage;")
1183 cpp_quote(" BindFlags = bindFlags;")
1184 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1185 cpp_quote(" MiscFlags = miscFlags;" )
1186 cpp_quote(" StructureByteStride = structureByteStride;")
1187 cpp_quote(" }")
1188 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1189 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1190 cpp_quote("};" )
1191 cpp_quote("#endif" )
1193 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1195 DXGI_FORMAT Format;
1196 D3D11_DSV_DIMENSION ViewDimension;
1197 UINT Flags;
1199 union
1201 D3D11_TEX1D_DSV Texture1D;
1202 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1203 D3D11_TEX2D_DSV Texture2D;
1204 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1205 D3D11_TEX2DMS_DSV Texture2DMS;
1206 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1208 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1210 typedef struct D3D11_DEPTH_STENCILOP_DESC
1212 D3D11_STENCIL_OP StencilFailOp;
1213 D3D11_STENCIL_OP StencilDepthFailOp;
1214 D3D11_STENCIL_OP StencilPassOp;
1215 D3D11_COMPARISON_FUNC StencilFunc;
1216 } D3D11_DEPTH_STENCILOP_DESC;
1218 typedef struct D3D11_DEPTH_STENCIL_DESC
1220 BOOL DepthEnable;
1221 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1222 D3D11_COMPARISON_FUNC DepthFunc;
1223 BOOL StencilEnable;
1224 UINT8 StencilReadMask;
1225 UINT8 StencilWriteMask;
1226 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1227 D3D11_DEPTH_STENCILOP_DESC BackFace;
1228 } D3D11_DEPTH_STENCIL_DESC;
1230 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1232 DXGI_FORMAT Format;
1233 D3D11_RTV_DIMENSION ViewDimension;
1235 union
1237 D3D11_BUFFER_RTV Buffer;
1238 D3D11_TEX1D_RTV Texture1D;
1239 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1240 D3D11_TEX2D_RTV Texture2D;
1241 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1242 D3D11_TEX2DMS_RTV Texture2DMS;
1243 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1244 D3D11_TEX3D_RTV Texture3D;
1246 } D3D11_RENDER_TARGET_VIEW_DESC;
1248 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1249 cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1250 cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1251 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1252 cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1253 cpp_quote(" Format = format;")
1254 cpp_quote(" ViewDimension = dim;")
1255 cpp_quote(" switch(dim) {")
1256 cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
1257 cpp_quote(" Buffer.FirstElement = mip_slice;")
1258 cpp_quote(" Buffer.NumElements = first_slice;")
1259 cpp_quote(" break;")
1260 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1261 cpp_quote(" Texture1D.MipSlice = mip_slice;")
1262 cpp_quote(" break;")
1263 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1264 cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
1265 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1266 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1267 cpp_quote(" break;")
1268 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1269 cpp_quote(" Texture2D.MipSlice = mip_slice;")
1270 cpp_quote(" break;")
1271 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1272 cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
1273 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1274 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1275 cpp_quote(" break;")
1276 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1277 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1278 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1279 cpp_quote(" break;")
1280 cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1281 cpp_quote(" Texture3D.MipSlice = mip_slice;")
1282 cpp_quote(" Texture3D.FirstWSlice = first_slice;")
1283 cpp_quote(" Texture3D.WSize = array_size;")
1284 cpp_quote(" break;")
1285 cpp_quote(" default:")
1286 cpp_quote(" break;")
1287 cpp_quote(" }")
1288 cpp_quote(" }")
1289 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1290 cpp_quote(" UINT elem_cnt) {")
1291 cpp_quote(" Format = format;")
1292 cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1293 cpp_quote(" Buffer.FirstElement = first_elem;")
1294 cpp_quote(" Buffer.NumElements = elem_cnt;")
1295 cpp_quote(" }")
1296 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1297 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1298 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1299 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1300 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1301 cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
1302 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1303 cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1304 cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1305 cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1306 cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1307 cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1308 cpp_quote(" return *this;")
1309 cpp_quote(" }")
1310 cpp_quote("};")
1311 cpp_quote("#endif")
1314 typedef struct D3D11_SAMPLER_DESC
1316 D3D11_FILTER Filter;
1317 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1318 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1319 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1320 FLOAT MipLODBias;
1321 UINT MaxAnisotropy;
1322 D3D11_COMPARISON_FUNC ComparisonFunc;
1323 FLOAT BorderColor[4];
1324 FLOAT MinLOD;
1325 FLOAT MaxLOD;
1326 } D3D11_SAMPLER_DESC;
1328 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1329 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1330 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1331 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1332 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1333 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1334 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1335 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1336 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1337 cpp_quote(" MipLODBias = 0;")
1338 cpp_quote(" MaxAnisotropy = 1;")
1339 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1340 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1341 cpp_quote(" MinLOD = -3.402823466e+38f;")
1342 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1343 cpp_quote(" }")
1344 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1345 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1346 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1347 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1348 cpp_quote(" Filter = filter;")
1349 cpp_quote(" AddressU = addressU;")
1350 cpp_quote(" AddressV = addressV;")
1351 cpp_quote(" AddressW = addressW;")
1352 cpp_quote(" MipLODBias = mipLODBias;")
1353 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1354 cpp_quote(" ComparisonFunc = comparisonFunc;")
1355 cpp_quote(" if(borderColor) {")
1356 cpp_quote(" BorderColor[0] = borderColor[0];")
1357 cpp_quote(" BorderColor[1] = borderColor[1];")
1358 cpp_quote(" BorderColor[2] = borderColor[2];")
1359 cpp_quote(" BorderColor[3] = borderColor[3];")
1360 cpp_quote(" }else {")
1361 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1362 cpp_quote(" }")
1363 cpp_quote(" MinLOD = minLOD;")
1364 cpp_quote(" MaxLOD = maxLOD;")
1365 cpp_quote(" }")
1366 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1367 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1368 cpp_quote("};")
1369 cpp_quote("#endif")
1371 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1373 DXGI_FORMAT Format;
1374 D3D11_SRV_DIMENSION ViewDimension;
1376 union
1378 D3D11_BUFFER_SRV Buffer;
1379 D3D11_TEX1D_SRV Texture1D;
1380 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1381 D3D11_TEX2D_SRV Texture2D;
1382 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1383 D3D11_TEX2DMS_SRV Texture2DMS;
1384 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1385 D3D11_TEX3D_SRV Texture3D;
1386 D3D11_TEXCUBE_SRV TextureCube;
1387 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1388 D3D11_BUFFEREX_SRV BufferEx;
1390 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1392 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1393 cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1394 cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1395 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1396 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1397 cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1398 cpp_quote(" Format = format;")
1399 cpp_quote(" ViewDimension = dim;")
1400 cpp_quote(" switch(ViewDimension) {")
1401 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
1402 cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
1403 cpp_quote(" Buffer.NumElements = mip_levels;")
1404 cpp_quote(" break;")
1405 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1406 cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
1407 cpp_quote(" Texture1D.MipLevels = mip_levels;")
1408 cpp_quote(" break;")
1409 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1410 cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1411 cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
1412 cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
1413 cpp_quote(" Texture1DArray.ArraySize = array_size;")
1414 cpp_quote(" break;")
1415 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1416 cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
1417 cpp_quote(" Texture2D.MipLevels = mip_levels;")
1418 cpp_quote(" break;")
1419 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1420 cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1421 cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
1422 cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
1423 cpp_quote(" Texture2DArray.ArraySize = array_size;")
1424 cpp_quote(" break;")
1425 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1426 cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
1427 cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
1428 cpp_quote(" break;")
1429 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1430 cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
1431 cpp_quote(" Texture3D.MipLevels = mip_levels;")
1432 cpp_quote(" break;")
1433 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1434 cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
1435 cpp_quote(" TextureCube.MipLevels = mip_levels;")
1436 cpp_quote(" break;")
1437 cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1438 cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1439 cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
1440 cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
1441 cpp_quote(" TextureCubeArray.NumCubes = array_size;")
1442 cpp_quote(" break;")
1443 cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1444 cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
1445 cpp_quote(" BufferEx.NumElements = mip_levels;")
1446 cpp_quote(" BufferEx.Flags = flags;")
1447 cpp_quote(" break;")
1448 cpp_quote(" default:")
1449 cpp_quote(" break;")
1450 cpp_quote(" }")
1451 cpp_quote(" }")
1452 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1453 cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1454 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1455 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1456 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1457 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1458 cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1459 cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1460 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1461 cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1462 cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1463 cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1464 cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1465 cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1466 cpp_quote(" return *this;")
1467 cpp_quote(" }")
1468 cpp_quote("};")
1469 cpp_quote("#endif")
1471 typedef struct D3D11_TEXTURE1D_DESC
1473 UINT Width;
1474 UINT MipLevels;
1475 UINT ArraySize;
1476 DXGI_FORMAT Format;
1477 D3D11_USAGE Usage;
1478 UINT BindFlags;
1479 UINT CPUAccessFlags;
1480 UINT MiscFlags;
1481 } D3D11_TEXTURE1D_DESC;
1483 typedef struct D3D11_TEXTURE2D_DESC
1485 UINT Width;
1486 UINT Height;
1487 UINT MipLevels;
1488 UINT ArraySize;
1489 DXGI_FORMAT Format;
1490 DXGI_SAMPLE_DESC SampleDesc;
1491 D3D11_USAGE Usage;
1492 UINT BindFlags;
1493 UINT CPUAccessFlags;
1494 UINT MiscFlags;
1495 } D3D11_TEXTURE2D_DESC;
1497 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1498 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1499 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1500 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1501 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1502 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1503 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1504 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1505 cpp_quote(" Width = width;")
1506 cpp_quote(" Height = height;")
1507 cpp_quote(" MipLevels = mipLevels;")
1508 cpp_quote(" ArraySize = arraySize;")
1509 cpp_quote(" Format = format;")
1510 cpp_quote(" SampleDesc.Count = sampleCount;")
1511 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1512 cpp_quote(" Usage = usage;")
1513 cpp_quote(" BindFlags = bindFlags;")
1514 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1515 cpp_quote(" MiscFlags = miscFlags;")
1516 cpp_quote(" }" )
1517 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1518 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1519 cpp_quote("};")
1520 cpp_quote("#endif")
1522 typedef struct D3D11_TEXTURE3D_DESC
1524 UINT Width;
1525 UINT Height;
1526 UINT Depth;
1527 UINT MipLevels;
1528 DXGI_FORMAT Format;
1529 D3D11_USAGE Usage;
1530 UINT BindFlags;
1531 UINT CPUAccessFlags;
1532 UINT MiscFlags;
1533 } D3D11_TEXTURE3D_DESC;
1535 typedef struct D3D11_VIDEO_DECODER_DESC
1537 GUID Guid;
1538 UINT SampleWidth;
1539 UINT SampleHeight;
1540 DXGI_FORMAT OutputFormat;
1541 } D3D11_VIDEO_DECODER_DESC;
1543 typedef struct D3D11_VIDEO_DECODER_CONFIG
1545 GUID guidConfigBitstreamEncryption;
1546 GUID guidConfigMBcontrolEncryption;
1547 GUID guidConfigResidDiffEncryption;
1548 UINT ConfigBitstreamRaw;
1549 UINT ConfigMBcontrolRasterOrder;
1550 UINT ConfigResidDiffHost;
1551 UINT ConfigSpatialResid8;
1552 UINT ConfigResid8Subtraction;
1553 UINT ConfigSpatialHost8or9Clipping;
1554 UINT ConfigSpatialResidInterleaved;
1555 UINT ConfigIntraResidUnsigned;
1556 UINT ConfigResidDiffAccelerator;
1557 UINT ConfigHostInverseScan;
1558 UINT ConfigSpecificIDCT;
1559 UINT Config4GroupedCoefs;
1560 USHORT ConfigMinRenderTargetBuffCount;
1561 USHORT ConfigDecoderSpecific;
1562 } D3D11_VIDEO_DECODER_CONFIG;
1564 typedef enum D3D11_VIDEO_FRAME_FORMAT
1566 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
1567 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
1568 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
1569 } D3D11_VIDEO_FRAME_FORMAT;
1571 typedef enum D3D11_VIDEO_USAGE
1573 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
1574 D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
1575 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
1576 } D3D11_VIDEO_USAGE;
1578 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1580 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
1581 DXGI_RATIONAL InputFrameRate;
1582 UINT InputWidth;
1583 UINT InputHeight;
1584 DXGI_RATIONAL OutputFrameRate;
1585 UINT OutputWidth;
1586 UINT OutputHeight;
1587 D3D11_VIDEO_USAGE Usage;
1588 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
1590 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1592 UINT DeviceCaps;
1593 UINT FeatureCaps;
1594 UINT FilterCaps;
1595 UINT InputFormatCaps;
1596 UINT AutoStreamCaps;
1597 UINT StereoCaps;
1598 UINT RateConversionCapsCount;
1599 UINT MaxInputStreams;
1600 UINT MaxStreamStates;
1601 } D3D11_VIDEO_PROCESSOR_CAPS;
1603 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1605 UINT PastFrames;
1606 UINT FutureFrames;
1607 UINT ProcessorCaps;
1608 UINT ITelecineCaps;
1609 UINT CustomRateCount;
1610 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
1612 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1614 DXGI_RATIONAL CustomRate;
1615 UINT OutputFrames;
1616 BOOL InputInterlaced;
1617 UINT InputFramesOrFields;
1618 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
1620 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1622 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
1623 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
1624 D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
1625 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
1626 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
1627 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
1628 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
1629 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
1630 } D3D11_VIDEO_PROCESSOR_FILTER;
1632 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1634 int Minimum;
1635 int Maximum;
1636 int Default;
1637 float Multiplier;
1638 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
1640 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1642 D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
1643 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
1644 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
1645 } D3D11_AUTHENTICATED_CHANNEL_TYPE;
1647 typedef enum D3D11_VDOV_DIMENSION
1649 D3D11_VDOV_DIMENSION_UNKNOWN = 0,
1650 D3D11_VDOV_DIMENSION_TEXTURE2D = 1
1651 } D3D11_VDOV_DIMENSION;
1653 typedef struct D3D11_TEX2D_VDOV
1655 UINT ArraySlice;
1656 } D3D11_TEX2D_VDOV;
1658 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1660 GUID DecodeProfile;
1661 D3D11_VDOV_DIMENSION ViewDimension;
1662 union {
1663 D3D11_TEX2D_VDOV Texture2D;
1665 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
1667 typedef enum D3D11_VPIV_DIMENSION
1669 D3D11_VPIV_DIMENSION_UNKNOWN = 0,
1670 D3D11_VPIV_DIMENSION_TEXTURE2D = 1
1671 } D3D11_VPIV_DIMENSION;
1673 typedef struct D3D11_TEX2D_VPIV
1675 UINT MipSlice;
1676 UINT ArraySlice;
1677 } D3D11_TEX2D_VPIV;
1679 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1681 UINT FourCC;
1682 D3D11_VPIV_DIMENSION ViewDimension;
1683 union {
1684 D3D11_TEX2D_VPIV Texture2D;
1686 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
1688 typedef enum D3D11_VPOV_DIMENSION
1690 D3D11_VPOV_DIMENSION_UNKNOWN = 0,
1691 D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
1692 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
1693 } D3D11_VPOV_DIMENSION;
1695 typedef struct D3D11_TEX2D_VPOV
1697 UINT MipSlice;
1698 } D3D11_TEX2D_VPOV;
1700 typedef struct D3D11_TEX2D_ARRAY_VPOV
1702 UINT MipSlice;
1703 UINT FirstArraySlice;
1704 UINT ArraySize;
1705 } D3D11_TEX2D_ARRAY_VPOV;
1707 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1709 D3D11_VPOV_DIMENSION ViewDimension;
1710 union {
1711 D3D11_TEX2D_VPOV Texture2D;
1712 D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
1714 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
1716 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1718 UINT Caps;
1719 UINT KeyExchangeTypeCount;
1720 UINT BlockAlignmentSize;
1721 ULONGLONG ProtectedMemorySize;
1722 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
1724 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1726 UINT NumEncryptedBytesAtBeginning;
1727 UINT NumBytesInSkipPattern;
1728 UINT NumBytesInEncryptPattern;
1729 } D3D11_ENCRYPTED_BLOCK_INFO;
1731 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
1733 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
1734 UINT BufferIndex;
1735 UINT DataOffset;
1736 UINT DataSize;
1737 UINT FirstMBaddress;
1738 UINT NumMBsInBuffer;
1739 UINT Width;
1740 UINT Height;
1741 UINT Stride;
1742 UINT ReservedBits;
1743 void *pIV;
1744 UINT IVSize;
1745 BOOL PartialEncryption;
1746 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
1747 } D3D11_VIDEO_DECODER_BUFFER_DESC;
1749 typedef struct D3D11_VIDEO_DECODER_EXTENSION
1751 UINT Function;
1752 void *pPrivateInputData;
1753 UINT PrivateInputDataSize;
1754 void *pPrivateOutputData;
1755 UINT PrivateOutputDataSize;
1756 UINT ResourceCount;
1757 ID3D11Resource **ppResourceList;
1758 } D3D11_VIDEO_DECODER_EXTENSION;
1760 typedef struct D3D11_VIDEO_COLOR_YCbCrA
1762 float Y;
1763 float Cb;
1764 float Cr;
1765 float A;
1766 } D3D11_VIDEO_COLOR_YCbCrA;
1768 typedef struct D3D11_VIDEO_COLOR_RGBA
1770 float R;
1771 float G;
1772 float B;
1773 float A;
1774 } D3D11_VIDEO_COLOR_RGBA;
1776 typedef struct D3D11_VIDEO_COLOR
1778 union
1780 D3D11_VIDEO_COLOR_YCbCrA YCbCr;
1781 D3D11_VIDEO_COLOR_RGBA RGBA;
1783 } D3D11_VIDEO_COLOR;
1785 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
1787 UINT Usage : 1;
1788 UINT RGB_Range : 1;
1789 UINT YCbCr_Matrix : 1;
1790 UINT YCbCr_xvYCC : 1;
1791 UINT Nominal_Range : 2;
1792 UINT Reserved : 26;
1793 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
1795 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
1797 BOOL Enable;
1798 UINT OutputIndex;
1799 UINT InputFrameOrField;
1800 UINT PastFrames;
1801 UINT FutureFrames;
1802 ID3D11VideoProcessorInputView **ppPastSurfaces;
1803 ID3D11VideoProcessorInputView *pInputSurface;
1804 ID3D11VideoProcessorInputView **ppFutureSurfaces;
1805 ID3D11VideoProcessorInputView **ppPastSurfacesRight;
1806 ID3D11VideoProcessorInputView *pInputSurfaceRight;
1807 ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
1808 } D3D11_VIDEO_PROCESSOR_STREAM;
1810 typedef struct D3D11_OMAC
1812 BYTE Omac[D3D11_OMAC_SIZE];
1813 } D3D11_OMAC;
1815 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
1817 D3D11_OMAC omac;
1818 GUID ConfigureType;
1819 HANDLE hChannel;
1820 UINT SequenceNumber;
1821 HRESULT ReturnCode;
1822 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
1824 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
1826 UINT64 Frequency;
1827 BOOL Disjoint;
1828 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
1831 object,
1832 local,
1833 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
1835 interface ID3D11DeviceChild : IUnknown
1837 void GetDevice(
1838 [out] ID3D11Device **ppDevice);
1839 HRESULT GetPrivateData(
1840 [in] REFGUID guid,
1841 [in, out] UINT *pDataSize,
1842 [out] void *pData);
1843 HRESULT SetPrivateData(
1844 [in] REFGUID guid,
1845 [in] UINT DataSize,
1846 [in] const void *pData);
1847 HRESULT SetPrivateDataInterface(
1848 [in] REFGUID guid,
1849 [in] const IUnknown *pData);
1853 object,
1854 local,
1855 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
1857 interface ID3D11Asynchronous : ID3D11DeviceChild
1859 UINT GetDataSize();
1863 object,
1864 local,
1865 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
1867 interface ID3D11Query : ID3D11Asynchronous
1869 void GetDesc(
1870 [out] D3D11_QUERY_DESC *pDesc);
1874 object,
1875 local,
1876 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
1878 interface ID3D11Resource : ID3D11DeviceChild
1880 void GetType(
1881 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
1882 void SetEvictionPriority(
1883 [in] UINT EvictionPriority);
1884 UINT GetEvictionPriority();
1888 object,
1889 local,
1890 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
1892 interface ID3D11View : ID3D11DeviceChild
1894 void GetResource(
1895 [out] ID3D11Resource **ppResource);
1899 object,
1900 local,
1901 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
1903 interface ID3D11BlendState : ID3D11DeviceChild
1905 void GetDesc(
1906 [out] D3D11_BLEND_DESC *pDesc);
1910 object,
1911 local,
1912 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
1914 interface ID3D11Buffer : ID3D11Resource
1916 void GetDesc(
1917 [out] D3D11_BUFFER_DESC *pDesc);
1921 object,
1922 local,
1923 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
1925 interface ID3D11ClassInstance : ID3D11DeviceChild
1927 void GetClassLinkage(
1928 [out] ID3D11ClassLinkage **ppLinkage);
1929 void GetDesc(
1930 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
1931 void GetInstanceName(
1932 [out] LPSTR pInstanceName,
1933 [in, out] SIZE_T *pBufferLength);
1934 void GetTypeName(
1935 [out] LPSTR pTypeName,
1936 [in, out] SIZE_T *pBufferLength);
1940 object,
1941 local,
1942 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
1944 interface ID3D11ClassLinkage : ID3D11DeviceChild
1946 HRESULT GetClassInstance(
1947 [in] LPCSTR pClassInstanceName,
1948 [in] UINT InstanceIndex,
1949 [out] ID3D11ClassInstance **ppInstance);
1950 HRESULT CreateClassInstance(
1951 [in] LPCSTR pClassTypeName,
1952 [in] UINT ConstantBufferOffset,
1953 [in] UINT ConstantVectorOffset,
1954 [in] UINT TextureOffset,
1955 [in] UINT SamplerOffset,
1956 [out] ID3D11ClassInstance **ppInstance);
1960 object,
1961 local,
1962 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
1964 interface ID3D11CommandList : ID3D11DeviceChild
1966 UINT GetContextFlags();
1970 object,
1971 local,
1972 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
1974 interface ID3D11ComputeShader : ID3D11DeviceChild
1979 object,
1980 local,
1981 uuid(6e8c49fb-a371-4770-b440-29086022b741)
1983 interface ID3D11Counter : ID3D11Asynchronous
1985 void GetDesc(
1986 [out] D3D11_COUNTER_DESC *pDesc);
1990 object,
1991 local,
1992 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
1994 interface ID3D11DepthStencilState : ID3D11DeviceChild
1996 void GetDesc(
1997 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
2001 object,
2002 local,
2003 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
2005 interface ID3D11DepthStencilView : ID3D11View
2007 void GetDesc(
2008 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
2012 object,
2013 local,
2014 uuid(f582c508-0f36-490c-9977-31eece268cfa)
2016 interface ID3D11DomainShader : ID3D11DeviceChild
2021 object,
2022 local,
2023 uuid(38325b96-effb-4022-ba02-2e795b70275c)
2025 interface ID3D11GeometryShader : ID3D11DeviceChild
2030 object,
2031 local,
2032 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
2034 interface ID3D11HullShader : ID3D11DeviceChild
2039 object,
2040 local,
2041 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
2043 interface ID3D11InputLayout : ID3D11DeviceChild
2048 object,
2049 local,
2050 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
2052 interface ID3D11PixelShader : ID3D11DeviceChild
2057 object,
2058 local,
2059 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
2061 interface ID3D11Predicate : ID3D11Query
2066 object,
2067 local,
2068 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
2070 interface ID3D11RasterizerState : ID3D11DeviceChild
2072 void GetDesc(
2073 [out] D3D11_RASTERIZER_DESC *pDesc);
2077 object,
2078 local,
2079 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
2081 interface ID3D11RenderTargetView : ID3D11View
2083 void GetDesc(
2084 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
2088 object,
2089 local,
2090 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
2092 interface ID3D11SamplerState : ID3D11DeviceChild
2094 void GetDesc(
2095 [out] D3D11_SAMPLER_DESC *pDesc);
2099 object,
2100 local,
2101 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
2103 interface ID3D11ShaderResourceView : ID3D11View
2105 void GetDesc(
2106 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
2110 object,
2111 local,
2112 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
2114 interface ID3D11Texture1D : ID3D11Resource
2116 void GetDesc(
2117 [out] D3D11_TEXTURE1D_DESC *pDesc);
2121 object,
2122 local,
2123 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
2125 interface ID3D11Texture2D : ID3D11Resource
2127 void GetDesc(
2128 [out] D3D11_TEXTURE2D_DESC *pDesc);
2132 object,
2133 local,
2134 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
2136 interface ID3D11Texture3D : ID3D11Resource
2138 void GetDesc(
2139 [out] D3D11_TEXTURE3D_DESC *pDesc);
2143 object,
2144 local,
2145 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
2147 interface ID3D11UnorderedAccessView : ID3D11View
2149 void GetDesc(
2150 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
2154 object,
2155 local,
2156 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
2158 interface ID3D11VertexShader : ID3D11DeviceChild
2163 object,
2164 local,
2165 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
2167 interface ID3D11DeviceContext : ID3D11DeviceChild
2169 void VSSetConstantBuffers(
2170 [in] UINT StartSlot,
2171 [in] UINT NumBuffers,
2172 [in] ID3D11Buffer *const *ppConstantBuffers);
2173 void PSSetShaderResources(
2174 [in] UINT StartSlot,
2175 [in] UINT NumViews,
2176 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2177 void PSSetShader(
2178 [in] ID3D11PixelShader *pPixelShader,
2179 [in] ID3D11ClassInstance *const *ppClassInstances,
2180 UINT NumClassInstances);
2181 void PSSetSamplers(
2182 [in] UINT StartSlot,
2183 [in] UINT NumSamplers,
2184 [in] ID3D11SamplerState *const *ppSamplers);
2185 void VSSetShader(
2186 [in] ID3D11VertexShader *pVertexShader,
2187 [in] ID3D11ClassInstance *const *ppClassInstances,
2188 UINT NumClassInstances);
2189 void DrawIndexed(
2190 [in] UINT IndexCount,
2191 [in] UINT StartIndexLocation,
2192 [in] INT BaseVertexLocation);
2193 void Draw(
2194 [in] UINT VertexCount,
2195 [in] UINT StartVertexLocation);
2196 HRESULT Map(
2197 [in] ID3D11Resource *pResource,
2198 [in] UINT Subresource,
2199 [in] D3D11_MAP MapType,
2200 [in] UINT MapFlags,
2201 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
2202 void Unmap(
2203 [in] ID3D11Resource *pResource,
2204 [in] UINT Subresource);
2205 void PSSetConstantBuffers(
2206 [in] UINT StartSlot,
2207 [in] UINT NumBuffers,
2208 [in] ID3D11Buffer *const *ppConstantBuffers);
2209 void IASetInputLayout(
2210 [in] ID3D11InputLayout *pInputLayout);
2211 void IASetVertexBuffers(
2212 [in] UINT StartSlot,
2213 [in] UINT NumBuffers,
2214 [in] ID3D11Buffer *const *ppVertexBuffers,
2215 [in] const UINT *pStrides,
2216 [in] const UINT *pOffsets);
2217 void IASetIndexBuffer(
2218 [in] ID3D11Buffer *pIndexBuffer,
2219 [in] DXGI_FORMAT Format,
2220 [in] UINT Offset);
2221 void DrawIndexedInstanced(
2222 [in] UINT IndexCountPerInstance,
2223 [in] UINT InstanceCount,
2224 [in] UINT StartIndexLocation,
2225 [in] INT BaseVertexLocation,
2226 [in] UINT StartInstanceLocation);
2227 void DrawInstanced(
2228 [in] UINT VertexCountPerInstance,
2229 [in] UINT InstanceCount,
2230 [in] UINT StartVertexLocation,
2231 [in] UINT StartInstanceLocation);
2232 void GSSetConstantBuffers(
2233 [in] UINT StartSlot,
2234 [in] UINT NumBuffers,
2235 [in] ID3D11Buffer *const *ppConstantBuffers);
2236 void GSSetShader(
2237 [in] ID3D11GeometryShader *pShader,
2238 [in] ID3D11ClassInstance *const *ppClassInstances,
2239 UINT NumClassInstances);
2240 void IASetPrimitiveTopology(
2241 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
2242 void VSSetShaderResources(
2243 [in] UINT StartSlot,
2244 [in] UINT NumViews,
2245 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2246 void VSSetSamplers(
2247 [in] UINT StartSlot,
2248 [in] UINT NumSamplers,
2249 [in] ID3D11SamplerState *const *ppSamplers);
2250 void Begin(
2251 [in] ID3D11Asynchronous *pAsync);
2252 void End(
2253 [in] ID3D11Asynchronous *pAsync);
2254 HRESULT GetData(
2255 [in] ID3D11Asynchronous *pAsync,
2256 [in] void *pData,
2257 [in] UINT DataSize,
2258 [in] UINT GetDataFlags);
2259 void SetPredication(
2260 [in] ID3D11Predicate *pPredicate,
2261 [in] BOOL PredicateValue);
2262 void GSSetShaderResources(
2263 [in] UINT StartSlot,
2264 [in] UINT NumViews,
2265 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2266 void GSSetSamplers(
2267 [in] UINT StartSlot,
2268 [in] UINT NumSamplers,
2269 [in] ID3D11SamplerState *const *ppSamplers);
2270 void OMSetRenderTargets(
2271 [in] UINT NumViews,
2272 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2273 [in] ID3D11DepthStencilView *pDepthStencilView);
2274 void OMSetRenderTargetsAndUnorderedAccessViews(
2275 [in] UINT NumRTVs,
2276 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
2277 [in] ID3D11DepthStencilView *pDepthStencilView,
2278 [in] UINT UAVStartSlot,
2279 [in] UINT NumUAVs,
2280 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2281 [in] const UINT *pUAVInitialCounts);
2282 void OMSetBlendState(
2283 [in] ID3D11BlendState *pBlendState,
2284 [in] const FLOAT BlendFactor[4],
2285 [in] UINT SampleMask);
2286 void OMSetDepthStencilState(
2287 [in] ID3D11DepthStencilState *pDepthStencilState,
2288 [in] UINT StencilRef);
2289 void SOSetTargets(
2290 [in] UINT NumBuffers,
2291 [in] ID3D11Buffer *const *ppSOTargets,
2292 [in] const UINT *pOffsets);
2293 void DrawAuto();
2294 void DrawIndexedInstancedIndirect(
2295 [in] ID3D11Buffer *pBufferForArgs,
2296 [in] UINT AlignedByteOffsetForArgs);
2297 void DrawInstancedIndirect(
2298 [in] ID3D11Buffer *pBufferForArgs,
2299 [in] UINT AlignedByteOffsetForArgs);
2300 void Dispatch(
2301 [in] UINT ThreadGroupCountX,
2302 [in] UINT ThreadGroupCountY,
2303 [in] UINT ThreadGroupCountZ);
2304 void DispatchIndirect(
2305 [in] ID3D11Buffer *pBufferForArgs,
2306 [in] UINT AlignedByteOffsetForArgs);
2307 void RSSetState(
2308 [in] ID3D11RasterizerState *pRasterizerState);
2309 void RSSetViewports(
2310 [in] UINT NumViewports,
2311 [in] const D3D11_VIEWPORT *pViewports);
2312 void RSSetScissorRects(
2313 [in] UINT NumRects,
2314 [in] const D3D11_RECT *pRects);
2315 void CopySubresourceRegion(
2316 [in] ID3D11Resource *pDstResource,
2317 [in] UINT DstSubresource,
2318 [in] UINT DstX,
2319 [in] UINT DstY,
2320 [in] UINT DstZ,
2321 [in] ID3D11Resource *pSrcResource,
2322 [in] UINT SrcSubresource,
2323 [in] const D3D11_BOX *pSrcBox);
2324 void CopyResource(
2325 [in] ID3D11Resource *pDstResource,
2326 [in] ID3D11Resource *pSrcResource);
2327 void UpdateSubresource(
2328 [in] ID3D11Resource *pDstResource,
2329 [in] UINT DstSubresource,
2330 [in] const D3D11_BOX *pDstBox,
2331 [in] const void *pSrcData,
2332 [in] UINT SrcRowPitch,
2333 [in] UINT SrcDepthPitch);
2334 void CopyStructureCount(
2335 [in] ID3D11Buffer *pDstBuffer,
2336 [in] UINT DstAlignedByteOffset,
2337 [in] ID3D11UnorderedAccessView *pSrcView);
2338 void ClearRenderTargetView(
2339 [in] ID3D11RenderTargetView *pRenderTargetView,
2340 [in] const FLOAT ColorRGBA[4]);
2341 void ClearUnorderedAccessViewUint(
2342 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2343 [in] const UINT Values[4]);
2344 void ClearUnorderedAccessViewFloat(
2345 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
2346 [in] const FLOAT Values[4]);
2347 void ClearDepthStencilView(
2348 [in] ID3D11DepthStencilView *pDepthStencilView,
2349 [in] UINT ClearFlags,
2350 [in] FLOAT Depth,
2351 [in] UINT8 Stencil);
2352 void GenerateMips(
2353 [in] ID3D11ShaderResourceView *pShaderResourceView);
2354 void SetResourceMinLOD(
2355 [in] ID3D11Resource *pResource, FLOAT MinLOD);
2356 FLOAT GetResourceMinLOD(
2357 [in] ID3D11Resource *pResource);
2358 void ResolveSubresource(
2359 [in] ID3D11Resource *pDstResource,
2360 [in] UINT DstSubresource,
2361 [in] ID3D11Resource *pSrcResource,
2362 [in] UINT SrcSubresource,
2363 [in] DXGI_FORMAT Format);
2364 void ExecuteCommandList(
2365 [in] ID3D11CommandList *pCommandList,
2366 BOOL RestoreContextState);
2367 void HSSetShaderResources(
2368 [in] UINT StartSlot,
2369 [in] UINT NumViews,
2370 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2371 void HSSetShader(
2372 [in] ID3D11HullShader *pHullShader,
2373 [in] ID3D11ClassInstance *const *ppClassInstances,
2374 UINT NumClassInstances);
2375 void HSSetSamplers(
2376 [in] UINT StartSlot,
2377 [in] UINT NumSamplers,
2378 [in] ID3D11SamplerState *const *ppSamplers);
2379 void HSSetConstantBuffers(
2380 [in] UINT StartSlot,
2381 [in] UINT NumBuffers,
2382 [in] ID3D11Buffer *const *ppConstantBuffers);
2383 void DSSetShaderResources(
2384 [in] UINT StartSlot,
2385 [in] UINT NumViews,
2386 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2387 void DSSetShader(
2388 [in] ID3D11DomainShader *pDomainShader,
2389 [in] ID3D11ClassInstance *const *ppClassInstances,
2390 UINT NumClassInstances);
2391 void DSSetSamplers(
2392 [in] UINT StartSlot,
2393 [in] UINT NumSamplers,
2394 [in] ID3D11SamplerState *const *ppSamplers);
2395 void DSSetConstantBuffers(
2396 [in] UINT StartSlot,
2397 [in] UINT NumBuffers,
2398 [in] ID3D11Buffer *const *ppConstantBuffers);
2399 void CSSetShaderResources(
2400 [in] UINT StartSlot,
2401 [in] UINT NumViews,
2402 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
2403 void CSSetUnorderedAccessViews(
2404 [in] UINT StartSlot,
2405 [in] UINT NumUAVs,
2406 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
2407 [in] const UINT *pUAVInitialCounts);
2408 void CSSetShader(
2409 [in] ID3D11ComputeShader *pComputeShader,
2410 [in] ID3D11ClassInstance *const *ppClassInstances,
2411 UINT NumClassInstances);
2412 void CSSetSamplers(
2413 [in] UINT StartSlot,
2414 [in] UINT NumSamplers,
2415 [in] ID3D11SamplerState *const *ppSamplers);
2416 void CSSetConstantBuffers(
2417 [in] UINT StartSlot,
2418 [in] UINT NumBuffers,
2419 [in] ID3D11Buffer *const *ppConstantBuffers);
2420 void VSGetConstantBuffers(
2421 [in] UINT StartSlot,
2422 [in] UINT NumBuffers,
2423 [out] ID3D11Buffer **ppConstantBuffers);
2424 void PSGetShaderResources(
2425 [in] UINT StartSlot,
2426 [in] UINT NumViews,
2427 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2428 void PSGetShader(
2429 [out] ID3D11PixelShader **ppPixelShader,
2430 [out] ID3D11ClassInstance **ppClassInstances,
2431 [in, out] UINT *pNumClassInstances);
2432 void PSGetSamplers(
2433 [in] UINT StartSlot,
2434 [in] UINT NumSamplers,
2435 [out] ID3D11SamplerState **ppSamplers);
2436 void VSGetShader(
2437 [out] ID3D11VertexShader **ppVertexShader,
2438 [out] ID3D11ClassInstance **ppClassInstances,
2439 [in, out] UINT *pNumClassInstances);
2440 void PSGetConstantBuffers(
2441 [in] UINT StartSlot,
2442 [in] UINT NumBuffers,
2443 [out] ID3D11Buffer **ppConstantBuffers);
2444 void IAGetInputLayout(
2445 [out] ID3D11InputLayout **ppInputLayout);
2446 void IAGetVertexBuffers(
2447 [in] UINT StartSlot,
2448 [in] UINT NumBuffers,
2449 [out] ID3D11Buffer **ppVertexBuffers,
2450 [out] UINT *pStrides,
2451 [out] UINT *pOffsets);
2452 void IAGetIndexBuffer(
2453 [out] ID3D11Buffer **pIndexBuffer,
2454 [out] DXGI_FORMAT* Format,
2455 [out] UINT* Offset);
2456 void GSGetConstantBuffers(
2457 [in] UINT StartSlot,
2458 [in] UINT NumBuffers,
2459 [out] ID3D11Buffer **ppConstantBuffers);
2460 void GSGetShader(
2461 [out] ID3D11GeometryShader **ppGeometryShader,
2462 [out] ID3D11ClassInstance **ppClassInstances,
2463 [in, out] UINT *pNumClassInstances);
2464 void IAGetPrimitiveTopology(
2465 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
2466 void VSGetShaderResources(
2467 [in] UINT StartSlot,
2468 [in] UINT NumViews,
2469 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2470 void VSGetSamplers(
2471 [in] UINT StartSlot,
2472 [in] UINT NumSamplers,
2473 [out] ID3D11SamplerState **ppSamplers);
2474 void GetPredication(
2475 [out] ID3D11Predicate **ppPredicate,
2476 [out] BOOL *pPredicateValue);
2477 void GSGetShaderResources(
2478 [in] UINT StartSlot,
2479 [in] UINT NumViews,
2480 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2481 void GSGetSamplers(
2482 [in] UINT StartSlot,
2483 [in] UINT NumSamplers,
2484 [out] ID3D11SamplerState **ppSamplers);
2485 void OMGetRenderTargets(
2486 [in] UINT NumViews,
2487 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2488 [out] ID3D11DepthStencilView **ppDepthStencilView);
2489 void OMGetRenderTargetsAndUnorderedAccessViews(
2490 [in] UINT NumRTVs,
2491 [out] ID3D11RenderTargetView **ppRenderTargetViews,
2492 [out] ID3D11DepthStencilView **ppDepthStencilView,
2493 [in] UINT UAVStartSlot,
2494 [in] UINT NumUAVs,
2495 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2496 void OMGetBlendState(
2497 [out] ID3D11BlendState **ppBlendState,
2498 [out] FLOAT BlendFactor[4],
2499 [out] UINT *pSampleMask);
2500 void OMGetDepthStencilState(
2501 [out] ID3D11DepthStencilState **ppDepthStencilState,
2502 [out] UINT *pStencilRef);
2503 void SOGetTargets(
2504 [in] UINT NumBuffers,
2505 [out] ID3D11Buffer **ppSOTargets);
2506 void RSGetState(
2507 [out] ID3D11RasterizerState **ppRasterizerState);
2508 void RSGetViewports(
2509 [in, out] UINT *pNumViewports,
2510 [out] D3D11_VIEWPORT *pViewports);
2511 void RSGetScissorRects(
2512 [in, out] UINT *pNumRects,
2513 [out] D3D11_RECT *pRects);
2514 void HSGetShaderResources(
2515 [in] UINT StartSlot,
2516 [in] UINT NumViews,
2517 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2518 void HSGetShader(
2519 [out] ID3D11HullShader **ppHullShader,
2520 [out] ID3D11ClassInstance **ppClassInstances,
2521 [in, out] UINT *pNumClassInstances);
2522 void HSGetSamplers(
2523 [in] UINT StartSlot,
2524 [in] UINT NumSamplers,
2525 [out] ID3D11SamplerState **ppSamplers);
2526 void HSGetConstantBuffers(
2527 [in] UINT StartSlot,
2528 [in] UINT NumBuffers,
2529 [out] ID3D11Buffer **ppConstantBuffers);
2530 void DSGetShaderResources(
2531 [in] UINT StartSlot,
2532 [in] UINT NumViews,
2533 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2534 void DSGetShader(
2535 [out] ID3D11DomainShader **ppDomainShader,
2536 [out] ID3D11ClassInstance **ppClassInstances,
2537 [in, out] UINT *pNumClassInstances);
2538 void DSGetSamplers(
2539 [in] UINT StartSlot,
2540 [in] UINT NumSamplers,
2541 [out] ID3D11SamplerState **ppSamplers);
2542 void DSGetConstantBuffers(
2543 [in] UINT StartSlot,
2544 [in] UINT NumBuffers,
2545 [out] ID3D11Buffer **ppConstantBuffers);
2546 void CSGetShaderResources(
2547 [in] UINT StartSlot,
2548 [in] UINT NumViews,
2549 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
2550 void CSGetUnorderedAccessViews(
2551 [in] UINT StartSlot,
2552 [in] UINT NumUAVs,
2553 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
2554 void CSGetShader(
2555 [out] ID3D11ComputeShader **ppComputeShader,
2556 [out] ID3D11ClassInstance **ppClassInstances,
2557 [in, out] UINT *pNumClassInstances);
2558 void CSGetSamplers(
2559 [in] UINT StartSlot,
2560 [in] UINT NumSamplers,
2561 [out] ID3D11SamplerState **ppSamplers);
2562 void CSGetConstantBuffers(
2563 [in] UINT StartSlot,
2564 [in] UINT NumBuffers,
2565 [out] ID3D11Buffer **ppConstantBuffers);
2566 void ClearState();
2567 void Flush();
2568 D3D11_DEVICE_CONTEXT_TYPE GetType();
2569 UINT GetContextFlags();
2570 HRESULT FinishCommandList(
2571 BOOL RestoreDeferredContextState,
2572 [out] ID3D11CommandList **ppCommandList);
2576 object,
2577 uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
2578 local,
2579 pointer_default(unique)
2581 interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
2583 HRESULT GetCertificateSize(
2584 UINT *pCertificateSize);
2585 HRESULT GetCertificate(
2586 UINT CertificateSize,
2587 BYTE *pCertificate);
2588 void GetChannelHandle(
2589 HANDLE *pChannelHandle);
2593 object,
2594 uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
2595 local,
2596 pointer_default(unique)
2598 interface ID3D11CryptoSession : ID3D11DeviceChild
2600 void GetCryptoType(
2601 GUID *pCryptoType);
2602 void GetDecoderProfile(
2603 GUID *pDecoderProfile);
2604 HRESULT GetCertificateSize(
2605 UINT *pCertificateSize);
2606 HRESULT GetCertificate(
2607 UINT CertificateSize,
2608 BYTE *pCertificate);
2609 void GetCryptoSessionHandle(
2610 HANDLE *pCryptoSessionHandle);
2614 object,
2615 uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
2616 local,
2617 pointer_default(unique)
2619 interface ID3D11VideoDecoder : ID3D11DeviceChild
2621 HRESULT GetCreationParameters(
2622 D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2623 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2624 HRESULT GetDriverHandle(
2625 HANDLE *pDriverHandle);
2629 object,
2630 uuid(31627037-53ab-4200-9061-05faa9ab45f9),
2631 local,
2632 pointer_default(unique)
2634 interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
2636 HRESULT GetVideoProcessorContentDesc(
2637 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
2638 HRESULT CheckVideoProcessorFormat(
2639 DXGI_FORMAT Format,
2640 UINT *pFlags);
2641 HRESULT GetVideoProcessorCaps(
2642 D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
2643 HRESULT GetVideoProcessorRateConversionCaps(
2644 UINT TypeIndex,
2645 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2646 HRESULT GetVideoProcessorCustomRate(
2647 UINT TypeIndex,
2648 UINT CustomRateIndex,
2649 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
2650 HRESULT GetVideoProcessorFilterRange(
2651 D3D11_VIDEO_PROCESSOR_FILTER Filter,
2652 D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
2656 object,
2657 uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
2658 local,
2659 pointer_default(unique)
2661 interface ID3D11VideoProcessor : ID3D11DeviceChild
2663 void GetContentDesc(
2664 D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
2665 void GetRateConversionCaps(
2666 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
2670 object,
2671 uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
2672 local,
2673 pointer_default(unique)
2675 interface ID3D11VideoDecoderOutputView : ID3D11View
2677 void GetDesc(
2678 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
2682 object,
2683 uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
2684 local,
2685 pointer_default(unique)
2687 interface ID3D11VideoProcessorInputView : ID3D11View
2689 void GetDesc(
2690 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
2694 object,
2695 uuid(a048285e-25a9-4527-bd93-d68b68c44254),
2696 local,
2697 pointer_default(unique)
2699 interface ID3D11VideoProcessorOutputView : ID3D11View
2701 void GetDesc(
2702 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
2706 object,
2707 uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
2708 local,
2709 pointer_default(unique)
2711 interface ID3D11VideoDevice : IUnknown
2713 HRESULT CreateVideoDecoder(
2714 const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
2715 const D3D11_VIDEO_DECODER_CONFIG *pConfig,
2716 ID3D11VideoDecoder **ppDecoder);
2717 HRESULT CreateVideoProcessor(
2718 ID3D11VideoProcessorEnumerator *pEnum,
2719 UINT RateConversionIndex,
2720 ID3D11VideoProcessor **ppVideoProcessor);
2721 HRESULT CreateAuthenticatedChannel(
2722 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
2723 ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
2724 HRESULT CreateCryptoSession(
2725 const GUID *pCryptoType,
2726 const GUID *pDecoderProfile,
2727 const GUID *pKeyExchangeType,
2728 ID3D11CryptoSession **ppCryptoSession);
2729 HRESULT CreateVideoDecoderOutputView(
2730 ID3D11Resource *pResource,
2731 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
2732 ID3D11VideoDecoderOutputView **ppVDOVView);
2733 HRESULT CreateVideoProcessorInputView(
2734 ID3D11Resource *pResource,
2735 ID3D11VideoProcessorEnumerator *pEnum,
2736 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
2737 ID3D11VideoProcessorInputView **ppVPIView);
2738 HRESULT CreateVideoProcessorOutputView(
2739 ID3D11Resource *pResource,
2740 ID3D11VideoProcessorEnumerator *pEnum,
2741 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
2742 ID3D11VideoProcessorOutputView **ppVPOView);
2743 HRESULT CreateVideoProcessorEnumerator(
2744 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
2745 ID3D11VideoProcessorEnumerator **ppEnum);
2746 UINT GetVideoDecoderProfileCount();
2747 HRESULT GetVideoDecoderProfile(
2748 UINT Index,
2749 GUID *pDecoderProfile);
2750 HRESULT CheckVideoDecoderFormat(
2751 const GUID *pDecoderProfile,
2752 DXGI_FORMAT Format,
2753 BOOL *pSupported);
2754 HRESULT GetVideoDecoderConfigCount(
2755 const D3D11_VIDEO_DECODER_DESC *pDesc,
2756 UINT *pCount);
2757 HRESULT GetVideoDecoderConfig(
2758 const D3D11_VIDEO_DECODER_DESC *pDesc,
2759 UINT Index,
2760 D3D11_VIDEO_DECODER_CONFIG *pConfig);
2761 HRESULT GetContentProtectionCaps(
2762 const GUID *pCryptoType,
2763 const GUID *pDecoderProfile,
2764 D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
2765 HRESULT CheckCryptoKeyExchange(
2766 const GUID *pCryptoType,
2767 const GUID *pDecoderProfile,
2768 UINT Index,
2769 GUID *pKeyExchangeType);
2770 HRESULT SetPrivateData(
2771 REFGUID guid,
2772 UINT DataSize,
2773 const void *pData);
2774 HRESULT SetPrivateDataInterface(
2775 REFGUID guid,
2776 const IUnknown *pData);
2780 object,
2781 uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
2782 local,
2783 pointer_default(unique)
2785 interface ID3D11VideoContext : ID3D11DeviceChild
2787 HRESULT GetDecoderBuffer(
2788 [in] ID3D11VideoDecoder *decoder,
2789 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
2790 [out] UINT *buffer_size,
2791 [out] void **buffer
2793 HRESULT ReleaseDecoderBuffer(
2794 [in] ID3D11VideoDecoder *decoder,
2795 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
2797 HRESULT DecoderBeginFrame(
2798 [in] ID3D11VideoDecoder *decoder,
2799 [in] ID3D11VideoDecoderOutputView *view,
2800 [in] UINT key_size,
2801 [in] const void *key
2803 HRESULT DecoderEndFrame(
2804 [in] ID3D11VideoDecoder *decoder
2806 HRESULT SubmitDecoderBuffers(
2807 [in] ID3D11VideoDecoder *decoder,
2808 [in] UINT buffers_count,
2809 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
2811 HRESULT DecoderExtension(
2812 [in] ID3D11VideoDecoder *decoder,
2813 [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
2815 void VideoProcessorSetOutputTargetRect(
2816 [in] ID3D11VideoProcessor *processor,
2817 [in] BOOL enable,
2818 [in] const RECT *rect
2820 void VideoProcessorSetOutputBackgroundColor(
2821 [in] ID3D11VideoProcessor *processor,
2822 [in] BOOL y_cb_cr,
2823 [in] const D3D11_VIDEO_COLOR *color
2825 void VideoProcessorSetOutputColorSpace(
2826 [in] ID3D11VideoProcessor *processor,
2827 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2829 void VideoProcessorSetOutputAlphaFillMode(
2830 [in] ID3D11VideoProcessor *processor,
2831 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
2832 [in] UINT stream_idx
2834 void VideoProcessorSetOutputConstriction(
2835 [in] ID3D11VideoProcessor *processor,
2836 [in] BOOL enable,
2837 [in] SIZE size
2839 void VideoProcessorSetOutputStereoMode(
2840 [in] ID3D11VideoProcessor *processor,
2841 [in] BOOL enable
2843 HRESULT VideoProcessorSetOutputExtension(
2844 [in] ID3D11VideoProcessor *processor,
2845 [in] const GUID *guid,
2846 [in] UINT data_size,
2847 [in] void *data
2849 void VideoProcessorGetOutputTargetRect(
2850 [in] ID3D11VideoProcessor *processor,
2851 [out] BOOL *enabled,
2852 [out] RECT *rect
2854 void VideoProcessorGetOutputBackgroundColor(
2855 [in] ID3D11VideoProcessor *processor,
2856 [out] BOOL *y_cb_cr,
2857 [out] D3D11_VIDEO_COLOR *color
2859 void VideoProcessorGetOutputColorSpace(
2860 [in] ID3D11VideoProcessor *processor,
2861 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2863 void VideoProcessorGetOutputAlphaFillMode(
2864 [in] ID3D11VideoProcessor *processor,
2865 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
2866 [out] UINT *stream_idx
2868 void VideoProcessorGetOutputConstriction(
2869 [in] ID3D11VideoProcessor *processor,
2870 [out] BOOL *enabled,
2871 [out] SIZE *size
2873 void VideoProcessorGetOutputStereoMode(
2874 [in] ID3D11VideoProcessor *processor,
2875 [out] BOOL *enabled
2877 HRESULT VideoProcessorGetOutputExtension(
2878 [in] ID3D11VideoProcessor *processor,
2879 [in] const GUID *guid,
2880 [in] UINT data_size,
2881 [out] void *data
2883 void VideoProcessorSetStreamFrameFormat(
2884 [in] ID3D11VideoProcessor *processor,
2885 [in] UINT stream_idx,
2886 [in] D3D11_VIDEO_FRAME_FORMAT format
2888 void VideoProcessorSetStreamColorSpace(
2889 [in] ID3D11VideoProcessor *processor,
2890 [in] UINT stream_idx,
2891 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2893 void VideoProcessorSetStreamOutputRate(
2894 [in] ID3D11VideoProcessor *processor,
2895 [in] UINT stream_idx,
2896 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
2897 [in] BOOL repeat,
2898 [in] const DXGI_RATIONAL *custom_rate
2900 void VideoProcessorSetStreamSourceRect(
2901 [in] ID3D11VideoProcessor *processor,
2902 [in] UINT stream_idx,
2903 [in] BOOL enable,
2904 [in] const RECT *rect
2906 void VideoProcessorSetStreamDestRect(
2907 [in] ID3D11VideoProcessor *processor,
2908 [in] UINT stream_idx,
2909 [in] BOOL enable,
2910 [in] const RECT *rect
2912 void VideoProcessorSetStreamAlpha(
2913 [in] ID3D11VideoProcessor *processor,
2914 [in] UINT stream_idx,
2915 [in] BOOL enable,
2916 [in] float alpha
2918 void VideoProcessorSetStreamPalette(
2919 [in] ID3D11VideoProcessor *processor,
2920 [in] UINT stream_idx,
2921 [in] UINT entry_count,
2922 [in] const UINT *entries
2924 void VideoProcessorSetStreamPixelAspectRatio(
2925 [in] ID3D11VideoProcessor *processor,
2926 [in] UINT stream_idx,
2927 [in] BOOL enable,
2928 [in] const DXGI_RATIONAL *src_aspect_ratio,
2929 [in] const DXGI_RATIONAL *dst_aspect_ratio
2931 void VideoProcessorSetStreamLumaKey(
2932 [in] ID3D11VideoProcessor *processor,
2933 [in] UINT stream_idx,
2934 [in] BOOL enable,
2935 [in] float lower,
2936 [in] float upper
2938 void VideoProcessorSetStreamStereoFormat(
2939 [in] ID3D11VideoProcessor *processor,
2940 [in] UINT stream_idx,
2941 [in] BOOL enable,
2942 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
2943 [in] BOOL left_view_frame0,
2944 [in] BOOL base_view_frame0,
2945 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
2946 [in] int mono_offset
2948 void VideoProcessorSetStreamAutoProcessingMode(
2949 [in] ID3D11VideoProcessor *processor,
2950 [in] UINT stream_idx,
2951 [in] BOOL enable
2953 void VideoProcessorSetStreamFilter(
2954 [in] ID3D11VideoProcessor *processor,
2955 [in] UINT stream_idx,
2956 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
2957 [in] BOOL enable,
2958 [in] int level
2960 HRESULT VideoProcessorSetStreamExtension(
2961 [in] ID3D11VideoProcessor *processor,
2962 [in] UINT stream_idx,
2963 [in] const GUID *guid,
2964 [in] UINT data_size,
2965 [in] void *data
2967 void VideoProcessorGetStreamFrameFormat(
2968 [in] ID3D11VideoProcessor *processor,
2969 [in] UINT stream_idx,
2970 [out] D3D11_VIDEO_FRAME_FORMAT *format
2972 void VideoProcessorGetStreamColorSpace(
2973 [in] ID3D11VideoProcessor *processor,
2974 [in] UINT stream_idx,
2975 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
2977 void VideoProcessorGetStreamOutputRate(
2978 [in] ID3D11VideoProcessor *processor,
2979 [in] UINT stream_idx,
2980 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
2981 [out] BOOL *repeat,
2982 [out] DXGI_RATIONAL *custom_rate
2984 void VideoProcessorGetStreamSourceRect(
2985 [in] ID3D11VideoProcessor *processor,
2986 [in] UINT stream_idx,
2987 [out] BOOL *enabled,
2988 [out] RECT *rect
2990 void VideoProcessorGetStreamDestRect(
2991 [in] ID3D11VideoProcessor *processor,
2992 [in] UINT stream_idx,
2993 [out] BOOL *enabled,
2994 [out] RECT *rect
2996 void VideoProcessorGetStreamAlpha(
2997 [in] ID3D11VideoProcessor *processor,
2998 [in] UINT stream_idx,
2999 [out] BOOL *enabled,
3000 [out] float *alpha
3002 void VideoProcessorGetStreamPalette(
3003 [in] ID3D11VideoProcessor *processor,
3004 [in] UINT stream_idx,
3005 [in] UINT entry_count,
3006 [out] UINT *entries
3008 void VideoProcessorGetStreamPixelAspectRatio(
3009 [in] ID3D11VideoProcessor *processor,
3010 [in] UINT stream_idx,
3011 [out] BOOL *enabled,
3012 [out] DXGI_RATIONAL *src_aspect_ratio,
3013 [out] DXGI_RATIONAL *dst_aspect_ratio
3015 void VideoProcessorGetStreamLumaKey(
3016 [in] ID3D11VideoProcessor *processor,
3017 [in] UINT stream_idx,
3018 [out] BOOL *enabled,
3019 [out] float *lower,
3020 [out] float *upper
3022 void VideoProcessorGetStreamStereoFormat(
3023 [in] ID3D11VideoProcessor *processor,
3024 [in] UINT stream_idx,
3025 [out] BOOL *enabled,
3026 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
3027 [out] BOOL *left_view_frame0,
3028 [out] BOOL *base_view_frame0,
3029 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
3030 [out] int *mono_offset
3032 void VideoProcessorGetStreamAutoProcessingMode(
3033 [in] ID3D11VideoProcessor *processor,
3034 [in] UINT stream_idx,
3035 [out] BOOL *enabled
3037 void VideoProcessorGetStreamFilter(
3038 [in] ID3D11VideoProcessor *processor,
3039 [in] UINT stream_idx,
3040 [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
3041 [out] BOOL *enabled,
3042 [out] int *level
3044 HRESULT VideoProcessorGetStreamExtension(
3045 [in] ID3D11VideoProcessor *processor,
3046 [in] UINT stream_idx,
3047 [in] const GUID *guid,
3048 [in] UINT data_size,
3049 [out] void *data
3051 HRESULT VideoProcessorBlt(
3052 [in] ID3D11VideoProcessor *processor,
3053 [in] ID3D11VideoProcessorOutputView *view,
3054 [in] UINT frame_idx,
3055 [in] UINT stream_count,
3056 [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
3058 HRESULT NegotiateCryptoSessionKeyExchange(
3059 [in] ID3D11CryptoSession *session,
3060 [in] UINT data_size,
3061 [in, out] void *data
3063 void EncryptionBlt(
3064 [in] ID3D11CryptoSession *session,
3065 [in] ID3D11Texture2D *src_surface,
3066 [in] ID3D11Texture2D *dst_surface,
3067 [in] UINT iv_size,
3068 [in, out] void *iv
3070 void DecryptionBlt(
3071 [in] ID3D11CryptoSession *session,
3072 [in] ID3D11Texture2D *src_surface,
3073 [in] ID3D11Texture2D *dst_surface,
3074 [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
3075 [in] UINT key_size,
3076 [in] const void *key,
3077 [in] UINT iv_size,
3078 [in, out] void *iv
3080 void StartSessionKeyRefresh(
3081 [in] ID3D11CryptoSession *session,
3082 [in] UINT random_number_size,
3083 [out] void *random_number
3085 void FinishSessionKeyRefresh(
3086 [in] ID3D11CryptoSession *session
3088 HRESULT GetEncryptionBltKey(
3089 [in] ID3D11CryptoSession *session,
3090 [in] UINT key_size,
3091 [out] void *key
3093 HRESULT NegotiateAuthenticatedChannelKeyExchange(
3094 [in] ID3D11AuthenticatedChannel *channel,
3095 [in] UINT data_size,
3096 [in, out] void *data
3098 HRESULT QueryAuthenticatedChannel(
3099 [in] ID3D11AuthenticatedChannel *channel,
3100 [in] UINT input_size,
3101 [in] const void *input,
3102 [in] UINT output_size,
3103 [out] void *output
3105 HRESULT ConfigureAuthenticatedChannel(
3106 [in] ID3D11AuthenticatedChannel *channel,
3107 [in] UINT input_size,
3108 [in] const void *input,
3109 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
3111 void VideoProcessorSetStreamRotation(
3112 [in] ID3D11VideoProcessor *processor,
3113 [in] UINT stream_idx,
3114 [in] BOOL enable,
3115 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3117 void VideoProcessorGetStreamRotation(
3118 [in] ID3D11VideoProcessor *processor,
3119 [in] UINT stream_idx,
3120 [out] BOOL *enable,
3121 [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
3126 object,
3127 local,
3128 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
3130 interface ID3D11Device : IUnknown
3132 HRESULT CreateBuffer(
3133 [in] const D3D11_BUFFER_DESC *pDesc,
3134 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3135 [out] ID3D11Buffer **ppBuffer);
3136 HRESULT CreateTexture1D(
3137 [in] const D3D11_TEXTURE1D_DESC *pDesc,
3138 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3139 [out] ID3D11Texture1D **ppTexture1D);
3140 HRESULT CreateTexture2D(
3141 [in] const D3D11_TEXTURE2D_DESC *pDesc,
3142 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3143 [out] ID3D11Texture2D **ppTexture2D);
3144 HRESULT CreateTexture3D(
3145 [in] const D3D11_TEXTURE3D_DESC *pDesc,
3146 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
3147 [out] ID3D11Texture3D **ppTexture3D);
3148 HRESULT CreateShaderResourceView(
3149 [in] ID3D11Resource *pResource,
3150 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
3151 [out] ID3D11ShaderResourceView **ppSRView);
3152 HRESULT CreateUnorderedAccessView(
3153 [in] ID3D11Resource *pResource,
3154 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
3155 [out] ID3D11UnorderedAccessView **ppUAView);
3156 HRESULT CreateRenderTargetView(
3157 [in] ID3D11Resource *pResource,
3158 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
3159 [out] ID3D11RenderTargetView **ppRTView);
3160 HRESULT CreateDepthStencilView(
3161 [in] ID3D11Resource *pResource,
3162 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
3163 [out] ID3D11DepthStencilView **ppDepthStencilView);
3164 HRESULT CreateInputLayout(
3165 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
3166 [in] UINT NumElements,
3167 [in] const void *pShaderBytecodeWithInputSignature,
3168 [in] SIZE_T BytecodeLength,
3169 [out] ID3D11InputLayout **ppInputLayout);
3170 HRESULT CreateVertexShader(
3171 [in] const void *pShaderBytecode,
3172 [in] SIZE_T BytecodeLength,
3173 [in] ID3D11ClassLinkage *pClassLinkage,
3174 [out] ID3D11VertexShader **ppVertexShader);
3175 HRESULT CreateGeometryShader(
3176 [in] const void *pShaderBytecode,
3177 [in] SIZE_T BytecodeLength,
3178 [in] ID3D11ClassLinkage *pClassLinkage,
3179 [out] ID3D11GeometryShader **ppGeometryShader);
3180 HRESULT CreateGeometryShaderWithStreamOutput(
3181 [in] const void *pShaderBytecode,
3182 [in] SIZE_T BytecodeLength,
3183 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
3184 [in] UINT NumEntries,
3185 [in] const UINT *pBufferStrides,
3186 [in] UINT NumStrides,
3187 [in] UINT RasterizedStream,
3188 [in] ID3D11ClassLinkage *pClassLinkage,
3189 [out] ID3D11GeometryShader **ppGeometryShader);
3190 HRESULT CreatePixelShader(
3191 [in] const void *pShaderBytecode,
3192 [in] SIZE_T BytecodeLength,
3193 [in] ID3D11ClassLinkage *pClassLinkage,
3194 [out] ID3D11PixelShader **ppPixelShader);
3195 HRESULT CreateHullShader(
3196 [in] const void *pShaderBytecode,
3197 [in] SIZE_T BytecodeLength,
3198 [in] ID3D11ClassLinkage *pClassLinkage,
3199 [out] ID3D11HullShader **ppHullShader);
3200 HRESULT CreateDomainShader(
3201 [in] const void *pShaderBytecode,
3202 [in] SIZE_T BytecodeLength,
3203 [in] ID3D11ClassLinkage *pClassLinkage,
3204 [out] ID3D11DomainShader **ppDomainShader);
3205 HRESULT CreateComputeShader(
3206 [in] const void *pShaderBytecode,
3207 [in] SIZE_T BytecodeLength,
3208 [in] ID3D11ClassLinkage *pClassLinkage,
3209 [out] ID3D11ComputeShader **ppComputeShader);
3210 HRESULT CreateClassLinkage(
3211 [out] ID3D11ClassLinkage **ppLinkage);
3212 HRESULT CreateBlendState(
3213 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
3214 [out] ID3D11BlendState **ppBlendState);
3215 HRESULT CreateDepthStencilState(
3216 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
3217 [out] ID3D11DepthStencilState **ppDepthStencilState);
3218 HRESULT CreateRasterizerState(
3219 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
3220 [out] ID3D11RasterizerState **ppRasterizerState);
3221 HRESULT CreateSamplerState(
3222 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
3223 [out] ID3D11SamplerState **ppSamplerState);
3224 HRESULT CreateQuery(
3225 [in] const D3D11_QUERY_DESC *pQueryDesc,
3226 [out] ID3D11Query **ppQuery);
3227 HRESULT CreatePredicate(
3228 [in] const D3D11_QUERY_DESC *pPredicateDesc,
3229 [out] ID3D11Predicate **ppPredicate);
3230 HRESULT CreateCounter(
3231 [in] const D3D11_COUNTER_DESC *pCounterDesc,
3232 [out] ID3D11Counter **ppCounter);
3233 HRESULT CreateDeferredContext(
3234 UINT ContextFlags,
3235 [out] ID3D11DeviceContext **ppDeferredContext);
3236 HRESULT OpenSharedResource(
3237 [in] HANDLE hResource,
3238 [in] REFIID ReturnedInterface,
3239 [out] void **ppResource);
3240 HRESULT CheckFormatSupport(
3241 [in] DXGI_FORMAT Format,
3242 [out] UINT *pFormatSupport);
3243 HRESULT CheckMultisampleQualityLevels(
3244 [in] DXGI_FORMAT Format,
3245 [in] UINT SampleCount,
3246 [out] UINT *pNumQualityLevels);
3247 void CheckCounterInfo(
3248 [out] D3D11_COUNTER_INFO *pCounterInfo);
3249 HRESULT CheckCounter(
3250 [in] const D3D11_COUNTER_DESC *pDesc,
3251 [out] D3D11_COUNTER_TYPE *pType,
3252 [out] UINT *pActiveCounters,
3253 [out] LPSTR szName,
3254 [in, out] UINT *pNameLength,
3255 [out] LPSTR szUnits,
3256 [in, out] UINT *pUnitsLength,
3257 [out] LPSTR szDescription,
3258 [in, out] UINT *pDescriptionLength);
3259 HRESULT CheckFeatureSupport(
3260 D3D11_FEATURE Feature,
3261 [out] void *pFeatureSupportData,
3262 UINT FeatureSupportDataSize);
3263 HRESULT GetPrivateData(
3264 [in] REFGUID guid,
3265 [in, out] UINT *pDataSize,
3266 [out] void *pData);
3267 HRESULT SetPrivateData(
3268 [in] REFGUID guid,
3269 [in] UINT DataSize,
3270 [in] const void *pData);
3271 HRESULT SetPrivateDataInterface(
3272 [in] REFGUID guid,
3273 [in] const IUnknown *pData);
3274 D3D_FEATURE_LEVEL GetFeatureLevel();
3275 UINT GetCreationFlags();
3276 HRESULT GetDeviceRemovedReason();
3277 void GetImmediateContext(
3278 [out] ID3D11DeviceContext **ppImmediateContext);
3279 HRESULT SetExceptionMode(UINT RaiseFlags);
3280 UINT GetExceptionMode();
3283 typedef enum D3D11_CREATE_DEVICE_FLAG {
3284 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
3285 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
3286 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
3287 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
3288 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
3289 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
3290 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
3291 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
3292 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
3293 } D3D11_CREATE_DEVICE_FLAG;
3295 const UINT D3D11_SDK_VERSION = 7;
3297 cpp_quote("#include <d3d10_1.h>")
3298 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
3299 cpp_quote("# include <d3d11sdklayers.h>")
3300 cpp_quote("#endif")
3301 cpp_quote("#include <d3d10misc.h>")
3302 cpp_quote("#include <d3d10shader.h>")
3303 cpp_quote("#include <d3d10effect.h>")
3304 cpp_quote("#include <d3d10_1shader.h>")
3306 const UINT _FACD3D11 = 0x87c;
3307 cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3309 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3310 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3312 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3313 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3315 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3316 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3317 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3319 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
3320 HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
3321 const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
3322 D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);