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
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 cpp_quote
("#ifndef _D3D11_CONSTANTS")
36 cpp_quote
("#define _D3D11_CONSTANTS")
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
= 14;
39 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS
= 4;
40 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT
= 32;
41 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT
= 15;
42 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT
= 16;
43 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
44 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT
= 15;
45 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
46 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
47 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT
= 64;
48 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
49 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT
= 1;
50 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
51 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
52 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT
= 32;
53 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS
= 1;
54 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT
= 128;
55 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST
= 1;
56 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS
= 1;
57 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
= 128;
58 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS
= 1;
59 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT
= 16;
60 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST
= 1;
61 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS
= 1;
62 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT
= 16;
63 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT
= 32;
64 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS
= 4;
65 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT
= 32;
66 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT
= 4096;
67 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST
= 3;
68 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS
= 3;
69 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX
= 10;
70 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN
= -10;
71 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE
= -8;
72 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE
= 7;
74 const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 256;
75 const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP
= 64;
76 const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 240;
77 const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP
= 68;
78 const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 224;
79 const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP
= 72;
80 const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 208;
81 const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP
= 76;
82 const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 192;
83 const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP
= 84;
84 const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 176;
85 const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP
= 92;
86 const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 160;
87 const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP
= 100;
88 const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 144;
89 const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP
= 112;
90 const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 128;
91 const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP
= 128;
92 const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 112;
93 const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP
= 144;
94 const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 96;
95 const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP
= 168;
96 const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 80;
97 const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP
= 204;
98 const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 64;
99 const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP
= 256;
100 const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 48;
101 const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP
= 340;
102 const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 32;
103 const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP
= 512;
104 const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 16;
105 const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP
= 768;
106 const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION
= 1;
107 const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT
= 256;
108 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP
= 768;
109 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X
= 768;
110 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y
= 768;
111 const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT
= 1;
112 const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION
= 65535;
113 const UINT D3D11_CS_TGSM_REGISTER_COUNT
= 8192;
114 const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST
= 1;
115 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS
= 1;
116 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS
= 1;
117 const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP
= 1024;
118 const UINT D3D11_CS_THREAD_GROUP_MAX_X
= 1024;
119 const UINT D3D11_CS_THREAD_GROUP_MAX_Y
= 1024;
120 const UINT D3D11_CS_THREAD_GROUP_MAX_Z
= 64;
121 const UINT D3D11_CS_THREAD_GROUP_MIN_X
= 1;
122 const UINT D3D11_CS_THREAD_GROUP_MIN_Y
= 1;
123 const UINT D3D11_CS_THREAD_GROUP_MIN_Z
= 1;
124 const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL
= 16384;
126 const UINT D3D11_DEFAULT_DEPTH_BIAS
= 0;
127 cpp_quote
("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
128 const UINT D3D11_DEFAULT_MAX_ANISOTROPY
= 16;
129 cpp_quote
("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
130 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX
= 0;
131 const UINT D3D11_DEFAULT_SAMPLE_MASK
= 0xffffffff;
132 const UINT D3D11_DEFAULT_SCISSOR_ENDX
= 0;
133 const UINT D3D11_DEFAULT_SCISSOR_ENDY
= 0;
134 const UINT D3D11_DEFAULT_SCISSOR_STARTX
= 0;
135 const UINT D3D11_DEFAULT_SCISSOR_STARTY
= 0;
136 cpp_quote
("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
137 const UINT D3D11_DEFAULT_STENCIL_READ_MASK
= 0xff;
138 const UINT D3D11_DEFAULT_STENCIL_REFERENCE
= 0;
139 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK
= 0xff;
140 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX
= 0;
141 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT
= 0;
142 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
143 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
144 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX
= 0;
145 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY
= 0;
146 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH
= 0;
148 cpp_quote
("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
150 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
= 32;
152 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
= 8;
154 const UINT D3D11_MAX_MAXANISOTROPY
= 16;
155 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT
= 32;
156 const UINT D3D11_VIEWPORT_BOUNDS_MAX
= 32767;
157 const INT D3D11_VIEWPORT_BOUNDS_MIN
= -32768;
158 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX
= 15;
159 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE
= 16;
161 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL
= 0xffffffff;
162 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS
= 0xffffffff;
164 const UINT D3D11_SHADER_MAJOR_VERSION
= 5;
165 const UINT D3D11_SHADER_MAX_INSTANCES
= 65535;
166 const UINT D3D11_SHADER_MAX_INTERFACES
= 253;
167 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES
= 4096;
168 const UINT D3D11_SHADER_MAX_TYPES
= 65535;
169 const UINT D3D11_SHADER_MINOR_VERSION
= 0;
170 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT
= 32;
172 const UINT D3D11_OMAC_SIZE
= 16;
174 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS
= 1;
175 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT
= 8;
176 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST
= 1;
177 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS
= 1;
178 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE
= 0xffffffff;
179 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE
= 0;
180 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE
= 0xffffffff;
181 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS
= 4;
182 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
183 const UINT D3D11_PS_INPUT_REGISTER_COUNT
= 32;
184 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST
= 2;
185 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS
= 1;
186 cpp_quote
("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
187 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS
= 1;
188 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT
= 32;
189 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT
= 1;
190 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS
= 1;
191 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT
= 32;
192 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT
= 1;
193 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS
= 4;
194 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
195 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT
= 8;
196 cpp_quote
("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
198 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT
= 16;
200 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE
= 4096;
201 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP
= 27;
202 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
203 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE
= 4096;
204 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP
= 32;
205 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP
= 32;
206 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION
= 16384;
207 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT
= 1024;
208 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
209 const UINT D3D11_REQ_MAXANISOTROPY
= 16;
210 const UINT D3D11_REQ_MIP_LEVELS
= 15;
211 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES
= 2048;
212 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE
= 4096;
213 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH
= 16384;
214 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM
= 128;
215 cpp_quote
("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
216 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM
= 2048;
217 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP
= 20;
218 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE
= 4096;
219 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION
= 2048;
220 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION
= 16384;
221 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION
= 2048;
222 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION
= 16384;
223 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION
= 2048;
224 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION
= 16384;
226 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL
= 0;
228 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE
= 0;
229 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT
= 5;
231 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES
= 2048;
232 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES
= 512;
233 const UINT D3D11_SO_BUFFER_SLOT_COUNT
= 4;
234 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP
= 0xffffffff;
235 const UINT D3D11_SO_NO_RASTERIZED_STREAM
= 0xffffffff;
236 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT
= 128;
237 const UINT D3D11_SO_STREAM_COUNT
= 4;
239 const UINT D3D11_SPEC_DATE_DAY
= 16;
240 const UINT D3D11_SPEC_DATE_MONTH
= 05;
241 const UINT D3D11_SPEC_DATE_YEAR
= 2011;
243 cpp_quote
("#define D3D11_SPEC_VERSION (1.07)")
244 cpp_quote
("#define D3D11_SRGB_GAMMA (2.2f)")
245 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
246 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
247 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
248 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
249 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
250 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
252 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT
= 32;
253 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED
= 64;
254 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE
= 4;
255 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT
= 128;
256 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT
= 32;
257 const UINT D3D11_STANDARD_VECTOR_SIZE
= 4;
258 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT
= 32;
259 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT
= 64;
263 cpp_quote
("#ifndef _D3D11_1_CONSTANTS")
264 cpp_quote
("#define _D3D11_1_CONSTANTS")
265 const UINT D3D11_1_UAV_SLOT_COUNT
= 64;
268 cpp_quote
("#ifndef _D3D11_2_CONSTANTS")
269 cpp_quote
("#define _D3D11_2_CONSTANTS")
270 const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES
= 0x10000;
273 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
274 cpp_quote
("struct CD3D11_DEFAULT {};")
275 cpp_quote
("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
278 typedef enum D3D11_BLEND
280 D3D11_BLEND_ZERO
= 1,
282 D3D11_BLEND_SRC_COLOR
= 3,
283 D3D11_BLEND_INV_SRC_COLOR
= 4,
284 D3D11_BLEND_SRC_ALPHA
= 5,
285 D3D11_BLEND_INV_SRC_ALPHA
= 6,
286 D3D11_BLEND_DEST_ALPHA
= 7,
287 D3D11_BLEND_INV_DEST_ALPHA
= 8,
288 D3D11_BLEND_DEST_COLOR
= 9,
289 D3D11_BLEND_INV_DEST_COLOR
= 10,
290 D3D11_BLEND_SRC_ALPHA_SAT
= 11,
291 D3D11_BLEND_BLEND_FACTOR
= 14,
292 D3D11_BLEND_INV_BLEND_FACTOR
= 15,
293 D3D11_BLEND_SRC1_COLOR
= 16,
294 D3D11_BLEND_INV_SRC1_COLOR
= 17,
295 D3D11_BLEND_SRC1_ALPHA
= 18,
296 D3D11_BLEND_INV_SRC1_ALPHA
= 19,
299 typedef enum D3D11_BLEND_OP
301 D3D11_BLEND_OP_ADD
= 1,
302 D3D11_BLEND_OP_SUBTRACT
,
303 D3D11_BLEND_OP_REV_SUBTRACT
,
308 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
310 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS
= 0,
311 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL
= 1,
312 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE
= 2,
313 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL
= 3,
314 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX
= 4,
315 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL
= 5,
316 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM
= 6,
317 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR
= 7,
318 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN
= 8,
319 } D3D11_VIDEO_DECODER_BUFFER_TYPE
;
321 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
323 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE
= 0,
324 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND
= 1,
325 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION
= 2,
326 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM
= 3,
327 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
;
329 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
331 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL
= 0,
332 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF
= 1,
333 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM
= 2,
334 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
;
336 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
338 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO
= 0,
339 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL
= 1,
340 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL
= 2,
341 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE
= 3,
342 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET
= 4,
343 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED
= 5,
344 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED
= 6,
345 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD
= 7,
346 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
;
348 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
350 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE
= 0,
351 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0
= 1,
352 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1
= 2,
353 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
;
355 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
357 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY
= 0,
358 D3D11_VIDEO_PROCESSOR_ROTATION_90
= 1,
359 D3D11_VIDEO_PROCESSOR_ROTATION_180
= 2,
360 D3D11_VIDEO_PROCESSOR_ROTATION_270
= 3,
361 } D3D11_VIDEO_PROCESSOR_ROTATION
;
363 typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS
365 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE
= 0x00000001,
366 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC
= 0x00000002,
367 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION
= 0x00000004,
368 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION
= 0x00000008,
369 D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE
= 0x00000010,
370 } D3D11_VIDEO_PROCESSOR_DEVICE_CAPS
;
372 typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS
374 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL
= 0x00000001,
375 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION
= 0x00000002,
376 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY
= 0x00000004,
377 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE
= 0x00000008,
378 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY
= 0x00000010,
379 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO
= 0x00000020,
380 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION
= 0x00000040,
381 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM
= 0x00000080,
382 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO
= 0x00000100,
383 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR
= 0x00000200,
384 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE
= 0x00000400,
385 D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10
= 0x00000800,
386 } D3D11_VIDEO_PROCESSOR_FEATURE_CAPS
;
388 typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS
390 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS
= 0x00000001,
391 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST
= 0x00000002,
392 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE
= 0x00000004,
393 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION
= 0x00000008,
394 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION
= 0x00000010,
395 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT
= 0x00000020,
396 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING
= 0x00000040,
397 D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT
= 0x00000080,
398 } D3D11_VIDEO_PROCESSOR_FILTER_CAPS
;
400 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS
402 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED
= 0x00000001,
403 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP
= 0x00000002,
404 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY
= 0x00000004,
405 D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED
= 0x00000008,
406 } D3D11_VIDEO_PROCESSOR_FORMAT_CAPS
;
408 typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS
410 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE
= 0x00000001,
411 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING
= 0x00000002,
412 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT
= 0x00000004,
413 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION
= 0x00000008,
414 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING
= 0x00000010,
415 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION
= 0x00000020,
416 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION
= 0x00000040,
417 D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING
= 0x00000080,
418 } D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS
;
420 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS
422 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET
= 0x00000001,
423 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED
= 0x00000002,
424 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED
= 0x00000004,
425 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD
= 0x00000008,
426 D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE
= 0x00000010,
427 } D3D11_VIDEO_PROCESSOR_STEREO_CAPS
;
429 typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
431 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND
= 0x01,
432 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB
= 0x02,
433 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE
= 0x04,
434 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION
= 0x08,
435 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE
= 0x10,
436 D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION
= 0x20,
437 } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
;
439 typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
441 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32
= 0x00000001,
442 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22
= 0x00000002,
443 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224
= 0x00000004,
444 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332
= 0x00000008,
445 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322
= 0x00000010,
446 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55
= 0x00000020,
447 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64
= 0x00000040,
448 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87
= 0x00000080,
449 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223
= 0x00000100,
450 D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER
= 0x80000000,
451 } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
;
453 typedef enum D3D11_CONTENT_PROTECTION_CAPS
455 D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE
= 0x00000001,
456 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE
= 0x00000002,
457 D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON
= 0x00000004,
458 D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION
= 0x00000008,
459 D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY
= 0x00000010,
460 D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY
= 0x00000020,
461 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK
= 0x00000040,
462 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY
= 0x00000080,
463 D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV
= 0x00000100,
464 D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY
= 0x00000200,
465 D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT
= 0x00000400,
466 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED
= 0x00000800,
467 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE
= 0x00001000,
468 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN
= 0x00002000,
469 D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION
= 0x00004000,
470 } D3D11_CONTENT_PROTECTION_CAPS
;
472 typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
474 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED
= 0x00000000,
475 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235
= 0x00000001,
476 D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255
= 0x00000002,
477 } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
;
479 typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
481 D3D11_PROCESSIDTYPE_UNKNOWN
= 0x00000000,
482 D3D11_PROCESSIDTYPE_DWM
= 0x00000001,
483 D3D11_PROCESSIDTYPE_HANDLE
= 0x00000002,
484 } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
;
486 typedef enum D3D11_BUS_TYPE
488 D3D11_BUS_TYPE_OTHER
= 0x00000000,
489 D3D11_BUS_TYPE_PCI
= 0x00000001,
490 D3D11_BUS_TYPE_PCIX
= 0x00000002,
491 D3D11_BUS_TYPE_PCIEXPRESS
= 0x00000003,
492 D3D11_BUS_TYPE_AGP
= 0x00000004,
493 D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET
= 0x00010000,
494 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP
= 0x00020000,
495 D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET
= 0x00030000,
496 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR
= 0x00040000,
497 D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE
= 0x00050000,
498 D3D11_BUS_IMPL_MODIFIER_NON_STANDARD
= 0x80000000,
501 typedef struct D3D11_BOX
511 typedef struct D3D11_BUFFER_RTV
525 typedef struct D3D11_BUFFER_SRV
539 typedef struct D3D11_BUFFER_UAV
546 typedef struct D3D11_BUFFEREX_SRV
551 } D3D11_BUFFEREX_SRV
;
553 typedef struct D3D11_CLASS_INSTANCE_DESC
559 UINT BaseConstantBufferOffset
;
563 } D3D11_CLASS_INSTANCE_DESC
;
565 typedef enum D3D11_COMPARISON_FUNC
567 D3D11_COMPARISON_NEVER
= 1,
568 D3D11_COMPARISON_LESS
,
569 D3D11_COMPARISON_EQUAL
,
570 D3D11_COMPARISON_LESS_EQUAL
,
571 D3D11_COMPARISON_GREATER
,
572 D3D11_COMPARISON_NOT_EQUAL
,
573 D3D11_COMPARISON_GREATER_EQUAL
,
574 D3D11_COMPARISON_ALWAYS
575 } D3D11_COMPARISON_FUNC
;
577 typedef enum D3D11_COUNTER
579 D3D11_COUNTER_DEVICE_DEPENDENT_0
= 0x40000000,
582 typedef struct D3D11_COUNTER_DESC
584 D3D11_COUNTER Counter
;
586 } D3D11_COUNTER_DESC
;
588 typedef struct D3D11_COUNTER_INFO
590 D3D11_COUNTER LastDeviceDependentCounter
;
591 UINT NumSimultaneousCounters
;
592 UINT8 NumDetectableParallelUnits
;
593 } D3D11_COUNTER_INFO
;
595 typedef enum D3D11_COUNTER_TYPE
597 D3D11_COUNTER_TYPE_FLOAT32
,
598 D3D11_COUNTER_TYPE_UINT16
,
599 D3D11_COUNTER_TYPE_UINT32
,
600 D3D11_COUNTER_TYPE_UINT64
,
601 } D3D11_COUNTER_TYPE
;
603 typedef enum D3D11_CULL_MODE
610 typedef enum D3D11_DEPTH_WRITE_MASK
612 D3D11_DEPTH_WRITE_MASK_ZERO
,
613 D3D11_DEPTH_WRITE_MASK_ALL
,
614 } D3D11_DEPTH_WRITE_MASK
;
616 typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
618 D3D11_STANDARD_MULTISAMPLE_PATTERN
= 0xffffffff,
619 D3D11_CENTER_MULTISAMPLE_PATTERN
= 0xfffffffe,
620 } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
;
622 typedef enum D3D11_DEVICE_CONTEXT_TYPE
624 D3D11_DEVICE_CONTEXT_IMMEDIATE
,
625 D3D11_DEVICE_CONTEXT_DEFERRED
,
626 } D3D11_DEVICE_CONTEXT_TYPE
;
628 typedef enum D3D11_DSV_DIMENSION
630 D3D11_DSV_DIMENSION_UNKNOWN
,
631 D3D11_DSV_DIMENSION_TEXTURE1D
,
632 D3D11_DSV_DIMENSION_TEXTURE1DARRAY
,
633 D3D11_DSV_DIMENSION_TEXTURE2D
,
634 D3D11_DSV_DIMENSION_TEXTURE2DARRAY
,
635 D3D11_DSV_DIMENSION_TEXTURE2DMS
,
636 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY
,
637 } D3D11_DSV_DIMENSION
;
639 typedef enum D3D11_FEATURE
641 D3D11_FEATURE_THREADING
,
642 D3D11_FEATURE_DOUBLES
,
643 D3D11_FEATURE_FORMAT_SUPPORT
,
644 D3D11_FEATURE_FORMAT_SUPPORT2
,
645 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS
,
646 D3D11_FEATURE_D3D11_OPTIONS
,
647 D3D11_FEATURE_ARCHITECTURE_INFO
,
648 D3D11_FEATURE_D3D9_OPTIONS
,
649 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT
,
650 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
,
651 D3D11_FEATURE_D3D11_OPTIONS1
,
652 D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT
,
653 D3D11_FEATURE_MARKER_SUPPORT
,
654 D3D11_FEATURE_D3D9_OPTIONS1
,
655 D3D11_FEATURE_D3D11_OPTIONS2
,
656 D3D11_FEATURE_D3D11_OPTIONS3
,
657 D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT
,
658 D3D11_FEATURE_D3D11_OPTIONS4
,
659 D3D11_FEATURE_SHADER_CACHE
,
660 D3D11_FEATURE_D3D11_OPTIONS5
,
663 typedef struct D3D11_FEATURE_DATA_THREADING
665 BOOL DriverConcurrentCreates
;
666 BOOL DriverCommandLists
;
667 } D3D11_FEATURE_DATA_THREADING
;
669 typedef struct D3D11_FEATURE_DATA_DOUBLES
671 BOOL DoublePrecisionFloatShaderOps
;
672 } D3D11_FEATURE_DATA_DOUBLES
;
674 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
676 DXGI_FORMAT InFormat
;
677 UINT OutFormatSupport
;
678 } D3D11_FEATURE_DATA_FORMAT_SUPPORT
;
680 typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
682 DXGI_FORMAT InFormat
;
683 UINT OutFormatSupport2
;
684 } D3D11_FEATURE_DATA_FORMAT_SUPPORT2
;
686 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
688 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x
;
689 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
;
691 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
693 BOOL OutputMergerLogicOp
;
694 BOOL UAVOnlyRenderingForcedSampleCount
;
695 BOOL DiscardAPIsSeenByDriver
;
696 BOOL FlagsForUpdateAndCopySeenByDriver
;
698 BOOL CopyWithOverlap
;
699 BOOL ConstantBufferPartialUpdate
;
700 BOOL ConstantBufferOffsetting
;
701 BOOL MapNoOverwriteOnDynamicConstantBuffer
;
702 BOOL MapNoOverwriteOnDynamicBufferSRV
;
703 BOOL MultisampleRTVWithForcedSampleCountOne
;
704 BOOL SAD4ShaderInstructions
;
705 BOOL ExtendedDoublesShaderInstructions
;
706 BOOL ExtendedResourceSharing
;
707 } D3D11_FEATURE_DATA_D3D11_OPTIONS
;
709 typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
711 BOOL TileBasedDeferredRenderer
;
712 } D3D11_FEATURE_DATA_ARCHITECTURE_INFO
;
714 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
716 BOOL FullNonPow2TextureSupport
;
717 } D3D11_FEATURE_DATA_D3D9_OPTIONS
;
719 typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
721 BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter
;
722 } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
;
724 typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
726 D3D11_SHADER_MIN_PRECISION_10_BIT
= 0x1,
727 D3D11_SHADER_MIN_PRECISION_16_BIT
= 0x2,
728 } D3D11_SHADER_MIN_PRECISION_SUPPORT
;
730 typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
732 UINT PixelShaderMinPrecision
;
733 UINT AllOtherShaderStagesMinPrecision
;
734 } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
;
736 typedef enum D3D11_TILED_RESOURCES_TIER
738 D3D11_TILED_RESOURCES_NOT_SUPPORTED
= 0x0,
739 D3D11_TILED_RESOURCES_TIER_1
= 0x1,
740 D3D11_TILED_RESOURCES_TIER_2
= 0x2,
741 D3D11_TILED_RESOURCES_TIER_3
= 0x3,
742 } D3D11_TILED_RESOURCES_TIER
;
744 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
746 D3D11_TILED_RESOURCES_TIER TiledResourcesTier
;
747 BOOL MinMaxFiltering
;
748 BOOL ClearViewAlsoSupportsDepthOnlyFormats
;
749 BOOL MapOnDefaultBuffers
;
750 } D3D11_FEATURE_DATA_D3D11_OPTIONS1
;
752 typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
754 BOOL SimpleInstancingSupported
;
755 } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
;
757 typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
760 } D3D11_FEATURE_DATA_MARKER_SUPPORT
;
762 typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
764 BOOL FullNonPow2TextureSupported
;
765 BOOL DepthAsTextureWithLessEqualComparisonFilterSupported
;
766 BOOL SimpleInstancingSupported
;
767 BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported
;
768 } D3D11_FEATURE_DATA_D3D9_OPTIONS1
;
770 typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
772 D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED
= 0x0,
773 D3D11_CONSERVATIVE_RASTERIZATION_TIER_1
= 0x1,
774 D3D11_CONSERVATIVE_RASTERIZATION_TIER_2
= 0x2,
775 D3D11_CONSERVATIVE_RASTERIZATION_TIER_3
= 0x3,
776 } D3D11_CONSERVATIVE_RASTERIZATION_TIER
;
778 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
780 BOOL PSSpecifiedStencilRefSupported
;
781 BOOL TypedUAVLoadAdditionalFormats
;
783 D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier
;
784 D3D11_TILED_RESOURCES_TIER TiledResourcesTier
;
785 BOOL MapOnDefaultTextures
;
786 BOOL StandardSwizzle
;
787 BOOL UnifiedMemoryArchitecture
;
788 } D3D11_FEATURE_DATA_D3D11_OPTIONS2
;
790 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
792 BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer
;
793 } D3D11_FEATURE_DATA_D3D11_OPTIONS3
;
795 typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
797 UINT MaxGPUVirtualAddressBitsPerResource
;
798 UINT MaxGPUVirtualAddressBitsPerProcess
;
799 } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
;
801 typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
803 D3D11_SHADER_CACHE_SUPPORT_NONE
= 0x0,
804 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE
= 0x1,
805 D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE
= 0x2,
806 } D3D11_SHADER_CACHE_SUPPORT_FLAGS
;
808 typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
811 } D3D11_FEATURE_DATA_SHADER_CACHE
;
813 typedef enum D3D11_SHARED_RESOURCE_TIER
815 D3D11_SHARED_RESOURCE_TIER_0
,
816 D3D11_SHARED_RESOURCE_TIER_1
,
817 D3D11_SHARED_RESOURCE_TIER_2
,
818 D3D11_SHARED_RESOURCE_TIER_3
,
819 } D3D11_SHARED_RESOURCE_TIER
;
821 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS5
823 D3D11_SHARED_RESOURCE_TIER SharedResourceTier
;
824 } D3D11_FEATURE_DATA_D3D11_OPTIONS5
;
826 typedef enum D3D11_FILL_MODE
828 D3D11_FILL_WIREFRAME
= 2,
832 typedef enum D3D11_FILTER_TYPE
834 D3D11_FILTER_TYPE_POINT
= 0,
835 D3D11_FILTER_TYPE_LINEAR
= 1
838 const UINT D3D11_MIN_FILTER_SHIFT
= 4;
839 const UINT D3D11_MAG_FILTER_SHIFT
= 2;
840 const UINT D3D11_MIP_FILTER_SHIFT
= 0;
841 const UINT D3D11_FILTER_TYPE_MASK
= 0x00000003;
842 const UINT D3D11_COMPARISON_FILTERING_BIT
= 0x00000080;
843 const UINT D3D11_ANISOTROPIC_FILTERING_BIT
= 0x00000040;
845 cpp_quote
("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
846 cpp_quote
(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
847 cpp_quote
(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
848 cpp_quote
(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
849 cpp_quote
(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
851 cpp_quote
("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
852 cpp_quote
(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
853 cpp_quote
(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
854 cpp_quote
(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
856 cpp_quote
("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
857 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
859 cpp_quote
("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
860 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
862 cpp_quote
("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
863 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
865 cpp_quote
("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
867 cpp_quote
("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
868 cpp_quote
(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
869 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
870 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
871 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
873 typedef enum D3D11_FILTER
875 D3D11_FILTER_MIN_MAG_MIP_POINT
= 0x00,
876 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR
= 0x01,
877 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x04,
878 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR
= 0x05,
879 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT
= 0x10,
880 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x11,
881 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT
= 0x14,
882 D3D11_FILTER_MIN_MAG_MIP_LINEAR
= 0x15,
883 D3D11_FILTER_ANISOTROPIC
= 0x55,
884 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT
= 0x80,
885 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR
= 0x81,
886 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x84,
887 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR
= 0x85,
888 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT
= 0x90,
889 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x91,
890 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT
= 0x94,
891 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR
= 0x95,
892 D3D11_FILTER_COMPARISON_ANISOTROPIC
= 0xd5,
893 D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT
= 0x100,
894 D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR
= 0x101,
895 D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x104,
896 D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR
= 0x105,
897 D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT
= 0x110,
898 D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x111,
899 D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT
= 0x114,
900 D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR
= 0x115,
901 D3D11_FILTER_MINIMUM_ANISOTROPIC
= 0x155,
902 D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT
= 0x180,
903 D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR
= 0x181,
904 D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x184,
905 D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR
= 0x185,
906 D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT
= 0x190,
907 D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x191,
908 D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT
= 0x194,
909 D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR
= 0x195,
910 D3D11_FILTER_MAXIMUM_ANISOTROPIC
= 0x1d5
913 typedef enum D3D11_DSV_FLAG
915 D3D11_DSV_READ_ONLY_DEPTH
= 0x1,
916 D3D11_DSV_READ_ONLY_STENCIL
= 0x2,
919 typedef enum D3D11_BUFFEREX_SRV_FLAG
921 D3D11_BUFFEREX_SRV_FLAG_RAW
= 0x1,
922 } D3D11_BUFFEREX_SRV_FLAG
;
924 typedef enum D3D11_UAV_FLAG
926 D3D11_BUFFER_UAV_FLAG_RAW
= 0x1,
927 D3D11_BUFFER_UAV_FLAG_APPEND
= 0x2,
928 D3D11_BUFFER_UAV_FLAG_COUNTER
= 0x4,
931 typedef enum D3D11_INPUT_CLASSIFICATION
933 D3D11_INPUT_PER_VERTEX_DATA
,
934 D3D11_INPUT_PER_INSTANCE_DATA
,
935 } D3D11_INPUT_CLASSIFICATION
;
937 const UINT D3D11_APPEND_ALIGNED_ELEMENT
= 0xffffffff;
939 typedef struct D3D11_INPUT_ELEMENT_DESC
945 UINT AlignedByteOffset
;
946 D3D11_INPUT_CLASSIFICATION InputSlotClass
;
947 UINT InstanceDataStepRate
;
948 } D3D11_INPUT_ELEMENT_DESC
;
950 typedef enum D3D11_MAP
954 D3D11_MAP_READ_WRITE
,
955 D3D11_MAP_WRITE_DISCARD
,
956 D3D11_MAP_WRITE_NO_OVERWRITE
959 typedef enum D3D11_MAP_FLAG
961 D3D11_MAP_FLAG_DO_NOT_WAIT
= 0x00100000
964 typedef enum D3D11_RAISE_FLAG
966 D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR
= 0x1,
969 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
971 UINT64 NumPrimitivesWritten
;
972 UINT64 PrimitivesStorageNeeded
;
973 } D3D11_QUERY_DATA_SO_STATISTICS
;
975 typedef struct D3D11_MAPPED_SUBRESOURCE
980 } D3D11_MAPPED_SUBRESOURCE
;
982 typedef enum D3D11_QUERY
985 D3D11_QUERY_OCCLUSION
,
986 D3D11_QUERY_TIMESTAMP
,
987 D3D11_QUERY_TIMESTAMP_DISJOINT
,
988 D3D11_QUERY_PIPELINE_STATISTICS
,
989 D3D11_QUERY_OCCLUSION_PREDICATE
,
990 D3D11_QUERY_SO_STATISTICS
,
991 D3D11_QUERY_SO_OVERFLOW_PREDICATE
,
992 D3D11_QUERY_SO_STATISTICS_STREAM0
,
993 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0
,
994 D3D11_QUERY_SO_STATISTICS_STREAM1
,
995 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1
,
996 D3D11_QUERY_SO_STATISTICS_STREAM2
,
997 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2
,
998 D3D11_QUERY_SO_STATISTICS_STREAM3
,
999 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3
,
1002 typedef enum D3D11_QUERY_MISC_FLAG
1004 D3D11_QUERY_MISC_PREDICATEHINT
= 0x1,
1005 } D3D11_QUERY_MISC_FLAG
;
1007 typedef enum D3D11_ASYNC_GETDATA_FLAG
1009 D3D11_ASYNC_GETDATA_DONOTFLUSH
= 0x0001,
1010 } D3D11_ASYNC_GETDATA_FLAG
;
1012 typedef enum D3D11_RESOURCE_MISC_FLAG
1014 D3D11_RESOURCE_MISC_GENERATE_MIPS
= 0x00000001L
,
1015 D3D11_RESOURCE_MISC_SHARED
= 0x00000002L
,
1016 D3D11_RESOURCE_MISC_TEXTURECUBE
= 0x00000004L
,
1017 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
= 0x00000010L
,
1018 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
= 0x00000020L
,
1019 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
= 0x00000040L
,
1020 D3D11_RESOURCE_MISC_RESOURCE_CLAMP
= 0x00000080L
,
1021 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
= 0x00000100L
,
1022 D3D11_RESOURCE_MISC_GDI_COMPATIBLE
= 0x00000200L
,
1023 D3D11_RESOURCE_MISC_SHARED_NTHANDLE
= 0x00000800L
,
1024 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
= 0x00001000L
,
1025 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
= 0x00002000L
,
1026 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
= 0x00004000L
,
1027 D3D11_RESOURCE_MISC_GUARDED
= 0x00008000L
,
1028 D3D11_RESOURCE_MISC_TILE_POOL
= 0x00020000L
,
1029 D3D11_RESOURCE_MISC_TILED
= 0x00040000L
,
1030 D3D11_RESOURCE_MISC_HW_PROTECTED
= 0x00080000L
1031 } D3D11_RESOURCE_MISC_FLAG
;
1033 typedef struct D3D11_QUERY_DESC
1039 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1040 cpp_quote
("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
1041 cpp_quote
(" CD3D11_QUERY_DESC() {}")
1042 cpp_quote
(" ~CD3D11_QUERY_DESC() {}")
1043 cpp_quote
(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
1044 cpp_quote
(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
1045 cpp_quote
(" Query = query;")
1046 cpp_quote
(" MiscFlags = misc_flags;")
1048 cpp_quote
(" operator const D3D11_QUERY_DESC&() const {")
1049 cpp_quote
(" return *this;")
1054 typedef struct D3D11_RASTERIZER_DESC
1056 D3D11_FILL_MODE FillMode
;
1057 D3D11_CULL_MODE CullMode
;
1058 BOOL FrontCounterClockwise
;
1060 FLOAT DepthBiasClamp
;
1061 FLOAT SlopeScaledDepthBias
;
1062 BOOL DepthClipEnable
;
1064 BOOL MultisampleEnable
;
1065 BOOL AntialiasedLineEnable
;
1066 } D3D11_RASTERIZER_DESC
;
1068 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1069 cpp_quote
("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
1070 cpp_quote
(" CD3D11_RASTERIZER_DESC() {}")
1071 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
1072 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
1073 cpp_quote
(" FillMode = D3D11_FILL_SOLID;")
1074 cpp_quote
(" CullMode = D3D11_CULL_BACK;")
1075 cpp_quote
(" FrontCounterClockwise = FALSE;")
1076 cpp_quote
(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
1077 cpp_quote
(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
1078 cpp_quote
(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
1079 cpp_quote
(" DepthClipEnable = TRUE;")
1080 cpp_quote
(" ScissorEnable = FALSE;")
1081 cpp_quote
(" MultisampleEnable = FALSE;")
1082 cpp_quote
(" AntialiasedLineEnable = FALSE;")
1084 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
1085 cpp_quote
(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
1086 cpp_quote
(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
1087 cpp_quote
(" FillMode = fillMode;")
1088 cpp_quote
(" CullMode = cullMode;")
1089 cpp_quote
(" FrontCounterClockwise = frontCounterClockwise;")
1090 cpp_quote
(" DepthBias = depthBias;")
1091 cpp_quote
(" DepthBiasClamp = depthBiasClamp;")
1092 cpp_quote
(" SlopeScaledDepthBias = slopeScaledDepthBias;")
1093 cpp_quote
(" DepthClipEnable = depthClipEnable;")
1094 cpp_quote
(" ScissorEnable = scissorEnable;")
1095 cpp_quote
(" MultisampleEnable = multisampleEnable;")
1096 cpp_quote
(" AntialiasedLineEnable = antialiasedLineEnable;")
1098 cpp_quote
(" ~CD3D11_RASTERIZER_DESC() {}")
1099 cpp_quote
(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
1103 typedef enum D3D11_RESOURCE_DIMENSION
1105 D3D11_RESOURCE_DIMENSION_UNKNOWN
,
1106 D3D11_RESOURCE_DIMENSION_BUFFER
,
1107 D3D11_RESOURCE_DIMENSION_TEXTURE1D
,
1108 D3D11_RESOURCE_DIMENSION_TEXTURE2D
,
1109 D3D11_RESOURCE_DIMENSION_TEXTURE3D
,
1110 } D3D11_RESOURCE_DIMENSION
;
1112 typedef enum D3D11_RTV_DIMENSION
1114 D3D11_RTV_DIMENSION_UNKNOWN
,
1115 D3D11_RTV_DIMENSION_BUFFER
,
1116 D3D11_RTV_DIMENSION_TEXTURE1D
,
1117 D3D11_RTV_DIMENSION_TEXTURE1DARRAY
,
1118 D3D11_RTV_DIMENSION_TEXTURE2D
,
1119 D3D11_RTV_DIMENSION_TEXTURE2DARRAY
,
1120 D3D11_RTV_DIMENSION_TEXTURE2DMS
,
1121 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY
,
1122 D3D11_RTV_DIMENSION_TEXTURE3D
,
1123 } D3D11_RTV_DIMENSION
;
1125 typedef struct D3D11_SO_DECLARATION_ENTRY
1128 LPCSTR SemanticName
;
1130 BYTE StartComponent
;
1131 BYTE ComponentCount
;
1133 } D3D11_SO_DECLARATION_ENTRY
;
1135 typedef enum D3D11_STENCIL_OP
1137 D3D11_STENCIL_OP_KEEP
= 1,
1138 D3D11_STENCIL_OP_ZERO
,
1139 D3D11_STENCIL_OP_REPLACE
,
1140 D3D11_STENCIL_OP_INCR_SAT
,
1141 D3D11_STENCIL_OP_DECR_SAT
,
1142 D3D11_STENCIL_OP_INVERT
,
1143 D3D11_STENCIL_OP_INCR
,
1144 D3D11_STENCIL_OP_DECR
1147 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1149 cpp_quote
("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
1150 cpp_quote
(" return MipSlice + ArraySlice * MipLevels;")
1152 cpp_quote
("extern \"C\"{")
1155 typedef struct D3D11_SUBRESOURCE_DATA
1157 const void *pSysMem
;
1159 UINT SysMemSlicePitch
;
1160 } D3D11_SUBRESOURCE_DATA
;
1162 typedef struct D3D11_TEX1D_ARRAY_DSV
1165 UINT FirstArraySlice
;
1167 } D3D11_TEX1D_ARRAY_DSV
;
1169 typedef struct D3D11_TEX1D_ARRAY_RTV
1172 UINT FirstArraySlice
;
1174 } D3D11_TEX1D_ARRAY_RTV
;
1176 typedef struct D3D11_TEX1D_ARRAY_SRV
1178 UINT MostDetailedMip
;
1180 UINT FirstArraySlice
;
1182 } D3D11_TEX1D_ARRAY_SRV
;
1184 typedef struct D3D11_TEX1D_ARRAY_UAV
1187 UINT FirstArraySlice
;
1189 } D3D11_TEX1D_ARRAY_UAV
;
1191 typedef struct D3D11_TEX1D_DSV
1196 typedef struct D3D11_TEX1D_RTV
1201 typedef struct D3D11_TEX1D_SRV
1203 UINT MostDetailedMip
;
1207 typedef struct D3D11_TEX1D_UAV
1212 typedef struct D3D11_TEX2D_ARRAY_DSV
1215 UINT FirstArraySlice
;
1217 } D3D11_TEX2D_ARRAY_DSV
;
1219 typedef struct D3D11_TEX2D_ARRAY_RTV
1222 UINT FirstArraySlice
;
1224 } D3D11_TEX2D_ARRAY_RTV
;
1226 typedef struct D3D11_TEX2D_ARRAY_SRV
1228 UINT MostDetailedMip
;
1230 UINT FirstArraySlice
;
1232 } D3D11_TEX2D_ARRAY_SRV
;
1234 typedef struct D3D11_TEX2D_ARRAY_UAV
1237 UINT FirstArraySlice
;
1239 } D3D11_TEX2D_ARRAY_UAV
;
1241 typedef struct D3D11_TEX2D_DSV
1246 typedef struct D3D11_TEX2D_RTV
1251 typedef struct D3D11_TEX2D_SRV
1253 UINT MostDetailedMip
;
1257 typedef struct D3D11_TEX2D_UAV
1262 typedef struct D3D11_TEX2DMS_ARRAY_DSV
1264 UINT FirstArraySlice
;
1266 } D3D11_TEX2DMS_ARRAY_DSV
;
1268 typedef struct D3D11_TEX2DMS_ARRAY_RTV
1270 UINT FirstArraySlice
;
1272 } D3D11_TEX2DMS_ARRAY_RTV
;
1274 typedef struct D3D11_TEX2DMS_ARRAY_SRV
1276 UINT FirstArraySlice
;
1278 } D3D11_TEX2DMS_ARRAY_SRV
;
1280 typedef struct D3D11_TEX2DMS_DSV
1282 UINT UnusedField_NothingToDefine
;
1283 } D3D11_TEX2DMS_DSV
;
1285 typedef struct D3D11_TEX2DMS_RTV
1287 UINT UnusedField_NothingToDefine
;
1288 } D3D11_TEX2DMS_RTV
;
1290 typedef struct D3D11_TEX2DMS_SRV
1292 UINT UnusedField_NothingToDefine
;
1293 } D3D11_TEX2DMS_SRV
;
1295 typedef struct D3D11_TEX3D_RTV
1302 typedef struct D3D11_TEX3D_SRV
1304 UINT MostDetailedMip
;
1308 typedef struct D3D11_TEX3D_UAV
1315 typedef struct D3D11_TEXCUBE_ARRAY_SRV
1317 UINT MostDetailedMip
;
1319 UINT First2DArrayFace
;
1321 } D3D11_TEXCUBE_ARRAY_SRV
;
1323 typedef struct D3D11_TEXCUBE_SRV
1325 UINT MostDetailedMip
;
1327 } D3D11_TEXCUBE_SRV
;
1329 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1331 D3D11_TEXTURE_ADDRESS_WRAP
= 1,
1332 D3D11_TEXTURE_ADDRESS_MIRROR
,
1333 D3D11_TEXTURE_ADDRESS_CLAMP
,
1334 D3D11_TEXTURE_ADDRESS_BORDER
,
1335 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1336 } D3D11_TEXTURE_ADDRESS_MODE
;
1338 typedef enum D3D11_UAV_DIMENSION
1340 D3D11_UAV_DIMENSION_UNKNOWN
,
1341 D3D11_UAV_DIMENSION_BUFFER
,
1342 D3D11_UAV_DIMENSION_TEXTURE1D
,
1343 D3D11_UAV_DIMENSION_TEXTURE1DARRAY
,
1344 D3D11_UAV_DIMENSION_TEXTURE2D
,
1345 D3D11_UAV_DIMENSION_TEXTURE2DARRAY
,
1346 D3D11_UAV_DIMENSION_TEXTURE3D
= 8,
1347 } D3D11_UAV_DIMENSION
;
1349 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1352 D3D11_UAV_DIMENSION ViewDimension
;
1356 D3D11_BUFFER_UAV Buffer
;
1357 D3D11_TEX1D_UAV Texture1D
;
1358 D3D11_TEX1D_ARRAY_UAV Texture1DArray
;
1359 D3D11_TEX2D_UAV Texture2D
;
1360 D3D11_TEX2D_ARRAY_UAV Texture2DArray
;
1361 D3D11_TEX3D_UAV Texture3D
;
1363 } D3D11_UNORDERED_ACCESS_VIEW_DESC
;
1365 typedef enum D3D11_USAGE
1367 D3D11_USAGE_DEFAULT
,
1368 D3D11_USAGE_IMMUTABLE
,
1369 D3D11_USAGE_DYNAMIC
,
1370 D3D11_USAGE_STAGING
,
1373 typedef enum D3D11_BIND_FLAG
1375 D3D11_BIND_VERTEX_BUFFER
= 0x0001,
1376 D3D11_BIND_INDEX_BUFFER
= 0x0002,
1377 D3D11_BIND_CONSTANT_BUFFER
= 0x0004,
1378 D3D11_BIND_SHADER_RESOURCE
= 0x0008,
1379 D3D11_BIND_STREAM_OUTPUT
= 0x0010,
1380 D3D11_BIND_RENDER_TARGET
= 0x0020,
1381 D3D11_BIND_DEPTH_STENCIL
= 0x0040,
1382 D3D11_BIND_UNORDERED_ACCESS
= 0x0080,
1383 D3D11_BIND_DECODER
= 0x0200,
1384 D3D11_BIND_VIDEO_ENCODER
= 0x0400
1387 typedef enum D3D11_CPU_ACCESS_FLAG
1389 D3D11_CPU_ACCESS_WRITE
= 0x00010000,
1390 D3D11_CPU_ACCESS_READ
= 0x00020000
1391 } D3D11_CPU_ACCESS_FLAG
;
1393 typedef struct D3D11_VIEWPORT
1403 typedef enum D3D11_COLOR_WRITE_ENABLE
1405 D3D11_COLOR_WRITE_ENABLE_RED
= 1,
1406 D3D11_COLOR_WRITE_ENABLE_GREEN
= 2,
1407 D3D11_COLOR_WRITE_ENABLE_BLUE
= 4,
1408 D3D11_COLOR_WRITE_ENABLE_ALPHA
= 8,
1409 D3D11_COLOR_WRITE_ENABLE_ALL
=
1410 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA
)
1411 } D3D11_COLOR_WRITE_ENABLE
;
1413 typedef enum D3D11_FORMAT_SUPPORT
1415 D3D11_FORMAT_SUPPORT_BUFFER
= 0x00000001,
1416 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
= 0x00000002,
1417 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
= 0x00000004,
1418 D3D11_FORMAT_SUPPORT_SO_BUFFER
= 0x00000008,
1419 D3D11_FORMAT_SUPPORT_TEXTURE1D
= 0x00000010,
1420 D3D11_FORMAT_SUPPORT_TEXTURE2D
= 0x00000020,
1421 D3D11_FORMAT_SUPPORT_TEXTURE3D
= 0x00000040,
1422 D3D11_FORMAT_SUPPORT_TEXTURECUBE
= 0x00000080,
1423 D3D11_FORMAT_SUPPORT_SHADER_LOAD
= 0x00000100,
1424 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE
= 0x00000200,
1425 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON
= 0x00000400,
1426 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT
= 0x00000800,
1427 D3D11_FORMAT_SUPPORT_MIP
= 0x00001000,
1428 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
= 0x00002000,
1429 D3D11_FORMAT_SUPPORT_RENDER_TARGET
= 0x00004000,
1430 D3D11_FORMAT_SUPPORT_BLENDABLE
= 0x00008000,
1431 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL
= 0x00010000,
1432 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE
= 0x00020000,
1433 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
= 0x00040000,
1434 D3D11_FORMAT_SUPPORT_DISPLAY
= 0x00080000,
1435 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT
= 0x00100000,
1436 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
= 0x00200000,
1437 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
= 0x00400000,
1438 D3D11_FORMAT_SUPPORT_SHADER_GATHER
= 0x00800000,
1439 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST
= 0x01000000,
1440 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW
= 0x02000000,
1441 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON
= 0x04000000,
1442 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT
= 0x08000000,
1443 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT
= 0x10000000,
1444 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT
= 0x20000000,
1445 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER
= 0x40000000,
1446 } D3D11_FORMAT_SUPPORT
;
1448 typedef enum D3D11_FORMAT_SUPPORT2
1450 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD
= 0x00000001,
1451 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS
= 0x00000002,
1452 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE
= 0x00000004,
1453 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE
= 0x00000008,
1454 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX
= 0x00000010,
1455 D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX
= 0x00000020,
1456 D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD
= 0x00000040,
1457 D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE
= 0x00000080,
1458 D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP
= 0x00000100,
1459 D3D11_FORMAT_SUPPORT2_TILED
= 0x00000200,
1460 D3D11_FORMAT_SUPPORT2_SHAREABLE
= 0x00000400,
1461 D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY
= 0x00004000,
1462 } D3D11_FORMAT_SUPPORT2
;
1464 typedef enum D3D11_CLEAR_FLAG
1466 D3D11_CLEAR_DEPTH
= 0x0001L
,
1467 D3D11_CLEAR_STENCIL
= 0x0002L
1470 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1473 D3D11_BLEND SrcBlend
;
1474 D3D11_BLEND DestBlend
;
1475 D3D11_BLEND_OP BlendOp
;
1476 D3D11_BLEND SrcBlendAlpha
;
1477 D3D11_BLEND DestBlendAlpha
;
1478 D3D11_BLEND_OP BlendOpAlpha
;
1479 UINT8 RenderTargetWriteMask
;
1480 } D3D11_RENDER_TARGET_BLEND_DESC
;
1482 typedef struct D3D11_BLEND_DESC
1484 BOOL AlphaToCoverageEnable
;
1485 BOOL IndependentBlendEnable
;
1486 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget
[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
];
1489 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1490 cpp_quote
("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1491 cpp_quote
(" CD3D11_BLEND_DESC() {}")
1492 cpp_quote
(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1493 cpp_quote
(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1494 cpp_quote
(" AlphaToCoverageEnable = FALSE;")
1495 cpp_quote
(" IndependentBlendEnable = FALSE;")
1496 cpp_quote
(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
1497 cpp_quote
(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
1498 cpp_quote
(" target++) {")
1499 cpp_quote
(" target->BlendEnable = FALSE;")
1500 cpp_quote
(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1501 cpp_quote
(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1502 cpp_quote
(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1503 cpp_quote
(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1506 cpp_quote
(" ~CD3D11_BLEND_DESC() {}")
1507 cpp_quote
(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1509 cpp_quote
("#endif" )
1511 typedef struct D3D11_BUFFER_DESC
1516 UINT CPUAccessFlags
;
1518 UINT StructureByteStride
;
1519 } D3D11_BUFFER_DESC
;
1521 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1522 cpp_quote
("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1523 cpp_quote
(" CD3D11_BUFFER_DESC() {}" )
1524 cpp_quote
(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1525 cpp_quote
(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1526 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1527 cpp_quote
(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1528 cpp_quote
(" ByteWidth = byteWidth;")
1529 cpp_quote
(" Usage = usage;")
1530 cpp_quote
(" BindFlags = bindFlags;")
1531 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1532 cpp_quote
(" MiscFlags = miscFlags;" )
1533 cpp_quote
(" StructureByteStride = structureByteStride;")
1535 cpp_quote
(" ~CD3D11_BUFFER_DESC() {}")
1536 cpp_quote
(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1538 cpp_quote
("#endif" )
1540 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1543 D3D11_DSV_DIMENSION ViewDimension
;
1548 D3D11_TEX1D_DSV Texture1D
;
1549 D3D11_TEX1D_ARRAY_DSV Texture1DArray
;
1550 D3D11_TEX2D_DSV Texture2D
;
1551 D3D11_TEX2D_ARRAY_DSV Texture2DArray
;
1552 D3D11_TEX2DMS_DSV Texture2DMS
;
1553 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray
;
1555 } D3D11_DEPTH_STENCIL_VIEW_DESC
;
1557 typedef struct D3D11_DEPTH_STENCILOP_DESC
1559 D3D11_STENCIL_OP StencilFailOp
;
1560 D3D11_STENCIL_OP StencilDepthFailOp
;
1561 D3D11_STENCIL_OP StencilPassOp
;
1562 D3D11_COMPARISON_FUNC StencilFunc
;
1563 } D3D11_DEPTH_STENCILOP_DESC
;
1565 typedef struct D3D11_DEPTH_STENCIL_DESC
1568 D3D11_DEPTH_WRITE_MASK DepthWriteMask
;
1569 D3D11_COMPARISON_FUNC DepthFunc
;
1571 UINT8 StencilReadMask
;
1572 UINT8 StencilWriteMask
;
1573 D3D11_DEPTH_STENCILOP_DESC FrontFace
;
1574 D3D11_DEPTH_STENCILOP_DESC BackFace
;
1575 } D3D11_DEPTH_STENCIL_DESC
;
1577 cpp_quote
("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1578 cpp_quote
("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1579 cpp_quote
(" CD3D11_DEPTH_STENCIL_DESC() {}")
1580 cpp_quote
(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1581 cpp_quote
(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1582 cpp_quote
(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1583 cpp_quote
(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1584 cpp_quote
(" DepthEnable = TRUE;")
1585 cpp_quote
(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1586 cpp_quote
(" DepthFunc = D3D11_COMPARISON_LESS;")
1587 cpp_quote
(" StencilEnable = FALSE;")
1588 cpp_quote
(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1589 cpp_quote
(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1590 cpp_quote
(" FrontFace = default_op;")
1591 cpp_quote
(" BackFace = default_op;")
1593 cpp_quote
(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1594 cpp_quote
(" BOOL depth_enable,")
1595 cpp_quote
(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1596 cpp_quote
(" D3D11_COMPARISON_FUNC depth_func,")
1597 cpp_quote
(" BOOL stencil_enable,")
1598 cpp_quote
(" UINT8 stencil_read_mask,")
1599 cpp_quote
(" UINT8 stencil_write_mask,")
1600 cpp_quote
(" D3D11_STENCIL_OP front_stencil_fail_op,")
1601 cpp_quote
(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1602 cpp_quote
(" D3D11_STENCIL_OP front_stencil_pass_op,")
1603 cpp_quote
(" D3D11_COMPARISON_FUNC front_stencil_func,")
1604 cpp_quote
(" D3D11_STENCIL_OP back_stencil_fail_op,")
1605 cpp_quote
(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1606 cpp_quote
(" D3D11_STENCIL_OP back_stencil_pass_op,")
1607 cpp_quote
(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1608 cpp_quote
(" DepthEnable = depth_enable;")
1609 cpp_quote
(" DepthWriteMask = depth_write_mask;")
1610 cpp_quote
(" DepthFunc = depth_func;")
1611 cpp_quote
(" StencilEnable = stencil_enable;")
1612 cpp_quote
(" StencilReadMask = stencil_read_mask;")
1613 cpp_quote
(" StencilWriteMask = stencil_write_mask;")
1614 cpp_quote
(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1615 cpp_quote
(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1616 cpp_quote
(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1617 cpp_quote
(" FrontFace.StencilFunc = front_stencil_func;")
1618 cpp_quote
(" BackFace.StencilFailOp = back_stencil_fail_op;")
1619 cpp_quote
(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1620 cpp_quote
(" BackFace.StencilPassOp = back_stencil_pass_op;")
1621 cpp_quote
(" BackFace.StencilFunc = back_stencil_func;")
1623 cpp_quote
(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1624 cpp_quote
(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1628 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1631 D3D11_RTV_DIMENSION ViewDimension
;
1635 D3D11_BUFFER_RTV Buffer
;
1636 D3D11_TEX1D_RTV Texture1D
;
1637 D3D11_TEX1D_ARRAY_RTV Texture1DArray
;
1638 D3D11_TEX2D_RTV Texture2D
;
1639 D3D11_TEX2D_ARRAY_RTV Texture2DArray
;
1640 D3D11_TEX2DMS_RTV Texture2DMS
;
1641 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray
;
1642 D3D11_TEX3D_RTV Texture3D
;
1644 } D3D11_RENDER_TARGET_VIEW_DESC
;
1646 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1647 cpp_quote
("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1648 cpp_quote
(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1649 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1650 cpp_quote
(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1651 cpp_quote
(" Format = format;")
1652 cpp_quote
(" ViewDimension = dim;")
1653 cpp_quote
(" switch(dim) {")
1654 cpp_quote
(" case D3D11_RTV_DIMENSION_BUFFER:")
1655 cpp_quote
(" Buffer.FirstElement = mip_slice;")
1656 cpp_quote
(" Buffer.NumElements = first_slice;")
1657 cpp_quote
(" break;")
1658 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1659 cpp_quote
(" Texture1D.MipSlice = mip_slice;")
1660 cpp_quote
(" break;")
1661 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1662 cpp_quote
(" Texture1DArray.MipSlice = mip_slice;")
1663 cpp_quote
(" Texture1DArray.FirstArraySlice = first_slice;")
1664 cpp_quote
(" Texture1DArray.ArraySize = array_size;")
1665 cpp_quote
(" break;")
1666 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1667 cpp_quote
(" Texture2D.MipSlice = mip_slice;")
1668 cpp_quote
(" break;")
1669 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1670 cpp_quote
(" Texture2DArray.MipSlice = mip_slice;")
1671 cpp_quote
(" Texture2DArray.FirstArraySlice = first_slice;")
1672 cpp_quote
(" Texture2DArray.ArraySize = array_size;")
1673 cpp_quote
(" break;")
1674 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1675 cpp_quote
(" Texture2DMSArray.FirstArraySlice = first_slice;")
1676 cpp_quote
(" Texture2DMSArray.ArraySize = array_size;")
1677 cpp_quote
(" break;")
1678 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1679 cpp_quote
(" Texture3D.MipSlice = mip_slice;")
1680 cpp_quote
(" Texture3D.FirstWSlice = first_slice;")
1681 cpp_quote
(" Texture3D.WSize = array_size;")
1682 cpp_quote
(" break;")
1683 cpp_quote
(" default:")
1684 cpp_quote
(" break;")
1687 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1688 cpp_quote
(" UINT elem_cnt) {")
1689 cpp_quote
(" Format = format;")
1690 cpp_quote
(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1691 cpp_quote
(" Buffer.FirstElement = first_elem;")
1692 cpp_quote
(" Buffer.NumElements = elem_cnt;")
1694 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1695 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1696 cpp_quote
(" UINT array_size = -1);") /* FIXME: implement */
1697 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1698 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1699 cpp_quote
(" UINT array_size = -1);") /* FIXME: implement */
1700 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1701 cpp_quote
(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1702 cpp_quote
(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1703 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1704 cpp_quote
(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1705 cpp_quote
(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1706 cpp_quote
(" return *this;")
1712 typedef struct D3D11_SAMPLER_DESC
1714 D3D11_FILTER Filter
;
1715 D3D11_TEXTURE_ADDRESS_MODE AddressU
;
1716 D3D11_TEXTURE_ADDRESS_MODE AddressV
;
1717 D3D11_TEXTURE_ADDRESS_MODE AddressW
;
1720 D3D11_COMPARISON_FUNC ComparisonFunc
;
1721 FLOAT BorderColor
[4];
1724 } D3D11_SAMPLER_DESC
;
1726 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1727 cpp_quote
("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1728 cpp_quote
(" CD3D11_SAMPLER_DESC() {}")
1729 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1730 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1731 cpp_quote
(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1732 cpp_quote
(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1733 cpp_quote
(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1734 cpp_quote
(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1735 cpp_quote
(" MipLODBias = 0;")
1736 cpp_quote
(" MaxAnisotropy = 1;")
1737 cpp_quote
(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1738 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1739 cpp_quote
(" MinLOD = -3.402823466e+38f;")
1740 cpp_quote
(" MaxLOD = 3.402823466e+38f;")
1742 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1743 cpp_quote
(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1744 cpp_quote
(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1745 cpp_quote
(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1746 cpp_quote
(" Filter = filter;")
1747 cpp_quote
(" AddressU = addressU;")
1748 cpp_quote
(" AddressV = addressV;")
1749 cpp_quote
(" AddressW = addressW;")
1750 cpp_quote
(" MipLODBias = mipLODBias;")
1751 cpp_quote
(" MaxAnisotropy = maxAnisotropy;")
1752 cpp_quote
(" ComparisonFunc = comparisonFunc;")
1753 cpp_quote
(" if(borderColor) {")
1754 cpp_quote
(" BorderColor[0] = borderColor[0];")
1755 cpp_quote
(" BorderColor[1] = borderColor[1];")
1756 cpp_quote
(" BorderColor[2] = borderColor[2];")
1757 cpp_quote
(" BorderColor[3] = borderColor[3];")
1758 cpp_quote
(" }else {")
1759 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1761 cpp_quote
(" MinLOD = minLOD;")
1762 cpp_quote
(" MaxLOD = maxLOD;")
1764 cpp_quote
(" ~CD3D11_SAMPLER_DESC() {}")
1765 cpp_quote
(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1769 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1772 D3D11_SRV_DIMENSION ViewDimension
;
1776 D3D11_BUFFER_SRV Buffer
;
1777 D3D11_TEX1D_SRV Texture1D
;
1778 D3D11_TEX1D_ARRAY_SRV Texture1DArray
;
1779 D3D11_TEX2D_SRV Texture2D
;
1780 D3D11_TEX2D_ARRAY_SRV Texture2DArray
;
1781 D3D11_TEX2DMS_SRV Texture2DMS
;
1782 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray
;
1783 D3D11_TEX3D_SRV Texture3D
;
1784 D3D11_TEXCUBE_SRV TextureCube
;
1785 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray
;
1786 D3D11_BUFFEREX_SRV BufferEx
;
1788 } D3D11_SHADER_RESOURCE_VIEW_DESC
;
1790 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1791 cpp_quote
("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1792 cpp_quote
(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1793 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1794 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1795 cpp_quote
(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1796 cpp_quote
(" Format = format;")
1797 cpp_quote
(" ViewDimension = dim;")
1798 cpp_quote
(" switch(ViewDimension) {")
1799 cpp_quote
(" case D3D11_SRV_DIMENSION_BUFFER:")
1800 cpp_quote
(" Buffer.FirstElement = most_detailed_mip;")
1801 cpp_quote
(" Buffer.NumElements = mip_levels;")
1802 cpp_quote
(" break;")
1803 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1804 cpp_quote
(" Texture1D.MostDetailedMip = most_detailed_mip;")
1805 cpp_quote
(" Texture1D.MipLevels = mip_levels;")
1806 cpp_quote
(" break;")
1807 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1808 cpp_quote
(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1809 cpp_quote
(" Texture1DArray.MipLevels = mip_levels;")
1810 cpp_quote
(" Texture1DArray.FirstArraySlice = first_slice;")
1811 cpp_quote
(" Texture1DArray.ArraySize = array_size;")
1812 cpp_quote
(" break;")
1813 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1814 cpp_quote
(" Texture2D.MostDetailedMip = most_detailed_mip;")
1815 cpp_quote
(" Texture2D.MipLevels = mip_levels;")
1816 cpp_quote
(" break;")
1817 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1818 cpp_quote
(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1819 cpp_quote
(" Texture2DArray.MipLevels = mip_levels;")
1820 cpp_quote
(" Texture2DArray.FirstArraySlice = first_slice;")
1821 cpp_quote
(" Texture2DArray.ArraySize = array_size;")
1822 cpp_quote
(" break;")
1823 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1824 cpp_quote
(" Texture2DMSArray.FirstArraySlice = first_slice;")
1825 cpp_quote
(" Texture2DMSArray.ArraySize = array_size;")
1826 cpp_quote
(" break;")
1827 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1828 cpp_quote
(" Texture3D.MostDetailedMip = most_detailed_mip;")
1829 cpp_quote
(" Texture3D.MipLevels = mip_levels;")
1830 cpp_quote
(" break;")
1831 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1832 cpp_quote
(" TextureCube.MostDetailedMip = most_detailed_mip;")
1833 cpp_quote
(" TextureCube.MipLevels = mip_levels;")
1834 cpp_quote
(" break;")
1835 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1836 cpp_quote
(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1837 cpp_quote
(" TextureCubeArray.MipLevels = mip_levels;")
1838 cpp_quote
(" TextureCubeArray.First2DArrayFace = first_slice;")
1839 cpp_quote
(" TextureCubeArray.NumCubes = array_size;")
1840 cpp_quote
(" break;")
1841 cpp_quote
(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1842 cpp_quote
(" BufferEx.FirstElement = most_detailed_mip;")
1843 cpp_quote
(" BufferEx.NumElements = mip_levels;")
1844 cpp_quote
(" BufferEx.Flags = flags;")
1845 cpp_quote
(" break;")
1846 cpp_quote
(" default:")
1847 cpp_quote
(" break;")
1850 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1851 cpp_quote
(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1852 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1853 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1854 cpp_quote
(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1855 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1856 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1857 cpp_quote
(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1858 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1859 cpp_quote
(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1860 cpp_quote
(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1861 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1862 cpp_quote
(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1863 cpp_quote
(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1864 cpp_quote
(" return *this;")
1869 typedef struct D3D11_TEXTURE1D_DESC
1877 UINT CPUAccessFlags
;
1879 } D3D11_TEXTURE1D_DESC
;
1881 typedef struct D3D11_TEXTURE2D_DESC
1888 DXGI_SAMPLE_DESC SampleDesc
;
1891 UINT CPUAccessFlags
;
1893 } D3D11_TEXTURE2D_DESC
;
1895 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1896 cpp_quote
("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1897 cpp_quote
(" CD3D11_TEXTURE2D_DESC() {}")
1898 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1899 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1900 cpp_quote
(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1901 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1902 cpp_quote
(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1903 cpp_quote
(" Width = width;")
1904 cpp_quote
(" Height = height;")
1905 cpp_quote
(" MipLevels = mipLevels;")
1906 cpp_quote
(" ArraySize = arraySize;")
1907 cpp_quote
(" Format = format;")
1908 cpp_quote
(" SampleDesc.Count = sampleCount;")
1909 cpp_quote
(" SampleDesc.Quality = sampleQuality;")
1910 cpp_quote
(" Usage = usage;")
1911 cpp_quote
(" BindFlags = bindFlags;")
1912 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1913 cpp_quote
(" MiscFlags = miscFlags;")
1915 cpp_quote
(" ~CD3D11_TEXTURE2D_DESC() {}")
1916 cpp_quote
(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1920 typedef struct D3D11_TEXTURE3D_DESC
1929 UINT CPUAccessFlags
;
1931 } D3D11_TEXTURE3D_DESC
;
1933 typedef struct D3D11_VIDEO_DECODER_DESC
1938 DXGI_FORMAT OutputFormat
;
1939 } D3D11_VIDEO_DECODER_DESC
;
1941 typedef struct D3D11_VIDEO_DECODER_CONFIG
1943 GUID guidConfigBitstreamEncryption
;
1944 GUID guidConfigMBcontrolEncryption
;
1945 GUID guidConfigResidDiffEncryption
;
1946 UINT ConfigBitstreamRaw
;
1947 UINT ConfigMBcontrolRasterOrder
;
1948 UINT ConfigResidDiffHost
;
1949 UINT ConfigSpatialResid8
;
1950 UINT ConfigResid8Subtraction
;
1951 UINT ConfigSpatialHost8or9Clipping
;
1952 UINT ConfigSpatialResidInterleaved
;
1953 UINT ConfigIntraResidUnsigned
;
1954 UINT ConfigResidDiffAccelerator
;
1955 UINT ConfigHostInverseScan
;
1956 UINT ConfigSpecificIDCT
;
1957 UINT Config4GroupedCoefs
;
1958 USHORT ConfigMinRenderTargetBuffCount
;
1959 USHORT ConfigDecoderSpecific
;
1960 } D3D11_VIDEO_DECODER_CONFIG
;
1962 typedef enum D3D11_VIDEO_FRAME_FORMAT
1964 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE
= 0,
1965 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST
= 1,
1966 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST
= 2
1967 } D3D11_VIDEO_FRAME_FORMAT
;
1969 typedef enum D3D11_VIDEO_USAGE
1971 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL
= 0,
1972 D3D11_VIDEO_USAGE_OPTIMAL_SPEED
= 1,
1973 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY
= 2
1974 } D3D11_VIDEO_USAGE
;
1976 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1978 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat
;
1979 DXGI_RATIONAL InputFrameRate
;
1982 DXGI_RATIONAL OutputFrameRate
;
1985 D3D11_VIDEO_USAGE Usage
;
1986 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC
;
1988 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1993 UINT InputFormatCaps
;
1994 UINT AutoStreamCaps
;
1996 UINT RateConversionCapsCount
;
1997 UINT MaxInputStreams
;
1998 UINT MaxStreamStates
;
1999 } D3D11_VIDEO_PROCESSOR_CAPS
;
2001 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
2007 UINT CustomRateCount
;
2008 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
;
2010 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
2012 DXGI_RATIONAL CustomRate
;
2014 BOOL InputInterlaced
;
2015 UINT InputFramesOrFields
;
2016 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
;
2018 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
2020 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS
= 0,
2021 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST
= 1,
2022 D3D11_VIDEO_PROCESSOR_FILTER_HUE
= 2,
2023 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION
= 3,
2024 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION
= 4,
2025 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT
= 5,
2026 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING
= 6,
2027 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT
= 7
2028 } D3D11_VIDEO_PROCESSOR_FILTER
;
2030 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
2036 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE
;
2038 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
2040 D3D11_AUTHENTICATED_CHANNEL_D3D11
= 1,
2041 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE
= 2,
2042 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE
= 3
2043 } D3D11_AUTHENTICATED_CHANNEL_TYPE
;
2045 typedef enum D3D11_VDOV_DIMENSION
2047 D3D11_VDOV_DIMENSION_UNKNOWN
= 0,
2048 D3D11_VDOV_DIMENSION_TEXTURE2D
= 1
2049 } D3D11_VDOV_DIMENSION
;
2051 typedef struct D3D11_TEX2D_VDOV
2056 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
2059 D3D11_VDOV_DIMENSION ViewDimension
;
2061 D3D11_TEX2D_VDOV Texture2D
;
2063 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
;
2065 typedef enum D3D11_VPIV_DIMENSION
2067 D3D11_VPIV_DIMENSION_UNKNOWN
= 0,
2068 D3D11_VPIV_DIMENSION_TEXTURE2D
= 1
2069 } D3D11_VPIV_DIMENSION
;
2071 typedef struct D3D11_TEX2D_VPIV
2077 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
2080 D3D11_VPIV_DIMENSION ViewDimension
;
2082 D3D11_TEX2D_VPIV Texture2D
;
2084 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
;
2086 typedef enum D3D11_VPOV_DIMENSION
2088 D3D11_VPOV_DIMENSION_UNKNOWN
= 0,
2089 D3D11_VPOV_DIMENSION_TEXTURE2D
= 1,
2090 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY
= 2
2091 } D3D11_VPOV_DIMENSION
;
2093 typedef struct D3D11_TEX2D_VPOV
2098 typedef struct D3D11_TEX2D_ARRAY_VPOV
2101 UINT FirstArraySlice
;
2103 } D3D11_TEX2D_ARRAY_VPOV
;
2105 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
2107 D3D11_VPOV_DIMENSION ViewDimension
;
2109 D3D11_TEX2D_VPOV Texture2D
;
2110 D3D11_TEX2D_ARRAY_VPOV Texture2DArray
;
2112 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
;
2114 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
2117 UINT KeyExchangeTypeCount
;
2118 UINT BlockAlignmentSize
;
2119 ULONGLONG ProtectedMemorySize
;
2120 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS
;
2122 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
2124 UINT NumEncryptedBytesAtBeginning
;
2125 UINT NumBytesInSkipPattern
;
2126 UINT NumBytesInEncryptPattern
;
2127 } D3D11_ENCRYPTED_BLOCK_INFO
;
2129 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
2131 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType
;
2135 UINT FirstMBaddress
;
2136 UINT NumMBsInBuffer
;
2143 BOOL PartialEncryption
;
2144 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo
;
2145 } D3D11_VIDEO_DECODER_BUFFER_DESC
;
2147 typedef struct D3D11_VIDEO_DECODER_EXTENSION
2150 void *pPrivateInputData
;
2151 UINT PrivateInputDataSize
;
2152 void *pPrivateOutputData
;
2153 UINT PrivateOutputDataSize
;
2155 ID3D11Resource
**ppResourceList
;
2156 } D3D11_VIDEO_DECODER_EXTENSION
;
2158 typedef struct D3D11_VIDEO_COLOR_YCbCrA
2164 } D3D11_VIDEO_COLOR_YCbCrA
;
2166 typedef struct D3D11_VIDEO_COLOR_RGBA
2172 } D3D11_VIDEO_COLOR_RGBA
;
2174 typedef struct D3D11_VIDEO_COLOR
2178 D3D11_VIDEO_COLOR_YCbCrA YCbCr
;
2179 D3D11_VIDEO_COLOR_RGBA RGBA
;
2181 } D3D11_VIDEO_COLOR
;
2183 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
2187 UINT YCbCr_Matrix
: 1;
2188 UINT YCbCr_xvYCC
: 1;
2189 UINT Nominal_Range
: 2;
2191 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE
;
2193 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
2197 UINT InputFrameOrField
;
2200 ID3D11VideoProcessorInputView
**ppPastSurfaces
;
2201 ID3D11VideoProcessorInputView
*pInputSurface
;
2202 ID3D11VideoProcessorInputView
**ppFutureSurfaces
;
2203 ID3D11VideoProcessorInputView
**ppPastSurfacesRight
;
2204 ID3D11VideoProcessorInputView
*pInputSurfaceRight
;
2205 ID3D11VideoProcessorInputView
**ppFutureSurfacesRight
;
2206 } D3D11_VIDEO_PROCESSOR_STREAM
;
2208 typedef struct D3D11_OMAC
2210 BYTE Omac
[D3D11_OMAC_SIZE
];
2213 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
2218 UINT SequenceNumber
;
2220 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
;
2222 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
2226 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
;
2228 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
2231 UINT64 IAPrimitives
;
2232 UINT64 VSInvocations
;
2233 UINT64 GSInvocations
;
2234 UINT64 GSPrimitives
;
2235 UINT64 CInvocations
;
2237 UINT64 PSInvocations
;
2238 UINT64 HSInvocations
;
2239 UINT64 DSInvocations
;
2240 UINT64 CSInvocations
;
2241 } D3D11_QUERY_DATA_PIPELINE_STATISTICS
;
2243 typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
2245 UINT VertexCountPerInstance
;
2247 UINT StartVertexLocation
;
2248 UINT StartInstanceLocation
;
2249 } D3D11_DRAW_INSTANCED_INDIRECT_ARGS
;
2251 typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
2253 UINT IndexCountPerInstance
;
2255 UINT StartIndexLocation
;
2256 INT BaseVertexLocation
;
2257 UINT StartInstanceLocation
;
2258 } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
;
2260 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
2265 UINT SequenceNumber
;
2266 } D3D11_AUTHENTICATED_CONFIGURE_INPUT
;
2268 typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
2272 UINT SequenceNumber
;
2273 } D3D11_AUTHENTICATED_QUERY_INPUT
;
2275 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
2280 UINT SequenceNumber
;
2282 } D3D11_AUTHENTICATED_QUERY_OUTPUT
;
2284 typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
2288 UINT ProtectionEnabled
: 1;
2289 UINT OverlayOrFullscreenRequired
: 1;
2293 } D3D11_AUTHENTICATED_PROTECTION_FLAGS
;
2295 typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
2297 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2298 D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags
;
2299 } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
;
2301 typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
2303 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2304 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType
;
2305 } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
;
2307 typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
2309 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2310 HANDLE DeviceHandle
;
2311 } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
;
2313 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
2315 D3D11_AUTHENTICATED_QUERY_INPUT Input
;
2316 HANDLE DecoderHandle
;
2317 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
;
2319 typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
2321 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2322 HANDLE DecoderHandle
;
2323 HANDLE CryptoSessionHandle
;
2324 HANDLE DeviceHandle
;
2325 } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
;
2327 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
2329 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2330 UINT RestrictedSharedResourceProcessCount
;
2331 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
;
2333 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
2335 D3D11_AUTHENTICATED_QUERY_INPUT Input
;
2337 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
;
2339 typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
2341 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2343 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier
;
2344 HANDLE ProcessHandle
;
2345 } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
;
2347 typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
2349 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2350 UINT UnrestrictedProtectedSharedResourceCount
;
2351 } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
;
2353 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
2355 D3D11_AUTHENTICATED_QUERY_INPUT Input
;
2356 HANDLE DeviceHandle
;
2357 HANDLE CryptoSessionHandle
;
2358 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
;
2360 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
2362 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2363 HANDLE DeviceHandle
;
2364 HANDLE CryptoSessionHandle
;
2366 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
;
2368 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
2370 D3D11_AUTHENTICATED_QUERY_INPUT Input
;
2371 HANDLE DeviceHandle
;
2372 HANDLE CryptoSessionHandle
;
2374 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
;
2376 typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
2378 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2379 HANDLE DeviceHandle
;
2380 HANDLE CryptoSessionHandle
;
2383 } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
;
2385 typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
2387 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2388 D3D11_BUS_TYPE BusType
;
2389 BOOL AccessibleInContiguousBlocks
;
2390 BOOL AccessibleInNonContiguousBlocks
;
2391 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT
;
2393 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
2395 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2396 UINT EncryptionGuidCount
;
2397 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
;
2399 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
2401 D3D11_AUTHENTICATED_QUERY_INPUT Input
;
2402 UINT EncryptionGuidIndex
;
2403 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
;
2405 typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
2407 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2408 UINT EncryptionGuidIndex
;
2409 GUID EncryptionGuid
;
2410 } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
;
2412 typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
2414 D3D11_AUTHENTICATED_QUERY_OUTPUT Output
;
2415 GUID EncryptionGuid
;
2416 } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
;
2418 typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
2420 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters
;
2421 UINT StartSequenceQuery
;
2422 UINT StartSequenceConfigure
;
2423 } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
;
2425 typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
2427 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters
;
2428 D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections
;
2429 } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
;
2431 typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
2433 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters
;
2434 HANDLE DecoderHandle
;
2435 HANDLE CryptoSessionHandle
;
2436 HANDLE DeviceHandle
;
2437 } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
;
2439 typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
2441 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters
;
2442 D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType
;
2443 HANDLE ProcessHandle
;
2445 } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
;
2447 typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
2449 D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters
;
2450 GUID EncryptionGuid
;
2451 } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
;
2456 uuid(1841e5c8
-16b0
-489b
-bcc8
-44cfb0d5deae
)
2458 interface ID3D11DeviceChild
: IUnknown
2461 [out] ID3D11Device
**ppDevice
);
2462 HRESULT GetPrivateData
(
2464 [in, out] UINT
*pDataSize
,
2466 HRESULT SetPrivateData
(
2469 [in] const void *pData
);
2470 HRESULT SetPrivateDataInterface
(
2472 [in] const IUnknown
*pData
);
2478 uuid(4b35d0cd
-1e15
-4258-9c98
-1b1333f6dd3b
)
2480 interface ID3D11Asynchronous
: ID3D11DeviceChild
2488 uuid(d6c00747
-87b7
-425e
-b84d
-44d108560afd
)
2490 interface ID3D11Query
: ID3D11Asynchronous
2493 [out] D3D11_QUERY_DESC
*pDesc
);
2499 uuid(dc8e63f3
-d12b
-4952-b47b
-5e45026a862d
)
2501 interface ID3D11Resource
: ID3D11DeviceChild
2504 [out] D3D11_RESOURCE_DIMENSION
*pResourceDimension
);
2505 void SetEvictionPriority
(
2506 [in] UINT EvictionPriority
);
2507 UINT GetEvictionPriority
();
2513 uuid(839d1216
-bb2e
-412b
-b7f4
-a9dbebe08ed1
)
2515 interface ID3D11View
: ID3D11DeviceChild
2518 [out] ID3D11Resource
**ppResource
);
2524 uuid(75b68faa
-347d
-4159-8f45
-a0640f01cd9a
)
2526 interface ID3D11BlendState
: ID3D11DeviceChild
2529 [out] D3D11_BLEND_DESC
*pDesc
);
2535 uuid(48570b85
-d1ee
-4fcd
-a250
-eb350722b037
)
2537 interface ID3D11Buffer
: ID3D11Resource
2540 [out] D3D11_BUFFER_DESC
*pDesc
);
2546 uuid(a6cd7faa
-b0b7
-4a2f
-9436-8662a65797cb
)
2548 interface ID3D11ClassInstance
: ID3D11DeviceChild
2550 void GetClassLinkage
(
2551 [out] ID3D11ClassLinkage
**ppLinkage
);
2553 [out] D3D11_CLASS_INSTANCE_DESC
*pDesc
);
2554 void GetInstanceName
(
2555 [out] LPSTR pInstanceName
,
2556 [in, out] SIZE_T
*pBufferLength
);
2558 [out] LPSTR pTypeName
,
2559 [in, out] SIZE_T
*pBufferLength
);
2565 uuid(ddf57cba
-9543-46e4
-a12b
-f207a0fe7fed
)
2567 interface ID3D11ClassLinkage
: ID3D11DeviceChild
2569 HRESULT GetClassInstance
(
2570 [in] LPCSTR pClassInstanceName
,
2571 [in] UINT InstanceIndex
,
2572 [out] ID3D11ClassInstance
**ppInstance
);
2573 HRESULT CreateClassInstance
(
2574 [in] LPCSTR pClassTypeName
,
2575 [in] UINT ConstantBufferOffset
,
2576 [in] UINT ConstantVectorOffset
,
2577 [in] UINT TextureOffset
,
2578 [in] UINT SamplerOffset
,
2579 [out] ID3D11ClassInstance
**ppInstance
);
2585 uuid(a24bc4d1
-769e-43f7
-8013-98ff566c18e2
)
2587 interface ID3D11CommandList
: ID3D11DeviceChild
2589 UINT GetContextFlags
();
2595 uuid(4f5b196e
-c2bd
-495e
-bd01
-1fded38e4969
)
2597 interface ID3D11ComputeShader
: ID3D11DeviceChild
2604 uuid(6e8c49fb
-a371
-4770-b440
-29086022b741
)
2606 interface ID3D11Counter
: ID3D11Asynchronous
2609 [out] D3D11_COUNTER_DESC
*pDesc
);
2615 uuid(03823efb
-8d8f
-4e1c
-9aa2
-f64bb2cbfdf1
)
2617 interface ID3D11DepthStencilState
: ID3D11DeviceChild
2620 [out] D3D11_DEPTH_STENCIL_DESC
*pDesc
);
2626 uuid(9fdac92a
-1876-48c3
-afad
-25b94f84a9b6
)
2628 interface ID3D11DepthStencilView
: ID3D11View
2631 [out] D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
);
2637 uuid(f582c508
-0f36
-490c
-9977-31eece268cfa
)
2639 interface ID3D11DomainShader
: ID3D11DeviceChild
2646 uuid(38325b96
-effb
-4022-ba02
-2e795b70275c
)
2648 interface ID3D11GeometryShader
: ID3D11DeviceChild
2655 uuid(8e5c6061
-628a
-4c8e
-8264
-bbe45cb3d5dd
)
2657 interface ID3D11HullShader
: ID3D11DeviceChild
2664 uuid(e4819ddc
-4cf0
-4025-bd26
-5de82a3e07b7
)
2666 interface ID3D11InputLayout
: ID3D11DeviceChild
2673 uuid(ea82e40d
-51dc
-4f33
-93d4
-db7c9125ae8c
)
2675 interface ID3D11PixelShader
: ID3D11DeviceChild
2682 uuid(9eb576dd
-9f77
-4d86
-81aa
-8bab5fe490e2
)
2684 interface ID3D11Predicate
: ID3D11Query
2691 uuid(9bb4ab81
-ab1a
-4d8f
-b506
-fc04200b6ee7
)
2693 interface ID3D11RasterizerState
: ID3D11DeviceChild
2696 [out] D3D11_RASTERIZER_DESC
*pDesc
);
2702 uuid(dfdba067
-0b8d
-4865-875b
-d7b4516cc164
)
2704 interface ID3D11RenderTargetView
: ID3D11View
2707 [out] D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
);
2713 uuid(da6fea51
-564c
-4487-9810-f0d0f9b4e3a5
)
2715 interface ID3D11SamplerState
: ID3D11DeviceChild
2718 [out] D3D11_SAMPLER_DESC
*pDesc
);
2724 uuid(b0e06fe0
-8192-4e1a
-b1ca
-36d7414710b2
)
2726 interface ID3D11ShaderResourceView
: ID3D11View
2729 [out] D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
);
2735 uuid(f8fb5c27
-c6b3
-4f75
-a4c8
-439af2ef564c
),
2737 interface ID3D11Texture1D
: ID3D11Resource
2740 [out] D3D11_TEXTURE1D_DESC
*pDesc
);
2746 uuid(6f15aaf2
-d208
-4e89
-9ab4
-489535d34f9c
)
2748 interface ID3D11Texture2D
: ID3D11Resource
2751 [out] D3D11_TEXTURE2D_DESC
*pDesc
);
2757 uuid(037e866e
-f56d
-4357-a8af
-9dabbe6e250e
)
2759 interface ID3D11Texture3D
: ID3D11Resource
2762 [out] D3D11_TEXTURE3D_DESC
*pDesc
);
2768 uuid(28acf509
-7f5c
-48f6
-8611-f316010a6380
)
2770 interface ID3D11UnorderedAccessView
: ID3D11View
2773 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
);
2779 uuid(3b301d64
-d678
-4289-8897-22f8928b72f3
)
2781 interface ID3D11VertexShader
: ID3D11DeviceChild
2788 uuid(c0bfa96c
-e089
-44fb
-8eaf
-26f8796190da
)
2790 interface ID3D11DeviceContext
: ID3D11DeviceChild
2792 void VSSetConstantBuffers
(
2793 [in] UINT StartSlot
,
2794 [in] UINT NumBuffers
,
2795 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2796 void PSSetShaderResources
(
2797 [in] UINT StartSlot
,
2799 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2801 [in] ID3D11PixelShader
*pPixelShader
,
2802 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2803 UINT NumClassInstances
);
2805 [in] UINT StartSlot
,
2806 [in] UINT NumSamplers
,
2807 [in] ID3D11SamplerState
*const *ppSamplers
);
2809 [in] ID3D11VertexShader
*pVertexShader
,
2810 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2811 UINT NumClassInstances
);
2813 [in] UINT IndexCount
,
2814 [in] UINT StartIndexLocation
,
2815 [in] INT BaseVertexLocation
);
2817 [in] UINT VertexCount
,
2818 [in] UINT StartVertexLocation
);
2820 [in] ID3D11Resource
*pResource
,
2821 [in] UINT Subresource
,
2822 [in] D3D11_MAP MapType
,
2824 [out] D3D11_MAPPED_SUBRESOURCE
*pMappedResource
);
2826 [in] ID3D11Resource
*pResource
,
2827 [in] UINT Subresource
);
2828 void PSSetConstantBuffers
(
2829 [in] UINT StartSlot
,
2830 [in] UINT NumBuffers
,
2831 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2832 void IASetInputLayout
(
2833 [in] ID3D11InputLayout
*pInputLayout
);
2834 void IASetVertexBuffers
(
2835 [in] UINT StartSlot
,
2836 [in] UINT NumBuffers
,
2837 [in] ID3D11Buffer
*const *ppVertexBuffers
,
2838 [in] const UINT
*pStrides
,
2839 [in] const UINT
*pOffsets
);
2840 void IASetIndexBuffer
(
2841 [in] ID3D11Buffer
*pIndexBuffer
,
2842 [in] DXGI_FORMAT Format
,
2844 void DrawIndexedInstanced
(
2845 [in] UINT IndexCountPerInstance
,
2846 [in] UINT InstanceCount
,
2847 [in] UINT StartIndexLocation
,
2848 [in] INT BaseVertexLocation
,
2849 [in] UINT StartInstanceLocation
);
2851 [in] UINT VertexCountPerInstance
,
2852 [in] UINT InstanceCount
,
2853 [in] UINT StartVertexLocation
,
2854 [in] UINT StartInstanceLocation
);
2855 void GSSetConstantBuffers
(
2856 [in] UINT StartSlot
,
2857 [in] UINT NumBuffers
,
2858 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2860 [in] ID3D11GeometryShader
*pShader
,
2861 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2862 UINT NumClassInstances
);
2863 void IASetPrimitiveTopology
(
2864 [in] D3D11_PRIMITIVE_TOPOLOGY Topology
);
2865 void VSSetShaderResources
(
2866 [in] UINT StartSlot
,
2868 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2870 [in] UINT StartSlot
,
2871 [in] UINT NumSamplers
,
2872 [in] ID3D11SamplerState
*const *ppSamplers
);
2874 [in] ID3D11Asynchronous
*pAsync
);
2876 [in] ID3D11Asynchronous
*pAsync
);
2878 [in] ID3D11Asynchronous
*pAsync
,
2881 [in] UINT GetDataFlags
);
2882 void SetPredication
(
2883 [in] ID3D11Predicate
*pPredicate
,
2884 [in] BOOL PredicateValue
);
2885 void GSSetShaderResources
(
2886 [in] UINT StartSlot
,
2888 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2890 [in] UINT StartSlot
,
2891 [in] UINT NumSamplers
,
2892 [in] ID3D11SamplerState
*const *ppSamplers
);
2893 void OMSetRenderTargets
(
2895 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
2896 [in] ID3D11DepthStencilView
*pDepthStencilView
);
2897 void OMSetRenderTargetsAndUnorderedAccessViews
(
2899 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
2900 [in] ID3D11DepthStencilView
*pDepthStencilView
,
2901 [in] UINT UAVStartSlot
,
2903 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
2904 [in] const UINT
*pUAVInitialCounts
);
2905 void OMSetBlendState
(
2906 [in] ID3D11BlendState
*pBlendState
,
2907 [in] const FLOAT BlendFactor
[4],
2908 [in] UINT SampleMask
);
2909 void OMSetDepthStencilState
(
2910 [in] ID3D11DepthStencilState
*pDepthStencilState
,
2911 [in] UINT StencilRef
);
2913 [in] UINT NumBuffers
,
2914 [in] ID3D11Buffer
*const *ppSOTargets
,
2915 [in] const UINT
*pOffsets
);
2917 void DrawIndexedInstancedIndirect
(
2918 [in] ID3D11Buffer
*pBufferForArgs
,
2919 [in] UINT AlignedByteOffsetForArgs
);
2920 void DrawInstancedIndirect
(
2921 [in] ID3D11Buffer
*pBufferForArgs
,
2922 [in] UINT AlignedByteOffsetForArgs
);
2924 [in] UINT ThreadGroupCountX
,
2925 [in] UINT ThreadGroupCountY
,
2926 [in] UINT ThreadGroupCountZ
);
2927 void DispatchIndirect
(
2928 [in] ID3D11Buffer
*pBufferForArgs
,
2929 [in] UINT AlignedByteOffsetForArgs
);
2931 [in] ID3D11RasterizerState
*pRasterizerState
);
2932 void RSSetViewports
(
2933 [in] UINT NumViewports
,
2934 [in] const D3D11_VIEWPORT
*pViewports
);
2935 void RSSetScissorRects
(
2937 [in] const D3D11_RECT
*pRects
);
2938 void CopySubresourceRegion
(
2939 [in] ID3D11Resource
*pDstResource
,
2940 [in] UINT DstSubresource
,
2944 [in] ID3D11Resource
*pSrcResource
,
2945 [in] UINT SrcSubresource
,
2946 [in] const D3D11_BOX
*pSrcBox
);
2948 [in] ID3D11Resource
*pDstResource
,
2949 [in] ID3D11Resource
*pSrcResource
);
2950 void UpdateSubresource
(
2951 [in] ID3D11Resource
*pDstResource
,
2952 [in] UINT DstSubresource
,
2953 [in] const D3D11_BOX
*pDstBox
,
2954 [in] const void *pSrcData
,
2955 [in] UINT SrcRowPitch
,
2956 [in] UINT SrcDepthPitch
);
2957 void CopyStructureCount
(
2958 [in] ID3D11Buffer
*pDstBuffer
,
2959 [in] UINT DstAlignedByteOffset
,
2960 [in] ID3D11UnorderedAccessView
*pSrcView
);
2961 void ClearRenderTargetView
(
2962 [in] ID3D11RenderTargetView
*pRenderTargetView
,
2963 [in] const FLOAT ColorRGBA
[4]);
2964 void ClearUnorderedAccessViewUint
(
2965 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
2966 [in] const UINT Values
[4]);
2967 void ClearUnorderedAccessViewFloat
(
2968 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
2969 [in] const FLOAT Values
[4]);
2970 void ClearDepthStencilView
(
2971 [in] ID3D11DepthStencilView
*pDepthStencilView
,
2972 [in] UINT ClearFlags
,
2974 [in] UINT8 Stencil
);
2976 [in] ID3D11ShaderResourceView
*pShaderResourceView
);
2977 void SetResourceMinLOD
(
2978 [in] ID3D11Resource
*pResource
, FLOAT MinLOD
);
2979 FLOAT GetResourceMinLOD
(
2980 [in] ID3D11Resource
*pResource
);
2981 void ResolveSubresource
(
2982 [in] ID3D11Resource
*pDstResource
,
2983 [in] UINT DstSubresource
,
2984 [in] ID3D11Resource
*pSrcResource
,
2985 [in] UINT SrcSubresource
,
2986 [in] DXGI_FORMAT Format
);
2987 void ExecuteCommandList
(
2988 [in] ID3D11CommandList
*pCommandList
,
2989 BOOL RestoreContextState
);
2990 void HSSetShaderResources
(
2991 [in] UINT StartSlot
,
2993 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2995 [in] ID3D11HullShader
*pHullShader
,
2996 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2997 UINT NumClassInstances
);
2999 [in] UINT StartSlot
,
3000 [in] UINT NumSamplers
,
3001 [in] ID3D11SamplerState
*const *ppSamplers
);
3002 void HSSetConstantBuffers
(
3003 [in] UINT StartSlot
,
3004 [in] UINT NumBuffers
,
3005 [in] ID3D11Buffer
*const *ppConstantBuffers
);
3006 void DSSetShaderResources
(
3007 [in] UINT StartSlot
,
3009 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
3011 [in] ID3D11DomainShader
*pDomainShader
,
3012 [in] ID3D11ClassInstance
*const *ppClassInstances
,
3013 UINT NumClassInstances
);
3015 [in] UINT StartSlot
,
3016 [in] UINT NumSamplers
,
3017 [in] ID3D11SamplerState
*const *ppSamplers
);
3018 void DSSetConstantBuffers
(
3019 [in] UINT StartSlot
,
3020 [in] UINT NumBuffers
,
3021 [in] ID3D11Buffer
*const *ppConstantBuffers
);
3022 void CSSetShaderResources
(
3023 [in] UINT StartSlot
,
3025 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
3026 void CSSetUnorderedAccessViews
(
3027 [in] UINT StartSlot
,
3029 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
3030 [in] const UINT
*pUAVInitialCounts
);
3032 [in] ID3D11ComputeShader
*pComputeShader
,
3033 [in] ID3D11ClassInstance
*const *ppClassInstances
,
3034 UINT NumClassInstances
);
3036 [in] UINT StartSlot
,
3037 [in] UINT NumSamplers
,
3038 [in] ID3D11SamplerState
*const *ppSamplers
);
3039 void CSSetConstantBuffers
(
3040 [in] UINT StartSlot
,
3041 [in] UINT NumBuffers
,
3042 [in] ID3D11Buffer
*const *ppConstantBuffers
);
3043 void VSGetConstantBuffers
(
3044 [in] UINT StartSlot
,
3045 [in] UINT NumBuffers
,
3046 [out] ID3D11Buffer
**ppConstantBuffers
);
3047 void PSGetShaderResources
(
3048 [in] UINT StartSlot
,
3050 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
3052 [out] ID3D11PixelShader
**ppPixelShader
,
3053 [out] ID3D11ClassInstance
**ppClassInstances
,
3054 [in, out] UINT
*pNumClassInstances
);
3056 [in] UINT StartSlot
,
3057 [in] UINT NumSamplers
,
3058 [out] ID3D11SamplerState
**ppSamplers
);
3060 [out] ID3D11VertexShader
**ppVertexShader
,
3061 [out] ID3D11ClassInstance
**ppClassInstances
,
3062 [in, out] UINT
*pNumClassInstances
);
3063 void PSGetConstantBuffers
(
3064 [in] UINT StartSlot
,
3065 [in] UINT NumBuffers
,
3066 [out] ID3D11Buffer
**ppConstantBuffers
);
3067 void IAGetInputLayout
(
3068 [out] ID3D11InputLayout
**ppInputLayout
);
3069 void IAGetVertexBuffers
(
3070 [in] UINT StartSlot
,
3071 [in] UINT NumBuffers
,
3072 [out] ID3D11Buffer
**ppVertexBuffers
,
3073 [out] UINT
*pStrides
,
3074 [out] UINT
*pOffsets
);
3075 void IAGetIndexBuffer
(
3076 [out] ID3D11Buffer
**pIndexBuffer
,
3077 [out] DXGI_FORMAT
* Format
,
3078 [out] UINT
* Offset
);
3079 void GSGetConstantBuffers
(
3080 [in] UINT StartSlot
,
3081 [in] UINT NumBuffers
,
3082 [out] ID3D11Buffer
**ppConstantBuffers
);
3084 [out] ID3D11GeometryShader
**ppGeometryShader
,
3085 [out] ID3D11ClassInstance
**ppClassInstances
,
3086 [in, out] UINT
*pNumClassInstances
);
3087 void IAGetPrimitiveTopology
(
3088 [out] D3D11_PRIMITIVE_TOPOLOGY
*pTopology
);
3089 void VSGetShaderResources
(
3090 [in] UINT StartSlot
,
3092 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
3094 [in] UINT StartSlot
,
3095 [in] UINT NumSamplers
,
3096 [out] ID3D11SamplerState
**ppSamplers
);
3097 void GetPredication
(
3098 [out] ID3D11Predicate
**ppPredicate
,
3099 [out] BOOL
*pPredicateValue
);
3100 void GSGetShaderResources
(
3101 [in] UINT StartSlot
,
3103 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
3105 [in] UINT StartSlot
,
3106 [in] UINT NumSamplers
,
3107 [out] ID3D11SamplerState
**ppSamplers
);
3108 void OMGetRenderTargets
(
3110 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
3111 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
3112 void OMGetRenderTargetsAndUnorderedAccessViews
(
3114 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
3115 [out] ID3D11DepthStencilView
**ppDepthStencilView
,
3116 [in] UINT UAVStartSlot
,
3118 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
3119 void OMGetBlendState
(
3120 [out] ID3D11BlendState
**ppBlendState
,
3121 [out] FLOAT BlendFactor
[4],
3122 [out] UINT
*pSampleMask
);
3123 void OMGetDepthStencilState
(
3124 [out] ID3D11DepthStencilState
**ppDepthStencilState
,
3125 [out] UINT
*pStencilRef
);
3127 [in] UINT NumBuffers
,
3128 [out] ID3D11Buffer
**ppSOTargets
);
3130 [out] ID3D11RasterizerState
**ppRasterizerState
);
3131 void RSGetViewports
(
3132 [in, out] UINT
*pNumViewports
,
3133 [out] D3D11_VIEWPORT
*pViewports
);
3134 void RSGetScissorRects
(
3135 [in, out] UINT
*pNumRects
,
3136 [out] D3D11_RECT
*pRects
);
3137 void HSGetShaderResources
(
3138 [in] UINT StartSlot
,
3140 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
3142 [out] ID3D11HullShader
**ppHullShader
,
3143 [out] ID3D11ClassInstance
**ppClassInstances
,
3144 [in, out] UINT
*pNumClassInstances
);
3146 [in] UINT StartSlot
,
3147 [in] UINT NumSamplers
,
3148 [out] ID3D11SamplerState
**ppSamplers
);
3149 void HSGetConstantBuffers
(
3150 [in] UINT StartSlot
,
3151 [in] UINT NumBuffers
,
3152 [out] ID3D11Buffer
**ppConstantBuffers
);
3153 void DSGetShaderResources
(
3154 [in] UINT StartSlot
,
3156 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
3158 [out] ID3D11DomainShader
**ppDomainShader
,
3159 [out] ID3D11ClassInstance
**ppClassInstances
,
3160 [in, out] UINT
*pNumClassInstances
);
3162 [in] UINT StartSlot
,
3163 [in] UINT NumSamplers
,
3164 [out] ID3D11SamplerState
**ppSamplers
);
3165 void DSGetConstantBuffers
(
3166 [in] UINT StartSlot
,
3167 [in] UINT NumBuffers
,
3168 [out] ID3D11Buffer
**ppConstantBuffers
);
3169 void CSGetShaderResources
(
3170 [in] UINT StartSlot
,
3172 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
3173 void CSGetUnorderedAccessViews
(
3174 [in] UINT StartSlot
,
3176 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
3178 [out] ID3D11ComputeShader
**ppComputeShader
,
3179 [out] ID3D11ClassInstance
**ppClassInstances
,
3180 [in, out] UINT
*pNumClassInstances
);
3182 [in] UINT StartSlot
,
3183 [in] UINT NumSamplers
,
3184 [out] ID3D11SamplerState
**ppSamplers
);
3185 void CSGetConstantBuffers
(
3186 [in] UINT StartSlot
,
3187 [in] UINT NumBuffers
,
3188 [out] ID3D11Buffer
**ppConstantBuffers
);
3191 D3D11_DEVICE_CONTEXT_TYPE GetType
();
3192 UINT GetContextFlags
();
3193 HRESULT FinishCommandList
(
3194 BOOL RestoreDeferredContextState
,
3195 [out] ID3D11CommandList
**ppCommandList
);
3200 uuid(3015a308
-dcbd
-47aa
-a747
-192486d14d4a
),
3202 pointer_default(unique)
3204 interface ID3D11AuthenticatedChannel
: ID3D11DeviceChild
3206 HRESULT GetCertificateSize
(
3207 UINT
*pCertificateSize
);
3208 HRESULT GetCertificate
(
3209 UINT CertificateSize
,
3210 BYTE *pCertificate
);
3211 void GetChannelHandle
(
3212 HANDLE *pChannelHandle
);
3217 uuid(9b32f9ad
-bdcc
-40a6
-a39d
-d5c865845720
),
3219 pointer_default(unique)
3221 interface ID3D11CryptoSession
: ID3D11DeviceChild
3225 void GetDecoderProfile
(
3226 GUID
*pDecoderProfile
);
3227 HRESULT GetCertificateSize
(
3228 UINT
*pCertificateSize
);
3229 HRESULT GetCertificate
(
3230 UINT CertificateSize
,
3231 BYTE *pCertificate
);
3232 void GetCryptoSessionHandle
(
3233 HANDLE *pCryptoSessionHandle
);
3238 uuid(3c9c5b51
-995d
-48d1
-9b8d
-fa5caeded65c
),
3240 pointer_default(unique)
3242 interface ID3D11VideoDecoder
: ID3D11DeviceChild
3244 HRESULT GetCreationParameters
(
3245 D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
3246 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
3247 HRESULT GetDriverHandle
(
3248 HANDLE *pDriverHandle
);
3253 uuid(31627037-53ab
-4200-9061-05faa9ab45f9
),
3255 pointer_default(unique)
3257 interface ID3D11VideoProcessorEnumerator
: ID3D11DeviceChild
3259 HRESULT GetVideoProcessorContentDesc
(
3260 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pContentDesc
);
3261 HRESULT CheckVideoProcessorFormat
(
3264 HRESULT GetVideoProcessorCaps
(
3265 D3D11_VIDEO_PROCESSOR_CAPS
*pCaps
);
3266 HRESULT GetVideoProcessorRateConversionCaps
(
3268 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
3269 HRESULT GetVideoProcessorCustomRate
(
3271 UINT CustomRateIndex
,
3272 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
*pRate
);
3273 HRESULT GetVideoProcessorFilterRange
(
3274 D3D11_VIDEO_PROCESSOR_FILTER Filter
,
3275 D3D11_VIDEO_PROCESSOR_FILTER_RANGE
*pRange
);
3280 uuid(1d7b0652
-185f
-41c6
-85ce
-0c5be3d4ae6c
),
3282 pointer_default(unique)
3284 interface ID3D11VideoProcessor
: ID3D11DeviceChild
3286 void GetContentDesc
(
3287 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
);
3288 void GetRateConversionCaps
(
3289 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
3294 uuid(c2931aea
-2a85
-4f20
-860f
-fba1fd256e18
),
3296 pointer_default(unique)
3298 interface ID3D11VideoDecoderOutputView
: ID3D11View
3301 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
);
3306 uuid(11ec5a5f
-51dc
-4945-ab34
-6e8c21300ea5
),
3308 pointer_default(unique)
3310 interface ID3D11VideoProcessorInputView
: ID3D11View
3313 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
);
3318 uuid(a048285e
-25a9
-4527-bd93
-d68b68c44254
),
3320 pointer_default(unique)
3322 interface ID3D11VideoProcessorOutputView
: ID3D11View
3325 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
);
3330 uuid(10ec4d5b
-975a
-4689-b9e4
-d0aac30fe333
),
3332 pointer_default(unique)
3334 interface ID3D11VideoDevice
: IUnknown
3336 HRESULT CreateVideoDecoder
(
3337 const D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
3338 const D3D11_VIDEO_DECODER_CONFIG
*pConfig
,
3339 ID3D11VideoDecoder
**ppDecoder
);
3340 HRESULT CreateVideoProcessor
(
3341 ID3D11VideoProcessorEnumerator
*pEnum
,
3342 UINT RateConversionIndex
,
3343 ID3D11VideoProcessor
**ppVideoProcessor
);
3344 HRESULT CreateAuthenticatedChannel
(
3345 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType
,
3346 ID3D11AuthenticatedChannel
**ppAuthenticatedChannel
);
3347 HRESULT CreateCryptoSession
(
3348 const GUID
*pCryptoType
,
3349 const GUID
*pDecoderProfile
,
3350 const GUID
*pKeyExchangeType
,
3351 ID3D11CryptoSession
**ppCryptoSession
);
3352 HRESULT CreateVideoDecoderOutputView
(
3353 ID3D11Resource
*pResource
,
3354 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
,
3355 ID3D11VideoDecoderOutputView
**ppVDOVView
);
3356 HRESULT CreateVideoProcessorInputView
(
3357 ID3D11Resource
*pResource
,
3358 ID3D11VideoProcessorEnumerator
*pEnum
,
3359 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
,
3360 ID3D11VideoProcessorInputView
**ppVPIView
);
3361 HRESULT CreateVideoProcessorOutputView
(
3362 ID3D11Resource
*pResource
,
3363 ID3D11VideoProcessorEnumerator
*pEnum
,
3364 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
,
3365 ID3D11VideoProcessorOutputView
**ppVPOView
);
3366 HRESULT CreateVideoProcessorEnumerator
(
3367 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
,
3368 ID3D11VideoProcessorEnumerator
**ppEnum
);
3369 UINT GetVideoDecoderProfileCount
();
3370 HRESULT GetVideoDecoderProfile
(
3372 GUID
*pDecoderProfile
);
3373 HRESULT CheckVideoDecoderFormat
(
3374 const GUID
*pDecoderProfile
,
3377 HRESULT GetVideoDecoderConfigCount
(
3378 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
3380 HRESULT GetVideoDecoderConfig
(
3381 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
3383 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
3384 HRESULT GetContentProtectionCaps
(
3385 const GUID
*pCryptoType
,
3386 const GUID
*pDecoderProfile
,
3387 D3D11_VIDEO_CONTENT_PROTECTION_CAPS
*pCaps
);
3388 HRESULT CheckCryptoKeyExchange
(
3389 const GUID
*pCryptoType
,
3390 const GUID
*pDecoderProfile
,
3392 GUID
*pKeyExchangeType
);
3393 HRESULT SetPrivateData
(
3397 HRESULT SetPrivateDataInterface
(
3399 const IUnknown
*pData
);
3404 uuid(61f21c45
-3c0e
-4a74
-9cea
-67100d9ad5e4
),
3406 pointer_default(unique)
3408 interface ID3D11VideoContext
: ID3D11DeviceChild
3410 HRESULT GetDecoderBuffer
(
3411 [in] ID3D11VideoDecoder
*decoder
,
3412 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
,
3413 [out] UINT
*buffer_size
,
3416 HRESULT ReleaseDecoderBuffer
(
3417 [in] ID3D11VideoDecoder
*decoder
,
3418 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
3420 HRESULT DecoderBeginFrame
(
3421 [in] ID3D11VideoDecoder
*decoder
,
3422 [in] ID3D11VideoDecoderOutputView
*view
,
3424 [in] const void *key
3426 HRESULT DecoderEndFrame
(
3427 [in] ID3D11VideoDecoder
*decoder
3429 HRESULT SubmitDecoderBuffers
(
3430 [in] ID3D11VideoDecoder
*decoder
,
3431 [in] UINT buffers_count
,
3432 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC
*buffer_desc
3434 HRESULT DecoderExtension
(
3435 [in] ID3D11VideoDecoder
*decoder
,
3436 [in] const D3D11_VIDEO_DECODER_EXTENSION
*extension
3438 void VideoProcessorSetOutputTargetRect
(
3439 [in] ID3D11VideoProcessor
*processor
,
3441 [in] const RECT
*rect
3443 void VideoProcessorSetOutputBackgroundColor
(
3444 [in] ID3D11VideoProcessor
*processor
,
3446 [in] const D3D11_VIDEO_COLOR
*color
3448 void VideoProcessorSetOutputColorSpace
(
3449 [in] ID3D11VideoProcessor
*processor
,
3450 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
3452 void VideoProcessorSetOutputAlphaFillMode
(
3453 [in] ID3D11VideoProcessor
*processor
,
3454 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode
,
3455 [in] UINT stream_idx
3457 void VideoProcessorSetOutputConstriction
(
3458 [in] ID3D11VideoProcessor
*processor
,
3462 void VideoProcessorSetOutputStereoMode
(
3463 [in] ID3D11VideoProcessor
*processor
,
3466 HRESULT VideoProcessorSetOutputExtension
(
3467 [in] ID3D11VideoProcessor
*processor
,
3468 [in] const GUID
*guid
,
3469 [in] UINT data_size
,
3472 void VideoProcessorGetOutputTargetRect
(
3473 [in] ID3D11VideoProcessor
*processor
,
3474 [out] BOOL
*enabled
,
3477 void VideoProcessorGetOutputBackgroundColor
(
3478 [in] ID3D11VideoProcessor
*processor
,
3479 [out] BOOL
*y_cb_cr
,
3480 [out] D3D11_VIDEO_COLOR
*color
3482 void VideoProcessorGetOutputColorSpace
(
3483 [in] ID3D11VideoProcessor
*processor
,
3484 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
3486 void VideoProcessorGetOutputAlphaFillMode
(
3487 [in] ID3D11VideoProcessor
*processor
,
3488 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
*alpha_fill_mode
,
3489 [out] UINT
*stream_idx
3491 void VideoProcessorGetOutputConstriction
(
3492 [in] ID3D11VideoProcessor
*processor
,
3493 [out] BOOL
*enabled
,
3496 void VideoProcessorGetOutputStereoMode
(
3497 [in] ID3D11VideoProcessor
*processor
,
3500 HRESULT VideoProcessorGetOutputExtension
(
3501 [in] ID3D11VideoProcessor
*processor
,
3502 [in] const GUID
*guid
,
3503 [in] UINT data_size
,
3506 void VideoProcessorSetStreamFrameFormat
(
3507 [in] ID3D11VideoProcessor
*processor
,
3508 [in] UINT stream_idx
,
3509 [in] D3D11_VIDEO_FRAME_FORMAT format
3511 void VideoProcessorSetStreamColorSpace
(
3512 [in] ID3D11VideoProcessor
*processor
,
3513 [in] UINT stream_idx
,
3514 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
3516 void VideoProcessorSetStreamOutputRate
(
3517 [in] ID3D11VideoProcessor
*processor
,
3518 [in] UINT stream_idx
,
3519 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate
,
3521 [in] const DXGI_RATIONAL
*custom_rate
3523 void VideoProcessorSetStreamSourceRect
(
3524 [in] ID3D11VideoProcessor
*processor
,
3525 [in] UINT stream_idx
,
3527 [in] const RECT
*rect
3529 void VideoProcessorSetStreamDestRect
(
3530 [in] ID3D11VideoProcessor
*processor
,
3531 [in] UINT stream_idx
,
3533 [in] const RECT
*rect
3535 void VideoProcessorSetStreamAlpha
(
3536 [in] ID3D11VideoProcessor
*processor
,
3537 [in] UINT stream_idx
,
3541 void VideoProcessorSetStreamPalette
(
3542 [in] ID3D11VideoProcessor
*processor
,
3543 [in] UINT stream_idx
,
3544 [in] UINT entry_count
,
3545 [in] const UINT
*entries
3547 void VideoProcessorSetStreamPixelAspectRatio
(
3548 [in] ID3D11VideoProcessor
*processor
,
3549 [in] UINT stream_idx
,
3551 [in] const DXGI_RATIONAL
*src_aspect_ratio
,
3552 [in] const DXGI_RATIONAL
*dst_aspect_ratio
3554 void VideoProcessorSetStreamLumaKey
(
3555 [in] ID3D11VideoProcessor
*processor
,
3556 [in] UINT stream_idx
,
3561 void VideoProcessorSetStreamStereoFormat
(
3562 [in] ID3D11VideoProcessor
*processor
,
3563 [in] UINT stream_idx
,
3565 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format
,
3566 [in] BOOL left_view_frame0
,
3567 [in] BOOL base_view_frame0
,
3568 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode
,
3569 [in] int mono_offset
3571 void VideoProcessorSetStreamAutoProcessingMode
(
3572 [in] ID3D11VideoProcessor
*processor
,
3573 [in] UINT stream_idx
,
3576 void VideoProcessorSetStreamFilter
(
3577 [in] ID3D11VideoProcessor
*processor
,
3578 [in] UINT stream_idx
,
3579 [in] D3D11_VIDEO_PROCESSOR_FILTER filter
,
3583 HRESULT VideoProcessorSetStreamExtension
(
3584 [in] ID3D11VideoProcessor
*processor
,
3585 [in] UINT stream_idx
,
3586 [in] const GUID
*guid
,
3587 [in] UINT data_size
,
3590 void VideoProcessorGetStreamFrameFormat
(
3591 [in] ID3D11VideoProcessor
*processor
,
3592 [in] UINT stream_idx
,
3593 [out] D3D11_VIDEO_FRAME_FORMAT
*format
3595 void VideoProcessorGetStreamColorSpace
(
3596 [in] ID3D11VideoProcessor
*processor
,
3597 [in] UINT stream_idx
,
3598 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
3600 void VideoProcessorGetStreamOutputRate
(
3601 [in] ID3D11VideoProcessor
*processor
,
3602 [in] UINT stream_idx
,
3603 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
*rate
,
3605 [out] DXGI_RATIONAL
*custom_rate
3607 void VideoProcessorGetStreamSourceRect
(
3608 [in] ID3D11VideoProcessor
*processor
,
3609 [in] UINT stream_idx
,
3610 [out] BOOL
*enabled
,
3613 void VideoProcessorGetStreamDestRect
(
3614 [in] ID3D11VideoProcessor
*processor
,
3615 [in] UINT stream_idx
,
3616 [out] BOOL
*enabled
,
3619 void VideoProcessorGetStreamAlpha
(
3620 [in] ID3D11VideoProcessor
*processor
,
3621 [in] UINT stream_idx
,
3622 [out] BOOL
*enabled
,
3625 void VideoProcessorGetStreamPalette
(
3626 [in] ID3D11VideoProcessor
*processor
,
3627 [in] UINT stream_idx
,
3628 [in] UINT entry_count
,
3631 void VideoProcessorGetStreamPixelAspectRatio
(
3632 [in] ID3D11VideoProcessor
*processor
,
3633 [in] UINT stream_idx
,
3634 [out] BOOL
*enabled
,
3635 [out] DXGI_RATIONAL
*src_aspect_ratio
,
3636 [out] DXGI_RATIONAL
*dst_aspect_ratio
3638 void VideoProcessorGetStreamLumaKey
(
3639 [in] ID3D11VideoProcessor
*processor
,
3640 [in] UINT stream_idx
,
3641 [out] BOOL
*enabled
,
3645 void VideoProcessorGetStreamStereoFormat
(
3646 [in] ID3D11VideoProcessor
*processor
,
3647 [in] UINT stream_idx
,
3648 [out] BOOL
*enabled
,
3649 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
*format
,
3650 [out] BOOL
*left_view_frame0
,
3651 [out] BOOL
*base_view_frame0
,
3652 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
*flip_mode
,
3653 [out] int *mono_offset
3655 void VideoProcessorGetStreamAutoProcessingMode
(
3656 [in] ID3D11VideoProcessor
*processor
,
3657 [in] UINT stream_idx
,
3660 void VideoProcessorGetStreamFilter
(
3661 [in] ID3D11VideoProcessor
*processor
,
3662 [in] UINT stream_idx
,
3663 [in] D3D11_VIDEO_PROCESSOR_FILTER filter
,
3664 [out] BOOL
*enabled
,
3667 HRESULT VideoProcessorGetStreamExtension
(
3668 [in] ID3D11VideoProcessor
*processor
,
3669 [in] UINT stream_idx
,
3670 [in] const GUID
*guid
,
3671 [in] UINT data_size
,
3674 HRESULT VideoProcessorBlt
(
3675 [in] ID3D11VideoProcessor
*processor
,
3676 [in] ID3D11VideoProcessorOutputView
*view
,
3677 [in] UINT frame_idx
,
3678 [in] UINT stream_count
,
3679 [in] const D3D11_VIDEO_PROCESSOR_STREAM
*streams
3681 HRESULT NegotiateCryptoSessionKeyExchange
(
3682 [in] ID3D11CryptoSession
*session
,
3683 [in] UINT data_size
,
3684 [in, out] void *data
3687 [in] ID3D11CryptoSession
*session
,
3688 [in] ID3D11Texture2D
*src_surface
,
3689 [in] ID3D11Texture2D
*dst_surface
,
3694 [in] ID3D11CryptoSession
*session
,
3695 [in] ID3D11Texture2D
*src_surface
,
3696 [in] ID3D11Texture2D
*dst_surface
,
3697 [in] D3D11_ENCRYPTED_BLOCK_INFO
*block_info
,
3699 [in] const void *key
,
3703 void StartSessionKeyRefresh
(
3704 [in] ID3D11CryptoSession
*session
,
3705 [in] UINT random_number_size
,
3706 [out] void *random_number
3708 void FinishSessionKeyRefresh
(
3709 [in] ID3D11CryptoSession
*session
3711 HRESULT GetEncryptionBltKey
(
3712 [in] ID3D11CryptoSession
*session
,
3716 HRESULT NegotiateAuthenticatedChannelKeyExchange
(
3717 [in] ID3D11AuthenticatedChannel
*channel
,
3718 [in] UINT data_size
,
3719 [in, out] void *data
3721 HRESULT QueryAuthenticatedChannel
(
3722 [in] ID3D11AuthenticatedChannel
*channel
,
3723 [in] UINT input_size
,
3724 [in] const void *input
,
3725 [in] UINT output_size
,
3728 HRESULT ConfigureAuthenticatedChannel
(
3729 [in] ID3D11AuthenticatedChannel
*channel
,
3730 [in] UINT input_size
,
3731 [in] const void *input
,
3732 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
*output
3734 void VideoProcessorSetStreamRotation
(
3735 [in] ID3D11VideoProcessor
*processor
,
3736 [in] UINT stream_idx
,
3738 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3740 void VideoProcessorGetStreamRotation
(
3741 [in] ID3D11VideoProcessor
*processor
,
3742 [in] UINT stream_idx
,
3744 [out] D3D11_VIDEO_PROCESSOR_ROTATION
*rotation
3751 uuid(db6f6ddb
-ac77
-4e88
-8253-819df9bbf140
)
3753 interface ID3D11Device
: IUnknown
3755 HRESULT CreateBuffer
(
3756 [in] const D3D11_BUFFER_DESC
*pDesc
,
3757 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3758 [out] ID3D11Buffer
**ppBuffer
);
3759 HRESULT CreateTexture1D
(
3760 [in] const D3D11_TEXTURE1D_DESC
*pDesc
,
3761 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3762 [out] ID3D11Texture1D
**ppTexture1D
);
3763 HRESULT CreateTexture2D
(
3764 [in] const D3D11_TEXTURE2D_DESC
*pDesc
,
3765 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3766 [out] ID3D11Texture2D
**ppTexture2D
);
3767 HRESULT CreateTexture3D
(
3768 [in] const D3D11_TEXTURE3D_DESC
*pDesc
,
3769 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3770 [out] ID3D11Texture3D
**ppTexture3D
);
3771 HRESULT CreateShaderResourceView
(
3772 [in] ID3D11Resource
*pResource
,
3773 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
,
3774 [out] ID3D11ShaderResourceView
**ppSRView
);
3775 HRESULT CreateUnorderedAccessView
(
3776 [in] ID3D11Resource
*pResource
,
3777 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
,
3778 [out] ID3D11UnorderedAccessView
**ppUAView
);
3779 HRESULT CreateRenderTargetView
(
3780 [in] ID3D11Resource
*pResource
,
3781 [in] const D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
,
3782 [out] ID3D11RenderTargetView
**ppRTView
);
3783 HRESULT CreateDepthStencilView
(
3784 [in] ID3D11Resource
*pResource
,
3785 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
,
3786 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
3787 HRESULT CreateInputLayout
(
3788 [in] const D3D11_INPUT_ELEMENT_DESC
*pInputElementDescs
,
3789 [in] UINT NumElements
,
3790 [in] const void *pShaderBytecodeWithInputSignature
,
3791 [in] SIZE_T BytecodeLength
,
3792 [out] ID3D11InputLayout
**ppInputLayout
);
3793 HRESULT CreateVertexShader
(
3794 [in] const void *pShaderBytecode
,
3795 [in] SIZE_T BytecodeLength
,
3796 [in] ID3D11ClassLinkage
*pClassLinkage
,
3797 [out] ID3D11VertexShader
**ppVertexShader
);
3798 HRESULT CreateGeometryShader
(
3799 [in] const void *pShaderBytecode
,
3800 [in] SIZE_T BytecodeLength
,
3801 [in] ID3D11ClassLinkage
*pClassLinkage
,
3802 [out] ID3D11GeometryShader
**ppGeometryShader
);
3803 HRESULT CreateGeometryShaderWithStreamOutput
(
3804 [in] const void *pShaderBytecode
,
3805 [in] SIZE_T BytecodeLength
,
3806 [in] const D3D11_SO_DECLARATION_ENTRY
*pSODeclaration
,
3807 [in] UINT NumEntries
,
3808 [in] const UINT
*pBufferStrides
,
3809 [in] UINT NumStrides
,
3810 [in] UINT RasterizedStream
,
3811 [in] ID3D11ClassLinkage
*pClassLinkage
,
3812 [out] ID3D11GeometryShader
**ppGeometryShader
);
3813 HRESULT CreatePixelShader
(
3814 [in] const void *pShaderBytecode
,
3815 [in] SIZE_T BytecodeLength
,
3816 [in] ID3D11ClassLinkage
*pClassLinkage
,
3817 [out] ID3D11PixelShader
**ppPixelShader
);
3818 HRESULT CreateHullShader
(
3819 [in] const void *pShaderBytecode
,
3820 [in] SIZE_T BytecodeLength
,
3821 [in] ID3D11ClassLinkage
*pClassLinkage
,
3822 [out] ID3D11HullShader
**ppHullShader
);
3823 HRESULT CreateDomainShader
(
3824 [in] const void *pShaderBytecode
,
3825 [in] SIZE_T BytecodeLength
,
3826 [in] ID3D11ClassLinkage
*pClassLinkage
,
3827 [out] ID3D11DomainShader
**ppDomainShader
);
3828 HRESULT CreateComputeShader
(
3829 [in] const void *pShaderBytecode
,
3830 [in] SIZE_T BytecodeLength
,
3831 [in] ID3D11ClassLinkage
*pClassLinkage
,
3832 [out] ID3D11ComputeShader
**ppComputeShader
);
3833 HRESULT CreateClassLinkage
(
3834 [out] ID3D11ClassLinkage
**ppLinkage
);
3835 HRESULT CreateBlendState
(
3836 [in] const D3D11_BLEND_DESC
*pBlendStateDesc
,
3837 [out] ID3D11BlendState
**ppBlendState
);
3838 HRESULT CreateDepthStencilState
(
3839 [in] const D3D11_DEPTH_STENCIL_DESC
*pDepthStencilDesc
,
3840 [out] ID3D11DepthStencilState
**ppDepthStencilState
);
3841 HRESULT CreateRasterizerState
(
3842 [in] const D3D11_RASTERIZER_DESC
*pRasterizerDesc
,
3843 [out] ID3D11RasterizerState
**ppRasterizerState
);
3844 HRESULT CreateSamplerState
(
3845 [in] const D3D11_SAMPLER_DESC
*pSamplerDesc
,
3846 [out] ID3D11SamplerState
**ppSamplerState
);
3847 HRESULT CreateQuery
(
3848 [in] const D3D11_QUERY_DESC
*pQueryDesc
,
3849 [out] ID3D11Query
**ppQuery
);
3850 HRESULT CreatePredicate
(
3851 [in] const D3D11_QUERY_DESC
*pPredicateDesc
,
3852 [out] ID3D11Predicate
**ppPredicate
);
3853 HRESULT CreateCounter
(
3854 [in] const D3D11_COUNTER_DESC
*pCounterDesc
,
3855 [out] ID3D11Counter
**ppCounter
);
3856 HRESULT CreateDeferredContext
(
3858 [out] ID3D11DeviceContext
**ppDeferredContext
);
3859 HRESULT OpenSharedResource
(
3860 [in] HANDLE hResource
,
3861 [in] REFIID ReturnedInterface
,
3862 [out] void **ppResource
);
3863 HRESULT CheckFormatSupport
(
3864 [in] DXGI_FORMAT Format
,
3865 [out] UINT
*pFormatSupport
);
3866 HRESULT CheckMultisampleQualityLevels
(
3867 [in] DXGI_FORMAT Format
,
3868 [in] UINT SampleCount
,
3869 [out] UINT
*pNumQualityLevels
);
3870 void CheckCounterInfo
(
3871 [out] D3D11_COUNTER_INFO
*pCounterInfo
);
3872 HRESULT CheckCounter
(
3873 [in] const D3D11_COUNTER_DESC
*pDesc
,
3874 [out] D3D11_COUNTER_TYPE
*pType
,
3875 [out] UINT
*pActiveCounters
,
3877 [in, out] UINT
*pNameLength
,
3878 [out] LPSTR szUnits
,
3879 [in, out] UINT
*pUnitsLength
,
3880 [out] LPSTR szDescription
,
3881 [in, out] UINT
*pDescriptionLength
);
3882 HRESULT CheckFeatureSupport
(
3883 D3D11_FEATURE Feature
,
3884 [out] void *pFeatureSupportData
,
3885 UINT FeatureSupportDataSize
);
3886 HRESULT GetPrivateData
(
3888 [in, out] UINT
*pDataSize
,
3890 HRESULT SetPrivateData
(
3893 [in] const void *pData
);
3894 HRESULT SetPrivateDataInterface
(
3896 [in] const IUnknown
*pData
);
3897 D3D_FEATURE_LEVEL GetFeatureLevel
();
3898 UINT GetCreationFlags
();
3899 HRESULT GetDeviceRemovedReason
();
3900 void GetImmediateContext
(
3901 [out] ID3D11DeviceContext
**ppImmediateContext
);
3902 HRESULT SetExceptionMode
(UINT RaiseFlags
);
3903 UINT GetExceptionMode
();
3906 typedef enum D3D11_CREATE_DEVICE_FLAG
{
3907 D3D11_CREATE_DEVICE_SINGLETHREADED
= 0x0001,
3908 D3D11_CREATE_DEVICE_DEBUG
= 0x0002,
3909 D3D11_CREATE_DEVICE_SWITCH_TO_REF
= 0x0004,
3910 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
= 0x0008,
3911 D3D11_CREATE_DEVICE_BGRA_SUPPORT
= 0x0020,
3912 D3D11_CREATE_DEVICE_DEBUGGABLE
= 0x0040,
3913 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY
= 0x0080,
3914 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT
= 0x0100,
3915 D3D11_CREATE_DEVICE_VIDEO_SUPPORT
= 0x0800
3916 } D3D11_CREATE_DEVICE_FLAG
;
3918 typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
3920 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT
= 0x0001,
3921 D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT
= 0x0002,
3922 } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
;
3924 const UINT D3D11_SDK_VERSION
= 7;
3926 cpp_quote
("#include <d3d10_1.h>")
3927 cpp_quote
("#ifndef D3D11_IGNORE_SDK_LAYERS")
3928 cpp_quote
("# include <d3d11sdklayers.h>")
3930 cpp_quote
("#include <d3d10misc.h>")
3931 cpp_quote
("#include <d3d10shader.h>")
3932 cpp_quote
("#include <d3d10effect.h>")
3933 cpp_quote
("#include <d3d10_1shader.h>")
3935 const UINT _FACD3D11
= 0x87c;
3936 cpp_quote
("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3938 cpp_quote
("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3939 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3941 cpp_quote
("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3942 cpp_quote
(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3944 cpp_quote
("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3945 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3946 cpp_quote
(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3948 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain
(IDXGIAdapter
*adapter
, D3D_DRIVER_TYPE driver_type
,
3949 HMODULE swrast
, UINT flags
, const D3D_FEATURE_LEVEL
*feature_levels
, UINT levels
, UINT sdk_version
,
3950 const DXGI_SWAP_CHAIN_DESC
*swapchain_desc
, IDXGISwapChain
**swapchain
, ID3D11Device
**device
,
3951 D3D_FEATURE_LEVEL
*obtained_feature_level
, ID3D11DeviceContext
**immediate_context
);