gdiplus: Don't use CoCreateInstance in decode_image_wic.
[wine.git] / include / d3d11.idl
blobe472944c97c12915ce0ffbf38b6900e246b93fde
1 /*
2 * Copyright 2010 Rico Schüller
3 * Copyright 2013 Austin English
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 import "oaidl.idl";
21 import "ocidl.idl";
22 import "dxgi.idl";
23 import "d3dcommon.idl";
25 typedef D3D_PRIMITIVE D3D11_PRIMITIVE;
26 typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY;
27 typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION;
28 typedef RECT D3D11_RECT;
30 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
31 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
32 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
33 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
34 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
35 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
36 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
37 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
38 const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
39 const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
40 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
41 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
42 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
43 const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
44 const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
45 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
46 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
47 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
48 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
49 const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
50 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
51 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
52 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
53 const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
54 const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
55 const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
56 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
57 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
58 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
59 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
60 const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
61 const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
62 const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
63 const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
64 const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
66 const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
67 cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
68 const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
69 cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
70 const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
71 const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
72 const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
73 const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
74 const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
75 const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
76 cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
77 const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
78 const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
79 const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
80 const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
81 const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
82 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
83 cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
84 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
85 const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
86 const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
88 cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
90 const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
92 const UINT D3D11_MAX_MAXANISOTROPY = 16;
93 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
94 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
95 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
96 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
97 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
98 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
99 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
100 const UINT D3D11_SHADER_MAX_TYPES = 65535;
101 const UINT D3D11_SHADER_MINOR_VERSION = 0;
102 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
104 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
105 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
106 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
107 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
108 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
109 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
110 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
111 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
112 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
113 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
114 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
115 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
116 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
117 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
118 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
119 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
120 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
121 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
122 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
123 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
124 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
125 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
126 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
128 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
130 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
131 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
132 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
133 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
134 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
135 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
136 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
137 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
138 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
139 const UINT D3D11_REQ_MAXANISOTROPY = 16;
140 const UINT D3D11_REQ_MIP_LEVELS = 15;
141 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
142 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
143 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
144 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
145 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
146 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
147 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
148 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
149 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
150 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
151 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
152 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
153 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
154 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
156 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
158 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
159 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
161 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
162 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
163 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
164 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
165 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
166 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
167 const UINT D3D11_SO_STREAM_COUNT = 4;
169 const UINT D3D11_SPEC_DATE_DAY = 16;
170 const UINT D3D11_SPEC_DATE_MONTH = 05;
171 const UINT D3D11_SPEC_DATE_YEAR = 2011;
173 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
174 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
175 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
176 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
177 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
178 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
179 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
180 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
182 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
183 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
184 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
185 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
186 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
187 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
188 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
189 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
191 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
192 cpp_quote("struct CD3D11_DEFAULT {};")
193 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
194 cpp_quote("#endif")
196 typedef enum D3D11_BLEND
198 D3D11_BLEND_ZERO = 1,
199 D3D11_BLEND_ONE = 2,
200 D3D11_BLEND_SRC_COLOR = 3,
201 D3D11_BLEND_INV_SRC_COLOR = 4,
202 D3D11_BLEND_SRC_ALPHA = 5,
203 D3D11_BLEND_INV_SRC_ALPHA = 6,
204 D3D11_BLEND_DEST_ALPHA = 7,
205 D3D11_BLEND_INV_DEST_ALPHA = 8,
206 D3D11_BLEND_DEST_COLOR = 9,
207 D3D11_BLEND_INV_DEST_COLOR = 10,
208 D3D11_BLEND_SRC_ALPHA_SAT = 11,
209 D3D11_BLEND_BLEND_FACTOR = 14,
210 D3D11_BLEND_INV_BLEND_FACTOR = 15,
211 D3D11_BLEND_SRC1_COLOR = 16,
212 D3D11_BLEND_INV_SRC1_COLOR = 17,
213 D3D11_BLEND_SRC1_ALPHA = 18,
214 D3D11_BLEND_INV_SRC1_ALPHA = 19,
215 } D3D11_BLEND;
217 typedef enum D3D11_BLEND_OP
219 D3D11_BLEND_OP_ADD = 1,
220 D3D11_BLEND_OP_SUBTRACT,
221 D3D11_BLEND_OP_REV_SUBTRACT,
222 D3D11_BLEND_OP_MIN,
223 D3D11_BLEND_OP_MAX
224 } D3D11_BLEND_OP;
226 typedef struct D3D11_BOX
228 UINT left;
229 UINT top;
230 UINT front;
231 UINT right;
232 UINT bottom;
233 UINT back;
234 } D3D11_BOX;
236 typedef struct D3D11_BUFFER_RTV
238 union
240 UINT FirstElement;
241 UINT ElementOffset;
243 union
245 UINT NumElements;
246 UINT ElementWidth;
248 } D3D11_BUFFER_RTV;
250 typedef struct D3D11_BUFFER_SRV
252 union
254 UINT FirstElement;
255 UINT ElementOffset;
257 union
259 UINT NumElements;
260 UINT ElementWidth;
262 } D3D11_BUFFER_SRV;
264 typedef struct D3D11_BUFFER_UAV
266 UINT FirstElement;
267 UINT NumElements;
268 UINT Flags;
269 } D3D11_BUFFER_UAV;
271 typedef struct D3D11_BUFFEREX_SRV
273 UINT FirstElement;
274 UINT NumElements;
275 UINT Flags;
276 } D3D11_BUFFEREX_SRV;
278 typedef struct D3D11_CLASS_INSTANCE_DESC
280 UINT InstanceId;
281 UINT InstanceIndex;
282 UINT TypeId;
283 UINT ConstantBuffer;
284 UINT BaseConstantBufferOffset;
285 UINT BaseTexture;
286 UINT BaseSampler;
287 BOOL Created;
288 } D3D11_CLASS_INSTANCE_DESC;
290 typedef enum D3D11_COMPARISON_FUNC
292 D3D11_COMPARISON_NEVER = 1,
293 D3D11_COMPARISON_LESS,
294 D3D11_COMPARISON_EQUAL,
295 D3D11_COMPARISON_LESS_EQUAL,
296 D3D11_COMPARISON_GREATER,
297 D3D11_COMPARISON_NOT_EQUAL,
298 D3D11_COMPARISON_GREATER_EQUAL,
299 D3D11_COMPARISON_ALWAYS
300 } D3D11_COMPARISON_FUNC;
302 typedef enum D3D11_COUNTER
304 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
305 } D3D11_COUNTER;
307 typedef struct D3D11_COUNTER_DESC
309 D3D11_COUNTER Counter;
310 UINT MiscFlags;
311 } D3D11_COUNTER_DESC;
313 typedef struct D3D11_COUNTER_INFO
315 D3D11_COUNTER LastDeviceDependentCounter;
316 UINT NumSimultaneousCounters;
317 UINT8 NumDetectableParallelUnits;
318 } D3D11_COUNTER_INFO;
320 typedef enum D3D11_COUNTER_TYPE
322 D3D11_COUNTER_TYPE_FLOAT32,
323 D3D11_COUNTER_TYPE_UINT16,
324 D3D11_COUNTER_TYPE_UINT32,
325 D3D11_COUNTER_TYPE_UINT64,
326 } D3D11_COUNTER_TYPE;
328 typedef enum D3D11_CULL_MODE
330 D3D11_CULL_NONE = 1,
331 D3D11_CULL_FRONT,
332 D3D11_CULL_BACK
333 } D3D11_CULL_MODE;
335 typedef enum D3D11_DEPTH_WRITE_MASK
337 D3D11_DEPTH_WRITE_MASK_ZERO,
338 D3D11_DEPTH_WRITE_MASK_ALL,
339 } D3D11_DEPTH_WRITE_MASK;
341 typedef enum D3D11_DEVICE_CONTEXT_TYPE
343 D3D11_DEVICE_CONTEXT_IMMEDIATE,
344 D3D11_DEVICE_CONTEXT_DEFERRED,
345 } D3D11_DEVICE_CONTEXT_TYPE;
347 typedef enum D3D11_DSV_DIMENSION
349 D3D11_DSV_DIMENSION_UNKNOWN,
350 D3D11_DSV_DIMENSION_TEXTURE1D,
351 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
352 D3D11_DSV_DIMENSION_TEXTURE2D,
353 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
354 D3D11_DSV_DIMENSION_TEXTURE2DMS,
355 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
356 } D3D11_DSV_DIMENSION;
358 typedef enum D3D11_FEATURE
360 D3D11_FEATURE_THREADING,
361 D3D11_FEATURE_DOUBLES,
362 D3D11_FEATURE_FORMAT_SUPPORT,
363 D3D11_FEATURE_FORMAT_SUPPORT2,
364 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
365 } D3D11_FEATURE;
367 typedef enum D3D11_FILL_MODE
369 D3D11_FILL_WIREFRAME = 2,
370 D3D11_FILL_SOLID
371 } D3D11_FILL_MODE;
373 typedef enum D3D11_FILTER_TYPE
375 D3D11_FILTER_TYPE_POINT = 0,
376 D3D11_FILTER_TYPE_LINEAR = 1
377 } D3D11_FILTER_TYPE;
379 const UINT D3D11_MIN_FILTER_SHIFT = 4;
380 const UINT D3D11_MAG_FILTER_SHIFT = 2;
381 const UINT D3D11_MIP_FILTER_SHIFT = 0;
382 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
383 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
384 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
386 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
387 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
388 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
389 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
390 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
392 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
393 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
394 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
395 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
397 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
398 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
400 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
401 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
403 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
404 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
406 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
408 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
409 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
410 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
411 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
412 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
414 typedef enum D3D11_FILTER
416 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
417 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
418 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
419 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
420 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
421 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
422 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
423 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
424 D3D11_FILTER_ANISOTROPIC = 0x55,
425 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
426 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
427 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
428 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
429 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
430 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
431 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
432 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
433 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
434 } D3D11_FILTER;
436 typedef enum D3D11_DSV_FLAG
438 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
439 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
440 } D3D11_DSV_FLAG;
442 typedef enum D3D11_INPUT_CLASSIFICATION
444 D3D11_INPUT_PER_VERTEX_DATA,
445 D3D11_INPUT_PER_INSTANCE_DATA,
446 } D3D11_INPUT_CLASSIFICATION;
448 const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
450 typedef struct D3D11_INPUT_ELEMENT_DESC
452 LPCSTR SemanticName;
453 UINT SemanticIndex;
454 DXGI_FORMAT Format;
455 UINT InputSlot;
456 UINT AlignedByteOffset;
457 D3D11_INPUT_CLASSIFICATION InputSlotClass;
458 UINT InstanceDataStepRate;
459 } D3D11_INPUT_ELEMENT_DESC;
461 typedef enum D3D11_MAP
463 D3D11_MAP_READ = 1,
464 D3D11_MAP_WRITE,
465 D3D11_MAP_READ_WRITE,
466 D3D11_MAP_WRITE_DISCARD,
467 D3D11_MAP_WRITE_NO_OVERWRITE
468 } D3D11_MAP;
470 typedef enum D3D11_MAP_FLAG
472 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
473 } D3D11_MAP_FLAG;
475 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
477 UINT64 NumPrimitivesWritten;
478 UINT64 PrimitivesStorageNeeded;
479 } D3D11_QUERY_DATA_SO_STATISTICS;
481 typedef struct D3D11_MAPPED_SUBRESOURCE
483 void *pData;
484 UINT RowPitch;
485 UINT DepthPitch;
486 } D3D11_MAPPED_SUBRESOURCE;
488 typedef enum D3D11_QUERY
490 D3D11_QUERY_EVENT,
491 D3D11_QUERY_OCCLUSION,
492 D3D11_QUERY_TIMESTAMP,
493 D3D11_QUERY_TIMESTAMP_DISJOINT,
494 D3D11_QUERY_PIPELINE_STATISTICS,
495 D3D11_QUERY_OCCLUSION_PREDICATE,
496 D3D11_QUERY_SO_STATISTICS,
497 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
498 D3D11_QUERY_SO_STATISTICS_STREAM0,
499 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
500 D3D11_QUERY_SO_STATISTICS_STREAM1,
501 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
502 D3D11_QUERY_SO_STATISTICS_STREAM2,
503 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
504 D3D11_QUERY_SO_STATISTICS_STREAM3,
505 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
506 } D3D11_QUERY;
508 typedef enum D3D11_ASYNC_GETDATA_FLAG
510 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
511 } D3D11_ASYNC_GETDATA_FLAG;
513 typedef enum D3D11_RESOURCE_MISC_FLAG
515 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
516 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
517 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
518 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
519 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
520 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
521 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
522 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
523 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
524 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
525 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
526 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
527 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
528 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
529 } D3D11_RESOURCE_MISC_FLAG;
531 typedef struct D3D11_QUERY_DESC
533 D3D11_QUERY Query;
534 UINT MiscFlags;
535 } D3D11_QUERY_DESC;
537 typedef struct D3D11_RASTERIZER_DESC
539 D3D11_FILL_MODE FillMode;
540 D3D11_CULL_MODE CullMode;
541 BOOL FrontCounterClockwise;
542 INT DepthBias;
543 FLOAT DepthBiasClamp;
544 FLOAT SlopeScaledDepthBias;
545 BOOL DepthClipEnable;
546 BOOL ScissorEnable;
547 BOOL MultisampleEnable;
548 BOOL AntialiasedLineEnable;
549 } D3D11_RASTERIZER_DESC;
551 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
552 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
553 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
554 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
555 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
556 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
557 cpp_quote(" CullMode = D3D11_CULL_BACK;")
558 cpp_quote(" FrontCounterClockwise = FALSE;")
559 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
560 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
561 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
562 cpp_quote(" DepthClipEnable = TRUE;")
563 cpp_quote(" ScissorEnable = FALSE;")
564 cpp_quote(" MultisampleEnable = FALSE;")
565 cpp_quote(" AntialiasedLineEnable = FALSE;")
566 cpp_quote(" }")
567 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
568 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
569 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
570 cpp_quote(" FillMode = fillMode;")
571 cpp_quote(" CullMode = cullMode;")
572 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
573 cpp_quote(" DepthBias = depthBias;")
574 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
575 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
576 cpp_quote(" DepthClipEnable = depthClipEnable;")
577 cpp_quote(" ScissorEnable = scissorEnable;")
578 cpp_quote(" MultisampleEnable = multisampleEnable;")
579 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
580 cpp_quote(" }")
581 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
582 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
583 cpp_quote("};")
584 cpp_quote("#endif")
586 typedef enum D3D11_RESOURCE_DIMENSION
588 D3D11_RESOURCE_DIMENSION_UNKNOWN,
589 D3D11_RESOURCE_DIMENSION_BUFFER,
590 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
591 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
592 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
593 } D3D11_RESOURCE_DIMENSION;
595 typedef enum D3D11_RTV_DIMENSION
597 D3D11_RTV_DIMENSION_UNKNOWN,
598 D3D11_RTV_DIMENSION_BUFFER,
599 D3D11_RTV_DIMENSION_TEXTURE1D,
600 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
601 D3D11_RTV_DIMENSION_TEXTURE2D,
602 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
603 D3D11_RTV_DIMENSION_TEXTURE2DMS,
604 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
605 D3D11_RTV_DIMENSION_TEXTURE3D,
606 } D3D11_RTV_DIMENSION;
608 typedef struct D3D11_SO_DECLARATION_ENTRY
610 UINT Stream;
611 LPCSTR SemanticName;
612 UINT SemanticIndex;
613 BYTE StartComponent;
614 BYTE ComponentCount;
615 BYTE OutputSlot;
616 } D3D11_SO_DECLARATION_ENTRY;
618 typedef enum D3D11_STENCIL_OP
620 D3D11_STENCIL_OP_KEEP = 1,
621 D3D11_STENCIL_OP_ZERO,
622 D3D11_STENCIL_OP_REPLACE,
623 D3D11_STENCIL_OP_INCR_SAT,
624 D3D11_STENCIL_OP_DECR_SAT,
625 D3D11_STENCIL_OP_INVERT,
626 D3D11_STENCIL_OP_INCR,
627 D3D11_STENCIL_OP_DECR
628 } D3D11_STENCIL_OP;
630 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
631 cpp_quote("}")
632 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
633 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
634 cpp_quote("}")
635 cpp_quote("extern \"C\"{")
636 cpp_quote("#endif")
638 typedef struct D3D11_SUBRESOURCE_DATA
640 const void *pSysMem;
641 UINT SysMemPitch;
642 UINT SysMemSlicePitch;
643 } D3D11_SUBRESOURCE_DATA;
645 typedef struct D3D11_TEX1D_ARRAY_DSV
647 UINT MipSlice;
648 UINT FirstArraySlice;
649 UINT ArraySize;
650 } D3D11_TEX1D_ARRAY_DSV;
652 typedef struct D3D11_TEX1D_ARRAY_RTV
654 UINT MipSlice;
655 UINT FirstArraySlice;
656 UINT ArraySize;
657 } D3D11_TEX1D_ARRAY_RTV;
659 typedef struct D3D11_TEX1D_ARRAY_SRV
661 UINT MostDetailedMip;
662 UINT MipLevels;
663 UINT FirstArraySlice;
664 UINT ArraySize;
665 } D3D11_TEX1D_ARRAY_SRV;
667 typedef struct D3D11_TEX1D_ARRAY_UAV
669 UINT MipSlice;
670 UINT FirstArraySlice;
671 UINT ArraySize;
672 } D3D11_TEX1D_ARRAY_UAV;
674 typedef struct D3D11_TEX1D_DSV
676 UINT MipSlice;
677 } D3D11_TEX1D_DSV;
679 typedef struct D3D11_TEX1D_RTV
681 UINT MipSlice;
682 } D3D11_TEX1D_RTV;
684 typedef struct D3D11_TEX1D_SRV
686 UINT MostDetailedMip;
687 UINT MipLevels;
688 } D3D11_TEX1D_SRV;
690 typedef struct D3D11_TEX1D_UAV
692 UINT MipSlice;
693 } D3D11_TEX1D_UAV;
695 typedef struct D3D11_TEX2D_ARRAY_DSV
697 UINT MipSlice;
698 UINT FirstArraySlice;
699 UINT ArraySize;
700 } D3D11_TEX2D_ARRAY_DSV;
702 typedef struct D3D11_TEX2D_ARRAY_RTV
704 UINT MipSlice;
705 UINT FirstArraySlice;
706 UINT ArraySize;
707 } D3D11_TEX2D_ARRAY_RTV;
709 typedef struct D3D11_TEX2D_ARRAY_SRV
711 UINT MostDetailedMip;
712 UINT MipLevels;
713 UINT FirstArraySlice;
714 UINT ArraySize;
715 } D3D11_TEX2D_ARRAY_SRV;
717 typedef struct D3D11_TEX2D_ARRAY_UAV
719 UINT MipSlice;
720 UINT FirstArraySlice;
721 UINT ArraySize;
722 } D3D11_TEX2D_ARRAY_UAV;
724 typedef struct D3D11_TEX2D_DSV
726 UINT MipSlice;
727 } D3D11_TEX2D_DSV;
729 typedef struct D3D11_TEX2D_RTV
731 UINT MipSlice;
732 } D3D11_TEX2D_RTV;
734 typedef struct D3D11_TEX2D_SRV
736 UINT MostDetailedMip;
737 UINT MipLevels;
738 } D3D11_TEX2D_SRV;
740 typedef struct D3D11_TEX2D_UAV
742 UINT MipSlice;
743 } D3D11_TEX2D_UAV;
745 typedef struct D3D11_TEX2DMS_ARRAY_DSV
747 UINT FirstArraySlice;
748 UINT ArraySize;
749 } D3D11_TEX2DMS_ARRAY_DSV;
751 typedef struct D3D11_TEX2DMS_ARRAY_RTV
753 UINT FirstArraySlice;
754 UINT ArraySize;
755 } D3D11_TEX2DMS_ARRAY_RTV;
757 typedef struct D3D11_TEX2DMS_ARRAY_SRV
759 UINT FirstArraySlice;
760 UINT ArraySize;
761 } D3D11_TEX2DMS_ARRAY_SRV;
763 typedef struct D3D11_TEX2DMS_DSV
765 UINT UnusedField_NothingToDefine;
766 } D3D11_TEX2DMS_DSV;
768 typedef struct D3D11_TEX2DMS_RTV
770 UINT UnusedField_NothingToDefine;
771 } D3D11_TEX2DMS_RTV;
773 typedef struct D3D11_TEX2DMS_SRV
775 UINT UnusedField_NothingToDefine;
776 } D3D11_TEX2DMS_SRV;
778 typedef struct D3D11_TEX3D_RTV
780 UINT MipSlice;
781 UINT FirstWSlice;
782 UINT WSize;
783 } D3D11_TEX3D_RTV;
785 typedef struct D3D11_TEX3D_SRV
787 UINT MostDetailedMip;
788 UINT MipLevels;
789 } D3D11_TEX3D_SRV;
791 typedef struct D3D11_TEX3D_UAV
793 UINT MipSlice;
794 UINT FirstWSlice;
795 UINT WSize;
796 } D3D11_TEX3D_UAV;
798 typedef struct D3D11_TEXCUBE_ARRAY_SRV
800 UINT MostDetailedMip;
801 UINT MipLevels;
802 UINT First2DArrayFace;
803 UINT NumCubes;
804 } D3D11_TEXCUBE_ARRAY_SRV;
806 typedef struct D3D11_TEXCUBE_SRV
808 UINT MostDetailedMip;
809 UINT MipLevels;
810 } D3D11_TEXCUBE_SRV;
812 typedef enum D3D11_TEXTURE_ADDRESS_MODE
814 D3D11_TEXTURE_ADDRESS_WRAP = 1,
815 D3D11_TEXTURE_ADDRESS_MIRROR,
816 D3D11_TEXTURE_ADDRESS_CLAMP,
817 D3D11_TEXTURE_ADDRESS_BORDER,
818 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
819 } D3D11_TEXTURE_ADDRESS_MODE;
821 typedef enum D3D11_UAV_DIMENSION
823 D3D11_UAV_DIMENSION_UNKNOWN,
824 D3D11_UAV_DIMENSION_BUFFER,
825 D3D11_UAV_DIMENSION_TEXTURE1D,
826 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
827 D3D11_UAV_DIMENSION_TEXTURE2D,
828 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
829 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
830 } D3D11_UAV_DIMENSION;
832 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
834 DXGI_FORMAT Format;
835 D3D11_UAV_DIMENSION ViewDimension;
837 union
839 D3D11_BUFFER_UAV Buffer;
840 D3D11_TEX1D_UAV Texture1D;
841 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
842 D3D11_TEX2D_UAV Texture2D;
843 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
844 D3D11_TEX3D_UAV Texture3D;
846 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
848 typedef enum D3D11_USAGE
850 D3D11_USAGE_DEFAULT,
851 D3D11_USAGE_IMMUTABLE,
852 D3D11_USAGE_DYNAMIC,
853 D3D11_USAGE_STAGING,
854 } D3D11_USAGE;
856 typedef enum D3D11_BIND_FLAG
858 D3D11_BIND_VERTEX_BUFFER = 0x0001,
859 D3D11_BIND_INDEX_BUFFER = 0x0002,
860 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
861 D3D11_BIND_SHADER_RESOURCE = 0x0008,
862 D3D11_BIND_STREAM_OUTPUT = 0x0010,
863 D3D11_BIND_RENDER_TARGET = 0x0020,
864 D3D11_BIND_DEPTH_STENCIL = 0x0040,
865 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
866 D3D11_BIND_DECODER = 0x0200,
867 D3D11_BIND_VIDEO_ENCODER = 0x0400
868 } D3D11_BIND_FLAG;
870 typedef enum D3D11_CPU_ACCESS_FLAG
872 D3D11_CPU_ACCESS_WRITE = 0x00010000,
873 D3D11_CPU_ACCESS_READ = 0x00020000
874 } D3D11_CPU_ACCESS_FLAG;
876 typedef struct D3D11_VIEWPORT
878 FLOAT TopLeftX;
879 FLOAT TopLeftY;
880 FLOAT Width;
881 FLOAT Height;
882 FLOAT MinDepth;
883 FLOAT MaxDepth;
884 } D3D11_VIEWPORT;
886 typedef enum D3D11_COLOR_WRITE_ENABLE
888 D3D11_COLOR_WRITE_ENABLE_RED = 1,
889 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
890 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
891 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
892 D3D11_COLOR_WRITE_ENABLE_ALL =
893 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
894 } D3D11_COLOR_WRITE_ENABLE;
896 typedef enum D3D11_FORMAT_SUPPORT
898 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
899 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
900 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
901 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
902 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
903 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
904 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
905 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
906 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
907 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
908 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
909 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
910 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
911 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
912 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
913 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
914 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
915 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
916 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
917 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
918 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
919 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
920 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
921 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
922 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
923 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
924 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000
925 } D3D11_FORMAT_SUPPORT;
927 typedef enum D3D11_CLEAR_FLAG
929 D3D11_CLEAR_DEPTH = 0x0001L,
930 D3D11_CLEAR_STENCIL = 0x0002L
931 } D3D11_CLEAR_FLAG;
933 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
935 BOOL BlendEnable;
936 D3D11_BLEND SrcBlend;
937 D3D11_BLEND DestBlend;
938 D3D11_BLEND_OP BlendOp;
939 D3D11_BLEND SrcBlendAlpha;
940 D3D11_BLEND DestBlendAlpha;
941 D3D11_BLEND_OP BlendOpAlpha;
942 UINT8 RenderTargetWriteMask;
943 } D3D11_RENDER_TARGET_BLEND_DESC;
945 typedef struct D3D11_BLEND_DESC
947 BOOL AlphaToCoverageEnable;
948 BOOL IndependentBlendEnable;
949 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
950 } D3D11_BLEND_DESC;
952 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
953 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
954 cpp_quote(" CD3D11_BLEND_DESC() {}")
955 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
956 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
957 cpp_quote(" AlphaToCoverageEnable = FALSE;")
958 cpp_quote(" IndependentBlendEnable = FALSE;")
959 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
960 cpp_quote(" target->BlendEnable = FALSE;")
961 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
962 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
963 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
964 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
965 cpp_quote(" }")
966 cpp_quote(" }")
967 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
968 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
969 cpp_quote("};" )
970 cpp_quote("#endif" )
972 typedef struct D3D11_BUFFER_DESC
974 UINT ByteWidth;
975 D3D11_USAGE Usage;
976 UINT BindFlags;
977 UINT CPUAccessFlags;
978 UINT MiscFlags;
979 UINT StructureByteStride;
980 } D3D11_BUFFER_DESC;
982 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
983 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
984 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
985 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
986 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
987 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
988 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
989 cpp_quote(" ByteWidth = byteWidth;")
990 cpp_quote(" Usage = usage;")
991 cpp_quote(" BindFlags = bindFlags;")
992 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
993 cpp_quote(" MiscFlags = miscFlags;" )
994 cpp_quote(" StructureByteStride = structureByteStride;")
995 cpp_quote(" }")
996 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
997 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
998 cpp_quote("};" )
999 cpp_quote("#endif" )
1001 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1003 DXGI_FORMAT Format;
1004 D3D11_DSV_DIMENSION ViewDimension;
1005 UINT Flags;
1007 union
1009 D3D11_TEX1D_DSV Texture1D;
1010 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1011 D3D11_TEX2D_DSV Texture2D;
1012 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1013 D3D11_TEX2DMS_DSV Texture2DMS;
1014 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1016 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1018 typedef struct D3D11_DEPTH_STENCILOP_DESC
1020 D3D11_STENCIL_OP StencilFailOp;
1021 D3D11_STENCIL_OP StencilDepthFailOp;
1022 D3D11_STENCIL_OP StencilPassOp;
1023 D3D11_COMPARISON_FUNC StencilFunc;
1024 } D3D11_DEPTH_STENCILOP_DESC;
1026 typedef struct D3D11_DEPTH_STENCIL_DESC
1028 BOOL DepthEnable;
1029 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1030 D3D11_COMPARISON_FUNC DepthFunc;
1031 BOOL StencilEnable;
1032 UINT8 StencilReadMask;
1033 UINT8 StencilWriteMask;
1034 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1035 D3D11_DEPTH_STENCILOP_DESC BackFace;
1036 } D3D11_DEPTH_STENCIL_DESC;
1038 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1040 DXGI_FORMAT Format;
1041 D3D11_RTV_DIMENSION ViewDimension;
1043 union
1045 D3D11_BUFFER_RTV Buffer;
1046 D3D11_TEX1D_RTV Texture1D;
1047 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1048 D3D11_TEX2D_RTV Texture2D;
1049 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1050 D3D11_TEX2DMS_RTV Texture2DMS;
1051 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1052 D3D11_TEX3D_RTV Texture3D;
1054 } D3D11_RENDER_TARGET_VIEW_DESC;
1056 typedef struct D3D11_SAMPLER_DESC
1058 D3D11_FILTER Filter;
1059 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1060 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1061 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1062 FLOAT MipLODBias;
1063 UINT MaxAnisotropy;
1064 D3D11_COMPARISON_FUNC ComparisonFunc;
1065 FLOAT BorderColor[4];
1066 FLOAT MinLOD;
1067 FLOAT MaxLOD;
1068 } D3D11_SAMPLER_DESC;
1070 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1071 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1072 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1073 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1074 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1075 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1076 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1077 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1078 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1079 cpp_quote(" MipLODBias = 0;")
1080 cpp_quote(" MaxAnisotropy = 1;")
1081 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1082 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1083 cpp_quote(" MinLOD = -3.402823466e+38f;")
1084 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1085 cpp_quote(" }")
1086 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1087 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1088 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1089 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1090 cpp_quote(" Filter = filter;")
1091 cpp_quote(" AddressU = addressU;")
1092 cpp_quote(" AddressV = addressV;")
1093 cpp_quote(" AddressW = addressW;")
1094 cpp_quote(" MipLODBias = mipLODBias;")
1095 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1096 cpp_quote(" ComparisonFunc = comparisonFunc;")
1097 cpp_quote(" if(borderColor) {")
1098 cpp_quote(" BorderColor[0] = borderColor[0];")
1099 cpp_quote(" BorderColor[1] = borderColor[1];")
1100 cpp_quote(" BorderColor[2] = borderColor[2];")
1101 cpp_quote(" BorderColor[3] = borderColor[3];")
1102 cpp_quote(" }else {")
1103 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1104 cpp_quote(" }")
1105 cpp_quote(" MinLOD = minLOD;")
1106 cpp_quote(" MaxLOD = maxLOD;")
1107 cpp_quote(" }")
1108 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1109 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1110 cpp_quote("};")
1111 cpp_quote("#endif")
1113 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1115 DXGI_FORMAT Format;
1116 D3D11_SRV_DIMENSION ViewDimension;
1118 union
1120 D3D11_BUFFER_SRV Buffer;
1121 D3D11_TEX1D_SRV Texture1D;
1122 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1123 D3D11_TEX2D_SRV Texture2D;
1124 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1125 D3D11_TEX2DMS_SRV Texture2DMS;
1126 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1127 D3D11_TEX3D_SRV Texture3D;
1128 D3D11_TEXCUBE_SRV TextureCube;
1129 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1130 D3D11_BUFFEREX_SRV BufferEx;
1132 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1134 typedef struct D3D11_TEXTURE1D_DESC
1136 UINT Width;
1137 UINT MipLevels;
1138 UINT ArraySize;
1139 DXGI_FORMAT Format;
1140 D3D11_USAGE Usage;
1141 UINT BindFlags;
1142 UINT CPUAccessFlags;
1143 UINT MiscFlags;
1144 } D3D11_TEXTURE1D_DESC;
1146 typedef struct D3D11_TEXTURE2D_DESC
1148 UINT Width;
1149 UINT Height;
1150 UINT MipLevels;
1151 UINT ArraySize;
1152 DXGI_FORMAT Format;
1153 DXGI_SAMPLE_DESC SampleDesc;
1154 D3D11_USAGE Usage;
1155 UINT BindFlags;
1156 UINT CPUAccessFlags;
1157 UINT MiscFlags;
1158 } D3D11_TEXTURE2D_DESC;
1160 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1161 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1162 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1163 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1164 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1165 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1166 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1167 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1168 cpp_quote(" Width = width;")
1169 cpp_quote(" Height = height;")
1170 cpp_quote(" MipLevels = mipLevels;")
1171 cpp_quote(" ArraySize = arraySize;")
1172 cpp_quote(" Format = format;")
1173 cpp_quote(" SampleDesc.Count = sampleCount;")
1174 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1175 cpp_quote(" Usage = usage;")
1176 cpp_quote(" BindFlags = bindFlags;")
1177 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1178 cpp_quote(" MiscFlags = miscFlags;")
1179 cpp_quote(" }" )
1180 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1181 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1182 cpp_quote("};")
1183 cpp_quote("#endif")
1185 typedef struct D3D11_TEXTURE3D_DESC
1187 UINT Width;
1188 UINT Height;
1189 UINT Depth;
1190 UINT MipLevels;
1191 DXGI_FORMAT Format;
1192 D3D11_USAGE Usage;
1193 UINT BindFlags;
1194 UINT CPUAccessFlags;
1195 UINT MiscFlags;
1196 } D3D11_TEXTURE3D_DESC;
1198 /* A couple forward declarations are needed */
1199 interface ID3D11Device;
1200 interface ID3D11ClassLinkage;
1203 object,
1204 local,
1205 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
1207 interface ID3D11DeviceChild : IUnknown
1209 void GetDevice(
1210 [out] ID3D11Device **ppDevice);
1211 HRESULT GetPrivateData(
1212 [in] REFGUID guid,
1213 [in, out] UINT *pDataSize,
1214 [out] void *pData);
1215 HRESULT SetPrivateData(
1216 [in] REFGUID guid,
1217 [in] UINT DataSize,
1218 [in] const void *pData);
1219 HRESULT SetPrivateDataInterface(
1220 [in] REFGUID guid,
1221 [in] const IUnknown *pData);
1225 object,
1226 local,
1227 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
1229 interface ID3D11Asynchronous : ID3D11DeviceChild
1231 UINT GetDataSize();
1235 object,
1236 local,
1237 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
1239 interface ID3D11Query : ID3D11Asynchronous
1241 void GetDesc(
1242 [out] D3D11_QUERY_DESC *pDesc);
1246 object,
1247 local,
1248 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
1250 interface ID3D11Resource : ID3D11DeviceChild
1252 void GetType(
1253 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
1254 void SetEvictionPriority(
1255 [in] UINT EvictionPriority);
1256 UINT GetEvictionPriority();
1260 object,
1261 local,
1262 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
1264 interface ID3D11View : ID3D11DeviceChild
1266 void GetResource(
1267 [out] ID3D11Resource **ppResource);
1271 object,
1272 local,
1273 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
1275 interface ID3D11BlendState : ID3D11DeviceChild
1277 void GetDesc(
1278 [out] D3D11_BLEND_DESC *pDesc);
1282 object,
1283 local,
1284 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
1286 interface ID3D11Buffer : ID3D11Resource
1288 void GetDesc(
1289 [out] D3D11_BUFFER_DESC *pDesc);
1293 object,
1294 local,
1295 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
1297 interface ID3D11ClassInstance : ID3D11DeviceChild
1299 void GetClassLinkage(
1300 [out] ID3D11ClassLinkage **ppLinkage);
1301 void GetDesc(
1302 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
1303 void GetInstanceName(
1304 [out] LPSTR pInstanceName,
1305 [in, out] SIZE_T *pBufferLength);
1306 void GetTypeName(
1307 [out] LPSTR pTypeName,
1308 [in, out] SIZE_T *pBufferLength);
1312 object,
1313 local,
1314 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
1316 interface ID3D11ClassLinkage : ID3D11DeviceChild
1318 HRESULT GetClassInstance(
1319 [in] LPCSTR pClassInstanceName,
1320 [in] UINT InstanceIndex,
1321 [out] ID3D11ClassInstance **ppInstance);
1322 HRESULT CreateClassInstance(
1323 [in] LPCSTR pClassTypeName,
1324 [in] UINT ConstantBufferOffset,
1325 [in] UINT ConstantVectorOffset,
1326 [in] UINT TextureOffset,
1327 [in] UINT SamplerOffset,
1328 [out] ID3D11ClassInstance **ppInstance);
1332 object,
1333 local,
1334 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
1336 interface ID3D11CommandList : ID3D11DeviceChild
1338 UINT GetContextFlags();
1342 object,
1343 local,
1344 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
1346 interface ID3D11ComputeShader : ID3D11DeviceChild
1351 object,
1352 local,
1353 uuid(6e8c49fb-a371-4770-b440-29086022b741)
1355 interface ID3D11Counter : ID3D11Asynchronous
1357 void GetDesc(
1358 [out] D3D11_COUNTER_DESC *pDesc);
1362 object,
1363 local,
1364 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
1366 interface ID3D11DepthStencilState : ID3D11DeviceChild
1368 void GetDesc(
1369 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
1373 object,
1374 local,
1375 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
1377 interface ID3D11DepthStencilView : ID3D11View
1379 void GetDesc(
1380 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
1384 object,
1385 local,
1386 uuid(f582c508-0f36-490c-9977-31eece268cfa)
1388 interface ID3D11DomainShader : ID3D11DeviceChild
1393 object,
1394 local,
1395 uuid(38325b96-effb-4022-ba02-2e795b70275c)
1397 interface ID3D11GeometryShader : ID3D11DeviceChild
1402 object,
1403 local,
1404 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
1406 interface ID3D11HullShader : ID3D11DeviceChild
1411 object,
1412 local,
1413 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
1415 interface ID3D11InputLayout : ID3D11DeviceChild
1420 object,
1421 local,
1422 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
1424 interface ID3D11PixelShader : ID3D11DeviceChild
1429 object,
1430 local,
1431 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
1433 interface ID3D11Predicate : ID3D11Query
1438 object,
1439 local,
1440 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
1442 interface ID3D11RasterizerState : ID3D11DeviceChild
1444 void GetDesc(
1445 [out] D3D11_RASTERIZER_DESC *pDesc);
1449 object,
1450 local,
1451 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
1453 interface ID3D11RenderTargetView : ID3D11View
1455 void GetDesc(
1456 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
1460 object,
1461 local,
1462 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
1464 interface ID3D11SamplerState : ID3D11DeviceChild
1466 void GetDesc(
1467 [out] D3D11_SAMPLER_DESC *pDesc);
1471 object,
1472 local,
1473 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
1475 interface ID3D11ShaderResourceView : ID3D11View
1477 void GetDesc(
1478 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
1482 object,
1483 local,
1484 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
1486 interface ID3D11Texture1D : ID3D11Resource
1488 void GetDesc(
1489 [out] D3D11_TEXTURE1D_DESC *pDesc);
1493 object,
1494 local,
1495 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
1497 interface ID3D11Texture2D : ID3D11Resource
1499 void GetDesc(
1500 [out] D3D11_TEXTURE2D_DESC *pDesc);
1504 object,
1505 local,
1506 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
1508 interface ID3D11Texture3D : ID3D11Resource
1510 void GetDesc(
1511 [out] D3D11_TEXTURE3D_DESC *pDesc);
1515 object,
1516 local,
1517 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
1519 interface ID3D11UnorderedAccessView : ID3D11View
1521 void GetDesc(
1522 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
1526 object,
1527 local,
1528 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
1530 interface ID3D11VertexShader : ID3D11DeviceChild
1535 object,
1536 local,
1537 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
1539 interface ID3D11DeviceContext : ID3D11DeviceChild
1541 void VSSetConstantBuffers(
1542 [in] UINT StartSlot,
1543 [in] UINT NumBuffers,
1544 [in] ID3D11Buffer *const *ppConstantBuffers);
1545 void PSSetShaderResources(
1546 [in] UINT StartSlot,
1547 [in] UINT NumViews,
1548 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1549 void PSSetShader(
1550 [in] ID3D11PixelShader *pPixelShader,
1551 [in] ID3D11ClassInstance *const *ppClassInstances,
1552 UINT NumClassInstances);
1553 void PSSetSamplers(
1554 [in] UINT StartSlot,
1555 [in] UINT NumSamplers,
1556 [in] ID3D11SamplerState *const *ppSamplers);
1557 void VSSetShader(
1558 [in] ID3D11VertexShader *pVertexShader,
1559 [in] ID3D11ClassInstance *const *ppClassInstances,
1560 UINT NumClassInstances);
1561 void DrawIndexed(
1562 [in] UINT IndexCount,
1563 [in] UINT StartIndexLocation,
1564 [in] INT BaseVertexLocation);
1565 void Draw(
1566 [in] UINT VertexCount,
1567 [in] UINT StartVertexLocation);
1568 HRESULT Map(
1569 [in] ID3D11Resource *pResource,
1570 [in] UINT Subresource,
1571 [in] D3D11_MAP MapType,
1572 [in] UINT MapFlags,
1573 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
1574 void Unmap(
1575 [in] ID3D11Resource *pResource,
1576 [in] UINT Subresource);
1577 void PSSetConstantBuffers(
1578 [in] UINT StartSlot,
1579 [in] UINT NumBuffers,
1580 [in] ID3D11Buffer *const *ppConstantBuffers);
1581 void IASetInputLayout(
1582 [in] ID3D11InputLayout *pInputLayout);
1583 void IASetVertexBuffers(
1584 [in] UINT StartSlot,
1585 [in] UINT NumBuffers,
1586 [in] ID3D11Buffer *const *ppVertexBuffers,
1587 [in] const UINT *pStrides,
1588 [in] const UINT *pOffsets);
1589 void IASetIndexBuffer(
1590 [in] ID3D11Buffer *pIndexBuffer,
1591 [in] DXGI_FORMAT Format,
1592 [in] UINT Offset);
1593 void DrawIndexedInstanced(
1594 [in] UINT IndexCountPerInstance,
1595 [in] UINT InstanceCount,
1596 [in] UINT StartIndexLocation,
1597 [in] INT BaseVertexLocation,
1598 [in] UINT StartInstanceLocation);
1599 void DrawInstanced(
1600 [in] UINT VertexCountPerInstance,
1601 [in] UINT InstanceCount,
1602 [in] UINT StartVertexLocation,
1603 [in] UINT StartInstanceLocation);
1604 void GSSetConstantBuffers(
1605 [in] UINT StartSlot,
1606 [in] UINT NumBuffers,
1607 [in] ID3D11Buffer *const *ppConstantBuffers);
1608 void GSSetShader(
1609 [in] ID3D11GeometryShader *pShader,
1610 [in] ID3D11ClassInstance *const *ppClassInstances,
1611 UINT NumClassInstances);
1612 void IASetPrimitiveTopology(
1613 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
1614 void VSSetShaderResources(
1615 [in] UINT StartSlot,
1616 [in] UINT NumViews,
1617 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1618 void VSSetSamplers(
1619 [in] UINT StartSlot,
1620 [in] UINT NumSamplers,
1621 [in] ID3D11SamplerState *const *ppSamplers);
1622 void Begin(
1623 [in] ID3D11Asynchronous *pAsync);
1624 void End(
1625 [in] ID3D11Asynchronous *pAsync);
1626 HRESULT GetData(
1627 [in] ID3D11Asynchronous *pAsync,
1628 [in] void *pData,
1629 [in] UINT DataSize,
1630 [in] UINT GetDataFlags);
1631 void SetPredication(
1632 [in] ID3D11Predicate *pPredicate,
1633 [in] BOOL PredicateValue);
1634 void GSSetShaderResources(
1635 [in] UINT StartSlot,
1636 [in] UINT NumViews,
1637 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1638 void GSSetSamplers(
1639 [in] UINT StartSlot,
1640 [in] UINT NumSamplers,
1641 [in] ID3D11SamplerState *const *ppSamplers);
1642 void OMSetRenderTargets(
1643 [in] UINT NumViews,
1644 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
1645 [in] ID3D11DepthStencilView *pDepthStencilView);
1646 void OMSetRenderTargetsAndUnorderedAccessViews(
1647 [in] UINT NumRTVs,
1648 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
1649 [in] ID3D11DepthStencilView *pDepthStencilView,
1650 [in] UINT UAVStartSlot,
1651 [in] UINT NumUAVs,
1652 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
1653 [in] const UINT *pUAVInitialCounts);
1654 void OMSetBlendState(
1655 [in] ID3D11BlendState *pBlendState,
1656 [in] const FLOAT BlendFactor[4],
1657 [in] UINT SampleMask);
1658 void OMSetDepthStencilState(
1659 [in] ID3D11DepthStencilState *pDepthStencilState,
1660 [in] UINT StencilRef);
1661 void SOSetTargets(
1662 [in] UINT NumBuffers,
1663 [in] ID3D11Buffer *const *ppSOTargets,
1664 [in] const UINT *pOffsets);
1665 void DrawAuto();
1666 void DrawIndexedInstancedIndirect(
1667 [in] ID3D11Buffer *pBufferForArgs,
1668 [in] UINT AlignedByteOffsetForArgs);
1669 void DrawInstancedIndirect(
1670 [in] ID3D11Buffer *pBufferForArgs,
1671 [in] UINT AlignedByteOffsetForArgs);
1672 void Dispatch(
1673 [in] UINT ThreadGroupCountX,
1674 [in] UINT ThreadGroupCountY,
1675 [in] UINT ThreadGroupCountZ);
1676 void DispatchIndirect(
1677 [in] ID3D11Buffer *pBufferForArgs,
1678 [in] UINT AlignedByteOffsetForArgs);
1679 void RSSetState(
1680 [in] ID3D11RasterizerState *pRasterizerState);
1681 void RSSetViewports(
1682 [in] UINT NumViewports,
1683 [in] const D3D11_VIEWPORT *pViewports);
1684 void RSSetScissorRects(
1685 [in] UINT NumRects,
1686 [in] const D3D11_RECT *pRects);
1687 void CopySubresourceRegion(
1688 [in] ID3D11Resource *pDstResource,
1689 [in] UINT DstSubresource,
1690 [in] UINT DstX,
1691 [in] UINT DstY,
1692 [in] UINT DstZ,
1693 [in] ID3D11Resource *pSrcResource,
1694 [in] UINT SrcSubresource,
1695 [in] const D3D11_BOX *pSrcBox);
1696 void CopyResource(
1697 [in] ID3D11Resource *pDstResource,
1698 [in] ID3D11Resource *pSrcResource);
1699 void UpdateSubresource(
1700 [in] ID3D11Resource *pDstResource,
1701 [in] UINT DstSubresource,
1702 [in] const D3D11_BOX *pDstBox,
1703 [in] const void *pSrcData,
1704 [in] UINT SrcRowPitch,
1705 [in] UINT SrcDepthPitch);
1706 void CopyStructureCount(
1707 [in] ID3D11Buffer *pDstBuffer,
1708 [in] UINT DstAlignedByteOffset,
1709 [in] ID3D11UnorderedAccessView *pSrcView);
1710 void ClearRenderTargetView(
1711 [in] ID3D11RenderTargetView *pRenderTargetView,
1712 [in] const FLOAT ColorRGBA[4]);
1713 void ClearUnorderedAccessViewUint(
1714 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
1715 [in] const UINT Values[4]);
1716 void ClearUnorderedAccessViewFloat(
1717 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
1718 [in] const FLOAT Values[4]);
1719 void ClearDepthStencilView(
1720 [in] ID3D11DepthStencilView *pDepthStencilView,
1721 [in] UINT ClearFlags,
1722 [in] FLOAT Depth,
1723 [in] UINT8 Stencil);
1724 void GenerateMips(
1725 [in] ID3D11ShaderResourceView *pShaderResourceView);
1726 void SetResourceMinLOD(
1727 [in] ID3D11Resource *pResource, FLOAT MinLOD);
1728 FLOAT GetResourceMinLOD(
1729 [in] ID3D11Resource *pResource);
1730 void ResolveSubresource(
1731 [in] ID3D11Resource *pDstResource,
1732 [in] UINT DstSubresource,
1733 [in] ID3D11Resource *pSrcResource,
1734 [in] UINT SrcSubresource,
1735 [in] DXGI_FORMAT Format);
1736 void ExecuteCommandList(
1737 [in] ID3D11CommandList *pCommandList,
1738 BOOL RestoreContextState);
1739 void HSSetShaderResources(
1740 [in] UINT StartSlot,
1741 [in] UINT NumViews,
1742 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1743 void HSSetShader(
1744 [in] ID3D11HullShader *pHullShader,
1745 [in] ID3D11ClassInstance *const *ppClassInstances,
1746 UINT NumClassInstances);
1747 void HSSetSamplers(
1748 [in] UINT StartSlot,
1749 [in] UINT NumSamplers,
1750 [in] ID3D11SamplerState *const *ppSamplers);
1751 void HSSetConstantBuffers(
1752 [in] UINT StartSlot,
1753 [in] UINT NumBuffers,
1754 [in] ID3D11Buffer *const *ppConstantBuffers);
1755 void DSSetShaderResources(
1756 [in] UINT StartSlot,
1757 [in] UINT NumViews,
1758 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1759 void DSSetShader(
1760 [in] ID3D11DomainShader *pDomainShader,
1761 [in] ID3D11ClassInstance *const *ppClassInstances,
1762 UINT NumClassInstances);
1763 void DSSetSamplers(
1764 [in] UINT StartSlot,
1765 [in] UINT NumSamplers,
1766 [in] ID3D11SamplerState *const *ppSamplers);
1767 void DSSetConstantBuffers(
1768 [in] UINT StartSlot,
1769 [in] UINT NumBuffers,
1770 [in] ID3D11Buffer *const *ppConstantBuffers);
1771 void CSSetShaderResources(
1772 [in] UINT StartSlot,
1773 [in] UINT NumViews,
1774 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1775 void CSSetUnorderedAccessViews(
1776 [in] UINT StartSlot,
1777 [in] UINT NumUAVs,
1778 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
1779 [in] const UINT *pUAVInitialCounts);
1780 void CSSetShader(
1781 [in] ID3D11ComputeShader *pComputeShader,
1782 [in] ID3D11ClassInstance *const *ppClassInstances,
1783 UINT NumClassInstances);
1784 void CSSetSamplers(
1785 [in] UINT StartSlot,
1786 [in] UINT NumSamplers,
1787 [in] ID3D11SamplerState *const *ppSamplers);
1788 void CSSetConstantBuffers(
1789 [in] UINT StartSlot,
1790 [in] UINT NumBuffers,
1791 [in] ID3D11Buffer *const *ppConstantBuffers);
1792 void VSGetConstantBuffers(
1793 [in] UINT StartSlot,
1794 [in] UINT NumBuffers,
1795 [out] ID3D11Buffer **ppConstantBuffers);
1796 void PSGetShaderResources(
1797 [in] UINT StartSlot,
1798 [in] UINT NumViews,
1799 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1800 void PSGetShader(
1801 [out] ID3D11PixelShader **ppPixelShader,
1802 [out] ID3D11ClassInstance **ppClassInstances,
1803 [in, out] UINT *pNumClassInstances);
1804 void PSGetSamplers(
1805 [in] UINT StartSlot,
1806 [in] UINT NumSamplers,
1807 [out] ID3D11SamplerState **ppSamplers);
1808 void VSGetShader(
1809 [out] ID3D11VertexShader **ppVertexShader,
1810 [out] ID3D11ClassInstance **ppClassInstances,
1811 [in, out] UINT *pNumClassInstances);
1812 void PSGetConstantBuffers(
1813 [in] UINT StartSlot,
1814 [in] UINT NumBuffers,
1815 [out] ID3D11Buffer **ppConstantBuffers);
1816 void IAGetInputLayout(
1817 [out] ID3D11InputLayout **ppInputLayout);
1818 void IAGetVertexBuffers(
1819 [in] UINT StartSlot,
1820 [in] UINT NumBuffers,
1821 [out] ID3D11Buffer **ppVertexBuffers,
1822 [out] UINT *pStrides,
1823 [out] UINT *pOffsets);
1824 void IAGetIndexBuffer(
1825 [out] ID3D11Buffer **pIndexBuffer,
1826 [out] DXGI_FORMAT* Format,
1827 [out] UINT* Offset);
1828 void GSGetConstantBuffers(
1829 [in] UINT StartSlot,
1830 [in] UINT NumBuffers,
1831 [out] ID3D11Buffer **ppConstantBuffers);
1832 void GSGetShader(
1833 [out] ID3D11GeometryShader **ppGeometryShader,
1834 [out] ID3D11ClassInstance **ppClassInstances,
1835 [in, out] UINT *pNumClassInstances);
1836 void IAGetPrimitiveTopology(
1837 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
1838 void VSGetShaderResources(
1839 [in] UINT StartSlot,
1840 [in] UINT NumViews,
1841 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1842 void VSGetSamplers(
1843 [in] UINT StartSlot,
1844 [in] UINT NumSamplers,
1845 [out] ID3D11SamplerState **ppSamplers);
1846 void GetPredication(
1847 [out] ID3D11Predicate **ppPredicate,
1848 [out] BOOL *pPredicateValue);
1849 void GSGetShaderResources(
1850 [in] UINT StartSlot,
1851 [in] UINT NumViews,
1852 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1853 void GSGetSamplers(
1854 [in] UINT StartSlot,
1855 [in] UINT NumSamplers,
1856 [out] ID3D11SamplerState **ppSamplers);
1857 void OMGetRenderTargets(
1858 [in] UINT NumViews,
1859 [out] ID3D11RenderTargetView **ppRenderTargetViews,
1860 [out] ID3D11DepthStencilView **ppDepthStencilView);
1861 void OMGetRenderTargetsAndUnorderedAccessViews(
1862 [in] UINT NumRTVs,
1863 [out] ID3D11RenderTargetView **ppRenderTargetViews,
1864 [out] ID3D11DepthStencilView **ppDepthStencilView,
1865 [in] UINT UAVStartSlot,
1866 [in] UINT NumUAVs,
1867 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
1868 void OMGetBlendState(
1869 [out] ID3D11BlendState **ppBlendState,
1870 [out] FLOAT BlendFactor[4],
1871 [out] UINT *pSampleMask);
1872 void OMGetDepthStencilState(
1873 [out] ID3D11DepthStencilState **ppDepthStencilState,
1874 [out] UINT *pStencilRef);
1875 void SOGetTargets(
1876 [in] UINT NumBuffers,
1877 [out] ID3D11Buffer **ppSOTargets);
1878 void RSGetState(
1879 [out] ID3D11RasterizerState **ppRasterizerState);
1880 void RSGetViewports(
1881 [in, out] UINT *pNumViewports,
1882 [out] D3D11_VIEWPORT *pViewports);
1883 void RSGetScissorRects(
1884 [in, out] UINT *pNumRects,
1885 [out] D3D11_RECT *pRects);
1886 void HSGetShaderResources(
1887 [in] UINT StartSlot,
1888 [in] UINT NumViews,
1889 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1890 void HSGetShader(
1891 [out] ID3D11HullShader **ppHullShader,
1892 [out] ID3D11ClassInstance **ppClassInstances,
1893 [in, out] UINT *pNumClassInstances);
1894 void HSGetSamplers(
1895 [in] UINT StartSlot,
1896 [in] UINT NumSamplers,
1897 [out] ID3D11SamplerState **ppSamplers);
1898 void HSGetConstantBuffers(
1899 [in] UINT StartSlot,
1900 [in] UINT NumBuffers,
1901 [out] ID3D11Buffer **ppConstantBuffers);
1902 void DSGetShaderResources(
1903 [in] UINT StartSlot,
1904 [in] UINT NumViews,
1905 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1906 void DSGetShader(
1907 [out] ID3D11DomainShader **ppDomainShader,
1908 [out] ID3D11ClassInstance **ppClassInstances,
1909 [in, out] UINT *pNumClassInstances);
1910 void DSGetSamplers(
1911 [in] UINT StartSlot,
1912 [in] UINT NumSamplers,
1913 [out] ID3D11SamplerState **ppSamplers);
1914 void DSGetConstantBuffers(
1915 [in] UINT StartSlot,
1916 [in] UINT NumBuffers,
1917 [out] ID3D11Buffer **ppConstantBuffers);
1918 void CSGetShaderResources(
1919 [in] UINT StartSlot,
1920 [in] UINT NumViews,
1921 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1922 void CSGetUnorderedAccessViews(
1923 [in] UINT StartSlot,
1924 [in] UINT NumUAVs,
1925 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
1926 void CSGetShader(
1927 [out] ID3D11ComputeShader **ppComputeShader,
1928 [out] ID3D11ClassInstance **ppClassInstances,
1929 [in, out] UINT *pNumClassInstances);
1930 void CSGetSamplers(
1931 [in] UINT StartSlot,
1932 [in] UINT NumSamplers,
1933 [out] ID3D11SamplerState **ppSamplers);
1934 void CSGetConstantBuffers(
1935 [in] UINT StartSlot,
1936 [in] UINT NumBuffers,
1937 [out] ID3D11Buffer **ppConstantBuffers);
1938 void ClearState();
1939 void Flush();
1940 D3D11_DEVICE_CONTEXT_TYPE GetType();
1941 UINT GetContextFlags();
1942 HRESULT FinishCommandList(
1943 BOOL RestoreDeferredContextState,
1944 [out] ID3D11CommandList **ppCommandList);
1948 object,
1949 local,
1950 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
1952 interface ID3D11Device : IUnknown
1954 HRESULT CreateBuffer(
1955 [in] const D3D11_BUFFER_DESC *pDesc,
1956 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1957 [out] ID3D11Buffer **ppBuffer);
1958 HRESULT CreateTexture1D(
1959 [in] const D3D11_TEXTURE1D_DESC *pDesc,
1960 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1961 [out] ID3D11Texture1D **ppTexture1D);
1962 HRESULT CreateTexture2D(
1963 [in] const D3D11_TEXTURE2D_DESC *pDesc,
1964 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1965 [out] ID3D11Texture2D **ppTexture2D);
1966 HRESULT CreateTexture3D(
1967 [in] const D3D11_TEXTURE3D_DESC *pDesc,
1968 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1969 [out] ID3D11Texture3D **ppTexture3D);
1970 HRESULT CreateShaderResourceView(
1971 [in] ID3D11Resource *pResource,
1972 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
1973 [out] ID3D11ShaderResourceView **ppSRView);
1974 HRESULT CreateUnorderedAccessView(
1975 [in] ID3D11Resource *pResource,
1976 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
1977 [out] ID3D11UnorderedAccessView **ppUAView);
1978 HRESULT CreateRenderTargetView(
1979 [in] ID3D11Resource *pResource,
1980 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
1981 [out] ID3D11RenderTargetView **ppRTView);
1982 HRESULT CreateDepthStencilView(
1983 [in] ID3D11Resource *pResource,
1984 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
1985 [out] ID3D11DepthStencilView **ppDepthStencilView);
1986 HRESULT CreateInputLayout(
1987 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
1988 [in] UINT NumElements,
1989 [in] const void *pShaderBytecodeWithInputSignature,
1990 [in] SIZE_T BytecodeLength,
1991 [out] ID3D11InputLayout **ppInputLayout);
1992 HRESULT CreateVertexShader(
1993 [in] const void *pShaderBytecode,
1994 [in] SIZE_T BytecodeLength,
1995 [in] ID3D11ClassLinkage *pClassLinkage,
1996 [out] ID3D11VertexShader **ppVertexShader);
1997 HRESULT CreateGeometryShader(
1998 [in] const void *pShaderBytecode,
1999 [in] SIZE_T BytecodeLength,
2000 [in] ID3D11ClassLinkage *pClassLinkage,
2001 [out] ID3D11GeometryShader **ppGeometryShader);
2002 HRESULT CreateGeometryShaderWithStreamOutput(
2003 [in] const void *pShaderBytecode,
2004 [in] SIZE_T BytecodeLength,
2005 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
2006 [in] UINT NumEntries,
2007 [in] const UINT *pBufferStrides,
2008 [in] UINT NumStrides,
2009 [in] UINT RasterizedStream,
2010 [in] ID3D11ClassLinkage *pClassLinkage,
2011 [out] ID3D11GeometryShader **ppGeometryShader);
2012 HRESULT CreatePixelShader(
2013 [in] const void *pShaderBytecode,
2014 [in] SIZE_T BytecodeLength,
2015 [in] ID3D11ClassLinkage *pClassLinkage,
2016 [out] ID3D11PixelShader **ppPixelShader);
2017 HRESULT CreateHullShader(
2018 [in] const void *pShaderBytecode,
2019 [in] SIZE_T BytecodeLength,
2020 [in] ID3D11ClassLinkage *pClassLinkage,
2021 [out] ID3D11HullShader **ppHullShader);
2022 HRESULT CreateDomainShader(
2023 [in] const void *pShaderBytecode,
2024 [in] SIZE_T BytecodeLength,
2025 [in] ID3D11ClassLinkage *pClassLinkage,
2026 [out] ID3D11DomainShader **ppDomainShader);
2027 HRESULT CreateComputeShader(
2028 [in] const void *pShaderBytecode,
2029 [in] SIZE_T BytecodeLength,
2030 [in] ID3D11ClassLinkage *pClassLinkage,
2031 [out] ID3D11ComputeShader **ppComputeShader);
2032 HRESULT CreateClassLinkage(
2033 [out] ID3D11ClassLinkage **ppLinkage);
2034 HRESULT CreateBlendState(
2035 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
2036 [out] ID3D11BlendState **ppBlendState);
2037 HRESULT CreateDepthStencilState(
2038 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
2039 [out] ID3D11DepthStencilState **ppDepthStencilState);
2040 HRESULT CreateRasterizerState(
2041 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
2042 [out] ID3D11RasterizerState **ppRasterizerState);
2043 HRESULT CreateSamplerState(
2044 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
2045 [out] ID3D11SamplerState **ppSamplerState);
2046 HRESULT CreateQuery(
2047 [in] const D3D11_QUERY_DESC *pQueryDesc,
2048 [out] ID3D11Query **ppQuery);
2049 HRESULT CreatePredicate(
2050 [in] const D3D11_QUERY_DESC *pPredicateDesc,
2051 [out] ID3D11Predicate **ppPredicate);
2052 HRESULT CreateCounter(
2053 [in] const D3D11_COUNTER_DESC *pCounterDesc,
2054 [out] ID3D11Counter **ppCounter);
2055 HRESULT CreateDeferredContext(
2056 UINT ContextFlags,
2057 [out] ID3D11DeviceContext **ppDeferredContext);
2058 HRESULT OpenSharedResource(
2059 [in] HANDLE hResource,
2060 [in] REFIID ReturnedInterface,
2061 [out] void **ppResource);
2062 HRESULT CheckFormatSupport(
2063 [in] DXGI_FORMAT Format,
2064 [out] UINT *pFormatSupport);
2065 HRESULT CheckMultisampleQualityLevels(
2066 [in] DXGI_FORMAT Format,
2067 [in] UINT SampleCount,
2068 [out] UINT *pNumQualityLevels);
2069 void CheckCounterInfo(
2070 [out] D3D11_COUNTER_INFO *pCounterInfo);
2071 HRESULT CheckCounter(
2072 [in] const D3D11_COUNTER_DESC *pDesc,
2073 [out] D3D11_COUNTER_TYPE *pType,
2074 [out] UINT *pActiveCounters,
2075 [out] LPSTR szName,
2076 [in, out] UINT *pNameLength,
2077 [out] LPSTR szUnits,
2078 [in, out] UINT *pUnitsLength,
2079 [out] LPSTR szDescription,
2080 [in, out] UINT *pDescriptionLength);
2081 HRESULT CheckFeatureSupport(
2082 D3D11_FEATURE Feature,
2083 [out] void *pFeatureSupportData,
2084 UINT FeatureSupportDataSize);
2085 HRESULT GetPrivateData(
2086 [in] REFGUID guid,
2087 [in, out] UINT *pDataSize,
2088 [out] void *pData);
2089 HRESULT SetPrivateData(
2090 [in] REFGUID guid,
2091 [in] UINT DataSize,
2092 [in] const void *pData);
2093 HRESULT SetPrivateDataInterface(
2094 [in] REFGUID guid,
2095 [in] const IUnknown *pData);
2096 D3D_FEATURE_LEVEL GetFeatureLevel();
2097 UINT GetCreationFlags();
2098 HRESULT GetDeviceRemovedReason();
2099 void GetImmediateContext(
2100 [out] ID3D11DeviceContext **ppImmediateContext);
2101 HRESULT SetExceptionMode(UINT RaiseFlags);
2102 UINT GetExceptionMode();
2105 typedef enum D3D11_CREATE_DEVICE_FLAG {
2106 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
2107 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
2108 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
2109 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
2110 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
2111 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
2112 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
2113 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
2114 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
2115 } D3D11_CREATE_DEVICE_FLAG;
2117 const UINT D3D11_SDK_VERSION = 7;
2119 cpp_quote("#include <d3d10_1.h>")
2120 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
2121 cpp_quote("# include <d3d11sdklayers.h>")
2122 cpp_quote("#endif")
2123 cpp_quote("#include <d3d10misc.h>")
2124 cpp_quote("#include <d3d10shader.h>")
2125 cpp_quote("#include <d3d10effect.h>")
2126 cpp_quote("#include <d3d10_1shader.h>")
2128 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2129 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2131 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
2132 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2134 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2135 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
2136 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")