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