ntdll: Use the configured CriticalSection timeout in RtlpWaitForCriticalSection.
[wine.git] / include / d3d11.idl
blob7bd8af79b15300d1d1bd8c11b254dbe36ccd2989
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_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
93 const UINT D3D11_MAX_MAXANISOTROPY = 16;
94 const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
95 const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
96 const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
97 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
98 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
99 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
100 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
101 const UINT D3D11_SHADER_MAX_TYPES = 65535;
102 const UINT D3D11_SHADER_MINOR_VERSION = 0;
103 const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
105 const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
106 const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
107 const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
108 const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
109 const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
110 const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
111 const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
112 const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
113 const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
114 const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
115 const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
116 const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
117 cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
118 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
119 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
120 const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
121 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
122 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
123 const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
124 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
125 const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
126 const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
127 cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
129 const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
131 const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
132 const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
133 const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
134 const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
135 const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
136 const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
137 const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
138 const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
139 const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
140 const UINT D3D11_REQ_MAXANISOTROPY = 16;
141 const UINT D3D11_REQ_MIP_LEVELS = 15;
142 const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
143 const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
144 const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
145 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
146 cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
147 const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
148 const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
149 const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
150 const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
151 const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
152 const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
153 const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
154 const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
155 const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
157 const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
159 const UINT D3D11_SHADER_MAJOR_VERSION = 5;
160 const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
161 const UINT D3D11_SHADER_MAX_INTERFACES = 253;
162 const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
163 const UINT D3D11_SHADER_MAX_TYPES = 65535;
164 const UINT D3D11_SHADER_MINOR_VERSION = 0;
166 const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
167 const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
169 const UINT D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
171 const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
172 const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
173 const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
174 const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
175 const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
176 const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
177 const UINT D3D11_SO_STREAM_COUNT = 4;
179 const UINT D3D11_SPEC_DATE_DAY = 16;
180 const UINT D3D11_SPEC_DATE_MONTH = 05;
181 const UINT D3D11_SPEC_DATE_YEAR = 2011;
183 cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
184 cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
185 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
186 cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
187 cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
188 cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
189 cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
190 cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
192 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
193 const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
194 const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
195 const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
196 const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
197 const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
198 const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
199 const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
201 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
202 cpp_quote("struct CD3D11_DEFAULT {};")
203 cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
204 cpp_quote("#endif")
206 typedef enum D3D11_BLEND
208 D3D11_BLEND_ZERO = 1,
209 D3D11_BLEND_ONE = 2,
210 D3D11_BLEND_SRC_COLOR = 3,
211 D3D11_BLEND_INV_SRC_COLOR = 4,
212 D3D11_BLEND_SRC_ALPHA = 5,
213 D3D11_BLEND_INV_SRC_ALPHA = 6,
214 D3D11_BLEND_DEST_ALPHA = 7,
215 D3D11_BLEND_INV_DEST_ALPHA = 8,
216 D3D11_BLEND_DEST_COLOR = 9,
217 D3D11_BLEND_INV_DEST_COLOR = 10,
218 D3D11_BLEND_SRC_ALPHA_SAT = 11,
219 D3D11_BLEND_BLEND_FACTOR = 14,
220 D3D11_BLEND_INV_BLEND_FACTOR = 15,
221 D3D11_BLEND_SRC1_COLOR = 16,
222 D3D11_BLEND_INV_SRC1_COLOR = 17,
223 D3D11_BLEND_SRC1_ALPHA = 18,
224 D3D11_BLEND_INV_SRC1_ALPHA = 19,
225 } D3D11_BLEND;
227 typedef enum D3D11_BLEND_OP
229 D3D11_BLEND_OP_ADD = 1,
230 D3D11_BLEND_OP_SUBTRACT,
231 D3D11_BLEND_OP_REV_SUBTRACT,
232 D3D11_BLEND_OP_MIN,
233 D3D11_BLEND_OP_MAX
234 } D3D11_BLEND_OP;
236 typedef struct D3D11_BOX
238 UINT left;
239 UINT top;
240 UINT front;
241 UINT right;
242 UINT bottom;
243 UINT back;
244 } D3D11_BOX;
246 typedef struct D3D11_BUFFER_RTV
248 union
250 UINT FirstElement;
251 UINT ElementOffset;
253 union
255 UINT NumElements;
256 UINT ElementWidth;
258 } D3D11_BUFFER_RTV;
260 typedef struct D3D11_BUFFER_SRV
262 union
264 UINT FirstElement;
265 UINT ElementOffset;
267 union
269 UINT NumElements;
270 UINT ElementWidth;
272 } D3D11_BUFFER_SRV;
274 typedef struct D3D11_BUFFER_UAV
276 UINT FirstElement;
277 UINT NumElements;
278 UINT Flags;
279 } D3D11_BUFFER_UAV;
281 typedef struct D3D11_BUFFEREX_SRV
283 UINT FirstElement;
284 UINT NumElements;
285 UINT Flags;
286 } D3D11_BUFFEREX_SRV;
288 typedef struct D3D11_CLASS_INSTANCE_DESC
290 UINT InstanceId;
291 UINT InstanceIndex;
292 UINT TypeId;
293 UINT ConstantBuffer;
294 UINT BaseConstantBufferOffset;
295 UINT BaseTexture;
296 UINT BaseSampler;
297 BOOL Created;
298 } D3D11_CLASS_INSTANCE_DESC;
300 typedef enum D3D11_COMPARISON_FUNC
302 D3D11_COMPARISON_NEVER = 1,
303 D3D11_COMPARISON_LESS,
304 D3D11_COMPARISON_EQUAL,
305 D3D11_COMPARISON_LESS_EQUAL,
306 D3D11_COMPARISON_GREATER,
307 D3D11_COMPARISON_NOT_EQUAL,
308 D3D11_COMPARISON_GREATER_EQUAL,
309 D3D11_COMPARISON_ALWAYS
310 } D3D11_COMPARISON_FUNC;
312 typedef enum D3D11_COUNTER
314 D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
315 } D3D11_COUNTER;
317 typedef struct D3D11_COUNTER_DESC
319 D3D11_COUNTER Counter;
320 UINT MiscFlags;
321 } D3D11_COUNTER_DESC;
323 typedef struct D3D11_COUNTER_INFO
325 D3D11_COUNTER LastDeviceDependentCounter;
326 UINT NumSimultaneousCounters;
327 UINT8 NumDetectableParallelUnits;
328 } D3D11_COUNTER_INFO;
330 typedef enum D3D11_COUNTER_TYPE
332 D3D11_COUNTER_TYPE_FLOAT32,
333 D3D11_COUNTER_TYPE_UINT16,
334 D3D11_COUNTER_TYPE_UINT32,
335 D3D11_COUNTER_TYPE_UINT64,
336 } D3D11_COUNTER_TYPE;
338 typedef enum D3D11_CULL_MODE
340 D3D11_CULL_NONE = 1,
341 D3D11_CULL_FRONT,
342 D3D11_CULL_BACK
343 } D3D11_CULL_MODE;
345 typedef enum D3D11_DEPTH_WRITE_MASK
347 D3D11_DEPTH_WRITE_MASK_ZERO,
348 D3D11_DEPTH_WRITE_MASK_ALL,
349 } D3D11_DEPTH_WRITE_MASK;
351 typedef enum D3D11_DEVICE_CONTEXT_TYPE
353 D3D11_DEVICE_CONTEXT_IMMEDIATE,
354 D3D11_DEVICE_CONTEXT_DEFERRED,
355 } D3D11_DEVICE_CONTEXT_TYPE;
357 typedef enum D3D11_DSV_DIMENSION
359 D3D11_DSV_DIMENSION_UNKNOWN,
360 D3D11_DSV_DIMENSION_TEXTURE1D,
361 D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
362 D3D11_DSV_DIMENSION_TEXTURE2D,
363 D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
364 D3D11_DSV_DIMENSION_TEXTURE2DMS,
365 D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
366 } D3D11_DSV_DIMENSION;
368 typedef enum D3D11_FEATURE
370 D3D11_FEATURE_THREADING,
371 D3D11_FEATURE_DOUBLES,
372 D3D11_FEATURE_FORMAT_SUPPORT,
373 D3D11_FEATURE_FORMAT_SUPPORT2,
374 D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
375 } D3D11_FEATURE;
377 typedef enum D3D11_FILL_MODE
379 D3D11_FILL_WIREFRAME = 2,
380 D3D11_FILL_SOLID
381 } D3D11_FILL_MODE;
383 typedef enum D3D11_FILTER_TYPE
385 D3D11_FILTER_TYPE_POINT = 0,
386 D3D11_FILTER_TYPE_LINEAR = 1
387 } D3D11_FILTER_TYPE;
389 const UINT D3D11_MIN_FILTER_SHIFT = 4;
390 const UINT D3D11_MAG_FILTER_SHIFT = 2;
391 const UINT D3D11_MIP_FILTER_SHIFT = 0;
392 const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
393 const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
394 const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
396 cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
397 cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
398 cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
399 cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
400 cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
402 cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
403 cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
404 cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
405 cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
407 cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
408 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
410 cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
411 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
413 cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
414 cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
416 cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
418 cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
419 cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
420 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
421 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
422 cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
424 typedef enum D3D11_FILTER
426 D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
427 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
428 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
429 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
430 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
431 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
432 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
433 D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
434 D3D11_FILTER_ANISOTROPIC = 0x55,
435 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
436 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
437 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
438 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
439 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
440 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
441 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
442 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
443 D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
444 } D3D11_FILTER;
446 typedef enum D3D11_DSV_FLAG
448 D3D11_DSV_READ_ONLY_DEPTH = 0x1,
449 D3D11_DSV_READ_ONLY_STENCIL = 0x2,
450 } D3D11_DSV_FLAG;
452 typedef enum D3D11_INPUT_CLASSIFICATION
454 D3D11_INPUT_PER_VERTEX_DATA,
455 D3D11_INPUT_PER_INSTANCE_DATA,
456 } D3D11_INPUT_CLASSIFICATION;
458 typedef struct D3D11_INPUT_ELEMENT_DESC
460 LPCSTR SemanticName;
461 UINT SemanticIndex;
462 DXGI_FORMAT Format;
463 UINT InputSlot;
464 UINT AlignedByteOffset;
465 D3D11_INPUT_CLASSIFICATION InputSlotClass;
466 UINT InstanceDataStepRate;
467 } D3D11_INPUT_ELEMENT_DESC;
469 typedef enum D3D11_MAP
471 D3D11_MAP_READ = 1,
472 D3D11_MAP_WRITE,
473 D3D11_MAP_READ_WRITE,
474 D3D11_MAP_WRITE_DISCARD,
475 D3D11_MAP_WRITE_NO_OVERWRITE
476 } D3D11_MAP;
478 typedef enum D3D11_MAP_FLAG
480 D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
481 } D3D11_MAP_FLAG;
483 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
485 UINT64 NumPrimitivesWritten;
486 UINT64 PrimitivesStorageNeeded;
487 } D3D11_QUERY_DATA_SO_STATISTICS;
489 typedef struct D3D11_MAPPED_SUBRESOURCE
491 void *pData;
492 UINT RowPitch;
493 UINT DepthPitch;
494 } D3D11_MAPPED_SUBRESOURCE;
496 typedef enum D3D11_QUERY
498 D3D11_QUERY_EVENT,
499 D3D11_QUERY_OCCLUSION,
500 D3D11_QUERY_TIMESTAMP,
501 D3D11_QUERY_TIMESTAMP_DISJOINT,
502 D3D11_QUERY_PIPELINE_STATISTICS,
503 D3D11_QUERY_OCCLUSION_PREDICATE,
504 D3D11_QUERY_SO_STATISTICS,
505 D3D11_QUERY_SO_OVERFLOW_PREDICATE,
506 D3D11_QUERY_SO_STATISTICS_STREAM0,
507 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
508 D3D11_QUERY_SO_STATISTICS_STREAM1,
509 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
510 D3D11_QUERY_SO_STATISTICS_STREAM2,
511 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
512 D3D11_QUERY_SO_STATISTICS_STREAM3,
513 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
514 } D3D11_QUERY;
516 typedef enum D3D11_ASYNC_GETDATA_FLAG
518 D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
519 } D3D11_ASYNC_GETDATA_FLAG;
521 typedef enum D3D11_RESOURCE_MISC_FLAG
523 D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
524 D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
525 D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
526 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
527 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
528 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
529 D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
530 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
531 D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
532 D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
533 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
534 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
535 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
536 D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
537 } D3D11_RESOURCE_MISC_FLAG;
539 typedef struct D3D11_QUERY_DESC
541 D3D11_QUERY Query;
542 UINT MiscFlags;
543 } D3D11_QUERY_DESC;
545 typedef struct D3D11_RASTERIZER_DESC
547 D3D11_FILL_MODE FillMode;
548 D3D11_CULL_MODE CullMode;
549 BOOL FrontCounterClockwise;
550 INT DepthBias;
551 FLOAT DepthBiasClamp;
552 FLOAT SlopeScaledDepthBias;
553 BOOL DepthClipEnable;
554 BOOL ScissorEnable;
555 BOOL MultisampleEnable;
556 BOOL AntialiasedLineEnable;
557 } D3D11_RASTERIZER_DESC;
559 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
560 cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
561 cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
562 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
563 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
564 cpp_quote(" FillMode = D3D11_FILL_SOLID;")
565 cpp_quote(" CullMode = D3D11_CULL_BACK;")
566 cpp_quote(" FrontCounterClockwise = FALSE;")
567 cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
568 cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
569 cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
570 cpp_quote(" DepthClipEnable = TRUE;")
571 cpp_quote(" ScissorEnable = FALSE;")
572 cpp_quote(" MultisampleEnable = FALSE;")
573 cpp_quote(" AntialiasedLineEnable = FALSE;")
574 cpp_quote(" }")
575 cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
576 cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
577 cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
578 cpp_quote(" FillMode = fillMode;")
579 cpp_quote(" CullMode = cullMode;")
580 cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
581 cpp_quote(" DepthBias = depthBias;")
582 cpp_quote(" DepthBiasClamp = depthBiasClamp;")
583 cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
584 cpp_quote(" DepthClipEnable = depthClipEnable;")
585 cpp_quote(" ScissorEnable = scissorEnable;")
586 cpp_quote(" MultisampleEnable = multisampleEnable;")
587 cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
588 cpp_quote(" }")
589 cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
590 cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
591 cpp_quote("};")
592 cpp_quote("#endif")
594 typedef enum D3D11_RESOURCE_DIMENSION
596 D3D11_RESOURCE_DIMENSION_UNKNOWN,
597 D3D11_RESOURCE_DIMENSION_BUFFER,
598 D3D11_RESOURCE_DIMENSION_TEXTURE1D,
599 D3D11_RESOURCE_DIMENSION_TEXTURE2D,
600 D3D11_RESOURCE_DIMENSION_TEXTURE3D,
601 } D3D11_RESOURCE_DIMENSION;
603 typedef enum D3D11_RTV_DIMENSION
605 D3D11_RTV_DIMENSION_UNKNOWN,
606 D3D11_RTV_DIMENSION_BUFFER,
607 D3D11_RTV_DIMENSION_TEXTURE1D,
608 D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
609 D3D11_RTV_DIMENSION_TEXTURE2D,
610 D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
611 D3D11_RTV_DIMENSION_TEXTURE2DMS,
612 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
613 D3D11_RTV_DIMENSION_TEXTURE3D,
614 } D3D11_RTV_DIMENSION;
616 typedef struct D3D11_SO_DECLARATION_ENTRY
618 UINT Stream;
619 LPCSTR SemanticName;
620 UINT SemanticIndex;
621 BYTE StartComponent;
622 BYTE ComponentCount;
623 BYTE OutputSlot;
624 } D3D11_SO_DECLARATION_ENTRY;
626 typedef enum D3D11_STENCIL_OP
628 D3D11_STENCIL_OP_KEEP = 1,
629 D3D11_STENCIL_OP_ZERO,
630 D3D11_STENCIL_OP_REPLACE,
631 D3D11_STENCIL_OP_INCR_SAT,
632 D3D11_STENCIL_OP_DECR_SAT,
633 D3D11_STENCIL_OP_INVERT,
634 D3D11_STENCIL_OP_INCR,
635 D3D11_STENCIL_OP_DECR
636 } D3D11_STENCIL_OP;
638 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
639 cpp_quote("}")
640 cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
641 cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
642 cpp_quote("}")
643 cpp_quote("extern \"C\"{")
644 cpp_quote("#endif")
646 typedef struct D3D11_SUBRESOURCE_DATA
648 const void *pSysMem;
649 UINT SysMemPitch;
650 UINT SysMemSlicePitch;
651 } D3D11_SUBRESOURCE_DATA;
653 typedef struct D3D11_TEX1D_ARRAY_DSV
655 UINT MipSlice;
656 UINT FirstArraySlice;
657 UINT ArraySize;
658 } D3D11_TEX1D_ARRAY_DSV;
660 typedef struct D3D11_TEX1D_ARRAY_RTV
662 UINT MipSlice;
663 UINT FirstArraySlice;
664 UINT ArraySize;
665 } D3D11_TEX1D_ARRAY_RTV;
667 typedef struct D3D11_TEX1D_ARRAY_SRV
669 UINT MostDetailedMip;
670 UINT MipLevels;
671 UINT FirstArraySlice;
672 UINT ArraySize;
673 } D3D11_TEX1D_ARRAY_SRV;
675 typedef struct D3D11_TEX1D_ARRAY_UAV
677 UINT MipSlice;
678 UINT FirstArraySlice;
679 UINT ArraySize;
680 } D3D11_TEX1D_ARRAY_UAV;
682 typedef struct D3D11_TEX1D_DSV
684 UINT MipSlice;
685 } D3D11_TEX1D_DSV;
687 typedef struct D3D11_TEX1D_RTV
689 UINT MipSlice;
690 } D3D11_TEX1D_RTV;
692 typedef struct D3D11_TEX1D_SRV
694 UINT MostDetailedMip;
695 UINT MipLevels;
696 } D3D11_TEX1D_SRV;
698 typedef struct D3D11_TEX1D_UAV
700 UINT MipSlice;
701 } D3D11_TEX1D_UAV;
703 typedef struct D3D11_TEX2D_ARRAY_DSV
705 UINT MipSlice;
706 UINT FirstArraySlice;
707 UINT ArraySize;
708 } D3D11_TEX2D_ARRAY_DSV;
710 typedef struct D3D11_TEX2D_ARRAY_RTV
712 UINT MipSlice;
713 UINT FirstArraySlice;
714 UINT ArraySize;
715 } D3D11_TEX2D_ARRAY_RTV;
717 typedef struct D3D11_TEX2D_ARRAY_SRV
719 UINT MostDetailedMip;
720 UINT MipLevels;
721 UINT FirstArraySlice;
722 UINT ArraySize;
723 } D3D11_TEX2D_ARRAY_SRV;
725 typedef struct D3D11_TEX2D_ARRAY_UAV
727 UINT MipSlice;
728 UINT FirstArraySlice;
729 UINT ArraySize;
730 } D3D11_TEX2D_ARRAY_UAV;
732 typedef struct D3D11_TEX2D_DSV
734 UINT MipSlice;
735 } D3D11_TEX2D_DSV;
737 typedef struct D3D11_TEX2D_RTV
739 UINT MipSlice;
740 } D3D11_TEX2D_RTV;
742 typedef struct D3D11_TEX2D_SRV
744 UINT MostDetailedMip;
745 UINT MipLevels;
746 } D3D11_TEX2D_SRV;
748 typedef struct D3D11_TEX2D_UAV
750 UINT MipSlice;
751 } D3D11_TEX2D_UAV;
753 typedef struct D3D11_TEX2DMS_ARRAY_DSV
755 UINT FirstArraySlice;
756 UINT ArraySize;
757 } D3D11_TEX2DMS_ARRAY_DSV;
759 typedef struct D3D11_TEX2DMS_ARRAY_RTV
761 UINT FirstArraySlice;
762 UINT ArraySize;
763 } D3D11_TEX2DMS_ARRAY_RTV;
765 typedef struct D3D11_TEX2DMS_ARRAY_SRV
767 UINT FirstArraySlice;
768 UINT ArraySize;
769 } D3D11_TEX2DMS_ARRAY_SRV;
771 typedef struct D3D11_TEX2DMS_DSV
773 UINT UnusedField_NothingToDefine;
774 } D3D11_TEX2DMS_DSV;
776 typedef struct D3D11_TEX2DMS_RTV
778 UINT UnusedField_NothingToDefine;
779 } D3D11_TEX2DMS_RTV;
781 typedef struct D3D11_TEX2DMS_SRV
783 UINT UnusedField_NothingToDefine;
784 } D3D11_TEX2DMS_SRV;
786 typedef struct D3D11_TEX3D_RTV
788 UINT MipSlice;
789 UINT FirstWSlice;
790 UINT WSize;
791 } D3D11_TEX3D_RTV;
793 typedef struct D3D11_TEX3D_SRV
795 UINT MostDetailedMip;
796 UINT MipLevels;
797 } D3D11_TEX3D_SRV;
799 typedef struct D3D11_TEX3D_UAV
801 UINT MipSlice;
802 UINT FirstWSlice;
803 UINT WSize;
804 } D3D11_TEX3D_UAV;
806 typedef struct D3D11_TEXCUBE_ARRAY_SRV
808 UINT MostDetailedMip;
809 UINT MipLevels;
810 UINT First2DArrayFace;
811 UINT NumCubes;
812 } D3D11_TEXCUBE_ARRAY_SRV;
814 typedef struct D3D11_TEXCUBE_SRV
816 UINT MostDetailedMip;
817 UINT MipLevels;
818 } D3D11_TEXCUBE_SRV;
820 typedef enum D3D11_TEXTURE_ADDRESS_MODE
822 D3D11_TEXTURE_ADDRESS_WRAP = 1,
823 D3D11_TEXTURE_ADDRESS_MIRROR,
824 D3D11_TEXTURE_ADDRESS_CLAMP,
825 D3D11_TEXTURE_ADDRESS_BORDER,
826 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
827 } D3D11_TEXTURE_ADDRESS_MODE;
829 typedef enum D3D11_UAV_DIMENSION
831 D3D11_UAV_DIMENSION_UNKNOWN,
832 D3D11_UAV_DIMENSION_BUFFER,
833 D3D11_UAV_DIMENSION_TEXTURE1D,
834 D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
835 D3D11_UAV_DIMENSION_TEXTURE2D,
836 D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
837 D3D11_UAV_DIMENSION_TEXTURE3D = 8,
838 } D3D11_UAV_DIMENSION;
840 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
842 DXGI_FORMAT Format;
843 D3D11_UAV_DIMENSION ViewDimension;
845 union
847 D3D11_BUFFER_UAV Buffer;
848 D3D11_TEX1D_UAV Texture1D;
849 D3D11_TEX1D_ARRAY_UAV Texture1DArray;
850 D3D11_TEX2D_UAV Texture2D;
851 D3D11_TEX2D_ARRAY_UAV Texture2DArray;
852 D3D11_TEX3D_UAV Texture3D;
854 } D3D11_UNORDERED_ACCESS_VIEW_DESC;
856 typedef enum D3D11_USAGE
858 D3D11_USAGE_DEFAULT,
859 D3D11_USAGE_IMMUTABLE,
860 D3D11_USAGE_DYNAMIC,
861 D3D11_USAGE_STAGING,
862 } D3D11_USAGE;
864 typedef enum D3D11_BIND_FLAG
866 D3D11_BIND_VERTEX_BUFFER = 0x0001,
867 D3D11_BIND_INDEX_BUFFER = 0x0002,
868 D3D11_BIND_CONSTANT_BUFFER = 0x0004,
869 D3D11_BIND_SHADER_RESOURCE = 0x0008,
870 D3D11_BIND_STREAM_OUTPUT = 0x0010,
871 D3D11_BIND_RENDER_TARGET = 0x0020,
872 D3D11_BIND_DEPTH_STENCIL = 0x0040,
873 D3D11_BIND_UNORDERED_ACCESS = 0x0080,
874 D3D11_BIND_DECODER = 0x0200,
875 D3D11_BIND_VIDEO_ENCODER = 0x0400
876 } D3D11_BIND_FLAG;
878 typedef enum D3D11_CPU_ACCESS_FLAG
880 D3D11_CPU_ACCESS_WRITE = 0x00010000,
881 D3D11_CPU_ACCESS_READ = 0x00020000
882 } D3D11_CPU_ACCESS_FLAG;
884 typedef struct D3D11_VIEWPORT
886 FLOAT TopLeftX;
887 FLOAT TopLeftY;
888 FLOAT Width;
889 FLOAT Height;
890 FLOAT MinDepth;
891 FLOAT MaxDepth;
892 } D3D11_VIEWPORT;
894 typedef enum D3D11_COLOR_WRITE_ENABLE
896 D3D11_COLOR_WRITE_ENABLE_RED = 1,
897 D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
898 D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
899 D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
900 D3D11_COLOR_WRITE_ENABLE_ALL =
901 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
902 } D3D11_COLOR_WRITE_ENABLE;
904 typedef enum D3D11_FORMAT_SUPPORT
906 D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
907 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
908 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
909 D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
910 D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
911 D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
912 D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
913 D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
914 D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
915 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
916 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
917 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
918 D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
919 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
920 D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
921 D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
922 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
923 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
924 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
925 D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
926 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
927 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
928 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
929 D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
930 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
931 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
932 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000
933 } D3D11_FORMAT_SUPPORT;
935 typedef enum D3D11_CLEAR_FLAG
937 D3D11_CLEAR_DEPTH = 0x0001L,
938 D3D11_CLEAR_STENCIL = 0x0002L
939 } D3D11_CLEAR_FLAG;
941 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
943 BOOL BlendEnable;
944 D3D11_BLEND SrcBlend;
945 D3D11_BLEND DestBlend;
946 D3D11_BLEND_OP BlendOp;
947 D3D11_BLEND SrcBlendAlpha;
948 D3D11_BLEND DestBlendAlpha;
949 D3D11_BLEND_OP BlendOpAlpha;
950 UINT8 RenderTargetWriteMask;
951 } D3D11_RENDER_TARGET_BLEND_DESC;
953 typedef struct D3D11_BLEND_DESC
955 BOOL AlphaToCoverageEnable;
956 BOOL IndependentBlendEnable;
957 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
958 } D3D11_BLEND_DESC;
960 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
961 cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
962 cpp_quote(" CD3D11_BLEND_DESC() {}")
963 cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
964 cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
965 cpp_quote(" AlphaToCoverageEnable = FALSE;")
966 cpp_quote(" IndependentBlendEnable = FALSE;")
967 cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
968 cpp_quote(" target->BlendEnable = FALSE;")
969 cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
970 cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
971 cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
972 cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
973 cpp_quote(" }")
974 cpp_quote(" }")
975 cpp_quote(" ~CD3D11_BLEND_DESC() {}")
976 cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
977 cpp_quote("};" )
978 cpp_quote("#endif" )
980 typedef struct D3D11_BUFFER_DESC
982 UINT ByteWidth;
983 D3D11_USAGE Usage;
984 UINT BindFlags;
985 UINT CPUAccessFlags;
986 UINT MiscFlags;
987 UINT StructureByteStride;
988 } D3D11_BUFFER_DESC;
990 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
991 cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
992 cpp_quote(" CD3D11_BUFFER_DESC() {}" )
993 cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
994 cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
995 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
996 cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
997 cpp_quote(" ByteWidth = byteWidth;")
998 cpp_quote(" Usage = usage;")
999 cpp_quote(" BindFlags = bindFlags;")
1000 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1001 cpp_quote(" MiscFlags = miscFlags;" )
1002 cpp_quote(" StructureByteStride = structureByteStride;")
1003 cpp_quote(" }")
1004 cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
1005 cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1006 cpp_quote("};" )
1007 cpp_quote("#endif" )
1009 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1011 DXGI_FORMAT Format;
1012 D3D11_DSV_DIMENSION ViewDimension;
1013 UINT Flags;
1015 union
1017 D3D11_TEX1D_DSV Texture1D;
1018 D3D11_TEX1D_ARRAY_DSV Texture1DArray;
1019 D3D11_TEX2D_DSV Texture2D;
1020 D3D11_TEX2D_ARRAY_DSV Texture2DArray;
1021 D3D11_TEX2DMS_DSV Texture2DMS;
1022 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
1024 } D3D11_DEPTH_STENCIL_VIEW_DESC;
1026 typedef struct D3D11_DEPTH_STENCILOP_DESC
1028 D3D11_STENCIL_OP StencilFailOp;
1029 D3D11_STENCIL_OP StencilDepthFailOp;
1030 D3D11_STENCIL_OP StencilPassOp;
1031 D3D11_COMPARISON_FUNC StencilFunc;
1032 } D3D11_DEPTH_STENCILOP_DESC;
1034 typedef struct D3D11_DEPTH_STENCIL_DESC
1036 BOOL DepthEnable;
1037 D3D11_DEPTH_WRITE_MASK DepthWriteMask;
1038 D3D11_COMPARISON_FUNC DepthFunc;
1039 BOOL StencilEnable;
1040 UINT8 StencilReadMask;
1041 UINT8 StencilWriteMask;
1042 D3D11_DEPTH_STENCILOP_DESC FrontFace;
1043 D3D11_DEPTH_STENCILOP_DESC BackFace;
1044 } D3D11_DEPTH_STENCIL_DESC;
1046 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1048 DXGI_FORMAT Format;
1049 D3D11_RTV_DIMENSION ViewDimension;
1051 union
1053 D3D11_BUFFER_RTV Buffer;
1054 D3D11_TEX1D_RTV Texture1D;
1055 D3D11_TEX1D_ARRAY_RTV Texture1DArray;
1056 D3D11_TEX2D_RTV Texture2D;
1057 D3D11_TEX2D_ARRAY_RTV Texture2DArray;
1058 D3D11_TEX2DMS_RTV Texture2DMS;
1059 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
1060 D3D11_TEX3D_RTV Texture3D;
1062 } D3D11_RENDER_TARGET_VIEW_DESC;
1064 typedef struct D3D11_SAMPLER_DESC
1066 D3D11_FILTER Filter;
1067 D3D11_TEXTURE_ADDRESS_MODE AddressU;
1068 D3D11_TEXTURE_ADDRESS_MODE AddressV;
1069 D3D11_TEXTURE_ADDRESS_MODE AddressW;
1070 FLOAT MipLODBias;
1071 UINT MaxAnisotropy;
1072 D3D11_COMPARISON_FUNC ComparisonFunc;
1073 FLOAT BorderColor[4];
1074 FLOAT MinLOD;
1075 FLOAT MaxLOD;
1076 } D3D11_SAMPLER_DESC;
1078 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1079 cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1080 cpp_quote(" CD3D11_SAMPLER_DESC() {}")
1081 cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1082 cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1083 cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1084 cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1085 cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1086 cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1087 cpp_quote(" MipLODBias = 0;")
1088 cpp_quote(" MaxAnisotropy = 1;")
1089 cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1090 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1091 cpp_quote(" MinLOD = -3.402823466e+38f;")
1092 cpp_quote(" MaxLOD = 3.402823466e+38f;")
1093 cpp_quote(" }")
1094 cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1095 cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1096 cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1097 cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1098 cpp_quote(" Filter = filter;")
1099 cpp_quote(" AddressU = addressU;")
1100 cpp_quote(" AddressV = addressV;")
1101 cpp_quote(" AddressW = addressW;")
1102 cpp_quote(" MipLODBias = mipLODBias;")
1103 cpp_quote(" MaxAnisotropy = maxAnisotropy;")
1104 cpp_quote(" ComparisonFunc = comparisonFunc;")
1105 cpp_quote(" if(borderColor) {")
1106 cpp_quote(" BorderColor[0] = borderColor[0];")
1107 cpp_quote(" BorderColor[1] = borderColor[1];")
1108 cpp_quote(" BorderColor[2] = borderColor[2];")
1109 cpp_quote(" BorderColor[3] = borderColor[3];")
1110 cpp_quote(" }else {")
1111 cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1112 cpp_quote(" }")
1113 cpp_quote(" MinLOD = minLOD;")
1114 cpp_quote(" MaxLOD = maxLOD;")
1115 cpp_quote(" }")
1116 cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
1117 cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1118 cpp_quote("};")
1119 cpp_quote("#endif")
1121 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1123 DXGI_FORMAT Format;
1124 D3D11_SRV_DIMENSION ViewDimension;
1126 union
1128 D3D11_BUFFER_SRV Buffer;
1129 D3D11_TEX1D_SRV Texture1D;
1130 D3D11_TEX1D_ARRAY_SRV Texture1DArray;
1131 D3D11_TEX2D_SRV Texture2D;
1132 D3D11_TEX2D_ARRAY_SRV Texture2DArray;
1133 D3D11_TEX2DMS_SRV Texture2DMS;
1134 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
1135 D3D11_TEX3D_SRV Texture3D;
1136 D3D11_TEXCUBE_SRV TextureCube;
1137 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
1138 D3D11_BUFFEREX_SRV BufferEx;
1140 } D3D11_SHADER_RESOURCE_VIEW_DESC;
1142 typedef struct D3D11_TEXTURE1D_DESC
1144 UINT Width;
1145 UINT MipLevels;
1146 UINT ArraySize;
1147 DXGI_FORMAT Format;
1148 D3D11_USAGE Usage;
1149 UINT BindFlags;
1150 UINT CPUAccessFlags;
1151 UINT MiscFlags;
1152 } D3D11_TEXTURE1D_DESC;
1154 typedef struct D3D11_TEXTURE2D_DESC
1156 UINT Width;
1157 UINT Height;
1158 UINT MipLevels;
1159 UINT ArraySize;
1160 DXGI_FORMAT Format;
1161 DXGI_SAMPLE_DESC SampleDesc;
1162 D3D11_USAGE Usage;
1163 UINT BindFlags;
1164 UINT CPUAccessFlags;
1165 UINT MiscFlags;
1166 } D3D11_TEXTURE2D_DESC;
1168 cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1169 cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1170 cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
1171 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1172 cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1173 cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1174 cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1175 cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1176 cpp_quote(" Width = width;")
1177 cpp_quote(" Height = height;")
1178 cpp_quote(" MipLevels = mipLevels;")
1179 cpp_quote(" ArraySize = arraySize;")
1180 cpp_quote(" Format = format;")
1181 cpp_quote(" SampleDesc.Count = sampleCount;")
1182 cpp_quote(" SampleDesc.Quality = sampleQuality;")
1183 cpp_quote(" Usage = usage;")
1184 cpp_quote(" BindFlags = bindFlags;")
1185 cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
1186 cpp_quote(" MiscFlags = miscFlags;")
1187 cpp_quote(" }" )
1188 cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
1189 cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1190 cpp_quote("};")
1191 cpp_quote("#endif")
1193 typedef struct D3D11_TEXTURE3D_DESC
1195 UINT Width;
1196 UINT Height;
1197 UINT Depth;
1198 UINT MipLevels;
1199 DXGI_FORMAT Format;
1200 D3D11_USAGE Usage;
1201 UINT BindFlags;
1202 UINT CPUAccessFlags;
1203 UINT MiscFlags;
1204 } D3D11_TEXTURE3D_DESC;
1206 /* A couple forward declarations are needed */
1207 interface ID3D11Device;
1208 interface ID3D11ClassLinkage;
1211 object,
1212 local,
1213 uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
1215 interface ID3D11DeviceChild : IUnknown
1217 void GetDevice(
1218 [out] ID3D11Device **ppDevice);
1219 HRESULT GetPrivateData(
1220 [in] REFGUID guid,
1221 [in, out] UINT *pDataSize,
1222 [out] void *pData);
1223 HRESULT SetPrivateData(
1224 [in] REFGUID guid,
1225 [in] UINT DataSize,
1226 [in] const void *pData);
1227 HRESULT SetPrivateDataInterface(
1228 [in] REFGUID guid,
1229 [in] const IUnknown *pData);
1233 object,
1234 local,
1235 uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
1237 interface ID3D11Asynchronous : ID3D11DeviceChild
1239 UINT GetDataSize();
1243 object,
1244 local,
1245 uuid(d6c00747-87b7-425e-b84d-44d108560afd)
1247 interface ID3D11Query : ID3D11Asynchronous
1249 void GetDesc(
1250 [out] D3D11_QUERY_DESC *pDesc);
1254 object,
1255 local,
1256 uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
1258 interface ID3D11Resource : ID3D11DeviceChild
1260 void GetType(
1261 [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
1262 void SetEvictionPriority(
1263 [in] UINT EvictionPriority);
1264 UINT GetEvictionPriority();
1268 object,
1269 local,
1270 uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
1272 interface ID3D11View : ID3D11DeviceChild
1274 void GetResource(
1275 [out] ID3D11Resource **ppResource);
1279 object,
1280 local,
1281 uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
1283 interface ID3D11BlendState : ID3D11DeviceChild
1285 void GetDesc(
1286 [out] D3D11_BLEND_DESC *pDesc);
1290 object,
1291 local,
1292 uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
1294 interface ID3D11Buffer : ID3D11Resource
1296 void GetDesc(
1297 [out] D3D11_BUFFER_DESC *pDesc);
1301 object,
1302 local,
1303 uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
1305 interface ID3D11ClassInstance : ID3D11DeviceChild
1307 void GetClassLinkage(
1308 [out] ID3D11ClassLinkage **ppLinkage);
1309 void GetDesc(
1310 [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
1311 void GetInstanceName(
1312 [out] LPSTR pInstanceName,
1313 [in, out] SIZE_T *pBufferLength);
1314 void GetTypeName(
1315 [out] LPSTR pTypeName,
1316 [in, out] SIZE_T *pBufferLength);
1320 object,
1321 local,
1322 uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
1324 interface ID3D11ClassLinkage : ID3D11DeviceChild
1326 HRESULT GetClassInstance(
1327 [in] LPCSTR pClassInstanceName,
1328 [in] UINT InstanceIndex,
1329 [out] ID3D11ClassInstance **ppInstance);
1330 HRESULT CreateClassInstance(
1331 [in] LPCSTR pClassTypeName,
1332 [in] UINT ConstantBufferOffset,
1333 [in] UINT ConstantVectorOffset,
1334 [in] UINT TextureOffset,
1335 [in] UINT SamplerOffset,
1336 [out] ID3D11ClassInstance **ppInstance);
1340 object,
1341 local,
1342 uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
1344 interface ID3D11CommandList : ID3D11DeviceChild
1346 UINT GetContextFlags();
1350 object,
1351 local,
1352 uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
1354 interface ID3D11ComputeShader : ID3D11DeviceChild
1359 object,
1360 local,
1361 uuid(6e8c49fb-a371-4770-b440-29086022b741)
1363 interface ID3D11Counter : ID3D11Asynchronous
1365 void GetDesc(
1366 [out] D3D11_COUNTER_DESC *pDesc);
1370 object,
1371 local,
1372 uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
1374 interface ID3D11DepthStencilState : ID3D11DeviceChild
1376 void GetDesc(
1377 [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
1381 object,
1382 local,
1383 uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
1385 interface ID3D11DepthStencilView : ID3D11View
1387 void GetDesc(
1388 [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
1392 object,
1393 local,
1394 uuid(f582c508-0f36-490c-9977-31eece268cfa)
1396 interface ID3D11DomainShader : ID3D11DeviceChild
1401 object,
1402 local,
1403 uuid(38325b96-effb-4022-ba02-2e795b70275c)
1405 interface ID3D11GeometryShader : ID3D11DeviceChild
1410 object,
1411 local,
1412 uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
1414 interface ID3D11HullShader : ID3D11DeviceChild
1419 object,
1420 local,
1421 uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
1423 interface ID3D11InputLayout : ID3D11DeviceChild
1428 object,
1429 local,
1430 uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
1432 interface ID3D11PixelShader : ID3D11DeviceChild
1437 object,
1438 local,
1439 uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
1441 interface ID3D11Predicate : ID3D11Query
1446 object,
1447 local,
1448 uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
1450 interface ID3D11RasterizerState : ID3D11DeviceChild
1452 void GetDesc(
1453 [out] D3D11_RASTERIZER_DESC *pDesc);
1457 object,
1458 local,
1459 uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
1461 interface ID3D11RenderTargetView : ID3D11View
1463 void GetDesc(
1464 [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
1468 object,
1469 local,
1470 uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
1472 interface ID3D11SamplerState : ID3D11DeviceChild
1474 void GetDesc(
1475 [out] D3D11_SAMPLER_DESC *pDesc);
1479 object,
1480 local,
1481 uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
1483 interface ID3D11ShaderResourceView : ID3D11View
1485 void GetDesc(
1486 [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
1490 object,
1491 local,
1492 uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
1494 interface ID3D11Texture1D : ID3D11Resource
1496 void GetDesc(
1497 [out] D3D11_TEXTURE1D_DESC *pDesc);
1501 object,
1502 local,
1503 uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
1505 interface ID3D11Texture2D : ID3D11Resource
1507 void GetDesc(
1508 [out] D3D11_TEXTURE2D_DESC *pDesc);
1512 object,
1513 local,
1514 uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
1516 interface ID3D11Texture3D : ID3D11Resource
1518 void GetDesc(
1519 [out] D3D11_TEXTURE3D_DESC *pDesc);
1523 object,
1524 local,
1525 uuid(28acf509-7f5c-48f6-8611-f316010a6380)
1527 interface ID3D11UnorderedAccessView : ID3D11View
1529 void GetDesc(
1530 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
1534 object,
1535 local,
1536 uuid(3b301d64-d678-4289-8897-22f8928b72f3)
1538 interface ID3D11VertexShader : ID3D11DeviceChild
1543 object,
1544 local,
1545 uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
1547 interface ID3D11DeviceContext : ID3D11DeviceChild
1549 void VSSetConstantBuffers(
1550 [in] UINT StartSlot,
1551 [in] UINT NumBuffers,
1552 [in] ID3D11Buffer *const *ppConstantBuffers);
1553 void PSSetShaderResources(
1554 [in] UINT StartSlot,
1555 [in] UINT NumViews,
1556 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1557 void PSSetShader(
1558 [in] ID3D11PixelShader *pPixelShader,
1559 [in] ID3D11ClassInstance *const *ppClassInstances,
1560 UINT NumClassInstances);
1561 void PSSetSamplers(
1562 [in] UINT StartSlot,
1563 [in] UINT NumSamplers,
1564 [in] ID3D11SamplerState *const *ppSamplers);
1565 void VSSetShader(
1566 [in] ID3D11VertexShader *pVertexShader,
1567 [in] ID3D11ClassInstance *const *ppClassInstances,
1568 UINT NumClassInstances);
1569 void DrawIndexed(
1570 [in] UINT IndexCount,
1571 [in] UINT StartIndexLocation,
1572 [in] INT BaseVertexLocation);
1573 void Draw(
1574 [in] UINT VertexCount,
1575 [in] UINT StartVertexLocation);
1576 HRESULT Map(
1577 [in] ID3D11Resource *pResource,
1578 [in] UINT Subresource,
1579 [in] D3D11_MAP MapType,
1580 [in] UINT MapFlags,
1581 [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
1582 void Unmap(
1583 [in] ID3D11Resource *pResource,
1584 [in] UINT Subresource);
1585 void PSSetConstantBuffers(
1586 [in] UINT StartSlot,
1587 [in] UINT NumBuffers,
1588 [in] ID3D11Buffer *const *ppConstantBuffers);
1589 void IASetInputLayout(
1590 [in] ID3D11InputLayout *pInputLayout);
1591 void IASetVertexBuffers(
1592 [in] UINT StartSlot,
1593 [in] UINT NumBuffers,
1594 [in] ID3D11Buffer *const *ppVertexBuffers,
1595 [in] const UINT *pStrides,
1596 [in] const UINT *pOffsets);
1597 void IASetIndexBuffer(
1598 [in] ID3D11Buffer *pIndexBuffer,
1599 [in] DXGI_FORMAT Format,
1600 [in] UINT Offset);
1601 void DrawIndexedInstanced(
1602 [in] UINT IndexCountPerInstance,
1603 [in] UINT InstanceCount,
1604 [in] UINT StartIndexLocation,
1605 [in] INT BaseVertexLocation,
1606 [in] UINT StartInstanceLocation);
1607 void DrawInstanced(
1608 [in] UINT VertexCountPerInstance,
1609 [in] UINT InstanceCount,
1610 [in] UINT StartVertexLocation,
1611 [in] UINT StartInstanceLocation);
1612 void GSSetConstantBuffers(
1613 [in] UINT StartSlot,
1614 [in] UINT NumBuffers,
1615 [in] ID3D11Buffer *const *ppConstantBuffers);
1616 void GSSetShader(
1617 [in] ID3D11GeometryShader *pShader,
1618 [in] ID3D11ClassInstance *const *ppClassInstances,
1619 UINT NumClassInstances);
1620 void IASetPrimitiveTopology(
1621 [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
1622 void VSSetShaderResources(
1623 [in] UINT StartSlot,
1624 [in] UINT NumViews,
1625 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1626 void VSSetSamplers(
1627 [in] UINT StartSlot,
1628 [in] UINT NumSamplers,
1629 [in] ID3D11SamplerState *const *ppSamplers);
1630 void Begin(
1631 [in] ID3D11Asynchronous *pAsync);
1632 void End(
1633 [in] ID3D11Asynchronous *pAsync);
1634 HRESULT GetData(
1635 [in] ID3D11Asynchronous *pAsync,
1636 [in] void *pData,
1637 [in] UINT DataSize,
1638 [in] UINT GetDataFlags);
1639 void SetPredication(
1640 [in] ID3D11Predicate *pPredicate,
1641 [in] BOOL PredicateValue);
1642 void GSSetShaderResources(
1643 [in] UINT StartSlot,
1644 [in] UINT NumViews,
1645 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1646 void GSSetSamplers(
1647 [in] UINT StartSlot,
1648 [in] UINT NumSamplers,
1649 [in] ID3D11SamplerState *const *ppSamplers);
1650 void OMSetRenderTargets(
1651 [in] UINT NumViews,
1652 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
1653 [in] ID3D11DepthStencilView *pDepthStencilView);
1654 void OMSetRenderTargetsAndUnorderedAccessViews(
1655 [in] UINT NumRTVs,
1656 [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
1657 [in] ID3D11DepthStencilView *pDepthStencilView,
1658 [in] UINT UAVStartSlot,
1659 [in] UINT NumUAVs,
1660 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
1661 [in] const UINT *pUAVInitialCounts);
1662 void OMSetBlendState(
1663 [in] ID3D11BlendState *pBlendState,
1664 [in] const FLOAT BlendFactor[4],
1665 [in] UINT SampleMask);
1666 void OMSetDepthStencilState(
1667 [in] ID3D11DepthStencilState *pDepthStencilState,
1668 [in] UINT StencilRef);
1669 void SOSetTargets(
1670 [in] UINT NumBuffers,
1671 [in] ID3D11Buffer *const *ppSOTargets,
1672 [in] const UINT *pOffsets);
1673 void DrawAuto();
1674 void DrawIndexedInstancedIndirect(
1675 [in] ID3D11Buffer *pBufferForArgs,
1676 [in] UINT AlignedByteOffsetForArgs);
1677 void DrawInstancedIndirect(
1678 [in] ID3D11Buffer *pBufferForArgs,
1679 [in] UINT AlignedByteOffsetForArgs);
1680 void Dispatch(
1681 [in] UINT ThreadGroupCountX,
1682 [in] UINT ThreadGroupCountY,
1683 [in] UINT ThreadGroupCountZ);
1684 void DispatchIndirect(
1685 [in] ID3D11Buffer *pBufferForArgs,
1686 [in] UINT AlignedByteOffsetForArgs);
1687 void RSSetState(
1688 [in] ID3D11RasterizerState *pRasterizerState);
1689 void RSSetViewports(
1690 [in] UINT NumViewports,
1691 [in] const D3D11_VIEWPORT *pViewports);
1692 void RSSetScissorRects(
1693 [in] UINT NumRects,
1694 [in] const D3D11_RECT *pRects);
1695 void CopySubresourceRegion(
1696 [in] ID3D11Resource *pDstResource,
1697 [in] UINT DstSubresource,
1698 [in] UINT DstX,
1699 [in] UINT DstY,
1700 [in] UINT DstZ,
1701 [in] ID3D11Resource *pSrcResource,
1702 [in] UINT SrcSubresource,
1703 [in] const D3D11_BOX *pSrcBox);
1704 void CopyResource(
1705 [in] ID3D11Resource *pDstResource,
1706 [in] ID3D11Resource *pSrcResource);
1707 void UpdateSubresource(
1708 [in] ID3D11Resource *pDstResource,
1709 [in] UINT DstSubresource,
1710 [in] const D3D11_BOX *pDstBox,
1711 [in] const void *pSrcData,
1712 [in] UINT SrcRowPitch,
1713 [in] UINT SrcDepthPitch);
1714 void CopyStructureCount(
1715 [in] ID3D11Buffer *pDstBuffer,
1716 [in] UINT DstAlignedByteOffset,
1717 [in] ID3D11UnorderedAccessView *pSrcView);
1718 void ClearRenderTargetView(
1719 [in] ID3D11RenderTargetView *pRenderTargetView,
1720 [in] const FLOAT ColorRGBA[4]);
1721 void ClearUnorderedAccessViewUint(
1722 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
1723 [in] const UINT Values[4]);
1724 void ClearUnorderedAccessViewFloat(
1725 [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
1726 [in] const FLOAT Values[4]);
1727 void ClearDepthStencilView(
1728 [in] ID3D11DepthStencilView *pDepthStencilView,
1729 [in] UINT ClearFlags,
1730 [in] FLOAT Depth,
1731 [in] UINT8 Stencil);
1732 void GenerateMips(
1733 [in] ID3D11ShaderResourceView *pShaderResourceView);
1734 void SetResourceMinLOD(
1735 [in] ID3D11Resource *pResource, FLOAT MinLOD);
1736 FLOAT GetResourceMinLOD(
1737 [in] ID3D11Resource *pResource);
1738 void ResolveSubresource(
1739 [in] ID3D11Resource *pDstResource,
1740 [in] UINT DstSubresource,
1741 [in] ID3D11Resource *pSrcResource,
1742 [in] UINT SrcSubresource,
1743 [in] DXGI_FORMAT Format);
1744 void ExecuteCommandList(
1745 [in] ID3D11CommandList *pCommandList,
1746 BOOL RestoreContextState);
1747 void HSSetShaderResources(
1748 [in] UINT StartSlot,
1749 [in] UINT NumViews,
1750 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1751 void HSSetShader(
1752 [in] ID3D11HullShader *pHullShader,
1753 [in] ID3D11ClassInstance *const *ppClassInstances,
1754 UINT NumClassInstances);
1755 void HSSetSamplers(
1756 [in] UINT StartSlot,
1757 [in] UINT NumSamplers,
1758 [in] ID3D11SamplerState *const *ppSamplers);
1759 void HSSetConstantBuffers(
1760 [in] UINT StartSlot,
1761 [in] UINT NumBuffers,
1762 [in] ID3D11Buffer *const *ppConstantBuffers);
1763 void DSSetShaderResources(
1764 [in] UINT StartSlot,
1765 [in] UINT NumViews,
1766 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1767 void DSSetShader(
1768 [in] ID3D11DomainShader *pDomainShader,
1769 [in] ID3D11ClassInstance *const *ppClassInstances,
1770 UINT NumClassInstances);
1771 void DSSetSamplers(
1772 [in] UINT StartSlot,
1773 [in] UINT NumSamplers,
1774 [in] ID3D11SamplerState *const *ppSamplers);
1775 void DSSetConstantBuffers(
1776 [in] UINT StartSlot,
1777 [in] UINT NumBuffers,
1778 [in] ID3D11Buffer *const *ppConstantBuffers);
1779 void CSSetShaderResources(
1780 [in] UINT StartSlot,
1781 [in] UINT NumViews,
1782 [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
1783 void CSSetUnorderedAccessViews(
1784 [in] UINT StartSlot,
1785 [in] UINT NumUAVs,
1786 [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
1787 [in] const UINT *pUAVInitialCounts);
1788 void CSSetShader(
1789 [in] ID3D11ComputeShader *pComputeShader,
1790 [in] ID3D11ClassInstance *const *ppClassInstances,
1791 UINT NumClassInstances);
1792 void CSSetSamplers(
1793 [in] UINT StartSlot,
1794 [in] UINT NumSamplers,
1795 [in] ID3D11SamplerState *const *ppSamplers);
1796 void CSSetConstantBuffers(
1797 [in] UINT StartSlot,
1798 [in] UINT NumBuffers,
1799 [in] ID3D11Buffer *const *ppConstantBuffers);
1800 void VSGetConstantBuffers(
1801 [in] UINT StartSlot,
1802 [in] UINT NumBuffers,
1803 [out] ID3D11Buffer **ppConstantBuffers);
1804 void PSGetShaderResources(
1805 [in] UINT StartSlot,
1806 [in] UINT NumViews,
1807 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1808 void PSGetShader(
1809 [out] ID3D11PixelShader **ppPixelShader,
1810 [out] ID3D11ClassInstance **ppClassInstances,
1811 [in, out] UINT *pNumClassInstances);
1812 void PSGetSamplers(
1813 [in] UINT StartSlot,
1814 [in] UINT NumSamplers,
1815 [out] ID3D11SamplerState **ppSamplers);
1816 void VSGetShader(
1817 [out] ID3D11VertexShader **ppVertexShader,
1818 [out] ID3D11ClassInstance **ppClassInstances,
1819 [in, out] UINT *pNumClassInstances);
1820 void PSGetConstantBuffers(
1821 [in] UINT StartSlot,
1822 [in] UINT NumBuffers,
1823 [out] ID3D11Buffer **ppConstantBuffers);
1824 void IAGetInputLayout(
1825 [out] ID3D11InputLayout **ppInputLayout);
1826 void IAGetVertexBuffers(
1827 [in] UINT StartSlot,
1828 [in] UINT NumBuffers,
1829 [out] ID3D11Buffer **ppVertexBuffers,
1830 [out] UINT *pStrides,
1831 [out] UINT *pOffsets);
1832 void IAGetIndexBuffer(
1833 [out] ID3D11Buffer **pIndexBuffer,
1834 [out] DXGI_FORMAT* Format,
1835 [out] UINT* Offset);
1836 void GSGetConstantBuffers(
1837 [in] UINT StartSlot,
1838 [in] UINT NumBuffers,
1839 [out] ID3D11Buffer **ppConstantBuffers);
1840 void GSGetShader(
1841 [out] ID3D11GeometryShader **ppGeometryShader,
1842 [out] ID3D11ClassInstance **ppClassInstances,
1843 [in, out] UINT *pNumClassInstances);
1844 void IAGetPrimitiveTopology(
1845 [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
1846 void VSGetShaderResources(
1847 [in] UINT StartSlot,
1848 [in] UINT NumViews,
1849 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1850 void VSGetSamplers(
1851 [in] UINT StartSlot,
1852 [in] UINT NumSamplers,
1853 [out] ID3D11SamplerState **ppSamplers);
1854 void GetPredication(
1855 [out] ID3D11Predicate **ppPredicate,
1856 [out] BOOL *pPredicateValue);
1857 void GSGetShaderResources(
1858 [in] UINT StartSlot,
1859 [in] UINT NumViews,
1860 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1861 void GSGetSamplers(
1862 [in] UINT StartSlot,
1863 [in] UINT NumSamplers,
1864 [out] ID3D11SamplerState **ppSamplers);
1865 void OMGetRenderTargets(
1866 [in] UINT NumViews,
1867 [out] ID3D11RenderTargetView **ppRenderTargetViews,
1868 [out] ID3D11DepthStencilView **ppDepthStencilView);
1869 void OMGetRenderTargetsAndUnorderedAccessViews(
1870 [in] UINT NumRTVs,
1871 [out] ID3D11RenderTargetView **ppRenderTargetViews,
1872 [out] ID3D11DepthStencilView **ppDepthStencilView,
1873 [in] UINT UAVStartSlot,
1874 [in] UINT NumUAVs,
1875 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
1876 void OMGetBlendState(
1877 [out] ID3D11BlendState **ppBlendState,
1878 [out] FLOAT BlendFactor[4],
1879 [out] UINT *pSampleMask);
1880 void OMGetDepthStencilState(
1881 [out] ID3D11DepthStencilState **ppDepthStencilState,
1882 [out] UINT *pStencilRef);
1883 void SOGetTargets(
1884 [in] UINT NumBuffers,
1885 [out] ID3D11Buffer **ppSOTargets);
1886 void RSGetState(
1887 [out] ID3D11RasterizerState **ppRasterizerState);
1888 void RSGetViewports(
1889 [in, out] UINT *pNumViewports,
1890 [out] D3D11_VIEWPORT *pViewports);
1891 void RSGetScissorRects(
1892 [in, out] UINT *pNumRects,
1893 [out] D3D11_RECT *pRects);
1894 void HSGetShaderResources(
1895 [in] UINT StartSlot,
1896 [in] UINT NumViews,
1897 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1898 void HSGetShader(
1899 [out] ID3D11HullShader **ppHullShader,
1900 [out] ID3D11ClassInstance **ppClassInstances,
1901 [in, out] UINT *pNumClassInstances);
1902 void HSGetSamplers(
1903 [in] UINT StartSlot,
1904 [in] UINT NumSamplers,
1905 [out] ID3D11SamplerState **ppSamplers);
1906 void HSGetConstantBuffers(
1907 [in] UINT StartSlot,
1908 [in] UINT NumBuffers,
1909 [out] ID3D11Buffer **ppConstantBuffers);
1910 void DSGetShaderResources(
1911 [in] UINT StartSlot,
1912 [in] UINT NumViews,
1913 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1914 void DSGetShader(
1915 [out] ID3D11DomainShader **ppDomainShader,
1916 [out] ID3D11ClassInstance **ppClassInstances,
1917 [in, out] UINT *pNumClassInstances);
1918 void DSGetSamplers(
1919 [in] UINT StartSlot,
1920 [in] UINT NumSamplers,
1921 [out] ID3D11SamplerState **ppSamplers);
1922 void DSGetConstantBuffers(
1923 [in] UINT StartSlot,
1924 [in] UINT NumBuffers,
1925 [out] ID3D11Buffer **ppConstantBuffers);
1926 void CSGetShaderResources(
1927 [in] UINT StartSlot,
1928 [in] UINT NumViews,
1929 [out] ID3D11ShaderResourceView **ppShaderResourceViews);
1930 void CSGetUnorderedAccessViews(
1931 [in] UINT StartSlot,
1932 [in] UINT NumUAVs,
1933 [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
1934 void CSGetShader(
1935 [out] ID3D11ComputeShader **ppComputeShader,
1936 [out] ID3D11ClassInstance **ppClassInstances,
1937 [in, out] UINT *pNumClassInstances);
1938 void CSGetSamplers(
1939 [in] UINT StartSlot,
1940 [in] UINT NumSamplers,
1941 [out] ID3D11SamplerState **ppSamplers);
1942 void CSGetConstantBuffers(
1943 [in] UINT StartSlot,
1944 [in] UINT NumBuffers,
1945 [out] ID3D11Buffer **ppConstantBuffers);
1946 void ClearState();
1947 void Flush();
1948 D3D11_DEVICE_CONTEXT_TYPE GetType();
1949 UINT GetContextFlags();
1950 HRESULT FinishCommandList(
1951 BOOL RestoreDeferredContextState,
1952 [out] ID3D11CommandList **ppCommandList);
1956 object,
1957 local,
1958 uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
1960 interface ID3D11Device : IUnknown
1962 HRESULT CreateBuffer(
1963 [in] const D3D11_BUFFER_DESC *pDesc,
1964 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1965 [out] ID3D11Buffer **ppBuffer);
1966 HRESULT CreateTexture1D(
1967 [in] const D3D11_TEXTURE1D_DESC *pDesc,
1968 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1969 [out] ID3D11Texture1D **ppTexture1D);
1970 HRESULT CreateTexture2D(
1971 [in] const D3D11_TEXTURE2D_DESC *pDesc,
1972 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1973 [out] ID3D11Texture2D **ppTexture2D);
1974 HRESULT CreateTexture3D(
1975 [in] const D3D11_TEXTURE3D_DESC *pDesc,
1976 [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
1977 [out] ID3D11Texture3D **ppTexture3D);
1978 HRESULT CreateShaderResourceView(
1979 [in] ID3D11Resource *pResource,
1980 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
1981 [out] ID3D11ShaderResourceView **ppSRView);
1982 HRESULT CreateUnorderedAccessView(
1983 [in] ID3D11Resource *pResource,
1984 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
1985 [out] ID3D11UnorderedAccessView **ppUAView);
1986 HRESULT CreateRenderTargetView(
1987 [in] ID3D11Resource *pResource,
1988 [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
1989 [out] ID3D11RenderTargetView **ppRTView);
1990 HRESULT CreateDepthStencilView(
1991 [in] ID3D11Resource *pResource,
1992 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
1993 [out] ID3D11DepthStencilView **ppDepthStencilView);
1994 HRESULT CreateInputLayout(
1995 [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
1996 [in] UINT NumElements,
1997 [in] const void *pShaderBytecodeWithInputSignature,
1998 [in] SIZE_T BytecodeLength,
1999 [out] ID3D11InputLayout **ppInputLayout);
2000 HRESULT CreateVertexShader(
2001 [in] const void *pShaderBytecode,
2002 [in] SIZE_T BytecodeLength,
2003 [in] ID3D11ClassLinkage *pClassLinkage,
2004 [out] ID3D11VertexShader **ppVertexShader);
2005 HRESULT CreateGeometryShader(
2006 [in] const void *pShaderBytecode,
2007 [in] SIZE_T BytecodeLength,
2008 [in] ID3D11ClassLinkage *pClassLinkage,
2009 [out] ID3D11GeometryShader **ppGeometryShader);
2010 HRESULT CreateGeometryShaderWithStreamOutput(
2011 [in] const void *pShaderBytecode,
2012 [in] SIZE_T BytecodeLength,
2013 [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
2014 [in] UINT NumEntries,
2015 [in] const UINT *pBufferStrides,
2016 [in] UINT NumStrides,
2017 [in] UINT RasterizedStream,
2018 [in] ID3D11ClassLinkage *pClassLinkage,
2019 [out] ID3D11GeometryShader **ppGeometryShader);
2020 HRESULT CreatePixelShader(
2021 [in] const void *pShaderBytecode,
2022 [in] SIZE_T BytecodeLength,
2023 [in] ID3D11ClassLinkage *pClassLinkage,
2024 [out] ID3D11PixelShader **ppPixelShader);
2025 HRESULT CreateHullShader(
2026 [in] const void *pShaderBytecode,
2027 [in] SIZE_T BytecodeLength,
2028 [in] ID3D11ClassLinkage *pClassLinkage,
2029 [out] ID3D11HullShader **ppHullShader);
2030 HRESULT CreateDomainShader(
2031 [in] const void *pShaderBytecode,
2032 [in] SIZE_T BytecodeLength,
2033 [in] ID3D11ClassLinkage *pClassLinkage,
2034 [out] ID3D11DomainShader **ppDomainShader);
2035 HRESULT CreateComputeShader(
2036 [in] const void *pShaderBytecode,
2037 [in] SIZE_T BytecodeLength,
2038 [in] ID3D11ClassLinkage *pClassLinkage,
2039 [out] ID3D11ComputeShader **ppComputeShader);
2040 HRESULT CreateClassLinkage(
2041 [out] ID3D11ClassLinkage **ppLinkage);
2042 HRESULT CreateBlendState(
2043 [in] const D3D11_BLEND_DESC *pBlendStateDesc,
2044 [out] ID3D11BlendState **ppBlendState);
2045 HRESULT CreateDepthStencilState(
2046 [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
2047 [out] ID3D11DepthStencilState **ppDepthStencilState);
2048 HRESULT CreateRasterizerState(
2049 [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
2050 [out] ID3D11RasterizerState **ppRasterizerState);
2051 HRESULT CreateSamplerState(
2052 [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
2053 [out] ID3D11SamplerState **ppSamplerState);
2054 HRESULT CreateQuery(
2055 [in] const D3D11_QUERY_DESC *pQueryDesc,
2056 [out] ID3D11Query **ppQuery);
2057 HRESULT CreatePredicate(
2058 [in] const D3D11_QUERY_DESC *pPredicateDesc,
2059 [out] ID3D11Predicate **ppPredicate);
2060 HRESULT CreateCounter(
2061 [in] const D3D11_COUNTER_DESC *pCounterDesc,
2062 [out] ID3D11Counter **ppCounter);
2063 HRESULT CreateDeferredContext(
2064 UINT ContextFlags,
2065 [out] ID3D11DeviceContext **ppDeferredContext);
2066 HRESULT OpenSharedResource(
2067 [in] HANDLE hResource,
2068 [in] REFIID ReturnedInterface,
2069 [out] void **ppResource);
2070 HRESULT CheckFormatSupport(
2071 [in] DXGI_FORMAT Format,
2072 [out] UINT *pFormatSupport);
2073 HRESULT CheckMultisampleQualityLevels(
2074 [in] DXGI_FORMAT Format,
2075 [in] UINT SampleCount,
2076 [out] UINT *pNumQualityLevels);
2077 void CheckCounterInfo(
2078 [out] D3D11_COUNTER_INFO *pCounterInfo);
2079 HRESULT CheckCounter(
2080 [in] const D3D11_COUNTER_DESC *pDesc,
2081 [out] D3D11_COUNTER_TYPE *pType,
2082 [out] UINT *pActiveCounters,
2083 [out] LPSTR szName,
2084 [in, out] UINT *pNameLength,
2085 [out] LPSTR szUnits,
2086 [in, out] UINT *pUnitsLength,
2087 [out] LPSTR szDescription,
2088 [in, out] UINT *pDescriptionLength);
2089 HRESULT CheckFeatureSupport(
2090 D3D11_FEATURE Feature,
2091 [out] void *pFeatureSupportData,
2092 UINT FeatureSupportDataSize);
2093 HRESULT GetPrivateData(
2094 [in] REFGUID guid,
2095 [in, out] UINT *pDataSize,
2096 [out] void *pData);
2097 HRESULT SetPrivateData(
2098 [in] REFGUID guid,
2099 [in] UINT DataSize,
2100 [in] const void *pData);
2101 HRESULT SetPrivateDataInterface(
2102 [in] REFGUID guid,
2103 [in] const IUnknown *pData);
2104 D3D_FEATURE_LEVEL GetFeatureLevel();
2105 UINT GetCreationFlags();
2106 HRESULT GetDeviceRemovedReason();
2107 void GetImmediateContext(
2108 [out] ID3D11DeviceContext **ppImmediateContext);
2109 HRESULT SetExceptionMode(UINT RaiseFlags);
2110 UINT GetExceptionMode();
2113 typedef enum D3D11_CREATE_DEVICE_FLAG {
2114 D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
2115 D3D11_CREATE_DEVICE_DEBUG = 0x0002,
2116 D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
2117 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
2118 D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
2119 D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
2120 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
2121 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
2122 D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
2123 } D3D11_CREATE_DEVICE_FLAG;
2125 const UINT D3D11_SDK_VERSION = 7;
2127 cpp_quote("#include <d3d10_1.h>")
2128 cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
2129 cpp_quote("# include <d3d11sdklayers.h>")
2130 cpp_quote("#endif")
2131 cpp_quote("#include <d3d10misc.h>")
2132 cpp_quote("#include <d3d10shader.h>")
2133 cpp_quote("#include <d3d10effect.h>")
2134 cpp_quote("#include <d3d10_1shader.h>")
2136 cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2137 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2139 cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
2140 cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2142 cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2143 cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
2144 cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")