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 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
= 14;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS
= 4;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT
= 32;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT
= 15;
39 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT
= 16;
40 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
41 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT
= 15;
42 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
43 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
44 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT
= 64;
45 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS
= 4;
46 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT
= 1;
47 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST
= 1;
48 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS
= 1;
49 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT
= 32;
50 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS
= 1;
51 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT
= 128;
52 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST
= 1;
53 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS
= 1;
54 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
= 128;
55 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS
= 1;
56 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT
= 16;
57 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST
= 1;
58 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS
= 1;
59 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT
= 16;
60 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT
= 32;
61 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS
= 4;
62 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT
= 32;
63 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT
= 4096;
64 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST
= 3;
65 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS
= 3;
66 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX
= 10;
67 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN
= -10;
68 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE
= -8;
69 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE
= 7;
71 const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 256;
72 const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP
= 64;
73 const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 240;
74 const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP
= 68;
75 const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 224;
76 const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP
= 72;
77 const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 208;
78 const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP
= 76;
79 const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 192;
80 const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP
= 84;
81 const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 176;
82 const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP
= 92;
83 const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 160;
84 const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP
= 100;
85 const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 144;
86 const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP
= 112;
87 const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 128;
88 const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP
= 128;
89 const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 112;
90 const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP
= 144;
91 const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 96;
92 const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP
= 168;
93 const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 80;
94 const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP
= 204;
95 const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 64;
96 const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP
= 256;
97 const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 48;
98 const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP
= 340;
99 const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 32;
100 const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP
= 512;
101 const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD
= 16;
102 const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP
= 768;
103 const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION
= 1;
104 const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT
= 256;
105 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP
= 768;
106 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X
= 768;
107 const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y
= 768;
108 const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT
= 1;
109 const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION
= 65535;
110 const UINT D3D11_CS_TGSM_REGISTER_COUNT
= 8192;
111 const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST
= 1;
112 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS
= 1;
113 const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS
= 1;
114 const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP
= 1024;
115 const UINT D3D11_CS_THREAD_GROUP_MAX_X
= 1024;
116 const UINT D3D11_CS_THREAD_GROUP_MAX_Y
= 1024;
117 const UINT D3D11_CS_THREAD_GROUP_MAX_Z
= 64;
118 const UINT D3D11_CS_THREAD_GROUP_MIN_X
= 1;
119 const UINT D3D11_CS_THREAD_GROUP_MIN_Y
= 1;
120 const UINT D3D11_CS_THREAD_GROUP_MIN_Z
= 1;
121 const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL
= 16384;
123 const UINT D3D11_DEFAULT_DEPTH_BIAS
= 0;
124 cpp_quote
("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
125 const UINT D3D11_DEFAULT_MAX_ANISOTROPY
= 16;
126 cpp_quote
("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
127 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX
= 0;
128 const UINT D3D11_DEFAULT_SAMPLE_MASK
= 0xffffffff;
129 const UINT D3D11_DEFAULT_SCISSOR_ENDX
= 0;
130 const UINT D3D11_DEFAULT_SCISSOR_ENDY
= 0;
131 const UINT D3D11_DEFAULT_SCISSOR_STARTX
= 0;
132 const UINT D3D11_DEFAULT_SCISSOR_STARTY
= 0;
133 cpp_quote
("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
134 const UINT D3D11_DEFAULT_STENCIL_READ_MASK
= 0xff;
135 const UINT D3D11_DEFAULT_STENCIL_REFERENCE
= 0;
136 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK
= 0xff;
137 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX
= 0;
138 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT
= 0;
139 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
140 cpp_quote
("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
141 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX
= 0;
142 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY
= 0;
143 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH
= 0;
145 cpp_quote
("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
147 const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
= 32;
149 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
= 8;
151 const UINT D3D11_MAX_MAXANISOTROPY
= 16;
152 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT
= 32;
153 const UINT D3D11_VIEWPORT_BOUNDS_MAX
= 32767;
154 const INT D3D11_VIEWPORT_BOUNDS_MIN
= -32768;
155 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX
= 15;
156 const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE
= 16;
158 const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL
= 0xffffffff;
159 const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS
= 0xffffffff;
161 const UINT D3D11_SHADER_MAJOR_VERSION
= 5;
162 const UINT D3D11_SHADER_MAX_INSTANCES
= 65535;
163 const UINT D3D11_SHADER_MAX_INTERFACES
= 253;
164 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES
= 4096;
165 const UINT D3D11_SHADER_MAX_TYPES
= 65535;
166 const UINT D3D11_SHADER_MINOR_VERSION
= 0;
167 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT
= 32;
169 const UINT D3D11_OMAC_SIZE
= 16;
171 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS
= 1;
172 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT
= 8;
173 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST
= 1;
174 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS
= 1;
175 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE
= 0xffffffff;
176 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE
= 0;
177 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE
= 0xffffffff;
178 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS
= 4;
179 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
180 const UINT D3D11_PS_INPUT_REGISTER_COUNT
= 32;
181 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST
= 2;
182 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS
= 1;
183 cpp_quote
("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
184 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS
= 1;
185 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT
= 32;
186 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT
= 1;
187 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS
= 1;
188 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT
= 32;
189 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT
= 1;
190 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS
= 4;
191 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT
= 32;
192 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT
= 8;
193 cpp_quote
("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
195 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT
= 16;
197 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE
= 4096;
198 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP
= 27;
199 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
200 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE
= 4096;
201 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP
= 32;
202 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP
= 32;
203 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION
= 16384;
204 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT
= 1024;
205 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT
= 4096;
206 const UINT D3D11_REQ_MAXANISOTROPY
= 16;
207 const UINT D3D11_REQ_MIP_LEVELS
= 15;
208 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES
= 2048;
209 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE
= 4096;
210 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH
= 16384;
211 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM
= 128;
212 cpp_quote
("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
213 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM
= 2048;
214 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP
= 20;
215 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE
= 4096;
216 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION
= 2048;
217 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION
= 16384;
218 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION
= 2048;
219 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION
= 16384;
220 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION
= 2048;
221 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION
= 16384;
223 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL
= 0;
225 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE
= 0;
226 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT
= 5;
228 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES
= 2048;
229 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES
= 512;
230 const UINT D3D11_SO_BUFFER_SLOT_COUNT
= 4;
231 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP
= 0xffffffff;
232 const UINT D3D11_SO_NO_RASTERIZED_STREAM
= 0xffffffff;
233 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT
= 128;
234 const UINT D3D11_SO_STREAM_COUNT
= 4;
236 const UINT D3D11_SPEC_DATE_DAY
= 16;
237 const UINT D3D11_SPEC_DATE_MONTH
= 05;
238 const UINT D3D11_SPEC_DATE_YEAR
= 2011;
240 cpp_quote
("#define D3D11_SPEC_VERSION (1.07)")
241 cpp_quote
("#define D3D11_SRGB_GAMMA (2.2f)")
242 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
243 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
244 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
245 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
246 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
247 cpp_quote
("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
249 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT
= 32;
250 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED
= 64;
251 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE
= 4;
252 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT
= 128;
253 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT
= 32;
254 const UINT D3D11_STANDARD_VECTOR_SIZE
= 4;
255 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT
= 32;
256 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT
= 64;
258 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
259 cpp_quote
("struct CD3D11_DEFAULT {};")
260 cpp_quote
("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
263 typedef enum D3D11_BLEND
265 D3D11_BLEND_ZERO
= 1,
267 D3D11_BLEND_SRC_COLOR
= 3,
268 D3D11_BLEND_INV_SRC_COLOR
= 4,
269 D3D11_BLEND_SRC_ALPHA
= 5,
270 D3D11_BLEND_INV_SRC_ALPHA
= 6,
271 D3D11_BLEND_DEST_ALPHA
= 7,
272 D3D11_BLEND_INV_DEST_ALPHA
= 8,
273 D3D11_BLEND_DEST_COLOR
= 9,
274 D3D11_BLEND_INV_DEST_COLOR
= 10,
275 D3D11_BLEND_SRC_ALPHA_SAT
= 11,
276 D3D11_BLEND_BLEND_FACTOR
= 14,
277 D3D11_BLEND_INV_BLEND_FACTOR
= 15,
278 D3D11_BLEND_SRC1_COLOR
= 16,
279 D3D11_BLEND_INV_SRC1_COLOR
= 17,
280 D3D11_BLEND_SRC1_ALPHA
= 18,
281 D3D11_BLEND_INV_SRC1_ALPHA
= 19,
284 typedef enum D3D11_BLEND_OP
286 D3D11_BLEND_OP_ADD
= 1,
287 D3D11_BLEND_OP_SUBTRACT
,
288 D3D11_BLEND_OP_REV_SUBTRACT
,
293 typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
295 D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS
= 0,
296 D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL
= 1,
297 D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE
= 2,
298 D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL
= 3,
299 D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX
= 4,
300 D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL
= 5,
301 D3D11_VIDEO_DECODER_BUFFER_BITSTREAM
= 6,
302 D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR
= 7,
303 D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN
= 8,
304 } D3D11_VIDEO_DECODER_BUFFER_TYPE
;
306 typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
308 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE
= 0,
309 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND
= 1,
310 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION
= 2,
311 D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM
= 3,
312 } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
;
314 typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
316 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL
= 0,
317 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF
= 1,
318 D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM
= 2,
319 } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
;
321 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
323 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO
= 0,
324 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL
= 1,
325 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL
= 2,
326 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE
= 3,
327 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET
= 4,
328 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED
= 5,
329 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED
= 6,
330 D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD
= 7,
331 } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
;
333 typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
335 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE
= 0,
336 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0
= 1,
337 D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1
= 2,
338 } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
;
340 typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
342 D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY
= 0,
343 D3D11_VIDEO_PROCESSOR_ROTATION_90
= 1,
344 D3D11_VIDEO_PROCESSOR_ROTATION_180
= 2,
345 D3D11_VIDEO_PROCESSOR_ROTATION_270
= 3,
346 } D3D11_VIDEO_PROCESSOR_ROTATION
;
348 typedef struct D3D11_BOX
358 typedef struct D3D11_BUFFER_RTV
372 typedef struct D3D11_BUFFER_SRV
386 typedef struct D3D11_BUFFER_UAV
393 typedef struct D3D11_BUFFEREX_SRV
398 } D3D11_BUFFEREX_SRV
;
400 typedef struct D3D11_CLASS_INSTANCE_DESC
406 UINT BaseConstantBufferOffset
;
410 } D3D11_CLASS_INSTANCE_DESC
;
412 typedef enum D3D11_COMPARISON_FUNC
414 D3D11_COMPARISON_NEVER
= 1,
415 D3D11_COMPARISON_LESS
,
416 D3D11_COMPARISON_EQUAL
,
417 D3D11_COMPARISON_LESS_EQUAL
,
418 D3D11_COMPARISON_GREATER
,
419 D3D11_COMPARISON_NOT_EQUAL
,
420 D3D11_COMPARISON_GREATER_EQUAL
,
421 D3D11_COMPARISON_ALWAYS
422 } D3D11_COMPARISON_FUNC
;
424 typedef enum D3D11_COUNTER
426 D3D11_COUNTER_DEVICE_DEPENDENT_0
= 0x40000000,
429 typedef struct D3D11_COUNTER_DESC
431 D3D11_COUNTER Counter
;
433 } D3D11_COUNTER_DESC
;
435 typedef struct D3D11_COUNTER_INFO
437 D3D11_COUNTER LastDeviceDependentCounter
;
438 UINT NumSimultaneousCounters
;
439 UINT8 NumDetectableParallelUnits
;
440 } D3D11_COUNTER_INFO
;
442 typedef enum D3D11_COUNTER_TYPE
444 D3D11_COUNTER_TYPE_FLOAT32
,
445 D3D11_COUNTER_TYPE_UINT16
,
446 D3D11_COUNTER_TYPE_UINT32
,
447 D3D11_COUNTER_TYPE_UINT64
,
448 } D3D11_COUNTER_TYPE
;
450 typedef enum D3D11_CULL_MODE
457 typedef enum D3D11_DEPTH_WRITE_MASK
459 D3D11_DEPTH_WRITE_MASK_ZERO
,
460 D3D11_DEPTH_WRITE_MASK_ALL
,
461 } D3D11_DEPTH_WRITE_MASK
;
463 typedef enum D3D11_DEVICE_CONTEXT_TYPE
465 D3D11_DEVICE_CONTEXT_IMMEDIATE
,
466 D3D11_DEVICE_CONTEXT_DEFERRED
,
467 } D3D11_DEVICE_CONTEXT_TYPE
;
469 typedef enum D3D11_DSV_DIMENSION
471 D3D11_DSV_DIMENSION_UNKNOWN
,
472 D3D11_DSV_DIMENSION_TEXTURE1D
,
473 D3D11_DSV_DIMENSION_TEXTURE1DARRAY
,
474 D3D11_DSV_DIMENSION_TEXTURE2D
,
475 D3D11_DSV_DIMENSION_TEXTURE2DARRAY
,
476 D3D11_DSV_DIMENSION_TEXTURE2DMS
,
477 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY
,
478 } D3D11_DSV_DIMENSION
;
480 typedef enum D3D11_FEATURE
482 D3D11_FEATURE_THREADING
,
483 D3D11_FEATURE_DOUBLES
,
484 D3D11_FEATURE_FORMAT_SUPPORT
,
485 D3D11_FEATURE_FORMAT_SUPPORT2
,
486 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS
,
487 D3D11_FEATURE_D3D11_OPTIONS
,
488 D3D11_FEATURE_ARCHITECTURE_INFO
,
489 D3D11_FEATURE_D3D9_OPTIONS
,
490 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT
,
491 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
494 typedef struct D3D11_FEATURE_DATA_THREADING
496 BOOL DriverConcurrentCreates
;
497 BOOL DriverCommandLists
;
498 } D3D11_FEATURE_DATA_THREADING
;
500 typedef struct D3D11_FEATURE_DATA_DOUBLES
502 BOOL DoublePrecisionFloatShaderOps
;
503 } D3D11_FEATURE_DATA_DOUBLES
;
505 typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
507 BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x
;
508 } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
;
510 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
512 BOOL OutputMergerLogicOp
;
513 BOOL UAVOnlyRenderingForcedSampleCount
;
514 BOOL DiscardAPIsSeenByDriver
;
515 BOOL FlagsForUpdateAndCopySeenByDriver
;
517 BOOL CopyWithOverlap
;
518 BOOL ConstantBufferPartialUpdate
;
519 BOOL ConstantBufferOffsetting
;
520 BOOL MapNoOverwriteOnDynamicConstantBuffer
;
521 BOOL MapNoOverwriteOnDynamicBufferSRV
;
522 BOOL MultisampleRTVWithForcedSampleCountOne
;
523 BOOL SAD4ShaderInstructions
;
524 BOOL ExtendedDoublesShaderInstructions
;
525 BOOL ExtendedResourceSharing
;
526 } D3D11_FEATURE_DATA_D3D11_OPTIONS
;
528 typedef enum D3D11_FILL_MODE
530 D3D11_FILL_WIREFRAME
= 2,
534 typedef enum D3D11_FILTER_TYPE
536 D3D11_FILTER_TYPE_POINT
= 0,
537 D3D11_FILTER_TYPE_LINEAR
= 1
540 const UINT D3D11_MIN_FILTER_SHIFT
= 4;
541 const UINT D3D11_MAG_FILTER_SHIFT
= 2;
542 const UINT D3D11_MIP_FILTER_SHIFT
= 0;
543 const UINT D3D11_FILTER_TYPE_MASK
= 0x00000003;
544 const UINT D3D11_COMPARISON_FILTERING_BIT
= 0x00000080;
545 const UINT D3D11_ANISOTROPIC_FILTERING_BIT
= 0x00000040;
547 cpp_quote
("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
548 cpp_quote
(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
549 cpp_quote
(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
550 cpp_quote
(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
551 cpp_quote
(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
553 cpp_quote
("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
554 cpp_quote
(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
555 cpp_quote
(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
556 cpp_quote
(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
558 cpp_quote
("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
559 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
561 cpp_quote
("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
562 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
564 cpp_quote
("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
565 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
567 cpp_quote
("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
569 cpp_quote
("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
570 cpp_quote
(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
571 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
572 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
573 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
575 typedef enum D3D11_FILTER
577 D3D11_FILTER_MIN_MAG_MIP_POINT
= 0x00,
578 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR
= 0x01,
579 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x04,
580 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR
= 0x05,
581 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT
= 0x10,
582 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x11,
583 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT
= 0x14,
584 D3D11_FILTER_MIN_MAG_MIP_LINEAR
= 0x15,
585 D3D11_FILTER_ANISOTROPIC
= 0x55,
586 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT
= 0x80,
587 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR
= 0x81,
588 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x84,
589 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR
= 0x85,
590 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT
= 0x90,
591 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x91,
592 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT
= 0x94,
593 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR
= 0x95,
594 D3D11_FILTER_COMPARISON_ANISOTROPIC
= 0xd5
597 typedef enum D3D11_DSV_FLAG
599 D3D11_DSV_READ_ONLY_DEPTH
= 0x1,
600 D3D11_DSV_READ_ONLY_STENCIL
= 0x2,
603 typedef enum D3D11_BUFFEREX_SRV_FLAG
605 D3D11_BUFFEREX_SRV_FLAG_RAW
= 0x1,
606 } D3D11_BUFFEREX_SRV_FLAG
;
608 typedef enum D3D11_UAV_FLAG
610 D3D11_BUFFER_UAV_FLAG_RAW
= 0x1,
611 D3D11_BUFFER_UAV_FLAG_APPEND
= 0x2,
612 D3D11_BUFFER_UAV_FLAG_COUNTER
= 0x4,
615 typedef enum D3D11_INPUT_CLASSIFICATION
617 D3D11_INPUT_PER_VERTEX_DATA
,
618 D3D11_INPUT_PER_INSTANCE_DATA
,
619 } D3D11_INPUT_CLASSIFICATION
;
621 const UINT D3D11_APPEND_ALIGNED_ELEMENT
= 0xffffffff;
623 typedef struct D3D11_INPUT_ELEMENT_DESC
629 UINT AlignedByteOffset
;
630 D3D11_INPUT_CLASSIFICATION InputSlotClass
;
631 UINT InstanceDataStepRate
;
632 } D3D11_INPUT_ELEMENT_DESC
;
634 typedef enum D3D11_MAP
638 D3D11_MAP_READ_WRITE
,
639 D3D11_MAP_WRITE_DISCARD
,
640 D3D11_MAP_WRITE_NO_OVERWRITE
643 typedef enum D3D11_MAP_FLAG
645 D3D11_MAP_FLAG_DO_NOT_WAIT
= 0x00100000
648 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
650 UINT64 NumPrimitivesWritten
;
651 UINT64 PrimitivesStorageNeeded
;
652 } D3D11_QUERY_DATA_SO_STATISTICS
;
654 typedef struct D3D11_MAPPED_SUBRESOURCE
659 } D3D11_MAPPED_SUBRESOURCE
;
661 typedef enum D3D11_QUERY
664 D3D11_QUERY_OCCLUSION
,
665 D3D11_QUERY_TIMESTAMP
,
666 D3D11_QUERY_TIMESTAMP_DISJOINT
,
667 D3D11_QUERY_PIPELINE_STATISTICS
,
668 D3D11_QUERY_OCCLUSION_PREDICATE
,
669 D3D11_QUERY_SO_STATISTICS
,
670 D3D11_QUERY_SO_OVERFLOW_PREDICATE
,
671 D3D11_QUERY_SO_STATISTICS_STREAM0
,
672 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0
,
673 D3D11_QUERY_SO_STATISTICS_STREAM1
,
674 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1
,
675 D3D11_QUERY_SO_STATISTICS_STREAM2
,
676 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2
,
677 D3D11_QUERY_SO_STATISTICS_STREAM3
,
678 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3
,
681 typedef enum D3D11_QUERY_MISC_FLAG
683 D3D11_QUERY_MISC_PREDICATEHINT
= 0x1,
684 } D3D11_QUERY_MISC_FLAG
;
686 typedef enum D3D11_ASYNC_GETDATA_FLAG
688 D3D11_ASYNC_GETDATA_DONOTFLUSH
= 0x0001,
689 } D3D11_ASYNC_GETDATA_FLAG
;
691 typedef enum D3D11_RESOURCE_MISC_FLAG
693 D3D11_RESOURCE_MISC_GENERATE_MIPS
= 0x00000001L
,
694 D3D11_RESOURCE_MISC_SHARED
= 0x00000002L
,
695 D3D11_RESOURCE_MISC_TEXTURECUBE
= 0x00000004L
,
696 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
= 0x00000010L
,
697 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
= 0x00000020L
,
698 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
= 0x00000040L
,
699 D3D11_RESOURCE_MISC_RESOURCE_CLAMP
= 0x00000080L
,
700 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
= 0x00000100L
,
701 D3D11_RESOURCE_MISC_GDI_COMPATIBLE
= 0x00000200L
,
702 D3D11_RESOURCE_MISC_SHARED_NTHANDLE
= 0x00000800L
,
703 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
= 0x00001000L
,
704 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
= 0x00002000L
,
705 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
= 0x00004000L
,
706 D3D11_RESOURCE_MISC_GUARDED
= 0x00008000L
707 } D3D11_RESOURCE_MISC_FLAG
;
709 typedef struct D3D11_QUERY_DESC
715 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
716 cpp_quote
("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
717 cpp_quote
(" CD3D11_QUERY_DESC() {}")
718 cpp_quote
(" ~CD3D11_QUERY_DESC() {}")
719 cpp_quote
(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
720 cpp_quote
(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
721 cpp_quote
(" Query = query;")
722 cpp_quote
(" MiscFlags = misc_flags;")
724 cpp_quote
(" operator const D3D11_QUERY_DESC&() const {")
725 cpp_quote
(" return *this;")
730 typedef struct D3D11_RASTERIZER_DESC
732 D3D11_FILL_MODE FillMode
;
733 D3D11_CULL_MODE CullMode
;
734 BOOL FrontCounterClockwise
;
736 FLOAT DepthBiasClamp
;
737 FLOAT SlopeScaledDepthBias
;
738 BOOL DepthClipEnable
;
740 BOOL MultisampleEnable
;
741 BOOL AntialiasedLineEnable
;
742 } D3D11_RASTERIZER_DESC
;
744 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
745 cpp_quote
("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
746 cpp_quote
(" CD3D11_RASTERIZER_DESC() {}")
747 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
748 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
749 cpp_quote
(" FillMode = D3D11_FILL_SOLID;")
750 cpp_quote
(" CullMode = D3D11_CULL_BACK;")
751 cpp_quote
(" FrontCounterClockwise = FALSE;")
752 cpp_quote
(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
753 cpp_quote
(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
754 cpp_quote
(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
755 cpp_quote
(" DepthClipEnable = TRUE;")
756 cpp_quote
(" ScissorEnable = FALSE;")
757 cpp_quote
(" MultisampleEnable = FALSE;")
758 cpp_quote
(" AntialiasedLineEnable = FALSE;")
760 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
761 cpp_quote
(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
762 cpp_quote
(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
763 cpp_quote
(" FillMode = fillMode;")
764 cpp_quote
(" CullMode = cullMode;")
765 cpp_quote
(" FrontCounterClockwise = frontCounterClockwise;")
766 cpp_quote
(" DepthBias = depthBias;")
767 cpp_quote
(" DepthBiasClamp = depthBiasClamp;")
768 cpp_quote
(" SlopeScaledDepthBias = slopeScaledDepthBias;")
769 cpp_quote
(" DepthClipEnable = depthClipEnable;")
770 cpp_quote
(" ScissorEnable = scissorEnable;")
771 cpp_quote
(" MultisampleEnable = multisampleEnable;")
772 cpp_quote
(" AntialiasedLineEnable = antialiasedLineEnable;")
774 cpp_quote
(" ~CD3D11_RASTERIZER_DESC() {}")
775 cpp_quote
(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
779 typedef enum D3D11_RESOURCE_DIMENSION
781 D3D11_RESOURCE_DIMENSION_UNKNOWN
,
782 D3D11_RESOURCE_DIMENSION_BUFFER
,
783 D3D11_RESOURCE_DIMENSION_TEXTURE1D
,
784 D3D11_RESOURCE_DIMENSION_TEXTURE2D
,
785 D3D11_RESOURCE_DIMENSION_TEXTURE3D
,
786 } D3D11_RESOURCE_DIMENSION
;
788 typedef enum D3D11_RTV_DIMENSION
790 D3D11_RTV_DIMENSION_UNKNOWN
,
791 D3D11_RTV_DIMENSION_BUFFER
,
792 D3D11_RTV_DIMENSION_TEXTURE1D
,
793 D3D11_RTV_DIMENSION_TEXTURE1DARRAY
,
794 D3D11_RTV_DIMENSION_TEXTURE2D
,
795 D3D11_RTV_DIMENSION_TEXTURE2DARRAY
,
796 D3D11_RTV_DIMENSION_TEXTURE2DMS
,
797 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY
,
798 D3D11_RTV_DIMENSION_TEXTURE3D
,
799 } D3D11_RTV_DIMENSION
;
801 typedef struct D3D11_SO_DECLARATION_ENTRY
809 } D3D11_SO_DECLARATION_ENTRY
;
811 typedef enum D3D11_STENCIL_OP
813 D3D11_STENCIL_OP_KEEP
= 1,
814 D3D11_STENCIL_OP_ZERO
,
815 D3D11_STENCIL_OP_REPLACE
,
816 D3D11_STENCIL_OP_INCR_SAT
,
817 D3D11_STENCIL_OP_DECR_SAT
,
818 D3D11_STENCIL_OP_INVERT
,
819 D3D11_STENCIL_OP_INCR
,
820 D3D11_STENCIL_OP_DECR
823 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
825 cpp_quote
("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
826 cpp_quote
(" return MipSlice + ArraySlice * MipLevels;")
828 cpp_quote
("extern \"C\"{")
831 typedef struct D3D11_SUBRESOURCE_DATA
835 UINT SysMemSlicePitch
;
836 } D3D11_SUBRESOURCE_DATA
;
838 typedef struct D3D11_TEX1D_ARRAY_DSV
841 UINT FirstArraySlice
;
843 } D3D11_TEX1D_ARRAY_DSV
;
845 typedef struct D3D11_TEX1D_ARRAY_RTV
848 UINT FirstArraySlice
;
850 } D3D11_TEX1D_ARRAY_RTV
;
852 typedef struct D3D11_TEX1D_ARRAY_SRV
854 UINT MostDetailedMip
;
856 UINT FirstArraySlice
;
858 } D3D11_TEX1D_ARRAY_SRV
;
860 typedef struct D3D11_TEX1D_ARRAY_UAV
863 UINT FirstArraySlice
;
865 } D3D11_TEX1D_ARRAY_UAV
;
867 typedef struct D3D11_TEX1D_DSV
872 typedef struct D3D11_TEX1D_RTV
877 typedef struct D3D11_TEX1D_SRV
879 UINT MostDetailedMip
;
883 typedef struct D3D11_TEX1D_UAV
888 typedef struct D3D11_TEX2D_ARRAY_DSV
891 UINT FirstArraySlice
;
893 } D3D11_TEX2D_ARRAY_DSV
;
895 typedef struct D3D11_TEX2D_ARRAY_RTV
898 UINT FirstArraySlice
;
900 } D3D11_TEX2D_ARRAY_RTV
;
902 typedef struct D3D11_TEX2D_ARRAY_SRV
904 UINT MostDetailedMip
;
906 UINT FirstArraySlice
;
908 } D3D11_TEX2D_ARRAY_SRV
;
910 typedef struct D3D11_TEX2D_ARRAY_UAV
913 UINT FirstArraySlice
;
915 } D3D11_TEX2D_ARRAY_UAV
;
917 typedef struct D3D11_TEX2D_DSV
922 typedef struct D3D11_TEX2D_RTV
927 typedef struct D3D11_TEX2D_SRV
929 UINT MostDetailedMip
;
933 typedef struct D3D11_TEX2D_UAV
938 typedef struct D3D11_TEX2DMS_ARRAY_DSV
940 UINT FirstArraySlice
;
942 } D3D11_TEX2DMS_ARRAY_DSV
;
944 typedef struct D3D11_TEX2DMS_ARRAY_RTV
946 UINT FirstArraySlice
;
948 } D3D11_TEX2DMS_ARRAY_RTV
;
950 typedef struct D3D11_TEX2DMS_ARRAY_SRV
952 UINT FirstArraySlice
;
954 } D3D11_TEX2DMS_ARRAY_SRV
;
956 typedef struct D3D11_TEX2DMS_DSV
958 UINT UnusedField_NothingToDefine
;
961 typedef struct D3D11_TEX2DMS_RTV
963 UINT UnusedField_NothingToDefine
;
966 typedef struct D3D11_TEX2DMS_SRV
968 UINT UnusedField_NothingToDefine
;
971 typedef struct D3D11_TEX3D_RTV
978 typedef struct D3D11_TEX3D_SRV
980 UINT MostDetailedMip
;
984 typedef struct D3D11_TEX3D_UAV
991 typedef struct D3D11_TEXCUBE_ARRAY_SRV
993 UINT MostDetailedMip
;
995 UINT First2DArrayFace
;
997 } D3D11_TEXCUBE_ARRAY_SRV
;
999 typedef struct D3D11_TEXCUBE_SRV
1001 UINT MostDetailedMip
;
1003 } D3D11_TEXCUBE_SRV
;
1005 typedef enum D3D11_TEXTURE_ADDRESS_MODE
1007 D3D11_TEXTURE_ADDRESS_WRAP
= 1,
1008 D3D11_TEXTURE_ADDRESS_MIRROR
,
1009 D3D11_TEXTURE_ADDRESS_CLAMP
,
1010 D3D11_TEXTURE_ADDRESS_BORDER
,
1011 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
1012 } D3D11_TEXTURE_ADDRESS_MODE
;
1014 typedef enum D3D11_UAV_DIMENSION
1016 D3D11_UAV_DIMENSION_UNKNOWN
,
1017 D3D11_UAV_DIMENSION_BUFFER
,
1018 D3D11_UAV_DIMENSION_TEXTURE1D
,
1019 D3D11_UAV_DIMENSION_TEXTURE1DARRAY
,
1020 D3D11_UAV_DIMENSION_TEXTURE2D
,
1021 D3D11_UAV_DIMENSION_TEXTURE2DARRAY
,
1022 D3D11_UAV_DIMENSION_TEXTURE3D
= 8,
1023 } D3D11_UAV_DIMENSION
;
1025 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
1028 D3D11_UAV_DIMENSION ViewDimension
;
1032 D3D11_BUFFER_UAV Buffer
;
1033 D3D11_TEX1D_UAV Texture1D
;
1034 D3D11_TEX1D_ARRAY_UAV Texture1DArray
;
1035 D3D11_TEX2D_UAV Texture2D
;
1036 D3D11_TEX2D_ARRAY_UAV Texture2DArray
;
1037 D3D11_TEX3D_UAV Texture3D
;
1039 } D3D11_UNORDERED_ACCESS_VIEW_DESC
;
1041 typedef enum D3D11_USAGE
1043 D3D11_USAGE_DEFAULT
,
1044 D3D11_USAGE_IMMUTABLE
,
1045 D3D11_USAGE_DYNAMIC
,
1046 D3D11_USAGE_STAGING
,
1049 typedef enum D3D11_BIND_FLAG
1051 D3D11_BIND_VERTEX_BUFFER
= 0x0001,
1052 D3D11_BIND_INDEX_BUFFER
= 0x0002,
1053 D3D11_BIND_CONSTANT_BUFFER
= 0x0004,
1054 D3D11_BIND_SHADER_RESOURCE
= 0x0008,
1055 D3D11_BIND_STREAM_OUTPUT
= 0x0010,
1056 D3D11_BIND_RENDER_TARGET
= 0x0020,
1057 D3D11_BIND_DEPTH_STENCIL
= 0x0040,
1058 D3D11_BIND_UNORDERED_ACCESS
= 0x0080,
1059 D3D11_BIND_DECODER
= 0x0200,
1060 D3D11_BIND_VIDEO_ENCODER
= 0x0400
1063 typedef enum D3D11_CPU_ACCESS_FLAG
1065 D3D11_CPU_ACCESS_WRITE
= 0x00010000,
1066 D3D11_CPU_ACCESS_READ
= 0x00020000
1067 } D3D11_CPU_ACCESS_FLAG
;
1069 typedef struct D3D11_VIEWPORT
1079 typedef enum D3D11_COLOR_WRITE_ENABLE
1081 D3D11_COLOR_WRITE_ENABLE_RED
= 1,
1082 D3D11_COLOR_WRITE_ENABLE_GREEN
= 2,
1083 D3D11_COLOR_WRITE_ENABLE_BLUE
= 4,
1084 D3D11_COLOR_WRITE_ENABLE_ALPHA
= 8,
1085 D3D11_COLOR_WRITE_ENABLE_ALL
=
1086 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA
)
1087 } D3D11_COLOR_WRITE_ENABLE
;
1089 typedef enum D3D11_FORMAT_SUPPORT
1091 D3D11_FORMAT_SUPPORT_BUFFER
= 0x00000001,
1092 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
= 0x00000002,
1093 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
= 0x00000004,
1094 D3D11_FORMAT_SUPPORT_SO_BUFFER
= 0x00000008,
1095 D3D11_FORMAT_SUPPORT_TEXTURE1D
= 0x00000010,
1096 D3D11_FORMAT_SUPPORT_TEXTURE2D
= 0x00000020,
1097 D3D11_FORMAT_SUPPORT_TEXTURE3D
= 0x00000040,
1098 D3D11_FORMAT_SUPPORT_TEXTURECUBE
= 0x00000080,
1099 D3D11_FORMAT_SUPPORT_SHADER_LOAD
= 0x00000100,
1100 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE
= 0x00000200,
1101 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON
= 0x00000400,
1102 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT
= 0x00000800,
1103 D3D11_FORMAT_SUPPORT_MIP
= 0x00001000,
1104 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
= 0x00002000,
1105 D3D11_FORMAT_SUPPORT_RENDER_TARGET
= 0x00004000,
1106 D3D11_FORMAT_SUPPORT_BLENDABLE
= 0x00008000,
1107 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL
= 0x00010000,
1108 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE
= 0x00020000,
1109 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
= 0x00040000,
1110 D3D11_FORMAT_SUPPORT_DISPLAY
= 0x00080000,
1111 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT
= 0x00100000,
1112 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
= 0x00200000,
1113 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
= 0x00400000,
1114 D3D11_FORMAT_SUPPORT_SHADER_GATHER
= 0x00800000,
1115 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST
= 0x01000000,
1116 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW
= 0x02000000,
1117 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON
= 0x04000000,
1118 D3D11_FORMAT_SUPPORT_DECODER_OUTPUT
= 0x08000000,
1119 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT
= 0x10000000,
1120 D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT
= 0x20000000,
1121 D3D11_FORMAT_SUPPORT_VIDEO_ENCODER
= 0x40000000,
1122 } D3D11_FORMAT_SUPPORT
;
1124 typedef enum D3D11_CLEAR_FLAG
1126 D3D11_CLEAR_DEPTH
= 0x0001L
,
1127 D3D11_CLEAR_STENCIL
= 0x0002L
1130 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
1133 D3D11_BLEND SrcBlend
;
1134 D3D11_BLEND DestBlend
;
1135 D3D11_BLEND_OP BlendOp
;
1136 D3D11_BLEND SrcBlendAlpha
;
1137 D3D11_BLEND DestBlendAlpha
;
1138 D3D11_BLEND_OP BlendOpAlpha
;
1139 UINT8 RenderTargetWriteMask
;
1140 } D3D11_RENDER_TARGET_BLEND_DESC
;
1142 typedef struct D3D11_BLEND_DESC
1144 BOOL AlphaToCoverageEnable
;
1145 BOOL IndependentBlendEnable
;
1146 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget
[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
];
1149 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1150 cpp_quote
("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
1151 cpp_quote
(" CD3D11_BLEND_DESC() {}")
1152 cpp_quote
(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
1153 cpp_quote
(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
1154 cpp_quote
(" AlphaToCoverageEnable = FALSE;")
1155 cpp_quote
(" IndependentBlendEnable = FALSE;")
1156 cpp_quote
(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
1157 cpp_quote
(" target->BlendEnable = FALSE;")
1158 cpp_quote
(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
1159 cpp_quote
(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
1160 cpp_quote
(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
1161 cpp_quote
(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
1164 cpp_quote
(" ~CD3D11_BLEND_DESC() {}")
1165 cpp_quote
(" operator const D3D11_BLEND_DESC&() const { return *this; }")
1167 cpp_quote
("#endif" )
1169 typedef struct D3D11_BUFFER_DESC
1174 UINT CPUAccessFlags
;
1176 UINT StructureByteStride
;
1177 } D3D11_BUFFER_DESC
;
1179 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1180 cpp_quote
("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1181 cpp_quote
(" CD3D11_BUFFER_DESC() {}" )
1182 cpp_quote
(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1183 cpp_quote
(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1184 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1185 cpp_quote
(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1186 cpp_quote
(" ByteWidth = byteWidth;")
1187 cpp_quote
(" Usage = usage;")
1188 cpp_quote
(" BindFlags = bindFlags;")
1189 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1190 cpp_quote
(" MiscFlags = miscFlags;" )
1191 cpp_quote
(" StructureByteStride = structureByteStride;")
1193 cpp_quote
(" ~CD3D11_BUFFER_DESC() {}")
1194 cpp_quote
(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1196 cpp_quote
("#endif" )
1198 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1201 D3D11_DSV_DIMENSION ViewDimension
;
1206 D3D11_TEX1D_DSV Texture1D
;
1207 D3D11_TEX1D_ARRAY_DSV Texture1DArray
;
1208 D3D11_TEX2D_DSV Texture2D
;
1209 D3D11_TEX2D_ARRAY_DSV Texture2DArray
;
1210 D3D11_TEX2DMS_DSV Texture2DMS
;
1211 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray
;
1213 } D3D11_DEPTH_STENCIL_VIEW_DESC
;
1215 typedef struct D3D11_DEPTH_STENCILOP_DESC
1217 D3D11_STENCIL_OP StencilFailOp
;
1218 D3D11_STENCIL_OP StencilDepthFailOp
;
1219 D3D11_STENCIL_OP StencilPassOp
;
1220 D3D11_COMPARISON_FUNC StencilFunc
;
1221 } D3D11_DEPTH_STENCILOP_DESC
;
1223 typedef struct D3D11_DEPTH_STENCIL_DESC
1226 D3D11_DEPTH_WRITE_MASK DepthWriteMask
;
1227 D3D11_COMPARISON_FUNC DepthFunc
;
1229 UINT8 StencilReadMask
;
1230 UINT8 StencilWriteMask
;
1231 D3D11_DEPTH_STENCILOP_DESC FrontFace
;
1232 D3D11_DEPTH_STENCILOP_DESC BackFace
;
1233 } D3D11_DEPTH_STENCIL_DESC
;
1235 cpp_quote
("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
1236 cpp_quote
("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
1237 cpp_quote
(" CD3D11_DEPTH_STENCIL_DESC() {}")
1238 cpp_quote
(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
1239 cpp_quote
(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
1240 cpp_quote
(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
1241 cpp_quote
(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
1242 cpp_quote
(" DepthEnable = TRUE;")
1243 cpp_quote
(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
1244 cpp_quote
(" DepthFunc = D3D11_COMPARISON_LESS;")
1245 cpp_quote
(" StencilEnable = FALSE;")
1246 cpp_quote
(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
1247 cpp_quote
(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
1248 cpp_quote
(" FrontFace = default_op;")
1249 cpp_quote
(" BackFace = default_op;")
1251 cpp_quote
(" explicit CD3D11_DEPTH_STENCIL_DESC(")
1252 cpp_quote
(" BOOL depth_enable,")
1253 cpp_quote
(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
1254 cpp_quote
(" D3D11_COMPARISON_FUNC depth_func,")
1255 cpp_quote
(" BOOL stencil_enable,")
1256 cpp_quote
(" UINT8 stencil_read_mask,")
1257 cpp_quote
(" UINT8 stencil_write_mask,")
1258 cpp_quote
(" D3D11_STENCIL_OP front_stencil_fail_op,")
1259 cpp_quote
(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
1260 cpp_quote
(" D3D11_STENCIL_OP front_stencil_pass_op,")
1261 cpp_quote
(" D3D11_COMPARISON_FUNC front_stencil_func,")
1262 cpp_quote
(" D3D11_STENCIL_OP back_stencil_fail_op,")
1263 cpp_quote
(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
1264 cpp_quote
(" D3D11_STENCIL_OP back_stencil_pass_op,")
1265 cpp_quote
(" D3D11_COMPARISON_FUNC back_stencil_func) {")
1266 cpp_quote
(" DepthEnable = depth_enable;")
1267 cpp_quote
(" DepthWriteMask = depth_write_mask;")
1268 cpp_quote
(" DepthFunc = depth_func;")
1269 cpp_quote
(" StencilEnable = stencil_enable;")
1270 cpp_quote
(" StencilReadMask = stencil_read_mask;")
1271 cpp_quote
(" StencilWriteMask = stencil_write_mask;")
1272 cpp_quote
(" FrontFace.StencilFailOp = front_stencil_fail_op;")
1273 cpp_quote
(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
1274 cpp_quote
(" FrontFace.StencilPassOp = front_stencil_pass_op;")
1275 cpp_quote
(" FrontFace.StencilFunc = front_stencil_func;")
1276 cpp_quote
(" BackFace.StencilFailOp = back_stencil_fail_op;")
1277 cpp_quote
(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
1278 cpp_quote
(" BackFace.StencilPassOp = back_stencil_pass_op;")
1279 cpp_quote
(" BackFace.StencilFunc = back_stencil_func;")
1281 cpp_quote
(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
1282 cpp_quote
(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
1286 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1289 D3D11_RTV_DIMENSION ViewDimension
;
1293 D3D11_BUFFER_RTV Buffer
;
1294 D3D11_TEX1D_RTV Texture1D
;
1295 D3D11_TEX1D_ARRAY_RTV Texture1DArray
;
1296 D3D11_TEX2D_RTV Texture2D
;
1297 D3D11_TEX2D_ARRAY_RTV Texture2DArray
;
1298 D3D11_TEX2DMS_RTV Texture2DMS
;
1299 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray
;
1300 D3D11_TEX3D_RTV Texture3D
;
1302 } D3D11_RENDER_TARGET_VIEW_DESC
;
1304 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1305 cpp_quote
("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
1306 cpp_quote
(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1307 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1308 cpp_quote
(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
1309 cpp_quote
(" Format = format;")
1310 cpp_quote
(" ViewDimension = dim;")
1311 cpp_quote
(" switch(dim) {")
1312 cpp_quote
(" case D3D11_RTV_DIMENSION_BUFFER:")
1313 cpp_quote
(" Buffer.FirstElement = mip_slice;")
1314 cpp_quote
(" Buffer.NumElements = first_slice;")
1315 cpp_quote
(" break;")
1316 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
1317 cpp_quote
(" Texture1D.MipSlice = mip_slice;")
1318 cpp_quote
(" break;")
1319 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
1320 cpp_quote
(" Texture1DArray.MipSlice = mip_slice;")
1321 cpp_quote
(" Texture1DArray.FirstArraySlice = first_slice;")
1322 cpp_quote
(" Texture1DArray.ArraySize = array_size;")
1323 cpp_quote
(" break;")
1324 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
1325 cpp_quote
(" Texture2D.MipSlice = mip_slice;")
1326 cpp_quote
(" break;")
1327 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
1328 cpp_quote
(" Texture2DArray.MipSlice = mip_slice;")
1329 cpp_quote
(" Texture2DArray.FirstArraySlice = first_slice;")
1330 cpp_quote
(" Texture2DArray.ArraySize = array_size;")
1331 cpp_quote
(" break;")
1332 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
1333 cpp_quote
(" Texture2DMSArray.FirstArraySlice = first_slice;")
1334 cpp_quote
(" Texture2DMSArray.ArraySize = array_size;")
1335 cpp_quote
(" break;")
1336 cpp_quote
(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
1337 cpp_quote
(" Texture3D.MipSlice = mip_slice;")
1338 cpp_quote
(" Texture3D.FirstWSlice = first_slice;")
1339 cpp_quote
(" Texture3D.WSize = array_size;")
1340 cpp_quote
(" break;")
1341 cpp_quote
(" default:")
1342 cpp_quote
(" break;")
1345 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1346 cpp_quote
(" UINT elem_cnt) {")
1347 cpp_quote
(" Format = format;")
1348 cpp_quote
(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
1349 cpp_quote
(" Buffer.FirstElement = first_elem;")
1350 cpp_quote
(" Buffer.NumElements = elem_cnt;")
1352 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
1353 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1354 cpp_quote
(" UINT array_size = -1);") /* FIXME: implement */
1355 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
1356 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
1357 cpp_quote
(" UINT array_size = -1);") /* FIXME: implement */
1358 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1359 cpp_quote
(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
1360 cpp_quote
(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
1361 cpp_quote
(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
1362 cpp_quote
(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
1363 cpp_quote
(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
1364 cpp_quote
(" return *this;")
1370 typedef struct D3D11_SAMPLER_DESC
1372 D3D11_FILTER Filter
;
1373 D3D11_TEXTURE_ADDRESS_MODE AddressU
;
1374 D3D11_TEXTURE_ADDRESS_MODE AddressV
;
1375 D3D11_TEXTURE_ADDRESS_MODE AddressW
;
1378 D3D11_COMPARISON_FUNC ComparisonFunc
;
1379 FLOAT BorderColor
[4];
1382 } D3D11_SAMPLER_DESC
;
1384 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1385 cpp_quote
("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1386 cpp_quote
(" CD3D11_SAMPLER_DESC() {}")
1387 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1388 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1389 cpp_quote
(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1390 cpp_quote
(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1391 cpp_quote
(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1392 cpp_quote
(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1393 cpp_quote
(" MipLODBias = 0;")
1394 cpp_quote
(" MaxAnisotropy = 1;")
1395 cpp_quote
(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1396 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1397 cpp_quote
(" MinLOD = -3.402823466e+38f;")
1398 cpp_quote
(" MaxLOD = 3.402823466e+38f;")
1400 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1401 cpp_quote
(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1402 cpp_quote
(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1403 cpp_quote
(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1404 cpp_quote
(" Filter = filter;")
1405 cpp_quote
(" AddressU = addressU;")
1406 cpp_quote
(" AddressV = addressV;")
1407 cpp_quote
(" AddressW = addressW;")
1408 cpp_quote
(" MipLODBias = mipLODBias;")
1409 cpp_quote
(" MaxAnisotropy = maxAnisotropy;")
1410 cpp_quote
(" ComparisonFunc = comparisonFunc;")
1411 cpp_quote
(" if(borderColor) {")
1412 cpp_quote
(" BorderColor[0] = borderColor[0];")
1413 cpp_quote
(" BorderColor[1] = borderColor[1];")
1414 cpp_quote
(" BorderColor[2] = borderColor[2];")
1415 cpp_quote
(" BorderColor[3] = borderColor[3];")
1416 cpp_quote
(" }else {")
1417 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1419 cpp_quote
(" MinLOD = minLOD;")
1420 cpp_quote
(" MaxLOD = maxLOD;")
1422 cpp_quote
(" ~CD3D11_SAMPLER_DESC() {}")
1423 cpp_quote
(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1427 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1430 D3D11_SRV_DIMENSION ViewDimension
;
1434 D3D11_BUFFER_SRV Buffer
;
1435 D3D11_TEX1D_SRV Texture1D
;
1436 D3D11_TEX1D_ARRAY_SRV Texture1DArray
;
1437 D3D11_TEX2D_SRV Texture2D
;
1438 D3D11_TEX2D_ARRAY_SRV Texture2DArray
;
1439 D3D11_TEX2DMS_SRV Texture2DMS
;
1440 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray
;
1441 D3D11_TEX3D_SRV Texture3D
;
1442 D3D11_TEXCUBE_SRV TextureCube
;
1443 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray
;
1444 D3D11_BUFFEREX_SRV BufferEx
;
1446 } D3D11_SHADER_RESOURCE_VIEW_DESC
;
1448 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
1449 cpp_quote
("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
1450 cpp_quote
(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1451 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
1452 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
1453 cpp_quote
(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
1454 cpp_quote
(" Format = format;")
1455 cpp_quote
(" ViewDimension = dim;")
1456 cpp_quote
(" switch(ViewDimension) {")
1457 cpp_quote
(" case D3D11_SRV_DIMENSION_BUFFER:")
1458 cpp_quote
(" Buffer.FirstElement = most_detailed_mip;")
1459 cpp_quote
(" Buffer.NumElements = mip_levels;")
1460 cpp_quote
(" break;")
1461 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
1462 cpp_quote
(" Texture1D.MostDetailedMip = most_detailed_mip;")
1463 cpp_quote
(" Texture1D.MipLevels = mip_levels;")
1464 cpp_quote
(" break;")
1465 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
1466 cpp_quote
(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
1467 cpp_quote
(" Texture1DArray.MipLevels = mip_levels;")
1468 cpp_quote
(" Texture1DArray.FirstArraySlice = first_slice;")
1469 cpp_quote
(" Texture1DArray.ArraySize = array_size;")
1470 cpp_quote
(" break;")
1471 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
1472 cpp_quote
(" Texture2D.MostDetailedMip = most_detailed_mip;")
1473 cpp_quote
(" Texture2D.MipLevels = mip_levels;")
1474 cpp_quote
(" break;")
1475 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
1476 cpp_quote
(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
1477 cpp_quote
(" Texture2DArray.MipLevels = mip_levels;")
1478 cpp_quote
(" Texture2DArray.FirstArraySlice = first_slice;")
1479 cpp_quote
(" Texture2DArray.ArraySize = array_size;")
1480 cpp_quote
(" break;")
1481 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
1482 cpp_quote
(" Texture2DMSArray.FirstArraySlice = first_slice;")
1483 cpp_quote
(" Texture2DMSArray.ArraySize = array_size;")
1484 cpp_quote
(" break;")
1485 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
1486 cpp_quote
(" Texture3D.MostDetailedMip = most_detailed_mip;")
1487 cpp_quote
(" Texture3D.MipLevels = mip_levels;")
1488 cpp_quote
(" break;")
1489 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
1490 cpp_quote
(" TextureCube.MostDetailedMip = most_detailed_mip;")
1491 cpp_quote
(" TextureCube.MipLevels = mip_levels;")
1492 cpp_quote
(" break;")
1493 cpp_quote
(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
1494 cpp_quote
(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
1495 cpp_quote
(" TextureCubeArray.MipLevels = mip_levels;")
1496 cpp_quote
(" TextureCubeArray.First2DArrayFace = first_slice;")
1497 cpp_quote
(" TextureCubeArray.NumCubes = array_size;")
1498 cpp_quote
(" break;")
1499 cpp_quote
(" case D3D11_SRV_DIMENSION_BUFFEREX:")
1500 cpp_quote
(" BufferEx.FirstElement = most_detailed_mip;")
1501 cpp_quote
(" BufferEx.NumElements = mip_levels;")
1502 cpp_quote
(" BufferEx.Flags = flags;")
1503 cpp_quote
(" break;")
1504 cpp_quote
(" default:")
1505 cpp_quote
(" break;")
1508 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
1509 cpp_quote
(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
1510 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
1511 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1512 cpp_quote
(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1513 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
1514 cpp_quote
(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
1515 cpp_quote
(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
1516 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
1517 cpp_quote
(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
1518 cpp_quote
(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
1519 cpp_quote
(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
1520 cpp_quote
(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
1521 cpp_quote
(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
1522 cpp_quote
(" return *this;")
1527 typedef struct D3D11_TEXTURE1D_DESC
1535 UINT CPUAccessFlags
;
1537 } D3D11_TEXTURE1D_DESC
;
1539 typedef struct D3D11_TEXTURE2D_DESC
1546 DXGI_SAMPLE_DESC SampleDesc
;
1549 UINT CPUAccessFlags
;
1551 } D3D11_TEXTURE2D_DESC
;
1553 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1554 cpp_quote
("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1555 cpp_quote
(" CD3D11_TEXTURE2D_DESC() {}")
1556 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1557 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1558 cpp_quote
(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1559 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1560 cpp_quote
(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1561 cpp_quote
(" Width = width;")
1562 cpp_quote
(" Height = height;")
1563 cpp_quote
(" MipLevels = mipLevels;")
1564 cpp_quote
(" ArraySize = arraySize;")
1565 cpp_quote
(" Format = format;")
1566 cpp_quote
(" SampleDesc.Count = sampleCount;")
1567 cpp_quote
(" SampleDesc.Quality = sampleQuality;")
1568 cpp_quote
(" Usage = usage;")
1569 cpp_quote
(" BindFlags = bindFlags;")
1570 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1571 cpp_quote
(" MiscFlags = miscFlags;")
1573 cpp_quote
(" ~CD3D11_TEXTURE2D_DESC() {}")
1574 cpp_quote
(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1578 typedef struct D3D11_TEXTURE3D_DESC
1587 UINT CPUAccessFlags
;
1589 } D3D11_TEXTURE3D_DESC
;
1591 typedef struct D3D11_VIDEO_DECODER_DESC
1596 DXGI_FORMAT OutputFormat
;
1597 } D3D11_VIDEO_DECODER_DESC
;
1599 typedef struct D3D11_VIDEO_DECODER_CONFIG
1601 GUID guidConfigBitstreamEncryption
;
1602 GUID guidConfigMBcontrolEncryption
;
1603 GUID guidConfigResidDiffEncryption
;
1604 UINT ConfigBitstreamRaw
;
1605 UINT ConfigMBcontrolRasterOrder
;
1606 UINT ConfigResidDiffHost
;
1607 UINT ConfigSpatialResid8
;
1608 UINT ConfigResid8Subtraction
;
1609 UINT ConfigSpatialHost8or9Clipping
;
1610 UINT ConfigSpatialResidInterleaved
;
1611 UINT ConfigIntraResidUnsigned
;
1612 UINT ConfigResidDiffAccelerator
;
1613 UINT ConfigHostInverseScan
;
1614 UINT ConfigSpecificIDCT
;
1615 UINT Config4GroupedCoefs
;
1616 USHORT ConfigMinRenderTargetBuffCount
;
1617 USHORT ConfigDecoderSpecific
;
1618 } D3D11_VIDEO_DECODER_CONFIG
;
1620 typedef enum D3D11_VIDEO_FRAME_FORMAT
1622 D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE
= 0,
1623 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST
= 1,
1624 D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST
= 2
1625 } D3D11_VIDEO_FRAME_FORMAT
;
1627 typedef enum D3D11_VIDEO_USAGE
1629 D3D11_VIDEO_USAGE_PLAYBACK_NORMAL
= 0,
1630 D3D11_VIDEO_USAGE_OPTIMAL_SPEED
= 1,
1631 D3D11_VIDEO_USAGE_OPTIMAL_QUALITY
= 2
1632 } D3D11_VIDEO_USAGE
;
1634 typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
1636 D3D11_VIDEO_FRAME_FORMAT InputFrameFormat
;
1637 DXGI_RATIONAL InputFrameRate
;
1640 DXGI_RATIONAL OutputFrameRate
;
1643 D3D11_VIDEO_USAGE Usage
;
1644 } D3D11_VIDEO_PROCESSOR_CONTENT_DESC
;
1646 typedef struct D3D11_VIDEO_PROCESSOR_CAPS
1651 UINT InputFormatCaps
;
1652 UINT AutoStreamCaps
;
1654 UINT RateConversionCapsCount
;
1655 UINT MaxInputStreams
;
1656 UINT MaxStreamStates
;
1657 } D3D11_VIDEO_PROCESSOR_CAPS
;
1659 typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
1665 UINT CustomRateCount
;
1666 } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
;
1668 typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
1670 DXGI_RATIONAL CustomRate
;
1672 BOOL InputInterlaced
;
1673 UINT InputFramesOrFields
;
1674 } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
;
1676 typedef enum D3D11_VIDEO_PROCESSOR_FILTER
1678 D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS
= 0,
1679 D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST
= 1,
1680 D3D11_VIDEO_PROCESSOR_FILTER_HUE
= 2,
1681 D3D11_VIDEO_PROCESSOR_FILTER_SATURATION
= 3,
1682 D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION
= 4,
1683 D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT
= 5,
1684 D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING
= 6,
1685 D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT
= 7
1686 } D3D11_VIDEO_PROCESSOR_FILTER
;
1688 typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
1694 } D3D11_VIDEO_PROCESSOR_FILTER_RANGE
;
1696 typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
1698 D3D11_AUTHENTICATED_CHANNEL_D3D11
= 1,
1699 D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE
= 2,
1700 D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE
= 3
1701 } D3D11_AUTHENTICATED_CHANNEL_TYPE
;
1703 typedef enum D3D11_VDOV_DIMENSION
1705 D3D11_VDOV_DIMENSION_UNKNOWN
= 0,
1706 D3D11_VDOV_DIMENSION_TEXTURE2D
= 1
1707 } D3D11_VDOV_DIMENSION
;
1709 typedef struct D3D11_TEX2D_VDOV
1714 typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
1717 D3D11_VDOV_DIMENSION ViewDimension
;
1719 D3D11_TEX2D_VDOV Texture2D
;
1721 } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
;
1723 typedef enum D3D11_VPIV_DIMENSION
1725 D3D11_VPIV_DIMENSION_UNKNOWN
= 0,
1726 D3D11_VPIV_DIMENSION_TEXTURE2D
= 1
1727 } D3D11_VPIV_DIMENSION
;
1729 typedef struct D3D11_TEX2D_VPIV
1735 typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
1738 D3D11_VPIV_DIMENSION ViewDimension
;
1740 D3D11_TEX2D_VPIV Texture2D
;
1742 } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
;
1744 typedef enum D3D11_VPOV_DIMENSION
1746 D3D11_VPOV_DIMENSION_UNKNOWN
= 0,
1747 D3D11_VPOV_DIMENSION_TEXTURE2D
= 1,
1748 D3D11_VPOV_DIMENSION_TEXTURE2DARRAY
= 2
1749 } D3D11_VPOV_DIMENSION
;
1751 typedef struct D3D11_TEX2D_VPOV
1756 typedef struct D3D11_TEX2D_ARRAY_VPOV
1759 UINT FirstArraySlice
;
1761 } D3D11_TEX2D_ARRAY_VPOV
;
1763 typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
1765 D3D11_VPOV_DIMENSION ViewDimension
;
1767 D3D11_TEX2D_VPOV Texture2D
;
1768 D3D11_TEX2D_ARRAY_VPOV Texture2DArray
;
1770 } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
;
1772 typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
1775 UINT KeyExchangeTypeCount
;
1776 UINT BlockAlignmentSize
;
1777 ULONGLONG ProtectedMemorySize
;
1778 } D3D11_VIDEO_CONTENT_PROTECTION_CAPS
;
1780 typedef struct D3D11_ENCRYPTED_BLOCK_INFO
1782 UINT NumEncryptedBytesAtBeginning
;
1783 UINT NumBytesInSkipPattern
;
1784 UINT NumBytesInEncryptPattern
;
1785 } D3D11_ENCRYPTED_BLOCK_INFO
;
1787 typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
1789 D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType
;
1793 UINT FirstMBaddress
;
1794 UINT NumMBsInBuffer
;
1801 BOOL PartialEncryption
;
1802 D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo
;
1803 } D3D11_VIDEO_DECODER_BUFFER_DESC
;
1805 typedef struct D3D11_VIDEO_DECODER_EXTENSION
1808 void *pPrivateInputData
;
1809 UINT PrivateInputDataSize
;
1810 void *pPrivateOutputData
;
1811 UINT PrivateOutputDataSize
;
1813 ID3D11Resource
**ppResourceList
;
1814 } D3D11_VIDEO_DECODER_EXTENSION
;
1816 typedef struct D3D11_VIDEO_COLOR_YCbCrA
1822 } D3D11_VIDEO_COLOR_YCbCrA
;
1824 typedef struct D3D11_VIDEO_COLOR_RGBA
1830 } D3D11_VIDEO_COLOR_RGBA
;
1832 typedef struct D3D11_VIDEO_COLOR
1836 D3D11_VIDEO_COLOR_YCbCrA YCbCr
;
1837 D3D11_VIDEO_COLOR_RGBA RGBA
;
1839 } D3D11_VIDEO_COLOR
;
1841 typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
1845 UINT YCbCr_Matrix
: 1;
1846 UINT YCbCr_xvYCC
: 1;
1847 UINT Nominal_Range
: 2;
1849 } D3D11_VIDEO_PROCESSOR_COLOR_SPACE
;
1851 typedef struct D3D11_VIDEO_PROCESSOR_STREAM
1855 UINT InputFrameOrField
;
1858 ID3D11VideoProcessorInputView
**ppPastSurfaces
;
1859 ID3D11VideoProcessorInputView
*pInputSurface
;
1860 ID3D11VideoProcessorInputView
**ppFutureSurfaces
;
1861 ID3D11VideoProcessorInputView
**ppPastSurfacesRight
;
1862 ID3D11VideoProcessorInputView
*pInputSurfaceRight
;
1863 ID3D11VideoProcessorInputView
**ppFutureSurfacesRight
;
1864 } D3D11_VIDEO_PROCESSOR_STREAM
;
1866 typedef struct D3D11_OMAC
1868 BYTE Omac
[D3D11_OMAC_SIZE
];
1871 typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
1876 UINT SequenceNumber
;
1878 } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
;
1880 typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
1884 } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
;
1886 typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
1889 UINT64 IAPrimitives
;
1890 UINT64 VSInvocations
;
1891 UINT64 GSInvocations
;
1892 UINT64 GSPrimitives
;
1893 UINT64 CInvocations
;
1895 UINT64 PSInvocations
;
1896 UINT64 HSInvocations
;
1897 UINT64 DSInvocations
;
1898 UINT64 CSInvocations
;
1899 } D3D11_QUERY_DATA_PIPELINE_STATISTICS
;
1904 uuid(1841e5c8
-16b0
-489b
-bcc8
-44cfb0d5deae
)
1906 interface ID3D11DeviceChild
: IUnknown
1909 [out] ID3D11Device
**ppDevice
);
1910 HRESULT GetPrivateData
(
1912 [in, out] UINT
*pDataSize
,
1914 HRESULT SetPrivateData
(
1917 [in] const void *pData
);
1918 HRESULT SetPrivateDataInterface
(
1920 [in] const IUnknown
*pData
);
1926 uuid(4b35d0cd
-1e15
-4258-9c98
-1b1333f6dd3b
)
1928 interface ID3D11Asynchronous
: ID3D11DeviceChild
1936 uuid(d6c00747
-87b7
-425e
-b84d
-44d108560afd
)
1938 interface ID3D11Query
: ID3D11Asynchronous
1941 [out] D3D11_QUERY_DESC
*pDesc
);
1947 uuid(dc8e63f3
-d12b
-4952-b47b
-5e45026a862d
)
1949 interface ID3D11Resource
: ID3D11DeviceChild
1952 [out] D3D11_RESOURCE_DIMENSION
*pResourceDimension
);
1953 void SetEvictionPriority
(
1954 [in] UINT EvictionPriority
);
1955 UINT GetEvictionPriority
();
1961 uuid(839d1216
-bb2e
-412b
-b7f4
-a9dbebe08ed1
)
1963 interface ID3D11View
: ID3D11DeviceChild
1966 [out] ID3D11Resource
**ppResource
);
1972 uuid(75b68faa
-347d
-4159-8f45
-a0640f01cd9a
)
1974 interface ID3D11BlendState
: ID3D11DeviceChild
1977 [out] D3D11_BLEND_DESC
*pDesc
);
1983 uuid(48570b85
-d1ee
-4fcd
-a250
-eb350722b037
)
1985 interface ID3D11Buffer
: ID3D11Resource
1988 [out] D3D11_BUFFER_DESC
*pDesc
);
1994 uuid(a6cd7faa
-b0b7
-4a2f
-9436-8662a65797cb
)
1996 interface ID3D11ClassInstance
: ID3D11DeviceChild
1998 void GetClassLinkage
(
1999 [out] ID3D11ClassLinkage
**ppLinkage
);
2001 [out] D3D11_CLASS_INSTANCE_DESC
*pDesc
);
2002 void GetInstanceName
(
2003 [out] LPSTR pInstanceName
,
2004 [in, out] SIZE_T
*pBufferLength
);
2006 [out] LPSTR pTypeName
,
2007 [in, out] SIZE_T
*pBufferLength
);
2013 uuid(ddf57cba
-9543-46e4
-a12b
-f207a0fe7fed
)
2015 interface ID3D11ClassLinkage
: ID3D11DeviceChild
2017 HRESULT GetClassInstance
(
2018 [in] LPCSTR pClassInstanceName
,
2019 [in] UINT InstanceIndex
,
2020 [out] ID3D11ClassInstance
**ppInstance
);
2021 HRESULT CreateClassInstance
(
2022 [in] LPCSTR pClassTypeName
,
2023 [in] UINT ConstantBufferOffset
,
2024 [in] UINT ConstantVectorOffset
,
2025 [in] UINT TextureOffset
,
2026 [in] UINT SamplerOffset
,
2027 [out] ID3D11ClassInstance
**ppInstance
);
2033 uuid(a24bc4d1
-769e-43f7
-8013-98ff566c18e2
)
2035 interface ID3D11CommandList
: ID3D11DeviceChild
2037 UINT GetContextFlags
();
2043 uuid(4f5b196e
-c2bd
-495e
-bd01
-1fded38e4969
)
2045 interface ID3D11ComputeShader
: ID3D11DeviceChild
2052 uuid(6e8c49fb
-a371
-4770-b440
-29086022b741
)
2054 interface ID3D11Counter
: ID3D11Asynchronous
2057 [out] D3D11_COUNTER_DESC
*pDesc
);
2063 uuid(03823efb
-8d8f
-4e1c
-9aa2
-f64bb2cbfdf1
)
2065 interface ID3D11DepthStencilState
: ID3D11DeviceChild
2068 [out] D3D11_DEPTH_STENCIL_DESC
*pDesc
);
2074 uuid(9fdac92a
-1876-48c3
-afad
-25b94f84a9b6
)
2076 interface ID3D11DepthStencilView
: ID3D11View
2079 [out] D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
);
2085 uuid(f582c508
-0f36
-490c
-9977-31eece268cfa
)
2087 interface ID3D11DomainShader
: ID3D11DeviceChild
2094 uuid(38325b96
-effb
-4022-ba02
-2e795b70275c
)
2096 interface ID3D11GeometryShader
: ID3D11DeviceChild
2103 uuid(8e5c6061
-628a
-4c8e
-8264
-bbe45cb3d5dd
)
2105 interface ID3D11HullShader
: ID3D11DeviceChild
2112 uuid(e4819ddc
-4cf0
-4025-bd26
-5de82a3e07b7
)
2114 interface ID3D11InputLayout
: ID3D11DeviceChild
2121 uuid(ea82e40d
-51dc
-4f33
-93d4
-db7c9125ae8c
)
2123 interface ID3D11PixelShader
: ID3D11DeviceChild
2130 uuid(9eb576dd
-9f77
-4d86
-81aa
-8bab5fe490e2
)
2132 interface ID3D11Predicate
: ID3D11Query
2139 uuid(9bb4ab81
-ab1a
-4d8f
-b506
-fc04200b6ee7
)
2141 interface ID3D11RasterizerState
: ID3D11DeviceChild
2144 [out] D3D11_RASTERIZER_DESC
*pDesc
);
2150 uuid(dfdba067
-0b8d
-4865-875b
-d7b4516cc164
)
2152 interface ID3D11RenderTargetView
: ID3D11View
2155 [out] D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
);
2161 uuid(da6fea51
-564c
-4487-9810-f0d0f9b4e3a5
)
2163 interface ID3D11SamplerState
: ID3D11DeviceChild
2166 [out] D3D11_SAMPLER_DESC
*pDesc
);
2172 uuid(b0e06fe0
-8192-4e1a
-b1ca
-36d7414710b2
)
2174 interface ID3D11ShaderResourceView
: ID3D11View
2177 [out] D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
);
2183 uuid(f8fb5c27
-c6b3
-4f75
-a4c8
-439af2ef564c
),
2185 interface ID3D11Texture1D
: ID3D11Resource
2188 [out] D3D11_TEXTURE1D_DESC
*pDesc
);
2194 uuid(6f15aaf2
-d208
-4e89
-9ab4
-489535d34f9c
)
2196 interface ID3D11Texture2D
: ID3D11Resource
2199 [out] D3D11_TEXTURE2D_DESC
*pDesc
);
2205 uuid(037e866e
-f56d
-4357-a8af
-9dabbe6e250e
)
2207 interface ID3D11Texture3D
: ID3D11Resource
2210 [out] D3D11_TEXTURE3D_DESC
*pDesc
);
2216 uuid(28acf509
-7f5c
-48f6
-8611-f316010a6380
)
2218 interface ID3D11UnorderedAccessView
: ID3D11View
2221 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
);
2227 uuid(3b301d64
-d678
-4289-8897-22f8928b72f3
)
2229 interface ID3D11VertexShader
: ID3D11DeviceChild
2236 uuid(c0bfa96c
-e089
-44fb
-8eaf
-26f8796190da
)
2238 interface ID3D11DeviceContext
: ID3D11DeviceChild
2240 void VSSetConstantBuffers
(
2241 [in] UINT StartSlot
,
2242 [in] UINT NumBuffers
,
2243 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2244 void PSSetShaderResources
(
2245 [in] UINT StartSlot
,
2247 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2249 [in] ID3D11PixelShader
*pPixelShader
,
2250 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2251 UINT NumClassInstances
);
2253 [in] UINT StartSlot
,
2254 [in] UINT NumSamplers
,
2255 [in] ID3D11SamplerState
*const *ppSamplers
);
2257 [in] ID3D11VertexShader
*pVertexShader
,
2258 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2259 UINT NumClassInstances
);
2261 [in] UINT IndexCount
,
2262 [in] UINT StartIndexLocation
,
2263 [in] INT BaseVertexLocation
);
2265 [in] UINT VertexCount
,
2266 [in] UINT StartVertexLocation
);
2268 [in] ID3D11Resource
*pResource
,
2269 [in] UINT Subresource
,
2270 [in] D3D11_MAP MapType
,
2272 [out] D3D11_MAPPED_SUBRESOURCE
*pMappedResource
);
2274 [in] ID3D11Resource
*pResource
,
2275 [in] UINT Subresource
);
2276 void PSSetConstantBuffers
(
2277 [in] UINT StartSlot
,
2278 [in] UINT NumBuffers
,
2279 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2280 void IASetInputLayout
(
2281 [in] ID3D11InputLayout
*pInputLayout
);
2282 void IASetVertexBuffers
(
2283 [in] UINT StartSlot
,
2284 [in] UINT NumBuffers
,
2285 [in] ID3D11Buffer
*const *ppVertexBuffers
,
2286 [in] const UINT
*pStrides
,
2287 [in] const UINT
*pOffsets
);
2288 void IASetIndexBuffer
(
2289 [in] ID3D11Buffer
*pIndexBuffer
,
2290 [in] DXGI_FORMAT Format
,
2292 void DrawIndexedInstanced
(
2293 [in] UINT IndexCountPerInstance
,
2294 [in] UINT InstanceCount
,
2295 [in] UINT StartIndexLocation
,
2296 [in] INT BaseVertexLocation
,
2297 [in] UINT StartInstanceLocation
);
2299 [in] UINT VertexCountPerInstance
,
2300 [in] UINT InstanceCount
,
2301 [in] UINT StartVertexLocation
,
2302 [in] UINT StartInstanceLocation
);
2303 void GSSetConstantBuffers
(
2304 [in] UINT StartSlot
,
2305 [in] UINT NumBuffers
,
2306 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2308 [in] ID3D11GeometryShader
*pShader
,
2309 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2310 UINT NumClassInstances
);
2311 void IASetPrimitiveTopology
(
2312 [in] D3D11_PRIMITIVE_TOPOLOGY Topology
);
2313 void VSSetShaderResources
(
2314 [in] UINT StartSlot
,
2316 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2318 [in] UINT StartSlot
,
2319 [in] UINT NumSamplers
,
2320 [in] ID3D11SamplerState
*const *ppSamplers
);
2322 [in] ID3D11Asynchronous
*pAsync
);
2324 [in] ID3D11Asynchronous
*pAsync
);
2326 [in] ID3D11Asynchronous
*pAsync
,
2329 [in] UINT GetDataFlags
);
2330 void SetPredication
(
2331 [in] ID3D11Predicate
*pPredicate
,
2332 [in] BOOL PredicateValue
);
2333 void GSSetShaderResources
(
2334 [in] UINT StartSlot
,
2336 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2338 [in] UINT StartSlot
,
2339 [in] UINT NumSamplers
,
2340 [in] ID3D11SamplerState
*const *ppSamplers
);
2341 void OMSetRenderTargets
(
2343 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
2344 [in] ID3D11DepthStencilView
*pDepthStencilView
);
2345 void OMSetRenderTargetsAndUnorderedAccessViews
(
2347 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
2348 [in] ID3D11DepthStencilView
*pDepthStencilView
,
2349 [in] UINT UAVStartSlot
,
2351 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
2352 [in] const UINT
*pUAVInitialCounts
);
2353 void OMSetBlendState
(
2354 [in] ID3D11BlendState
*pBlendState
,
2355 [in] const FLOAT BlendFactor
[4],
2356 [in] UINT SampleMask
);
2357 void OMSetDepthStencilState
(
2358 [in] ID3D11DepthStencilState
*pDepthStencilState
,
2359 [in] UINT StencilRef
);
2361 [in] UINT NumBuffers
,
2362 [in] ID3D11Buffer
*const *ppSOTargets
,
2363 [in] const UINT
*pOffsets
);
2365 void DrawIndexedInstancedIndirect
(
2366 [in] ID3D11Buffer
*pBufferForArgs
,
2367 [in] UINT AlignedByteOffsetForArgs
);
2368 void DrawInstancedIndirect
(
2369 [in] ID3D11Buffer
*pBufferForArgs
,
2370 [in] UINT AlignedByteOffsetForArgs
);
2372 [in] UINT ThreadGroupCountX
,
2373 [in] UINT ThreadGroupCountY
,
2374 [in] UINT ThreadGroupCountZ
);
2375 void DispatchIndirect
(
2376 [in] ID3D11Buffer
*pBufferForArgs
,
2377 [in] UINT AlignedByteOffsetForArgs
);
2379 [in] ID3D11RasterizerState
*pRasterizerState
);
2380 void RSSetViewports
(
2381 [in] UINT NumViewports
,
2382 [in] const D3D11_VIEWPORT
*pViewports
);
2383 void RSSetScissorRects
(
2385 [in] const D3D11_RECT
*pRects
);
2386 void CopySubresourceRegion
(
2387 [in] ID3D11Resource
*pDstResource
,
2388 [in] UINT DstSubresource
,
2392 [in] ID3D11Resource
*pSrcResource
,
2393 [in] UINT SrcSubresource
,
2394 [in] const D3D11_BOX
*pSrcBox
);
2396 [in] ID3D11Resource
*pDstResource
,
2397 [in] ID3D11Resource
*pSrcResource
);
2398 void UpdateSubresource
(
2399 [in] ID3D11Resource
*pDstResource
,
2400 [in] UINT DstSubresource
,
2401 [in] const D3D11_BOX
*pDstBox
,
2402 [in] const void *pSrcData
,
2403 [in] UINT SrcRowPitch
,
2404 [in] UINT SrcDepthPitch
);
2405 void CopyStructureCount
(
2406 [in] ID3D11Buffer
*pDstBuffer
,
2407 [in] UINT DstAlignedByteOffset
,
2408 [in] ID3D11UnorderedAccessView
*pSrcView
);
2409 void ClearRenderTargetView
(
2410 [in] ID3D11RenderTargetView
*pRenderTargetView
,
2411 [in] const FLOAT ColorRGBA
[4]);
2412 void ClearUnorderedAccessViewUint
(
2413 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
2414 [in] const UINT Values
[4]);
2415 void ClearUnorderedAccessViewFloat
(
2416 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
2417 [in] const FLOAT Values
[4]);
2418 void ClearDepthStencilView
(
2419 [in] ID3D11DepthStencilView
*pDepthStencilView
,
2420 [in] UINT ClearFlags
,
2422 [in] UINT8 Stencil
);
2424 [in] ID3D11ShaderResourceView
*pShaderResourceView
);
2425 void SetResourceMinLOD
(
2426 [in] ID3D11Resource
*pResource
, FLOAT MinLOD
);
2427 FLOAT GetResourceMinLOD
(
2428 [in] ID3D11Resource
*pResource
);
2429 void ResolveSubresource
(
2430 [in] ID3D11Resource
*pDstResource
,
2431 [in] UINT DstSubresource
,
2432 [in] ID3D11Resource
*pSrcResource
,
2433 [in] UINT SrcSubresource
,
2434 [in] DXGI_FORMAT Format
);
2435 void ExecuteCommandList
(
2436 [in] ID3D11CommandList
*pCommandList
,
2437 BOOL RestoreContextState
);
2438 void HSSetShaderResources
(
2439 [in] UINT StartSlot
,
2441 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2443 [in] ID3D11HullShader
*pHullShader
,
2444 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2445 UINT NumClassInstances
);
2447 [in] UINT StartSlot
,
2448 [in] UINT NumSamplers
,
2449 [in] ID3D11SamplerState
*const *ppSamplers
);
2450 void HSSetConstantBuffers
(
2451 [in] UINT StartSlot
,
2452 [in] UINT NumBuffers
,
2453 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2454 void DSSetShaderResources
(
2455 [in] UINT StartSlot
,
2457 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2459 [in] ID3D11DomainShader
*pDomainShader
,
2460 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2461 UINT NumClassInstances
);
2463 [in] UINT StartSlot
,
2464 [in] UINT NumSamplers
,
2465 [in] ID3D11SamplerState
*const *ppSamplers
);
2466 void DSSetConstantBuffers
(
2467 [in] UINT StartSlot
,
2468 [in] UINT NumBuffers
,
2469 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2470 void CSSetShaderResources
(
2471 [in] UINT StartSlot
,
2473 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
2474 void CSSetUnorderedAccessViews
(
2475 [in] UINT StartSlot
,
2477 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
2478 [in] const UINT
*pUAVInitialCounts
);
2480 [in] ID3D11ComputeShader
*pComputeShader
,
2481 [in] ID3D11ClassInstance
*const *ppClassInstances
,
2482 UINT NumClassInstances
);
2484 [in] UINT StartSlot
,
2485 [in] UINT NumSamplers
,
2486 [in] ID3D11SamplerState
*const *ppSamplers
);
2487 void CSSetConstantBuffers
(
2488 [in] UINT StartSlot
,
2489 [in] UINT NumBuffers
,
2490 [in] ID3D11Buffer
*const *ppConstantBuffers
);
2491 void VSGetConstantBuffers
(
2492 [in] UINT StartSlot
,
2493 [in] UINT NumBuffers
,
2494 [out] ID3D11Buffer
**ppConstantBuffers
);
2495 void PSGetShaderResources
(
2496 [in] UINT StartSlot
,
2498 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2500 [out] ID3D11PixelShader
**ppPixelShader
,
2501 [out] ID3D11ClassInstance
**ppClassInstances
,
2502 [in, out] UINT
*pNumClassInstances
);
2504 [in] UINT StartSlot
,
2505 [in] UINT NumSamplers
,
2506 [out] ID3D11SamplerState
**ppSamplers
);
2508 [out] ID3D11VertexShader
**ppVertexShader
,
2509 [out] ID3D11ClassInstance
**ppClassInstances
,
2510 [in, out] UINT
*pNumClassInstances
);
2511 void PSGetConstantBuffers
(
2512 [in] UINT StartSlot
,
2513 [in] UINT NumBuffers
,
2514 [out] ID3D11Buffer
**ppConstantBuffers
);
2515 void IAGetInputLayout
(
2516 [out] ID3D11InputLayout
**ppInputLayout
);
2517 void IAGetVertexBuffers
(
2518 [in] UINT StartSlot
,
2519 [in] UINT NumBuffers
,
2520 [out] ID3D11Buffer
**ppVertexBuffers
,
2521 [out] UINT
*pStrides
,
2522 [out] UINT
*pOffsets
);
2523 void IAGetIndexBuffer
(
2524 [out] ID3D11Buffer
**pIndexBuffer
,
2525 [out] DXGI_FORMAT
* Format
,
2526 [out] UINT
* Offset
);
2527 void GSGetConstantBuffers
(
2528 [in] UINT StartSlot
,
2529 [in] UINT NumBuffers
,
2530 [out] ID3D11Buffer
**ppConstantBuffers
);
2532 [out] ID3D11GeometryShader
**ppGeometryShader
,
2533 [out] ID3D11ClassInstance
**ppClassInstances
,
2534 [in, out] UINT
*pNumClassInstances
);
2535 void IAGetPrimitiveTopology
(
2536 [out] D3D11_PRIMITIVE_TOPOLOGY
*pTopology
);
2537 void VSGetShaderResources
(
2538 [in] UINT StartSlot
,
2540 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2542 [in] UINT StartSlot
,
2543 [in] UINT NumSamplers
,
2544 [out] ID3D11SamplerState
**ppSamplers
);
2545 void GetPredication
(
2546 [out] ID3D11Predicate
**ppPredicate
,
2547 [out] BOOL
*pPredicateValue
);
2548 void GSGetShaderResources
(
2549 [in] UINT StartSlot
,
2551 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2553 [in] UINT StartSlot
,
2554 [in] UINT NumSamplers
,
2555 [out] ID3D11SamplerState
**ppSamplers
);
2556 void OMGetRenderTargets
(
2558 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2559 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2560 void OMGetRenderTargetsAndUnorderedAccessViews
(
2562 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
2563 [out] ID3D11DepthStencilView
**ppDepthStencilView
,
2564 [in] UINT UAVStartSlot
,
2566 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2567 void OMGetBlendState
(
2568 [out] ID3D11BlendState
**ppBlendState
,
2569 [out] FLOAT BlendFactor
[4],
2570 [out] UINT
*pSampleMask
);
2571 void OMGetDepthStencilState
(
2572 [out] ID3D11DepthStencilState
**ppDepthStencilState
,
2573 [out] UINT
*pStencilRef
);
2575 [in] UINT NumBuffers
,
2576 [out] ID3D11Buffer
**ppSOTargets
);
2578 [out] ID3D11RasterizerState
**ppRasterizerState
);
2579 void RSGetViewports
(
2580 [in, out] UINT
*pNumViewports
,
2581 [out] D3D11_VIEWPORT
*pViewports
);
2582 void RSGetScissorRects
(
2583 [in, out] UINT
*pNumRects
,
2584 [out] D3D11_RECT
*pRects
);
2585 void HSGetShaderResources
(
2586 [in] UINT StartSlot
,
2588 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2590 [out] ID3D11HullShader
**ppHullShader
,
2591 [out] ID3D11ClassInstance
**ppClassInstances
,
2592 [in, out] UINT
*pNumClassInstances
);
2594 [in] UINT StartSlot
,
2595 [in] UINT NumSamplers
,
2596 [out] ID3D11SamplerState
**ppSamplers
);
2597 void HSGetConstantBuffers
(
2598 [in] UINT StartSlot
,
2599 [in] UINT NumBuffers
,
2600 [out] ID3D11Buffer
**ppConstantBuffers
);
2601 void DSGetShaderResources
(
2602 [in] UINT StartSlot
,
2604 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2606 [out] ID3D11DomainShader
**ppDomainShader
,
2607 [out] ID3D11ClassInstance
**ppClassInstances
,
2608 [in, out] UINT
*pNumClassInstances
);
2610 [in] UINT StartSlot
,
2611 [in] UINT NumSamplers
,
2612 [out] ID3D11SamplerState
**ppSamplers
);
2613 void DSGetConstantBuffers
(
2614 [in] UINT StartSlot
,
2615 [in] UINT NumBuffers
,
2616 [out] ID3D11Buffer
**ppConstantBuffers
);
2617 void CSGetShaderResources
(
2618 [in] UINT StartSlot
,
2620 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
2621 void CSGetUnorderedAccessViews
(
2622 [in] UINT StartSlot
,
2624 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
2626 [out] ID3D11ComputeShader
**ppComputeShader
,
2627 [out] ID3D11ClassInstance
**ppClassInstances
,
2628 [in, out] UINT
*pNumClassInstances
);
2630 [in] UINT StartSlot
,
2631 [in] UINT NumSamplers
,
2632 [out] ID3D11SamplerState
**ppSamplers
);
2633 void CSGetConstantBuffers
(
2634 [in] UINT StartSlot
,
2635 [in] UINT NumBuffers
,
2636 [out] ID3D11Buffer
**ppConstantBuffers
);
2639 D3D11_DEVICE_CONTEXT_TYPE GetType
();
2640 UINT GetContextFlags
();
2641 HRESULT FinishCommandList
(
2642 BOOL RestoreDeferredContextState
,
2643 [out] ID3D11CommandList
**ppCommandList
);
2648 uuid(3015a308
-dcbd
-47aa
-a747
-192486d14d4a
),
2650 pointer_default(unique)
2652 interface ID3D11AuthenticatedChannel
: ID3D11DeviceChild
2654 HRESULT GetCertificateSize
(
2655 UINT
*pCertificateSize
);
2656 HRESULT GetCertificate
(
2657 UINT CertificateSize
,
2658 BYTE *pCertificate
);
2659 void GetChannelHandle
(
2660 HANDLE *pChannelHandle
);
2665 uuid(9b32f9ad
-bdcc
-40a6
-a39d
-d5c865845720
),
2667 pointer_default(unique)
2669 interface ID3D11CryptoSession
: ID3D11DeviceChild
2673 void GetDecoderProfile
(
2674 GUID
*pDecoderProfile
);
2675 HRESULT GetCertificateSize
(
2676 UINT
*pCertificateSize
);
2677 HRESULT GetCertificate
(
2678 UINT CertificateSize
,
2679 BYTE *pCertificate
);
2680 void GetCryptoSessionHandle
(
2681 HANDLE *pCryptoSessionHandle
);
2686 uuid(3c9c5b51
-995d
-48d1
-9b8d
-fa5caeded65c
),
2688 pointer_default(unique)
2690 interface ID3D11VideoDecoder
: ID3D11DeviceChild
2692 HRESULT GetCreationParameters
(
2693 D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2694 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2695 HRESULT GetDriverHandle
(
2696 HANDLE *pDriverHandle
);
2701 uuid(31627037-53ab
-4200-9061-05faa9ab45f9
),
2703 pointer_default(unique)
2705 interface ID3D11VideoProcessorEnumerator
: ID3D11DeviceChild
2707 HRESULT GetVideoProcessorContentDesc
(
2708 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pContentDesc
);
2709 HRESULT CheckVideoProcessorFormat
(
2712 HRESULT GetVideoProcessorCaps
(
2713 D3D11_VIDEO_PROCESSOR_CAPS
*pCaps
);
2714 HRESULT GetVideoProcessorRateConversionCaps
(
2716 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2717 HRESULT GetVideoProcessorCustomRate
(
2719 UINT CustomRateIndex
,
2720 D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
*pRate
);
2721 HRESULT GetVideoProcessorFilterRange
(
2722 D3D11_VIDEO_PROCESSOR_FILTER Filter
,
2723 D3D11_VIDEO_PROCESSOR_FILTER_RANGE
*pRange
);
2728 uuid(1d7b0652
-185f
-41c6
-85ce
-0c5be3d4ae6c
),
2730 pointer_default(unique)
2732 interface ID3D11VideoProcessor
: ID3D11DeviceChild
2734 void GetContentDesc
(
2735 D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
);
2736 void GetRateConversionCaps
(
2737 D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
*pCaps
);
2742 uuid(c2931aea
-2a85
-4f20
-860f
-fba1fd256e18
),
2744 pointer_default(unique)
2746 interface ID3D11VideoDecoderOutputView
: ID3D11View
2749 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
);
2754 uuid(11ec5a5f
-51dc
-4945-ab34
-6e8c21300ea5
),
2756 pointer_default(unique)
2758 interface ID3D11VideoProcessorInputView
: ID3D11View
2761 D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
);
2766 uuid(a048285e
-25a9
-4527-bd93
-d68b68c44254
),
2768 pointer_default(unique)
2770 interface ID3D11VideoProcessorOutputView
: ID3D11View
2773 D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
);
2778 uuid(10ec4d5b
-975a
-4689-b9e4
-d0aac30fe333
),
2780 pointer_default(unique)
2782 interface ID3D11VideoDevice
: IUnknown
2784 HRESULT CreateVideoDecoder
(
2785 const D3D11_VIDEO_DECODER_DESC
*pVideoDesc
,
2786 const D3D11_VIDEO_DECODER_CONFIG
*pConfig
,
2787 ID3D11VideoDecoder
**ppDecoder
);
2788 HRESULT CreateVideoProcessor
(
2789 ID3D11VideoProcessorEnumerator
*pEnum
,
2790 UINT RateConversionIndex
,
2791 ID3D11VideoProcessor
**ppVideoProcessor
);
2792 HRESULT CreateAuthenticatedChannel
(
2793 D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType
,
2794 ID3D11AuthenticatedChannel
**ppAuthenticatedChannel
);
2795 HRESULT CreateCryptoSession
(
2796 const GUID
*pCryptoType
,
2797 const GUID
*pDecoderProfile
,
2798 const GUID
*pKeyExchangeType
,
2799 ID3D11CryptoSession
**ppCryptoSession
);
2800 HRESULT CreateVideoDecoderOutputView
(
2801 ID3D11Resource
*pResource
,
2802 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
*pDesc
,
2803 ID3D11VideoDecoderOutputView
**ppVDOVView
);
2804 HRESULT CreateVideoProcessorInputView
(
2805 ID3D11Resource
*pResource
,
2806 ID3D11VideoProcessorEnumerator
*pEnum
,
2807 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
*pDesc
,
2808 ID3D11VideoProcessorInputView
**ppVPIView
);
2809 HRESULT CreateVideoProcessorOutputView
(
2810 ID3D11Resource
*pResource
,
2811 ID3D11VideoProcessorEnumerator
*pEnum
,
2812 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
*pDesc
,
2813 ID3D11VideoProcessorOutputView
**ppVPOView
);
2814 HRESULT CreateVideoProcessorEnumerator
(
2815 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC
*pDesc
,
2816 ID3D11VideoProcessorEnumerator
**ppEnum
);
2817 UINT GetVideoDecoderProfileCount
();
2818 HRESULT GetVideoDecoderProfile
(
2820 GUID
*pDecoderProfile
);
2821 HRESULT CheckVideoDecoderFormat
(
2822 const GUID
*pDecoderProfile
,
2825 HRESULT GetVideoDecoderConfigCount
(
2826 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2828 HRESULT GetVideoDecoderConfig
(
2829 const D3D11_VIDEO_DECODER_DESC
*pDesc
,
2831 D3D11_VIDEO_DECODER_CONFIG
*pConfig
);
2832 HRESULT GetContentProtectionCaps
(
2833 const GUID
*pCryptoType
,
2834 const GUID
*pDecoderProfile
,
2835 D3D11_VIDEO_CONTENT_PROTECTION_CAPS
*pCaps
);
2836 HRESULT CheckCryptoKeyExchange
(
2837 const GUID
*pCryptoType
,
2838 const GUID
*pDecoderProfile
,
2840 GUID
*pKeyExchangeType
);
2841 HRESULT SetPrivateData
(
2845 HRESULT SetPrivateDataInterface
(
2847 const IUnknown
*pData
);
2852 uuid(61f21c45
-3c0e
-4a74
-9cea
-67100d9ad5e4
),
2854 pointer_default(unique)
2856 interface ID3D11VideoContext
: ID3D11DeviceChild
2858 HRESULT GetDecoderBuffer
(
2859 [in] ID3D11VideoDecoder
*decoder
,
2860 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
,
2861 [out] UINT
*buffer_size
,
2864 HRESULT ReleaseDecoderBuffer
(
2865 [in] ID3D11VideoDecoder
*decoder
,
2866 [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
2868 HRESULT DecoderBeginFrame
(
2869 [in] ID3D11VideoDecoder
*decoder
,
2870 [in] ID3D11VideoDecoderOutputView
*view
,
2872 [in] const void *key
2874 HRESULT DecoderEndFrame
(
2875 [in] ID3D11VideoDecoder
*decoder
2877 HRESULT SubmitDecoderBuffers
(
2878 [in] ID3D11VideoDecoder
*decoder
,
2879 [in] UINT buffers_count
,
2880 [in] const D3D11_VIDEO_DECODER_BUFFER_DESC
*buffer_desc
2882 HRESULT DecoderExtension
(
2883 [in] ID3D11VideoDecoder
*decoder
,
2884 [in] const D3D11_VIDEO_DECODER_EXTENSION
*extension
2886 void VideoProcessorSetOutputTargetRect
(
2887 [in] ID3D11VideoProcessor
*processor
,
2889 [in] const RECT
*rect
2891 void VideoProcessorSetOutputBackgroundColor
(
2892 [in] ID3D11VideoProcessor
*processor
,
2894 [in] const D3D11_VIDEO_COLOR
*color
2896 void VideoProcessorSetOutputColorSpace
(
2897 [in] ID3D11VideoProcessor
*processor
,
2898 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2900 void VideoProcessorSetOutputAlphaFillMode
(
2901 [in] ID3D11VideoProcessor
*processor
,
2902 [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode
,
2903 [in] UINT stream_idx
2905 void VideoProcessorSetOutputConstriction
(
2906 [in] ID3D11VideoProcessor
*processor
,
2910 void VideoProcessorSetOutputStereoMode
(
2911 [in] ID3D11VideoProcessor
*processor
,
2914 HRESULT VideoProcessorSetOutputExtension
(
2915 [in] ID3D11VideoProcessor
*processor
,
2916 [in] const GUID
*guid
,
2917 [in] UINT data_size
,
2920 void VideoProcessorGetOutputTargetRect
(
2921 [in] ID3D11VideoProcessor
*processor
,
2922 [out] BOOL
*enabled
,
2925 void VideoProcessorGetOutputBackgroundColor
(
2926 [in] ID3D11VideoProcessor
*processor
,
2927 [out] BOOL
*y_cb_cr
,
2928 [out] D3D11_VIDEO_COLOR
*color
2930 void VideoProcessorGetOutputColorSpace
(
2931 [in] ID3D11VideoProcessor
*processor
,
2932 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2934 void VideoProcessorGetOutputAlphaFillMode
(
2935 [in] ID3D11VideoProcessor
*processor
,
2936 [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
*alpha_fill_mode
,
2937 [out] UINT
*stream_idx
2939 void VideoProcessorGetOutputConstriction
(
2940 [in] ID3D11VideoProcessor
*processor
,
2941 [out] BOOL
*enabled
,
2944 void VideoProcessorGetOutputStereoMode
(
2945 [in] ID3D11VideoProcessor
*processor
,
2948 HRESULT VideoProcessorGetOutputExtension
(
2949 [in] ID3D11VideoProcessor
*processor
,
2950 [in] const GUID
*guid
,
2951 [in] UINT data_size
,
2954 void VideoProcessorSetStreamFrameFormat
(
2955 [in] ID3D11VideoProcessor
*processor
,
2956 [in] UINT stream_idx
,
2957 [in] D3D11_VIDEO_FRAME_FORMAT format
2959 void VideoProcessorSetStreamColorSpace
(
2960 [in] ID3D11VideoProcessor
*processor
,
2961 [in] UINT stream_idx
,
2962 [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
2964 void VideoProcessorSetStreamOutputRate
(
2965 [in] ID3D11VideoProcessor
*processor
,
2966 [in] UINT stream_idx
,
2967 [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate
,
2969 [in] const DXGI_RATIONAL
*custom_rate
2971 void VideoProcessorSetStreamSourceRect
(
2972 [in] ID3D11VideoProcessor
*processor
,
2973 [in] UINT stream_idx
,
2975 [in] const RECT
*rect
2977 void VideoProcessorSetStreamDestRect
(
2978 [in] ID3D11VideoProcessor
*processor
,
2979 [in] UINT stream_idx
,
2981 [in] const RECT
*rect
2983 void VideoProcessorSetStreamAlpha
(
2984 [in] ID3D11VideoProcessor
*processor
,
2985 [in] UINT stream_idx
,
2989 void VideoProcessorSetStreamPalette
(
2990 [in] ID3D11VideoProcessor
*processor
,
2991 [in] UINT stream_idx
,
2992 [in] UINT entry_count
,
2993 [in] const UINT
*entries
2995 void VideoProcessorSetStreamPixelAspectRatio
(
2996 [in] ID3D11VideoProcessor
*processor
,
2997 [in] UINT stream_idx
,
2999 [in] const DXGI_RATIONAL
*src_aspect_ratio
,
3000 [in] const DXGI_RATIONAL
*dst_aspect_ratio
3002 void VideoProcessorSetStreamLumaKey
(
3003 [in] ID3D11VideoProcessor
*processor
,
3004 [in] UINT stream_idx
,
3009 void VideoProcessorSetStreamStereoFormat
(
3010 [in] ID3D11VideoProcessor
*processor
,
3011 [in] UINT stream_idx
,
3013 [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format
,
3014 [in] BOOL left_view_frame0
,
3015 [in] BOOL base_view_frame0
,
3016 [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode
,
3017 [in] int mono_offset
3019 void VideoProcessorSetStreamAutoProcessingMode
(
3020 [in] ID3D11VideoProcessor
*processor
,
3021 [in] UINT stream_idx
,
3024 void VideoProcessorSetStreamFilter
(
3025 [in] ID3D11VideoProcessor
*processor
,
3026 [in] UINT stream_idx
,
3027 [in] D3D11_VIDEO_PROCESSOR_FILTER filter
,
3031 HRESULT VideoProcessorSetStreamExtension
(
3032 [in] ID3D11VideoProcessor
*processor
,
3033 [in] UINT stream_idx
,
3034 [in] const GUID
*guid
,
3035 [in] UINT data_size
,
3038 void VideoProcessorGetStreamFrameFormat
(
3039 [in] ID3D11VideoProcessor
*processor
,
3040 [in] UINT stream_idx
,
3041 [out] D3D11_VIDEO_FRAME_FORMAT
*format
3043 void VideoProcessorGetStreamColorSpace
(
3044 [in] ID3D11VideoProcessor
*processor
,
3045 [in] UINT stream_idx
,
3046 [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE
*color_space
3048 void VideoProcessorGetStreamOutputRate
(
3049 [in] ID3D11VideoProcessor
*processor
,
3050 [in] UINT stream_idx
,
3051 [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
*rate
,
3053 [out] DXGI_RATIONAL
*custom_rate
3055 void VideoProcessorGetStreamSourceRect
(
3056 [in] ID3D11VideoProcessor
*processor
,
3057 [in] UINT stream_idx
,
3058 [out] BOOL
*enabled
,
3061 void VideoProcessorGetStreamDestRect
(
3062 [in] ID3D11VideoProcessor
*processor
,
3063 [in] UINT stream_idx
,
3064 [out] BOOL
*enabled
,
3067 void VideoProcessorGetStreamAlpha
(
3068 [in] ID3D11VideoProcessor
*processor
,
3069 [in] UINT stream_idx
,
3070 [out] BOOL
*enabled
,
3073 void VideoProcessorGetStreamPalette
(
3074 [in] ID3D11VideoProcessor
*processor
,
3075 [in] UINT stream_idx
,
3076 [in] UINT entry_count
,
3079 void VideoProcessorGetStreamPixelAspectRatio
(
3080 [in] ID3D11VideoProcessor
*processor
,
3081 [in] UINT stream_idx
,
3082 [out] BOOL
*enabled
,
3083 [out] DXGI_RATIONAL
*src_aspect_ratio
,
3084 [out] DXGI_RATIONAL
*dst_aspect_ratio
3086 void VideoProcessorGetStreamLumaKey
(
3087 [in] ID3D11VideoProcessor
*processor
,
3088 [in] UINT stream_idx
,
3089 [out] BOOL
*enabled
,
3093 void VideoProcessorGetStreamStereoFormat
(
3094 [in] ID3D11VideoProcessor
*processor
,
3095 [in] UINT stream_idx
,
3096 [out] BOOL
*enabled
,
3097 [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
*format
,
3098 [out] BOOL
*left_view_frame0
,
3099 [out] BOOL
*base_view_frame0
,
3100 [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
*flip_mode
,
3101 [out] int *mono_offset
3103 void VideoProcessorGetStreamAutoProcessingMode
(
3104 [in] ID3D11VideoProcessor
*processor
,
3105 [in] UINT stream_idx
,
3108 void VideoProcessorGetStreamFilter
(
3109 [in] ID3D11VideoProcessor
*processor
,
3110 [in] UINT stream_idx
,
3111 [in] D3D11_VIDEO_PROCESSOR_FILTER filter
,
3112 [out] BOOL
*enabled
,
3115 HRESULT VideoProcessorGetStreamExtension
(
3116 [in] ID3D11VideoProcessor
*processor
,
3117 [in] UINT stream_idx
,
3118 [in] const GUID
*guid
,
3119 [in] UINT data_size
,
3122 HRESULT VideoProcessorBlt
(
3123 [in] ID3D11VideoProcessor
*processor
,
3124 [in] ID3D11VideoProcessorOutputView
*view
,
3125 [in] UINT frame_idx
,
3126 [in] UINT stream_count
,
3127 [in] const D3D11_VIDEO_PROCESSOR_STREAM
*streams
3129 HRESULT NegotiateCryptoSessionKeyExchange
(
3130 [in] ID3D11CryptoSession
*session
,
3131 [in] UINT data_size
,
3132 [in, out] void *data
3135 [in] ID3D11CryptoSession
*session
,
3136 [in] ID3D11Texture2D
*src_surface
,
3137 [in] ID3D11Texture2D
*dst_surface
,
3142 [in] ID3D11CryptoSession
*session
,
3143 [in] ID3D11Texture2D
*src_surface
,
3144 [in] ID3D11Texture2D
*dst_surface
,
3145 [in] D3D11_ENCRYPTED_BLOCK_INFO
*block_info
,
3147 [in] const void *key
,
3151 void StartSessionKeyRefresh
(
3152 [in] ID3D11CryptoSession
*session
,
3153 [in] UINT random_number_size
,
3154 [out] void *random_number
3156 void FinishSessionKeyRefresh
(
3157 [in] ID3D11CryptoSession
*session
3159 HRESULT GetEncryptionBltKey
(
3160 [in] ID3D11CryptoSession
*session
,
3164 HRESULT NegotiateAuthenticatedChannelKeyExchange
(
3165 [in] ID3D11AuthenticatedChannel
*channel
,
3166 [in] UINT data_size
,
3167 [in, out] void *data
3169 HRESULT QueryAuthenticatedChannel
(
3170 [in] ID3D11AuthenticatedChannel
*channel
,
3171 [in] UINT input_size
,
3172 [in] const void *input
,
3173 [in] UINT output_size
,
3176 HRESULT ConfigureAuthenticatedChannel
(
3177 [in] ID3D11AuthenticatedChannel
*channel
,
3178 [in] UINT input_size
,
3179 [in] const void *input
,
3180 [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
*output
3182 void VideoProcessorSetStreamRotation
(
3183 [in] ID3D11VideoProcessor
*processor
,
3184 [in] UINT stream_idx
,
3186 [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
3188 void VideoProcessorGetStreamRotation
(
3189 [in] ID3D11VideoProcessor
*processor
,
3190 [in] UINT stream_idx
,
3192 [out] D3D11_VIDEO_PROCESSOR_ROTATION
*rotation
3199 uuid(db6f6ddb
-ac77
-4e88
-8253-819df9bbf140
)
3201 interface ID3D11Device
: IUnknown
3203 HRESULT CreateBuffer
(
3204 [in] const D3D11_BUFFER_DESC
*pDesc
,
3205 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3206 [out] ID3D11Buffer
**ppBuffer
);
3207 HRESULT CreateTexture1D
(
3208 [in] const D3D11_TEXTURE1D_DESC
*pDesc
,
3209 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3210 [out] ID3D11Texture1D
**ppTexture1D
);
3211 HRESULT CreateTexture2D
(
3212 [in] const D3D11_TEXTURE2D_DESC
*pDesc
,
3213 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3214 [out] ID3D11Texture2D
**ppTexture2D
);
3215 HRESULT CreateTexture3D
(
3216 [in] const D3D11_TEXTURE3D_DESC
*pDesc
,
3217 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
3218 [out] ID3D11Texture3D
**ppTexture3D
);
3219 HRESULT CreateShaderResourceView
(
3220 [in] ID3D11Resource
*pResource
,
3221 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
,
3222 [out] ID3D11ShaderResourceView
**ppSRView
);
3223 HRESULT CreateUnorderedAccessView
(
3224 [in] ID3D11Resource
*pResource
,
3225 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
,
3226 [out] ID3D11UnorderedAccessView
**ppUAView
);
3227 HRESULT CreateRenderTargetView
(
3228 [in] ID3D11Resource
*pResource
,
3229 [in] const D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
,
3230 [out] ID3D11RenderTargetView
**ppRTView
);
3231 HRESULT CreateDepthStencilView
(
3232 [in] ID3D11Resource
*pResource
,
3233 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
,
3234 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
3235 HRESULT CreateInputLayout
(
3236 [in] const D3D11_INPUT_ELEMENT_DESC
*pInputElementDescs
,
3237 [in] UINT NumElements
,
3238 [in] const void *pShaderBytecodeWithInputSignature
,
3239 [in] SIZE_T BytecodeLength
,
3240 [out] ID3D11InputLayout
**ppInputLayout
);
3241 HRESULT CreateVertexShader
(
3242 [in] const void *pShaderBytecode
,
3243 [in] SIZE_T BytecodeLength
,
3244 [in] ID3D11ClassLinkage
*pClassLinkage
,
3245 [out] ID3D11VertexShader
**ppVertexShader
);
3246 HRESULT CreateGeometryShader
(
3247 [in] const void *pShaderBytecode
,
3248 [in] SIZE_T BytecodeLength
,
3249 [in] ID3D11ClassLinkage
*pClassLinkage
,
3250 [out] ID3D11GeometryShader
**ppGeometryShader
);
3251 HRESULT CreateGeometryShaderWithStreamOutput
(
3252 [in] const void *pShaderBytecode
,
3253 [in] SIZE_T BytecodeLength
,
3254 [in] const D3D11_SO_DECLARATION_ENTRY
*pSODeclaration
,
3255 [in] UINT NumEntries
,
3256 [in] const UINT
*pBufferStrides
,
3257 [in] UINT NumStrides
,
3258 [in] UINT RasterizedStream
,
3259 [in] ID3D11ClassLinkage
*pClassLinkage
,
3260 [out] ID3D11GeometryShader
**ppGeometryShader
);
3261 HRESULT CreatePixelShader
(
3262 [in] const void *pShaderBytecode
,
3263 [in] SIZE_T BytecodeLength
,
3264 [in] ID3D11ClassLinkage
*pClassLinkage
,
3265 [out] ID3D11PixelShader
**ppPixelShader
);
3266 HRESULT CreateHullShader
(
3267 [in] const void *pShaderBytecode
,
3268 [in] SIZE_T BytecodeLength
,
3269 [in] ID3D11ClassLinkage
*pClassLinkage
,
3270 [out] ID3D11HullShader
**ppHullShader
);
3271 HRESULT CreateDomainShader
(
3272 [in] const void *pShaderBytecode
,
3273 [in] SIZE_T BytecodeLength
,
3274 [in] ID3D11ClassLinkage
*pClassLinkage
,
3275 [out] ID3D11DomainShader
**ppDomainShader
);
3276 HRESULT CreateComputeShader
(
3277 [in] const void *pShaderBytecode
,
3278 [in] SIZE_T BytecodeLength
,
3279 [in] ID3D11ClassLinkage
*pClassLinkage
,
3280 [out] ID3D11ComputeShader
**ppComputeShader
);
3281 HRESULT CreateClassLinkage
(
3282 [out] ID3D11ClassLinkage
**ppLinkage
);
3283 HRESULT CreateBlendState
(
3284 [in] const D3D11_BLEND_DESC
*pBlendStateDesc
,
3285 [out] ID3D11BlendState
**ppBlendState
);
3286 HRESULT CreateDepthStencilState
(
3287 [in] const D3D11_DEPTH_STENCIL_DESC
*pDepthStencilDesc
,
3288 [out] ID3D11DepthStencilState
**ppDepthStencilState
);
3289 HRESULT CreateRasterizerState
(
3290 [in] const D3D11_RASTERIZER_DESC
*pRasterizerDesc
,
3291 [out] ID3D11RasterizerState
**ppRasterizerState
);
3292 HRESULT CreateSamplerState
(
3293 [in] const D3D11_SAMPLER_DESC
*pSamplerDesc
,
3294 [out] ID3D11SamplerState
**ppSamplerState
);
3295 HRESULT CreateQuery
(
3296 [in] const D3D11_QUERY_DESC
*pQueryDesc
,
3297 [out] ID3D11Query
**ppQuery
);
3298 HRESULT CreatePredicate
(
3299 [in] const D3D11_QUERY_DESC
*pPredicateDesc
,
3300 [out] ID3D11Predicate
**ppPredicate
);
3301 HRESULT CreateCounter
(
3302 [in] const D3D11_COUNTER_DESC
*pCounterDesc
,
3303 [out] ID3D11Counter
**ppCounter
);
3304 HRESULT CreateDeferredContext
(
3306 [out] ID3D11DeviceContext
**ppDeferredContext
);
3307 HRESULT OpenSharedResource
(
3308 [in] HANDLE hResource
,
3309 [in] REFIID ReturnedInterface
,
3310 [out] void **ppResource
);
3311 HRESULT CheckFormatSupport
(
3312 [in] DXGI_FORMAT Format
,
3313 [out] UINT
*pFormatSupport
);
3314 HRESULT CheckMultisampleQualityLevels
(
3315 [in] DXGI_FORMAT Format
,
3316 [in] UINT SampleCount
,
3317 [out] UINT
*pNumQualityLevels
);
3318 void CheckCounterInfo
(
3319 [out] D3D11_COUNTER_INFO
*pCounterInfo
);
3320 HRESULT CheckCounter
(
3321 [in] const D3D11_COUNTER_DESC
*pDesc
,
3322 [out] D3D11_COUNTER_TYPE
*pType
,
3323 [out] UINT
*pActiveCounters
,
3325 [in, out] UINT
*pNameLength
,
3326 [out] LPSTR szUnits
,
3327 [in, out] UINT
*pUnitsLength
,
3328 [out] LPSTR szDescription
,
3329 [in, out] UINT
*pDescriptionLength
);
3330 HRESULT CheckFeatureSupport
(
3331 D3D11_FEATURE Feature
,
3332 [out] void *pFeatureSupportData
,
3333 UINT FeatureSupportDataSize
);
3334 HRESULT GetPrivateData
(
3336 [in, out] UINT
*pDataSize
,
3338 HRESULT SetPrivateData
(
3341 [in] const void *pData
);
3342 HRESULT SetPrivateDataInterface
(
3344 [in] const IUnknown
*pData
);
3345 D3D_FEATURE_LEVEL GetFeatureLevel
();
3346 UINT GetCreationFlags
();
3347 HRESULT GetDeviceRemovedReason
();
3348 void GetImmediateContext
(
3349 [out] ID3D11DeviceContext
**ppImmediateContext
);
3350 HRESULT SetExceptionMode
(UINT RaiseFlags
);
3351 UINT GetExceptionMode
();
3354 typedef enum D3D11_CREATE_DEVICE_FLAG
{
3355 D3D11_CREATE_DEVICE_SINGLETHREADED
= 0x0001,
3356 D3D11_CREATE_DEVICE_DEBUG
= 0x0002,
3357 D3D11_CREATE_DEVICE_SWITCH_TO_REF
= 0x0004,
3358 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
= 0x0008,
3359 D3D11_CREATE_DEVICE_BGRA_SUPPORT
= 0x0020,
3360 D3D11_CREATE_DEVICE_DEBUGGABLE
= 0x0040,
3361 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY
= 0x0080,
3362 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT
= 0x0100,
3363 D3D11_CREATE_DEVICE_VIDEO_SUPPORT
= 0x0800
3364 } D3D11_CREATE_DEVICE_FLAG
;
3366 const UINT D3D11_SDK_VERSION
= 7;
3368 cpp_quote
("#include <d3d10_1.h>")
3369 cpp_quote
("#ifndef D3D11_IGNORE_SDK_LAYERS")
3370 cpp_quote
("# include <d3d11sdklayers.h>")
3372 cpp_quote
("#include <d3d10misc.h>")
3373 cpp_quote
("#include <d3d10shader.h>")
3374 cpp_quote
("#include <d3d10effect.h>")
3375 cpp_quote
("#include <d3d10_1shader.h>")
3377 const UINT _FACD3D11
= 0x87c;
3378 cpp_quote
("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
3380 cpp_quote
("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3381 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3383 cpp_quote
("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
3384 cpp_quote
(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3386 cpp_quote
("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
3387 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
3388 cpp_quote
(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
3390 [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain
(IDXGIAdapter
*adapter
, D3D_DRIVER_TYPE driver_type
,
3391 HMODULE swrast
, UINT flags
, const D3D_FEATURE_LEVEL
*feature_levels
, UINT levels
, UINT sdk_version
,
3392 const DXGI_SWAP_CHAIN_DESC
*swapchain_desc
, IDXGISwapChain
**swapchain
, ID3D11Device
**device
,
3393 D3D_FEATURE_LEVEL
*obtained_feature_level
, ID3D11DeviceContext
**immediate_context
);