2 * Copyright 2010 Rico Schüller
3 * Copyright 2013 Austin English
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 import
"d3dcommon.idl";
25 typedef D3D_PRIMITIVE D3D11_PRIMITIVE
;
26 typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY
;
27 typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION
;
28 typedef RECT D3D11_RECT
;
30 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;")
196 typedef enum D3D11_BLEND
198 D3D11_BLEND_ZERO
= 1,
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,
217 typedef enum D3D11_BLEND_OP
219 D3D11_BLEND_OP_ADD
= 1,
220 D3D11_BLEND_OP_SUBTRACT
,
221 D3D11_BLEND_OP_REV_SUBTRACT
,
226 typedef struct D3D11_BOX
236 typedef struct D3D11_BUFFER_RTV
250 typedef struct D3D11_BUFFER_SRV
264 typedef struct D3D11_BUFFER_UAV
271 typedef struct D3D11_BUFFEREX_SRV
276 } D3D11_BUFFEREX_SRV
;
278 typedef struct D3D11_CLASS_INSTANCE_DESC
284 UINT BaseConstantBufferOffset
;
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,
307 typedef struct D3D11_COUNTER_DESC
309 D3D11_COUNTER Counter
;
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
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_D3D11_OPTIONS
,
366 D3D11_FEATURE_ARCHITECTURE_INFO
,
367 D3D11_FEATURE_D3D9_OPTIONS
,
368 D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT
,
369 D3D11_FEATURE_D3D9_SHADOW_SUPPORT
372 typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
374 BOOL OutputMergerLogicOp
;
375 BOOL UAVOnlyRenderingForcedSampleCount
;
376 BOOL DiscardAPIsSeenByDriver
;
377 BOOL FlagsForUpdateAndCopySeenByDriver
;
379 BOOL CopyWithOverlap
;
380 BOOL ConstantBufferPartialUpdate
;
381 BOOL ConstantBufferOffsetting
;
382 BOOL MapNoOverwriteOnDynamicConstantBuffer
;
383 BOOL MapNoOverwriteOnDynamicBufferSRV
;
384 BOOL MultisampleRTVWithForcedSampleCountOne
;
385 BOOL SAD4ShaderInstructions
;
386 BOOL ExtendedDoublesShaderInstructions
;
387 BOOL ExtendedResourceSharing
;
388 } D3D11_FEATURE_DATA_D3D11_OPTIONS
;
390 typedef enum D3D11_FILL_MODE
392 D3D11_FILL_WIREFRAME
= 2,
396 typedef enum D3D11_FILTER_TYPE
398 D3D11_FILTER_TYPE_POINT
= 0,
399 D3D11_FILTER_TYPE_LINEAR
= 1
402 const UINT D3D11_MIN_FILTER_SHIFT
= 4;
403 const UINT D3D11_MAG_FILTER_SHIFT
= 2;
404 const UINT D3D11_MIP_FILTER_SHIFT
= 0;
405 const UINT D3D11_FILTER_TYPE_MASK
= 0x00000003;
406 const UINT D3D11_COMPARISON_FILTERING_BIT
= 0x00000080;
407 const UINT D3D11_ANISOTROPIC_FILTERING_BIT
= 0x00000040;
409 cpp_quote
("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
410 cpp_quote
(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
411 cpp_quote
(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
412 cpp_quote
(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
413 cpp_quote
(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
415 cpp_quote
("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
416 cpp_quote
(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
417 cpp_quote
(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
418 cpp_quote
(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
420 cpp_quote
("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
421 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
423 cpp_quote
("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
424 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
426 cpp_quote
("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
427 cpp_quote
(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
429 cpp_quote
("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
431 cpp_quote
("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
432 cpp_quote
(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
433 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
434 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
435 cpp_quote
(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
437 typedef enum D3D11_FILTER
439 D3D11_FILTER_MIN_MAG_MIP_POINT
= 0x00,
440 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR
= 0x01,
441 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x04,
442 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR
= 0x05,
443 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT
= 0x10,
444 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x11,
445 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT
= 0x14,
446 D3D11_FILTER_MIN_MAG_MIP_LINEAR
= 0x15,
447 D3D11_FILTER_ANISOTROPIC
= 0x55,
448 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT
= 0x80,
449 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR
= 0x81,
450 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
= 0x84,
451 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR
= 0x85,
452 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT
= 0x90,
453 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
= 0x91,
454 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT
= 0x94,
455 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR
= 0x95,
456 D3D11_FILTER_COMPARISON_ANISOTROPIC
= 0xd5
459 typedef enum D3D11_DSV_FLAG
461 D3D11_DSV_READ_ONLY_DEPTH
= 0x1,
462 D3D11_DSV_READ_ONLY_STENCIL
= 0x2,
465 typedef enum D3D11_INPUT_CLASSIFICATION
467 D3D11_INPUT_PER_VERTEX_DATA
,
468 D3D11_INPUT_PER_INSTANCE_DATA
,
469 } D3D11_INPUT_CLASSIFICATION
;
471 const UINT D3D11_APPEND_ALIGNED_ELEMENT
= 0xffffffff;
473 typedef struct D3D11_INPUT_ELEMENT_DESC
479 UINT AlignedByteOffset
;
480 D3D11_INPUT_CLASSIFICATION InputSlotClass
;
481 UINT InstanceDataStepRate
;
482 } D3D11_INPUT_ELEMENT_DESC
;
484 typedef enum D3D11_MAP
488 D3D11_MAP_READ_WRITE
,
489 D3D11_MAP_WRITE_DISCARD
,
490 D3D11_MAP_WRITE_NO_OVERWRITE
493 typedef enum D3D11_MAP_FLAG
495 D3D11_MAP_FLAG_DO_NOT_WAIT
= 0x00100000
498 typedef struct D3D11_QUERY_DATA_SO_STATISTICS
500 UINT64 NumPrimitivesWritten
;
501 UINT64 PrimitivesStorageNeeded
;
502 } D3D11_QUERY_DATA_SO_STATISTICS
;
504 typedef struct D3D11_MAPPED_SUBRESOURCE
509 } D3D11_MAPPED_SUBRESOURCE
;
511 typedef enum D3D11_QUERY
514 D3D11_QUERY_OCCLUSION
,
515 D3D11_QUERY_TIMESTAMP
,
516 D3D11_QUERY_TIMESTAMP_DISJOINT
,
517 D3D11_QUERY_PIPELINE_STATISTICS
,
518 D3D11_QUERY_OCCLUSION_PREDICATE
,
519 D3D11_QUERY_SO_STATISTICS
,
520 D3D11_QUERY_SO_OVERFLOW_PREDICATE
,
521 D3D11_QUERY_SO_STATISTICS_STREAM0
,
522 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0
,
523 D3D11_QUERY_SO_STATISTICS_STREAM1
,
524 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1
,
525 D3D11_QUERY_SO_STATISTICS_STREAM2
,
526 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2
,
527 D3D11_QUERY_SO_STATISTICS_STREAM3
,
528 D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3
,
531 typedef enum D3D11_ASYNC_GETDATA_FLAG
533 D3D11_ASYNC_GETDATA_DONOTFLUSH
= 0x0001,
534 } D3D11_ASYNC_GETDATA_FLAG
;
536 typedef enum D3D11_RESOURCE_MISC_FLAG
538 D3D11_RESOURCE_MISC_GENERATE_MIPS
= 0x00000001L
,
539 D3D11_RESOURCE_MISC_SHARED
= 0x00000002L
,
540 D3D11_RESOURCE_MISC_TEXTURECUBE
= 0x00000004L
,
541 D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
= 0x00000010L
,
542 D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
= 0x00000020L
,
543 D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
= 0x00000040L
,
544 D3D11_RESOURCE_MISC_RESOURCE_CLAMP
= 0x00000080L
,
545 D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
= 0x00000100L
,
546 D3D11_RESOURCE_MISC_GDI_COMPATIBLE
= 0x00000200L
,
547 D3D11_RESOURCE_MISC_SHARED_NTHANDLE
= 0x00000800L
,
548 D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
= 0x00001000L
,
549 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
= 0x00002000L
,
550 D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
= 0x00004000L
,
551 D3D11_RESOURCE_MISC_GUARDED
= 0x00008000L
552 } D3D11_RESOURCE_MISC_FLAG
;
554 typedef struct D3D11_QUERY_DESC
560 typedef struct D3D11_RASTERIZER_DESC
562 D3D11_FILL_MODE FillMode
;
563 D3D11_CULL_MODE CullMode
;
564 BOOL FrontCounterClockwise
;
566 FLOAT DepthBiasClamp
;
567 FLOAT SlopeScaledDepthBias
;
568 BOOL DepthClipEnable
;
570 BOOL MultisampleEnable
;
571 BOOL AntialiasedLineEnable
;
572 } D3D11_RASTERIZER_DESC
;
574 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
575 cpp_quote
("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
576 cpp_quote
(" CD3D11_RASTERIZER_DESC() {}")
577 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
578 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
579 cpp_quote
(" FillMode = D3D11_FILL_SOLID;")
580 cpp_quote
(" CullMode = D3D11_CULL_BACK;")
581 cpp_quote
(" FrontCounterClockwise = FALSE;")
582 cpp_quote
(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
583 cpp_quote
(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
584 cpp_quote
(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
585 cpp_quote
(" DepthClipEnable = TRUE;")
586 cpp_quote
(" ScissorEnable = FALSE;")
587 cpp_quote
(" MultisampleEnable = FALSE;")
588 cpp_quote
(" AntialiasedLineEnable = FALSE;")
590 cpp_quote
(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
591 cpp_quote
(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
592 cpp_quote
(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
593 cpp_quote
(" FillMode = fillMode;")
594 cpp_quote
(" CullMode = cullMode;")
595 cpp_quote
(" FrontCounterClockwise = frontCounterClockwise;")
596 cpp_quote
(" DepthBias = depthBias;")
597 cpp_quote
(" DepthBiasClamp = depthBiasClamp;")
598 cpp_quote
(" SlopeScaledDepthBias = slopeScaledDepthBias;")
599 cpp_quote
(" DepthClipEnable = depthClipEnable;")
600 cpp_quote
(" ScissorEnable = scissorEnable;")
601 cpp_quote
(" MultisampleEnable = multisampleEnable;")
602 cpp_quote
(" AntialiasedLineEnable = antialiasedLineEnable;")
604 cpp_quote
(" ~CD3D11_RASTERIZER_DESC() {}")
605 cpp_quote
(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
609 typedef enum D3D11_RESOURCE_DIMENSION
611 D3D11_RESOURCE_DIMENSION_UNKNOWN
,
612 D3D11_RESOURCE_DIMENSION_BUFFER
,
613 D3D11_RESOURCE_DIMENSION_TEXTURE1D
,
614 D3D11_RESOURCE_DIMENSION_TEXTURE2D
,
615 D3D11_RESOURCE_DIMENSION_TEXTURE3D
,
616 } D3D11_RESOURCE_DIMENSION
;
618 typedef enum D3D11_RTV_DIMENSION
620 D3D11_RTV_DIMENSION_UNKNOWN
,
621 D3D11_RTV_DIMENSION_BUFFER
,
622 D3D11_RTV_DIMENSION_TEXTURE1D
,
623 D3D11_RTV_DIMENSION_TEXTURE1DARRAY
,
624 D3D11_RTV_DIMENSION_TEXTURE2D
,
625 D3D11_RTV_DIMENSION_TEXTURE2DARRAY
,
626 D3D11_RTV_DIMENSION_TEXTURE2DMS
,
627 D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY
,
628 D3D11_RTV_DIMENSION_TEXTURE3D
,
629 } D3D11_RTV_DIMENSION
;
631 typedef struct D3D11_SO_DECLARATION_ENTRY
639 } D3D11_SO_DECLARATION_ENTRY
;
641 typedef enum D3D11_STENCIL_OP
643 D3D11_STENCIL_OP_KEEP
= 1,
644 D3D11_STENCIL_OP_ZERO
,
645 D3D11_STENCIL_OP_REPLACE
,
646 D3D11_STENCIL_OP_INCR_SAT
,
647 D3D11_STENCIL_OP_DECR_SAT
,
648 D3D11_STENCIL_OP_INVERT
,
649 D3D11_STENCIL_OP_INCR
,
650 D3D11_STENCIL_OP_DECR
653 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
655 cpp_quote
("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
656 cpp_quote
(" return MipSlice + ArraySlice * MipLevels;")
658 cpp_quote
("extern \"C\"{")
661 typedef struct D3D11_SUBRESOURCE_DATA
665 UINT SysMemSlicePitch
;
666 } D3D11_SUBRESOURCE_DATA
;
668 typedef struct D3D11_TEX1D_ARRAY_DSV
671 UINT FirstArraySlice
;
673 } D3D11_TEX1D_ARRAY_DSV
;
675 typedef struct D3D11_TEX1D_ARRAY_RTV
678 UINT FirstArraySlice
;
680 } D3D11_TEX1D_ARRAY_RTV
;
682 typedef struct D3D11_TEX1D_ARRAY_SRV
684 UINT MostDetailedMip
;
686 UINT FirstArraySlice
;
688 } D3D11_TEX1D_ARRAY_SRV
;
690 typedef struct D3D11_TEX1D_ARRAY_UAV
693 UINT FirstArraySlice
;
695 } D3D11_TEX1D_ARRAY_UAV
;
697 typedef struct D3D11_TEX1D_DSV
702 typedef struct D3D11_TEX1D_RTV
707 typedef struct D3D11_TEX1D_SRV
709 UINT MostDetailedMip
;
713 typedef struct D3D11_TEX1D_UAV
718 typedef struct D3D11_TEX2D_ARRAY_DSV
721 UINT FirstArraySlice
;
723 } D3D11_TEX2D_ARRAY_DSV
;
725 typedef struct D3D11_TEX2D_ARRAY_RTV
728 UINT FirstArraySlice
;
730 } D3D11_TEX2D_ARRAY_RTV
;
732 typedef struct D3D11_TEX2D_ARRAY_SRV
734 UINT MostDetailedMip
;
736 UINT FirstArraySlice
;
738 } D3D11_TEX2D_ARRAY_SRV
;
740 typedef struct D3D11_TEX2D_ARRAY_UAV
743 UINT FirstArraySlice
;
745 } D3D11_TEX2D_ARRAY_UAV
;
747 typedef struct D3D11_TEX2D_DSV
752 typedef struct D3D11_TEX2D_RTV
757 typedef struct D3D11_TEX2D_SRV
759 UINT MostDetailedMip
;
763 typedef struct D3D11_TEX2D_UAV
768 typedef struct D3D11_TEX2DMS_ARRAY_DSV
770 UINT FirstArraySlice
;
772 } D3D11_TEX2DMS_ARRAY_DSV
;
774 typedef struct D3D11_TEX2DMS_ARRAY_RTV
776 UINT FirstArraySlice
;
778 } D3D11_TEX2DMS_ARRAY_RTV
;
780 typedef struct D3D11_TEX2DMS_ARRAY_SRV
782 UINT FirstArraySlice
;
784 } D3D11_TEX2DMS_ARRAY_SRV
;
786 typedef struct D3D11_TEX2DMS_DSV
788 UINT UnusedField_NothingToDefine
;
791 typedef struct D3D11_TEX2DMS_RTV
793 UINT UnusedField_NothingToDefine
;
796 typedef struct D3D11_TEX2DMS_SRV
798 UINT UnusedField_NothingToDefine
;
801 typedef struct D3D11_TEX3D_RTV
808 typedef struct D3D11_TEX3D_SRV
810 UINT MostDetailedMip
;
814 typedef struct D3D11_TEX3D_UAV
821 typedef struct D3D11_TEXCUBE_ARRAY_SRV
823 UINT MostDetailedMip
;
825 UINT First2DArrayFace
;
827 } D3D11_TEXCUBE_ARRAY_SRV
;
829 typedef struct D3D11_TEXCUBE_SRV
831 UINT MostDetailedMip
;
835 typedef enum D3D11_TEXTURE_ADDRESS_MODE
837 D3D11_TEXTURE_ADDRESS_WRAP
= 1,
838 D3D11_TEXTURE_ADDRESS_MIRROR
,
839 D3D11_TEXTURE_ADDRESS_CLAMP
,
840 D3D11_TEXTURE_ADDRESS_BORDER
,
841 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
842 } D3D11_TEXTURE_ADDRESS_MODE
;
844 typedef enum D3D11_UAV_DIMENSION
846 D3D11_UAV_DIMENSION_UNKNOWN
,
847 D3D11_UAV_DIMENSION_BUFFER
,
848 D3D11_UAV_DIMENSION_TEXTURE1D
,
849 D3D11_UAV_DIMENSION_TEXTURE1DARRAY
,
850 D3D11_UAV_DIMENSION_TEXTURE2D
,
851 D3D11_UAV_DIMENSION_TEXTURE2DARRAY
,
852 D3D11_UAV_DIMENSION_TEXTURE3D
= 8,
853 } D3D11_UAV_DIMENSION
;
855 typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
858 D3D11_UAV_DIMENSION ViewDimension
;
862 D3D11_BUFFER_UAV Buffer
;
863 D3D11_TEX1D_UAV Texture1D
;
864 D3D11_TEX1D_ARRAY_UAV Texture1DArray
;
865 D3D11_TEX2D_UAV Texture2D
;
866 D3D11_TEX2D_ARRAY_UAV Texture2DArray
;
867 D3D11_TEX3D_UAV Texture3D
;
869 } D3D11_UNORDERED_ACCESS_VIEW_DESC
;
871 typedef enum D3D11_USAGE
874 D3D11_USAGE_IMMUTABLE
,
879 typedef enum D3D11_BIND_FLAG
881 D3D11_BIND_VERTEX_BUFFER
= 0x0001,
882 D3D11_BIND_INDEX_BUFFER
= 0x0002,
883 D3D11_BIND_CONSTANT_BUFFER
= 0x0004,
884 D3D11_BIND_SHADER_RESOURCE
= 0x0008,
885 D3D11_BIND_STREAM_OUTPUT
= 0x0010,
886 D3D11_BIND_RENDER_TARGET
= 0x0020,
887 D3D11_BIND_DEPTH_STENCIL
= 0x0040,
888 D3D11_BIND_UNORDERED_ACCESS
= 0x0080,
889 D3D11_BIND_DECODER
= 0x0200,
890 D3D11_BIND_VIDEO_ENCODER
= 0x0400
893 typedef enum D3D11_CPU_ACCESS_FLAG
895 D3D11_CPU_ACCESS_WRITE
= 0x00010000,
896 D3D11_CPU_ACCESS_READ
= 0x00020000
897 } D3D11_CPU_ACCESS_FLAG
;
899 typedef struct D3D11_VIEWPORT
909 typedef enum D3D11_COLOR_WRITE_ENABLE
911 D3D11_COLOR_WRITE_ENABLE_RED
= 1,
912 D3D11_COLOR_WRITE_ENABLE_GREEN
= 2,
913 D3D11_COLOR_WRITE_ENABLE_BLUE
= 4,
914 D3D11_COLOR_WRITE_ENABLE_ALPHA
= 8,
915 D3D11_COLOR_WRITE_ENABLE_ALL
=
916 (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA
)
917 } D3D11_COLOR_WRITE_ENABLE
;
919 typedef enum D3D11_FORMAT_SUPPORT
921 D3D11_FORMAT_SUPPORT_BUFFER
= 0x00000001,
922 D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
= 0x00000002,
923 D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
= 0x00000004,
924 D3D11_FORMAT_SUPPORT_SO_BUFFER
= 0x00000008,
925 D3D11_FORMAT_SUPPORT_TEXTURE1D
= 0x00000010,
926 D3D11_FORMAT_SUPPORT_TEXTURE2D
= 0x00000020,
927 D3D11_FORMAT_SUPPORT_TEXTURE3D
= 0x00000040,
928 D3D11_FORMAT_SUPPORT_TEXTURECUBE
= 0x00000080,
929 D3D11_FORMAT_SUPPORT_SHADER_LOAD
= 0x00000100,
930 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE
= 0x00000200,
931 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON
= 0x00000400,
932 D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT
= 0x00000800,
933 D3D11_FORMAT_SUPPORT_MIP
= 0x00001000,
934 D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
= 0x00002000,
935 D3D11_FORMAT_SUPPORT_RENDER_TARGET
= 0x00004000,
936 D3D11_FORMAT_SUPPORT_BLENDABLE
= 0x00008000,
937 D3D11_FORMAT_SUPPORT_DEPTH_STENCIL
= 0x00010000,
938 D3D11_FORMAT_SUPPORT_CPU_LOCKABLE
= 0x00020000,
939 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
= 0x00040000,
940 D3D11_FORMAT_SUPPORT_DISPLAY
= 0x00080000,
941 D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT
= 0x00100000,
942 D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
= 0x00200000,
943 D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
= 0x00400000,
944 D3D11_FORMAT_SUPPORT_SHADER_GATHER
= 0x00800000,
945 D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST
= 0x01000000,
946 D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW
= 0x02000000,
947 D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON
= 0x04000000
948 } D3D11_FORMAT_SUPPORT
;
950 typedef enum D3D11_CLEAR_FLAG
952 D3D11_CLEAR_DEPTH
= 0x0001L
,
953 D3D11_CLEAR_STENCIL
= 0x0002L
956 typedef struct D3D11_RENDER_TARGET_BLEND_DESC
959 D3D11_BLEND SrcBlend
;
960 D3D11_BLEND DestBlend
;
961 D3D11_BLEND_OP BlendOp
;
962 D3D11_BLEND SrcBlendAlpha
;
963 D3D11_BLEND DestBlendAlpha
;
964 D3D11_BLEND_OP BlendOpAlpha
;
965 UINT8 RenderTargetWriteMask
;
966 } D3D11_RENDER_TARGET_BLEND_DESC
;
968 typedef struct D3D11_BLEND_DESC
970 BOOL AlphaToCoverageEnable
;
971 BOOL IndependentBlendEnable
;
972 D3D11_RENDER_TARGET_BLEND_DESC RenderTarget
[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
];
975 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
976 cpp_quote
("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
977 cpp_quote
(" CD3D11_BLEND_DESC() {}")
978 cpp_quote
(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
979 cpp_quote
(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
980 cpp_quote
(" AlphaToCoverageEnable = FALSE;")
981 cpp_quote
(" IndependentBlendEnable = FALSE;")
982 cpp_quote
(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
983 cpp_quote
(" target->BlendEnable = FALSE;")
984 cpp_quote
(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
985 cpp_quote
(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
986 cpp_quote
(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
987 cpp_quote
(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
990 cpp_quote
(" ~CD3D11_BLEND_DESC() {}")
991 cpp_quote
(" operator const D3D11_BLEND_DESC&() const { return *this; }")
995 typedef struct D3D11_BUFFER_DESC
1000 UINT CPUAccessFlags
;
1002 UINT StructureByteStride
;
1003 } D3D11_BUFFER_DESC
;
1005 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1006 cpp_quote
("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
1007 cpp_quote
(" CD3D11_BUFFER_DESC() {}" )
1008 cpp_quote
(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
1009 cpp_quote
(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
1010 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
1011 cpp_quote
(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
1012 cpp_quote
(" ByteWidth = byteWidth;")
1013 cpp_quote
(" Usage = usage;")
1014 cpp_quote
(" BindFlags = bindFlags;")
1015 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1016 cpp_quote
(" MiscFlags = miscFlags;" )
1017 cpp_quote
(" StructureByteStride = structureByteStride;")
1019 cpp_quote
(" ~CD3D11_BUFFER_DESC() {}")
1020 cpp_quote
(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
1022 cpp_quote
("#endif" )
1024 typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
1027 D3D11_DSV_DIMENSION ViewDimension
;
1032 D3D11_TEX1D_DSV Texture1D
;
1033 D3D11_TEX1D_ARRAY_DSV Texture1DArray
;
1034 D3D11_TEX2D_DSV Texture2D
;
1035 D3D11_TEX2D_ARRAY_DSV Texture2DArray
;
1036 D3D11_TEX2DMS_DSV Texture2DMS
;
1037 D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray
;
1039 } D3D11_DEPTH_STENCIL_VIEW_DESC
;
1041 typedef struct D3D11_DEPTH_STENCILOP_DESC
1043 D3D11_STENCIL_OP StencilFailOp
;
1044 D3D11_STENCIL_OP StencilDepthFailOp
;
1045 D3D11_STENCIL_OP StencilPassOp
;
1046 D3D11_COMPARISON_FUNC StencilFunc
;
1047 } D3D11_DEPTH_STENCILOP_DESC
;
1049 typedef struct D3D11_DEPTH_STENCIL_DESC
1052 D3D11_DEPTH_WRITE_MASK DepthWriteMask
;
1053 D3D11_COMPARISON_FUNC DepthFunc
;
1055 UINT8 StencilReadMask
;
1056 UINT8 StencilWriteMask
;
1057 D3D11_DEPTH_STENCILOP_DESC FrontFace
;
1058 D3D11_DEPTH_STENCILOP_DESC BackFace
;
1059 } D3D11_DEPTH_STENCIL_DESC
;
1061 typedef struct D3D11_RENDER_TARGET_VIEW_DESC
1064 D3D11_RTV_DIMENSION ViewDimension
;
1068 D3D11_BUFFER_RTV Buffer
;
1069 D3D11_TEX1D_RTV Texture1D
;
1070 D3D11_TEX1D_ARRAY_RTV Texture1DArray
;
1071 D3D11_TEX2D_RTV Texture2D
;
1072 D3D11_TEX2D_ARRAY_RTV Texture2DArray
;
1073 D3D11_TEX2DMS_RTV Texture2DMS
;
1074 D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray
;
1075 D3D11_TEX3D_RTV Texture3D
;
1077 } D3D11_RENDER_TARGET_VIEW_DESC
;
1079 typedef struct D3D11_SAMPLER_DESC
1081 D3D11_FILTER Filter
;
1082 D3D11_TEXTURE_ADDRESS_MODE AddressU
;
1083 D3D11_TEXTURE_ADDRESS_MODE AddressV
;
1084 D3D11_TEXTURE_ADDRESS_MODE AddressW
;
1087 D3D11_COMPARISON_FUNC ComparisonFunc
;
1088 FLOAT BorderColor
[4];
1091 } D3D11_SAMPLER_DESC
;
1093 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1094 cpp_quote
("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
1095 cpp_quote
(" CD3D11_SAMPLER_DESC() {}")
1096 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
1097 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
1098 cpp_quote
(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
1099 cpp_quote
(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
1100 cpp_quote
(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
1101 cpp_quote
(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
1102 cpp_quote
(" MipLODBias = 0;")
1103 cpp_quote
(" MaxAnisotropy = 1;")
1104 cpp_quote
(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
1105 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1106 cpp_quote
(" MinLOD = -3.402823466e+38f;")
1107 cpp_quote
(" MaxLOD = 3.402823466e+38f;")
1109 cpp_quote
(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
1110 cpp_quote
(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
1111 cpp_quote
(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
1112 cpp_quote
(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
1113 cpp_quote
(" Filter = filter;")
1114 cpp_quote
(" AddressU = addressU;")
1115 cpp_quote
(" AddressV = addressV;")
1116 cpp_quote
(" AddressW = addressW;")
1117 cpp_quote
(" MipLODBias = mipLODBias;")
1118 cpp_quote
(" MaxAnisotropy = maxAnisotropy;")
1119 cpp_quote
(" ComparisonFunc = comparisonFunc;")
1120 cpp_quote
(" if(borderColor) {")
1121 cpp_quote
(" BorderColor[0] = borderColor[0];")
1122 cpp_quote
(" BorderColor[1] = borderColor[1];")
1123 cpp_quote
(" BorderColor[2] = borderColor[2];")
1124 cpp_quote
(" BorderColor[3] = borderColor[3];")
1125 cpp_quote
(" }else {")
1126 cpp_quote
(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
1128 cpp_quote
(" MinLOD = minLOD;")
1129 cpp_quote
(" MaxLOD = maxLOD;")
1131 cpp_quote
(" ~CD3D11_SAMPLER_DESC() {}")
1132 cpp_quote
(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
1136 typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
1139 D3D11_SRV_DIMENSION ViewDimension
;
1143 D3D11_BUFFER_SRV Buffer
;
1144 D3D11_TEX1D_SRV Texture1D
;
1145 D3D11_TEX1D_ARRAY_SRV Texture1DArray
;
1146 D3D11_TEX2D_SRV Texture2D
;
1147 D3D11_TEX2D_ARRAY_SRV Texture2DArray
;
1148 D3D11_TEX2DMS_SRV Texture2DMS
;
1149 D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray
;
1150 D3D11_TEX3D_SRV Texture3D
;
1151 D3D11_TEXCUBE_SRV TextureCube
;
1152 D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray
;
1153 D3D11_BUFFEREX_SRV BufferEx
;
1155 } D3D11_SHADER_RESOURCE_VIEW_DESC
;
1157 typedef struct D3D11_TEXTURE1D_DESC
1165 UINT CPUAccessFlags
;
1167 } D3D11_TEXTURE1D_DESC
;
1169 typedef struct D3D11_TEXTURE2D_DESC
1176 DXGI_SAMPLE_DESC SampleDesc
;
1179 UINT CPUAccessFlags
;
1181 } D3D11_TEXTURE2D_DESC
;
1183 cpp_quote
("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
1184 cpp_quote
("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
1185 cpp_quote
(" CD3D11_TEXTURE2D_DESC() {}")
1186 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
1187 cpp_quote
(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
1188 cpp_quote
(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
1189 cpp_quote
(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
1190 cpp_quote
(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
1191 cpp_quote
(" Width = width;")
1192 cpp_quote
(" Height = height;")
1193 cpp_quote
(" MipLevels = mipLevels;")
1194 cpp_quote
(" ArraySize = arraySize;")
1195 cpp_quote
(" Format = format;")
1196 cpp_quote
(" SampleDesc.Count = sampleCount;")
1197 cpp_quote
(" SampleDesc.Quality = sampleQuality;")
1198 cpp_quote
(" Usage = usage;")
1199 cpp_quote
(" BindFlags = bindFlags;")
1200 cpp_quote
(" CPUAccessFlags = cpuaccessFlags;")
1201 cpp_quote
(" MiscFlags = miscFlags;")
1203 cpp_quote
(" ~CD3D11_TEXTURE2D_DESC() {}")
1204 cpp_quote
(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
1208 typedef struct D3D11_TEXTURE3D_DESC
1217 UINT CPUAccessFlags
;
1219 } D3D11_TEXTURE3D_DESC
;
1221 /* A couple forward declarations are needed */
1222 interface ID3D11Device
;
1223 interface ID3D11ClassLinkage
;
1228 uuid(1841e5c8
-16b0
-489b
-bcc8
-44cfb0d5deae
)
1230 interface ID3D11DeviceChild
: IUnknown
1233 [out] ID3D11Device
**ppDevice
);
1234 HRESULT GetPrivateData
(
1236 [in, out] UINT
*pDataSize
,
1238 HRESULT SetPrivateData
(
1241 [in] const void *pData
);
1242 HRESULT SetPrivateDataInterface
(
1244 [in] const IUnknown
*pData
);
1250 uuid(4b35d0cd
-1e15
-4258-9c98
-1b1333f6dd3b
)
1252 interface ID3D11Asynchronous
: ID3D11DeviceChild
1260 uuid(d6c00747
-87b7
-425e
-b84d
-44d108560afd
)
1262 interface ID3D11Query
: ID3D11Asynchronous
1265 [out] D3D11_QUERY_DESC
*pDesc
);
1271 uuid(dc8e63f3
-d12b
-4952-b47b
-5e45026a862d
)
1273 interface ID3D11Resource
: ID3D11DeviceChild
1276 [out] D3D11_RESOURCE_DIMENSION
*pResourceDimension
);
1277 void SetEvictionPriority
(
1278 [in] UINT EvictionPriority
);
1279 UINT GetEvictionPriority
();
1285 uuid(839d1216
-bb2e
-412b
-b7f4
-a9dbebe08ed1
)
1287 interface ID3D11View
: ID3D11DeviceChild
1290 [out] ID3D11Resource
**ppResource
);
1296 uuid(75b68faa
-347d
-4159-8f45
-a0640f01cd9a
)
1298 interface ID3D11BlendState
: ID3D11DeviceChild
1301 [out] D3D11_BLEND_DESC
*pDesc
);
1307 uuid(48570b85
-d1ee
-4fcd
-a250
-eb350722b037
)
1309 interface ID3D11Buffer
: ID3D11Resource
1312 [out] D3D11_BUFFER_DESC
*pDesc
);
1318 uuid(a6cd7faa
-b0b7
-4a2f
-9436-8662a65797cb
)
1320 interface ID3D11ClassInstance
: ID3D11DeviceChild
1322 void GetClassLinkage
(
1323 [out] ID3D11ClassLinkage
**ppLinkage
);
1325 [out] D3D11_CLASS_INSTANCE_DESC
*pDesc
);
1326 void GetInstanceName
(
1327 [out] LPSTR pInstanceName
,
1328 [in, out] SIZE_T
*pBufferLength
);
1330 [out] LPSTR pTypeName
,
1331 [in, out] SIZE_T
*pBufferLength
);
1337 uuid(ddf57cba
-9543-46e4
-a12b
-f207a0fe7fed
)
1339 interface ID3D11ClassLinkage
: ID3D11DeviceChild
1341 HRESULT GetClassInstance
(
1342 [in] LPCSTR pClassInstanceName
,
1343 [in] UINT InstanceIndex
,
1344 [out] ID3D11ClassInstance
**ppInstance
);
1345 HRESULT CreateClassInstance
(
1346 [in] LPCSTR pClassTypeName
,
1347 [in] UINT ConstantBufferOffset
,
1348 [in] UINT ConstantVectorOffset
,
1349 [in] UINT TextureOffset
,
1350 [in] UINT SamplerOffset
,
1351 [out] ID3D11ClassInstance
**ppInstance
);
1357 uuid(a24bc4d1
-769e-43f7
-8013-98ff566c18e2
)
1359 interface ID3D11CommandList
: ID3D11DeviceChild
1361 UINT GetContextFlags
();
1367 uuid(4f5b196e
-c2bd
-495e
-bd01
-1fded38e4969
)
1369 interface ID3D11ComputeShader
: ID3D11DeviceChild
1376 uuid(6e8c49fb
-a371
-4770-b440
-29086022b741
)
1378 interface ID3D11Counter
: ID3D11Asynchronous
1381 [out] D3D11_COUNTER_DESC
*pDesc
);
1387 uuid(03823efb
-8d8f
-4e1c
-9aa2
-f64bb2cbfdf1
)
1389 interface ID3D11DepthStencilState
: ID3D11DeviceChild
1392 [out] D3D11_DEPTH_STENCIL_DESC
*pDesc
);
1398 uuid(9fdac92a
-1876-48c3
-afad
-25b94f84a9b6
)
1400 interface ID3D11DepthStencilView
: ID3D11View
1403 [out] D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
);
1409 uuid(f582c508
-0f36
-490c
-9977-31eece268cfa
)
1411 interface ID3D11DomainShader
: ID3D11DeviceChild
1418 uuid(38325b96
-effb
-4022-ba02
-2e795b70275c
)
1420 interface ID3D11GeometryShader
: ID3D11DeviceChild
1427 uuid(8e5c6061
-628a
-4c8e
-8264
-bbe45cb3d5dd
)
1429 interface ID3D11HullShader
: ID3D11DeviceChild
1436 uuid(e4819ddc
-4cf0
-4025-bd26
-5de82a3e07b7
)
1438 interface ID3D11InputLayout
: ID3D11DeviceChild
1445 uuid(ea82e40d
-51dc
-4f33
-93d4
-db7c9125ae8c
)
1447 interface ID3D11PixelShader
: ID3D11DeviceChild
1454 uuid(9eb576dd
-9f77
-4d86
-81aa
-8bab5fe490e2
)
1456 interface ID3D11Predicate
: ID3D11Query
1463 uuid(9bb4ab81
-ab1a
-4d8f
-b506
-fc04200b6ee7
)
1465 interface ID3D11RasterizerState
: ID3D11DeviceChild
1468 [out] D3D11_RASTERIZER_DESC
*pDesc
);
1474 uuid(dfdba067
-0b8d
-4865-875b
-d7b4516cc164
)
1476 interface ID3D11RenderTargetView
: ID3D11View
1479 [out] D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
);
1485 uuid(da6fea51
-564c
-4487-9810-f0d0f9b4e3a5
)
1487 interface ID3D11SamplerState
: ID3D11DeviceChild
1490 [out] D3D11_SAMPLER_DESC
*pDesc
);
1496 uuid(b0e06fe0
-8192-4e1a
-b1ca
-36d7414710b2
)
1498 interface ID3D11ShaderResourceView
: ID3D11View
1501 [out] D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
);
1507 uuid(f8fb5c27
-c6b3
-4f75
-a4c8
-439af2ef564c
),
1509 interface ID3D11Texture1D
: ID3D11Resource
1512 [out] D3D11_TEXTURE1D_DESC
*pDesc
);
1518 uuid(6f15aaf2
-d208
-4e89
-9ab4
-489535d34f9c
)
1520 interface ID3D11Texture2D
: ID3D11Resource
1523 [out] D3D11_TEXTURE2D_DESC
*pDesc
);
1529 uuid(037e866e
-f56d
-4357-a8af
-9dabbe6e250e
)
1531 interface ID3D11Texture3D
: ID3D11Resource
1534 [out] D3D11_TEXTURE3D_DESC
*pDesc
);
1540 uuid(28acf509
-7f5c
-48f6
-8611-f316010a6380
)
1542 interface ID3D11UnorderedAccessView
: ID3D11View
1545 [out] D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
);
1551 uuid(3b301d64
-d678
-4289-8897-22f8928b72f3
)
1553 interface ID3D11VertexShader
: ID3D11DeviceChild
1560 uuid(c0bfa96c
-e089
-44fb
-8eaf
-26f8796190da
)
1562 interface ID3D11DeviceContext
: ID3D11DeviceChild
1564 void VSSetConstantBuffers
(
1565 [in] UINT StartSlot
,
1566 [in] UINT NumBuffers
,
1567 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1568 void PSSetShaderResources
(
1569 [in] UINT StartSlot
,
1571 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1573 [in] ID3D11PixelShader
*pPixelShader
,
1574 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1575 UINT NumClassInstances
);
1577 [in] UINT StartSlot
,
1578 [in] UINT NumSamplers
,
1579 [in] ID3D11SamplerState
*const *ppSamplers
);
1581 [in] ID3D11VertexShader
*pVertexShader
,
1582 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1583 UINT NumClassInstances
);
1585 [in] UINT IndexCount
,
1586 [in] UINT StartIndexLocation
,
1587 [in] INT BaseVertexLocation
);
1589 [in] UINT VertexCount
,
1590 [in] UINT StartVertexLocation
);
1592 [in] ID3D11Resource
*pResource
,
1593 [in] UINT Subresource
,
1594 [in] D3D11_MAP MapType
,
1596 [out] D3D11_MAPPED_SUBRESOURCE
*pMappedResource
);
1598 [in] ID3D11Resource
*pResource
,
1599 [in] UINT Subresource
);
1600 void PSSetConstantBuffers
(
1601 [in] UINT StartSlot
,
1602 [in] UINT NumBuffers
,
1603 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1604 void IASetInputLayout
(
1605 [in] ID3D11InputLayout
*pInputLayout
);
1606 void IASetVertexBuffers
(
1607 [in] UINT StartSlot
,
1608 [in] UINT NumBuffers
,
1609 [in] ID3D11Buffer
*const *ppVertexBuffers
,
1610 [in] const UINT
*pStrides
,
1611 [in] const UINT
*pOffsets
);
1612 void IASetIndexBuffer
(
1613 [in] ID3D11Buffer
*pIndexBuffer
,
1614 [in] DXGI_FORMAT Format
,
1616 void DrawIndexedInstanced
(
1617 [in] UINT IndexCountPerInstance
,
1618 [in] UINT InstanceCount
,
1619 [in] UINT StartIndexLocation
,
1620 [in] INT BaseVertexLocation
,
1621 [in] UINT StartInstanceLocation
);
1623 [in] UINT VertexCountPerInstance
,
1624 [in] UINT InstanceCount
,
1625 [in] UINT StartVertexLocation
,
1626 [in] UINT StartInstanceLocation
);
1627 void GSSetConstantBuffers
(
1628 [in] UINT StartSlot
,
1629 [in] UINT NumBuffers
,
1630 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1632 [in] ID3D11GeometryShader
*pShader
,
1633 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1634 UINT NumClassInstances
);
1635 void IASetPrimitiveTopology
(
1636 [in] D3D11_PRIMITIVE_TOPOLOGY Topology
);
1637 void VSSetShaderResources
(
1638 [in] UINT StartSlot
,
1640 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1642 [in] UINT StartSlot
,
1643 [in] UINT NumSamplers
,
1644 [in] ID3D11SamplerState
*const *ppSamplers
);
1646 [in] ID3D11Asynchronous
*pAsync
);
1648 [in] ID3D11Asynchronous
*pAsync
);
1650 [in] ID3D11Asynchronous
*pAsync
,
1653 [in] UINT GetDataFlags
);
1654 void SetPredication
(
1655 [in] ID3D11Predicate
*pPredicate
,
1656 [in] BOOL PredicateValue
);
1657 void GSSetShaderResources
(
1658 [in] UINT StartSlot
,
1660 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1662 [in] UINT StartSlot
,
1663 [in] UINT NumSamplers
,
1664 [in] ID3D11SamplerState
*const *ppSamplers
);
1665 void OMSetRenderTargets
(
1667 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
1668 [in] ID3D11DepthStencilView
*pDepthStencilView
);
1669 void OMSetRenderTargetsAndUnorderedAccessViews
(
1671 [in] ID3D11RenderTargetView
*const *ppRenderTargetViews
,
1672 [in] ID3D11DepthStencilView
*pDepthStencilView
,
1673 [in] UINT UAVStartSlot
,
1675 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
1676 [in] const UINT
*pUAVInitialCounts
);
1677 void OMSetBlendState
(
1678 [in] ID3D11BlendState
*pBlendState
,
1679 [in] const FLOAT BlendFactor
[4],
1680 [in] UINT SampleMask
);
1681 void OMSetDepthStencilState
(
1682 [in] ID3D11DepthStencilState
*pDepthStencilState
,
1683 [in] UINT StencilRef
);
1685 [in] UINT NumBuffers
,
1686 [in] ID3D11Buffer
*const *ppSOTargets
,
1687 [in] const UINT
*pOffsets
);
1689 void DrawIndexedInstancedIndirect
(
1690 [in] ID3D11Buffer
*pBufferForArgs
,
1691 [in] UINT AlignedByteOffsetForArgs
);
1692 void DrawInstancedIndirect
(
1693 [in] ID3D11Buffer
*pBufferForArgs
,
1694 [in] UINT AlignedByteOffsetForArgs
);
1696 [in] UINT ThreadGroupCountX
,
1697 [in] UINT ThreadGroupCountY
,
1698 [in] UINT ThreadGroupCountZ
);
1699 void DispatchIndirect
(
1700 [in] ID3D11Buffer
*pBufferForArgs
,
1701 [in] UINT AlignedByteOffsetForArgs
);
1703 [in] ID3D11RasterizerState
*pRasterizerState
);
1704 void RSSetViewports
(
1705 [in] UINT NumViewports
,
1706 [in] const D3D11_VIEWPORT
*pViewports
);
1707 void RSSetScissorRects
(
1709 [in] const D3D11_RECT
*pRects
);
1710 void CopySubresourceRegion
(
1711 [in] ID3D11Resource
*pDstResource
,
1712 [in] UINT DstSubresource
,
1716 [in] ID3D11Resource
*pSrcResource
,
1717 [in] UINT SrcSubresource
,
1718 [in] const D3D11_BOX
*pSrcBox
);
1720 [in] ID3D11Resource
*pDstResource
,
1721 [in] ID3D11Resource
*pSrcResource
);
1722 void UpdateSubresource
(
1723 [in] ID3D11Resource
*pDstResource
,
1724 [in] UINT DstSubresource
,
1725 [in] const D3D11_BOX
*pDstBox
,
1726 [in] const void *pSrcData
,
1727 [in] UINT SrcRowPitch
,
1728 [in] UINT SrcDepthPitch
);
1729 void CopyStructureCount
(
1730 [in] ID3D11Buffer
*pDstBuffer
,
1731 [in] UINT DstAlignedByteOffset
,
1732 [in] ID3D11UnorderedAccessView
*pSrcView
);
1733 void ClearRenderTargetView
(
1734 [in] ID3D11RenderTargetView
*pRenderTargetView
,
1735 [in] const FLOAT ColorRGBA
[4]);
1736 void ClearUnorderedAccessViewUint
(
1737 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
1738 [in] const UINT Values
[4]);
1739 void ClearUnorderedAccessViewFloat
(
1740 [in] ID3D11UnorderedAccessView
*pUnorderedAccessView
,
1741 [in] const FLOAT Values
[4]);
1742 void ClearDepthStencilView
(
1743 [in] ID3D11DepthStencilView
*pDepthStencilView
,
1744 [in] UINT ClearFlags
,
1746 [in] UINT8 Stencil
);
1748 [in] ID3D11ShaderResourceView
*pShaderResourceView
);
1749 void SetResourceMinLOD
(
1750 [in] ID3D11Resource
*pResource
, FLOAT MinLOD
);
1751 FLOAT GetResourceMinLOD
(
1752 [in] ID3D11Resource
*pResource
);
1753 void ResolveSubresource
(
1754 [in] ID3D11Resource
*pDstResource
,
1755 [in] UINT DstSubresource
,
1756 [in] ID3D11Resource
*pSrcResource
,
1757 [in] UINT SrcSubresource
,
1758 [in] DXGI_FORMAT Format
);
1759 void ExecuteCommandList
(
1760 [in] ID3D11CommandList
*pCommandList
,
1761 BOOL RestoreContextState
);
1762 void HSSetShaderResources
(
1763 [in] UINT StartSlot
,
1765 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1767 [in] ID3D11HullShader
*pHullShader
,
1768 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1769 UINT NumClassInstances
);
1771 [in] UINT StartSlot
,
1772 [in] UINT NumSamplers
,
1773 [in] ID3D11SamplerState
*const *ppSamplers
);
1774 void HSSetConstantBuffers
(
1775 [in] UINT StartSlot
,
1776 [in] UINT NumBuffers
,
1777 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1778 void DSSetShaderResources
(
1779 [in] UINT StartSlot
,
1781 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1783 [in] ID3D11DomainShader
*pDomainShader
,
1784 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1785 UINT NumClassInstances
);
1787 [in] UINT StartSlot
,
1788 [in] UINT NumSamplers
,
1789 [in] ID3D11SamplerState
*const *ppSamplers
);
1790 void DSSetConstantBuffers
(
1791 [in] UINT StartSlot
,
1792 [in] UINT NumBuffers
,
1793 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1794 void CSSetShaderResources
(
1795 [in] UINT StartSlot
,
1797 [in] ID3D11ShaderResourceView
*const *ppShaderResourceViews
);
1798 void CSSetUnorderedAccessViews
(
1799 [in] UINT StartSlot
,
1801 [in] ID3D11UnorderedAccessView
*const *ppUnorderedAccessViews
,
1802 [in] const UINT
*pUAVInitialCounts
);
1804 [in] ID3D11ComputeShader
*pComputeShader
,
1805 [in] ID3D11ClassInstance
*const *ppClassInstances
,
1806 UINT NumClassInstances
);
1808 [in] UINT StartSlot
,
1809 [in] UINT NumSamplers
,
1810 [in] ID3D11SamplerState
*const *ppSamplers
);
1811 void CSSetConstantBuffers
(
1812 [in] UINT StartSlot
,
1813 [in] UINT NumBuffers
,
1814 [in] ID3D11Buffer
*const *ppConstantBuffers
);
1815 void VSGetConstantBuffers
(
1816 [in] UINT StartSlot
,
1817 [in] UINT NumBuffers
,
1818 [out] ID3D11Buffer
**ppConstantBuffers
);
1819 void PSGetShaderResources
(
1820 [in] UINT StartSlot
,
1822 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
1824 [out] ID3D11PixelShader
**ppPixelShader
,
1825 [out] ID3D11ClassInstance
**ppClassInstances
,
1826 [in, out] UINT
*pNumClassInstances
);
1828 [in] UINT StartSlot
,
1829 [in] UINT NumSamplers
,
1830 [out] ID3D11SamplerState
**ppSamplers
);
1832 [out] ID3D11VertexShader
**ppVertexShader
,
1833 [out] ID3D11ClassInstance
**ppClassInstances
,
1834 [in, out] UINT
*pNumClassInstances
);
1835 void PSGetConstantBuffers
(
1836 [in] UINT StartSlot
,
1837 [in] UINT NumBuffers
,
1838 [out] ID3D11Buffer
**ppConstantBuffers
);
1839 void IAGetInputLayout
(
1840 [out] ID3D11InputLayout
**ppInputLayout
);
1841 void IAGetVertexBuffers
(
1842 [in] UINT StartSlot
,
1843 [in] UINT NumBuffers
,
1844 [out] ID3D11Buffer
**ppVertexBuffers
,
1845 [out] UINT
*pStrides
,
1846 [out] UINT
*pOffsets
);
1847 void IAGetIndexBuffer
(
1848 [out] ID3D11Buffer
**pIndexBuffer
,
1849 [out] DXGI_FORMAT
* Format
,
1850 [out] UINT
* Offset
);
1851 void GSGetConstantBuffers
(
1852 [in] UINT StartSlot
,
1853 [in] UINT NumBuffers
,
1854 [out] ID3D11Buffer
**ppConstantBuffers
);
1856 [out] ID3D11GeometryShader
**ppGeometryShader
,
1857 [out] ID3D11ClassInstance
**ppClassInstances
,
1858 [in, out] UINT
*pNumClassInstances
);
1859 void IAGetPrimitiveTopology
(
1860 [out] D3D11_PRIMITIVE_TOPOLOGY
*pTopology
);
1861 void VSGetShaderResources
(
1862 [in] UINT StartSlot
,
1864 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
1866 [in] UINT StartSlot
,
1867 [in] UINT NumSamplers
,
1868 [out] ID3D11SamplerState
**ppSamplers
);
1869 void GetPredication
(
1870 [out] ID3D11Predicate
**ppPredicate
,
1871 [out] BOOL
*pPredicateValue
);
1872 void GSGetShaderResources
(
1873 [in] UINT StartSlot
,
1875 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
1877 [in] UINT StartSlot
,
1878 [in] UINT NumSamplers
,
1879 [out] ID3D11SamplerState
**ppSamplers
);
1880 void OMGetRenderTargets
(
1882 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
1883 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
1884 void OMGetRenderTargetsAndUnorderedAccessViews
(
1886 [out] ID3D11RenderTargetView
**ppRenderTargetViews
,
1887 [out] ID3D11DepthStencilView
**ppDepthStencilView
,
1888 [in] UINT UAVStartSlot
,
1890 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
1891 void OMGetBlendState
(
1892 [out] ID3D11BlendState
**ppBlendState
,
1893 [out] FLOAT BlendFactor
[4],
1894 [out] UINT
*pSampleMask
);
1895 void OMGetDepthStencilState
(
1896 [out] ID3D11DepthStencilState
**ppDepthStencilState
,
1897 [out] UINT
*pStencilRef
);
1899 [in] UINT NumBuffers
,
1900 [out] ID3D11Buffer
**ppSOTargets
);
1902 [out] ID3D11RasterizerState
**ppRasterizerState
);
1903 void RSGetViewports
(
1904 [in, out] UINT
*pNumViewports
,
1905 [out] D3D11_VIEWPORT
*pViewports
);
1906 void RSGetScissorRects
(
1907 [in, out] UINT
*pNumRects
,
1908 [out] D3D11_RECT
*pRects
);
1909 void HSGetShaderResources
(
1910 [in] UINT StartSlot
,
1912 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
1914 [out] ID3D11HullShader
**ppHullShader
,
1915 [out] ID3D11ClassInstance
**ppClassInstances
,
1916 [in, out] UINT
*pNumClassInstances
);
1918 [in] UINT StartSlot
,
1919 [in] UINT NumSamplers
,
1920 [out] ID3D11SamplerState
**ppSamplers
);
1921 void HSGetConstantBuffers
(
1922 [in] UINT StartSlot
,
1923 [in] UINT NumBuffers
,
1924 [out] ID3D11Buffer
**ppConstantBuffers
);
1925 void DSGetShaderResources
(
1926 [in] UINT StartSlot
,
1928 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
1930 [out] ID3D11DomainShader
**ppDomainShader
,
1931 [out] ID3D11ClassInstance
**ppClassInstances
,
1932 [in, out] UINT
*pNumClassInstances
);
1934 [in] UINT StartSlot
,
1935 [in] UINT NumSamplers
,
1936 [out] ID3D11SamplerState
**ppSamplers
);
1937 void DSGetConstantBuffers
(
1938 [in] UINT StartSlot
,
1939 [in] UINT NumBuffers
,
1940 [out] ID3D11Buffer
**ppConstantBuffers
);
1941 void CSGetShaderResources
(
1942 [in] UINT StartSlot
,
1944 [out] ID3D11ShaderResourceView
**ppShaderResourceViews
);
1945 void CSGetUnorderedAccessViews
(
1946 [in] UINT StartSlot
,
1948 [out] ID3D11UnorderedAccessView
**ppUnorderedAccessViews
);
1950 [out] ID3D11ComputeShader
**ppComputeShader
,
1951 [out] ID3D11ClassInstance
**ppClassInstances
,
1952 [in, out] UINT
*pNumClassInstances
);
1954 [in] UINT StartSlot
,
1955 [in] UINT NumSamplers
,
1956 [out] ID3D11SamplerState
**ppSamplers
);
1957 void CSGetConstantBuffers
(
1958 [in] UINT StartSlot
,
1959 [in] UINT NumBuffers
,
1960 [out] ID3D11Buffer
**ppConstantBuffers
);
1963 D3D11_DEVICE_CONTEXT_TYPE GetType
();
1964 UINT GetContextFlags
();
1965 HRESULT FinishCommandList
(
1966 BOOL RestoreDeferredContextState
,
1967 [out] ID3D11CommandList
**ppCommandList
);
1973 uuid(db6f6ddb
-ac77
-4e88
-8253-819df9bbf140
)
1975 interface ID3D11Device
: IUnknown
1977 HRESULT CreateBuffer
(
1978 [in] const D3D11_BUFFER_DESC
*pDesc
,
1979 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
1980 [out] ID3D11Buffer
**ppBuffer
);
1981 HRESULT CreateTexture1D
(
1982 [in] const D3D11_TEXTURE1D_DESC
*pDesc
,
1983 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
1984 [out] ID3D11Texture1D
**ppTexture1D
);
1985 HRESULT CreateTexture2D
(
1986 [in] const D3D11_TEXTURE2D_DESC
*pDesc
,
1987 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
1988 [out] ID3D11Texture2D
**ppTexture2D
);
1989 HRESULT CreateTexture3D
(
1990 [in] const D3D11_TEXTURE3D_DESC
*pDesc
,
1991 [in] const D3D11_SUBRESOURCE_DATA
*pInitialData
,
1992 [out] ID3D11Texture3D
**ppTexture3D
);
1993 HRESULT CreateShaderResourceView
(
1994 [in] ID3D11Resource
*pResource
,
1995 [in] const D3D11_SHADER_RESOURCE_VIEW_DESC
*pDesc
,
1996 [out] ID3D11ShaderResourceView
**ppSRView
);
1997 HRESULT CreateUnorderedAccessView
(
1998 [in] ID3D11Resource
*pResource
,
1999 [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC
*pDesc
,
2000 [out] ID3D11UnorderedAccessView
**ppUAView
);
2001 HRESULT CreateRenderTargetView
(
2002 [in] ID3D11Resource
*pResource
,
2003 [in] const D3D11_RENDER_TARGET_VIEW_DESC
*pDesc
,
2004 [out] ID3D11RenderTargetView
**ppRTView
);
2005 HRESULT CreateDepthStencilView
(
2006 [in] ID3D11Resource
*pResource
,
2007 [in] const D3D11_DEPTH_STENCIL_VIEW_DESC
*pDesc
,
2008 [out] ID3D11DepthStencilView
**ppDepthStencilView
);
2009 HRESULT CreateInputLayout
(
2010 [in] const D3D11_INPUT_ELEMENT_DESC
*pInputElementDescs
,
2011 [in] UINT NumElements
,
2012 [in] const void *pShaderBytecodeWithInputSignature
,
2013 [in] SIZE_T BytecodeLength
,
2014 [out] ID3D11InputLayout
**ppInputLayout
);
2015 HRESULT CreateVertexShader
(
2016 [in] const void *pShaderBytecode
,
2017 [in] SIZE_T BytecodeLength
,
2018 [in] ID3D11ClassLinkage
*pClassLinkage
,
2019 [out] ID3D11VertexShader
**ppVertexShader
);
2020 HRESULT CreateGeometryShader
(
2021 [in] const void *pShaderBytecode
,
2022 [in] SIZE_T BytecodeLength
,
2023 [in] ID3D11ClassLinkage
*pClassLinkage
,
2024 [out] ID3D11GeometryShader
**ppGeometryShader
);
2025 HRESULT CreateGeometryShaderWithStreamOutput
(
2026 [in] const void *pShaderBytecode
,
2027 [in] SIZE_T BytecodeLength
,
2028 [in] const D3D11_SO_DECLARATION_ENTRY
*pSODeclaration
,
2029 [in] UINT NumEntries
,
2030 [in] const UINT
*pBufferStrides
,
2031 [in] UINT NumStrides
,
2032 [in] UINT RasterizedStream
,
2033 [in] ID3D11ClassLinkage
*pClassLinkage
,
2034 [out] ID3D11GeometryShader
**ppGeometryShader
);
2035 HRESULT CreatePixelShader
(
2036 [in] const void *pShaderBytecode
,
2037 [in] SIZE_T BytecodeLength
,
2038 [in] ID3D11ClassLinkage
*pClassLinkage
,
2039 [out] ID3D11PixelShader
**ppPixelShader
);
2040 HRESULT CreateHullShader
(
2041 [in] const void *pShaderBytecode
,
2042 [in] SIZE_T BytecodeLength
,
2043 [in] ID3D11ClassLinkage
*pClassLinkage
,
2044 [out] ID3D11HullShader
**ppHullShader
);
2045 HRESULT CreateDomainShader
(
2046 [in] const void *pShaderBytecode
,
2047 [in] SIZE_T BytecodeLength
,
2048 [in] ID3D11ClassLinkage
*pClassLinkage
,
2049 [out] ID3D11DomainShader
**ppDomainShader
);
2050 HRESULT CreateComputeShader
(
2051 [in] const void *pShaderBytecode
,
2052 [in] SIZE_T BytecodeLength
,
2053 [in] ID3D11ClassLinkage
*pClassLinkage
,
2054 [out] ID3D11ComputeShader
**ppComputeShader
);
2055 HRESULT CreateClassLinkage
(
2056 [out] ID3D11ClassLinkage
**ppLinkage
);
2057 HRESULT CreateBlendState
(
2058 [in] const D3D11_BLEND_DESC
*pBlendStateDesc
,
2059 [out] ID3D11BlendState
**ppBlendState
);
2060 HRESULT CreateDepthStencilState
(
2061 [in] const D3D11_DEPTH_STENCIL_DESC
*pDepthStencilDesc
,
2062 [out] ID3D11DepthStencilState
**ppDepthStencilState
);
2063 HRESULT CreateRasterizerState
(
2064 [in] const D3D11_RASTERIZER_DESC
*pRasterizerDesc
,
2065 [out] ID3D11RasterizerState
**ppRasterizerState
);
2066 HRESULT CreateSamplerState
(
2067 [in] const D3D11_SAMPLER_DESC
*pSamplerDesc
,
2068 [out] ID3D11SamplerState
**ppSamplerState
);
2069 HRESULT CreateQuery
(
2070 [in] const D3D11_QUERY_DESC
*pQueryDesc
,
2071 [out] ID3D11Query
**ppQuery
);
2072 HRESULT CreatePredicate
(
2073 [in] const D3D11_QUERY_DESC
*pPredicateDesc
,
2074 [out] ID3D11Predicate
**ppPredicate
);
2075 HRESULT CreateCounter
(
2076 [in] const D3D11_COUNTER_DESC
*pCounterDesc
,
2077 [out] ID3D11Counter
**ppCounter
);
2078 HRESULT CreateDeferredContext
(
2080 [out] ID3D11DeviceContext
**ppDeferredContext
);
2081 HRESULT OpenSharedResource
(
2082 [in] HANDLE hResource
,
2083 [in] REFIID ReturnedInterface
,
2084 [out] void **ppResource
);
2085 HRESULT CheckFormatSupport
(
2086 [in] DXGI_FORMAT Format
,
2087 [out] UINT
*pFormatSupport
);
2088 HRESULT CheckMultisampleQualityLevels
(
2089 [in] DXGI_FORMAT Format
,
2090 [in] UINT SampleCount
,
2091 [out] UINT
*pNumQualityLevels
);
2092 void CheckCounterInfo
(
2093 [out] D3D11_COUNTER_INFO
*pCounterInfo
);
2094 HRESULT CheckCounter
(
2095 [in] const D3D11_COUNTER_DESC
*pDesc
,
2096 [out] D3D11_COUNTER_TYPE
*pType
,
2097 [out] UINT
*pActiveCounters
,
2099 [in, out] UINT
*pNameLength
,
2100 [out] LPSTR szUnits
,
2101 [in, out] UINT
*pUnitsLength
,
2102 [out] LPSTR szDescription
,
2103 [in, out] UINT
*pDescriptionLength
);
2104 HRESULT CheckFeatureSupport
(
2105 D3D11_FEATURE Feature
,
2106 [out] void *pFeatureSupportData
,
2107 UINT FeatureSupportDataSize
);
2108 HRESULT GetPrivateData
(
2110 [in, out] UINT
*pDataSize
,
2112 HRESULT SetPrivateData
(
2115 [in] const void *pData
);
2116 HRESULT SetPrivateDataInterface
(
2118 [in] const IUnknown
*pData
);
2119 D3D_FEATURE_LEVEL GetFeatureLevel
();
2120 UINT GetCreationFlags
();
2121 HRESULT GetDeviceRemovedReason
();
2122 void GetImmediateContext
(
2123 [out] ID3D11DeviceContext
**ppImmediateContext
);
2124 HRESULT SetExceptionMode
(UINT RaiseFlags
);
2125 UINT GetExceptionMode
();
2128 typedef enum D3D11_CREATE_DEVICE_FLAG
{
2129 D3D11_CREATE_DEVICE_SINGLETHREADED
= 0x0001,
2130 D3D11_CREATE_DEVICE_DEBUG
= 0x0002,
2131 D3D11_CREATE_DEVICE_SWITCH_TO_REF
= 0x0004,
2132 D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
= 0x0008,
2133 D3D11_CREATE_DEVICE_BGRA_SUPPORT
= 0x0020,
2134 D3D11_CREATE_DEVICE_DEBUGGABLE
= 0x0040,
2135 D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY
= 0x0080,
2136 D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT
= 0x0100,
2137 D3D11_CREATE_DEVICE_VIDEO_SUPPORT
= 0x0800
2138 } D3D11_CREATE_DEVICE_FLAG
;
2140 const UINT D3D11_SDK_VERSION
= 7;
2142 cpp_quote
("#include <d3d10_1.h>")
2143 cpp_quote
("#ifndef D3D11_IGNORE_SDK_LAYERS")
2144 cpp_quote
("# include <d3d11sdklayers.h>")
2146 cpp_quote
("#include <d3d10misc.h>")
2147 cpp_quote
("#include <d3d10shader.h>")
2148 cpp_quote
("#include <d3d10effect.h>")
2149 cpp_quote
("#include <d3d10_1shader.h>")
2151 cpp_quote
("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2152 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2154 cpp_quote
("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
2155 cpp_quote
(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
2157 cpp_quote
("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
2158 cpp_quote
(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
2159 cpp_quote
(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")