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