1 | /*
|
---|
2 | * Copyright 2010 Rico Schüller
|
---|
3 | * Copyright 2013 Austin English
|
---|
4 | *
|
---|
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.
|
---|
9 | *
|
---|
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.
|
---|
14 | *
|
---|
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
|
---|
18 | */
|
---|
19 |
|
---|
20 | import "oaidl.idl";
|
---|
21 | import "ocidl.idl";
|
---|
22 | import "dxgi.idl";
|
---|
23 | import "d3dcommon.idl";
|
---|
24 |
|
---|
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;
|
---|
29 |
|
---|
30 | interface ID3D11Device;
|
---|
31 | interface ID3D11ClassLinkage;
|
---|
32 | interface ID3D11Resource;
|
---|
33 | interface ID3D11VideoProcessorInputView;
|
---|
34 |
|
---|
35 | cpp_quote("#ifndef _D3D11_CONSTANTS")
|
---|
36 | cpp_quote("#define _D3D11_CONSTANTS")
|
---|
37 |
|
---|
38 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
|
---|
39 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
|
---|
40 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
|
---|
41 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
|
---|
42 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
|
---|
43 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
|
---|
44 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
|
---|
45 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
|
---|
46 | const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
|
---|
47 | const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
|
---|
48 | const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
|
---|
49 | const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
|
---|
50 | const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
|
---|
51 | const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
|
---|
52 | const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
|
---|
53 | const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
|
---|
54 | const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
|
---|
55 | const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
|
---|
56 | const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
|
---|
57 | const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
|
---|
58 | const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
|
---|
59 | const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
|
---|
60 | const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
|
---|
61 | const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
|
---|
62 | const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
|
---|
63 | const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
|
---|
64 | const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
|
---|
65 | const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
|
---|
66 | const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
|
---|
67 | const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
|
---|
68 | const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
|
---|
69 | const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
|
---|
70 | const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
|
---|
71 | const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
|
---|
72 | const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
|
---|
73 |
|
---|
74 | const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256;
|
---|
75 | const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64;
|
---|
76 | const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240;
|
---|
77 | const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68;
|
---|
78 | const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224;
|
---|
79 | const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72;
|
---|
80 | const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208;
|
---|
81 | const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76;
|
---|
82 | const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192;
|
---|
83 | const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84;
|
---|
84 | const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176;
|
---|
85 | const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92;
|
---|
86 | const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160;
|
---|
87 | const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100;
|
---|
88 | const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144;
|
---|
89 | const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112;
|
---|
90 | const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128;
|
---|
91 | const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128;
|
---|
92 | const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112;
|
---|
93 | const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144;
|
---|
94 | const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96;
|
---|
95 | const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168;
|
---|
96 | const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80;
|
---|
97 | const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204;
|
---|
98 | const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64;
|
---|
99 | const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256;
|
---|
100 | const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48;
|
---|
101 | const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340;
|
---|
102 | const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32;
|
---|
103 | const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512;
|
---|
104 | const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16;
|
---|
105 | const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768;
|
---|
106 | const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1;
|
---|
107 | const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256;
|
---|
108 | const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768;
|
---|
109 | const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768;
|
---|
110 | const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768;
|
---|
111 | const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1;
|
---|
112 | const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535;
|
---|
113 | const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192;
|
---|
114 | const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1;
|
---|
115 | const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1;
|
---|
116 | const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1;
|
---|
117 | const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024;
|
---|
118 | const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024;
|
---|
119 | const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024;
|
---|
120 | const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64;
|
---|
121 | const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1;
|
---|
122 | const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1;
|
---|
123 | const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1;
|
---|
124 | const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384;
|
---|
125 |
|
---|
126 | const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
|
---|
127 | cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
|
---|
128 | const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
|
---|
129 | cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
|
---|
130 | const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
|
---|
131 | const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
|
---|
132 | const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
|
---|
133 | const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
|
---|
134 | const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
|
---|
135 | const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
|
---|
136 | cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
|
---|
137 | const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
|
---|
138 | const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
|
---|
139 | const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
|
---|
140 | const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
|
---|
141 | const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
|
---|
142 | cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
|
---|
143 | cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
|
---|
144 | const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
|
---|
145 | const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
|
---|
146 | const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
|
---|
147 |
|
---|
148 | cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
|
---|
149 |
|
---|
150 | const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
|
---|
151 |
|
---|
152 | const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
|
---|
153 |
|
---|
154 | const UINT D3D11_MAX_MAXANISOTROPY = 16;
|
---|
155 | const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
|
---|
156 | const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
|
---|
157 | const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
|
---|
158 | const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
|
---|
159 | const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
|
---|
160 |
|
---|
161 | const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff;
|
---|
162 | const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff;
|
---|
163 |
|
---|
164 | const UINT D3D11_SHADER_MAJOR_VERSION = 5;
|
---|
165 | const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
|
---|
166 | const UINT D3D11_SHADER_MAX_INTERFACES = 253;
|
---|
167 | const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
|
---|
168 | const UINT D3D11_SHADER_MAX_TYPES = 65535;
|
---|
169 | const UINT D3D11_SHADER_MINOR_VERSION = 0;
|
---|
170 | const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
|
---|
171 |
|
---|
172 | const UINT D3D11_OMAC_SIZE = 16;
|
---|
173 |
|
---|
174 | const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
|
---|
175 | const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
|
---|
176 | const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
|
---|
177 | const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
|
---|
178 | const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
|
---|
179 | const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
|
---|
180 | const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
|
---|
181 | const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
|
---|
182 | const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
|
---|
183 | const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
|
---|
184 | const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
|
---|
185 | const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
|
---|
186 | cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
|
---|
187 | const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
|
---|
188 | const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
|
---|
189 | const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
|
---|
190 | const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
|
---|
191 | const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
|
---|
192 | const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
|
---|
193 | const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
|
---|
194 | const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
|
---|
195 | const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
|
---|
196 | cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
|
---|
197 |
|
---|
198 | const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
|
---|
199 |
|
---|
200 | const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
|
---|
201 | const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
|
---|
202 | const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
|
---|
203 | const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
|
---|
204 | const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
|
---|
205 | const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
|
---|
206 | const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
|
---|
207 | const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
|
---|
208 | const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
|
---|
209 | const UINT D3D11_REQ_MAXANISOTROPY = 16;
|
---|
210 | const UINT D3D11_REQ_MIP_LEVELS = 15;
|
---|
211 | const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
|
---|
212 | const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
|
---|
213 | const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
|
---|
214 | const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
|
---|
215 | cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
|
---|
216 | const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
|
---|
217 | const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
|
---|
218 | const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
|
---|
219 | const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
|
---|
220 | const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
|
---|
221 | const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
|
---|
222 | const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
|
---|
223 | const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
|
---|
224 | const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
|
---|
225 |
|
---|
226 | const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
|
---|
227 |
|
---|
228 | const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
|
---|
229 | const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
|
---|
230 |
|
---|
231 | const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
|
---|
232 | const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
|
---|
233 | const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
|
---|
234 | const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
|
---|
235 | const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
|
---|
236 | const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
|
---|
237 | const UINT D3D11_SO_STREAM_COUNT = 4;
|
---|
238 |
|
---|
239 | const UINT D3D11_SPEC_DATE_DAY = 16;
|
---|
240 | const UINT D3D11_SPEC_DATE_MONTH = 05;
|
---|
241 | const UINT D3D11_SPEC_DATE_YEAR = 2011;
|
---|
242 |
|
---|
243 | cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
|
---|
244 | cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
|
---|
245 | cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
|
---|
246 | cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
|
---|
247 | cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
|
---|
248 | cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
|
---|
249 | cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
|
---|
250 | cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
|
---|
251 |
|
---|
252 | const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
|
---|
253 | const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
|
---|
254 | const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
|
---|
255 | const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
|
---|
256 | const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
|
---|
257 | const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
|
---|
258 | const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
|
---|
259 | const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
|
---|
260 |
|
---|
261 | cpp_quote("#endif")
|
---|
262 |
|
---|
263 | cpp_quote("#ifndef _D3D11_1_CONSTANTS")
|
---|
264 | cpp_quote("#define _D3D11_1_CONSTANTS")
|
---|
265 | const UINT D3D11_1_UAV_SLOT_COUNT = 64;
|
---|
266 | cpp_quote("#endif")
|
---|
267 |
|
---|
268 | cpp_quote("#ifndef _D3D11_2_CONSTANTS")
|
---|
269 | cpp_quote("#define _D3D11_2_CONSTANTS")
|
---|
270 | const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 0x10000;
|
---|
271 | cpp_quote("#endif")
|
---|
272 |
|
---|
273 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
274 | cpp_quote("struct CD3D11_DEFAULT {};")
|
---|
275 | cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
|
---|
276 | cpp_quote("#endif")
|
---|
277 |
|
---|
278 | typedef enum D3D11_BLEND
|
---|
279 | {
|
---|
280 | D3D11_BLEND_ZERO = 1,
|
---|
281 | D3D11_BLEND_ONE = 2,
|
---|
282 | D3D11_BLEND_SRC_COLOR = 3,
|
---|
283 | D3D11_BLEND_INV_SRC_COLOR = 4,
|
---|
284 | D3D11_BLEND_SRC_ALPHA = 5,
|
---|
285 | D3D11_BLEND_INV_SRC_ALPHA = 6,
|
---|
286 | D3D11_BLEND_DEST_ALPHA = 7,
|
---|
287 | D3D11_BLEND_INV_DEST_ALPHA = 8,
|
---|
288 | D3D11_BLEND_DEST_COLOR = 9,
|
---|
289 | D3D11_BLEND_INV_DEST_COLOR = 10,
|
---|
290 | D3D11_BLEND_SRC_ALPHA_SAT = 11,
|
---|
291 | D3D11_BLEND_BLEND_FACTOR = 14,
|
---|
292 | D3D11_BLEND_INV_BLEND_FACTOR = 15,
|
---|
293 | D3D11_BLEND_SRC1_COLOR = 16,
|
---|
294 | D3D11_BLEND_INV_SRC1_COLOR = 17,
|
---|
295 | D3D11_BLEND_SRC1_ALPHA = 18,
|
---|
296 | D3D11_BLEND_INV_SRC1_ALPHA = 19,
|
---|
297 | } D3D11_BLEND;
|
---|
298 |
|
---|
299 | typedef enum D3D11_BLEND_OP
|
---|
300 | {
|
---|
301 | D3D11_BLEND_OP_ADD = 1,
|
---|
302 | D3D11_BLEND_OP_SUBTRACT,
|
---|
303 | D3D11_BLEND_OP_REV_SUBTRACT,
|
---|
304 | D3D11_BLEND_OP_MIN,
|
---|
305 | D3D11_BLEND_OP_MAX
|
---|
306 | } D3D11_BLEND_OP;
|
---|
307 |
|
---|
308 | typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
|
---|
309 | {
|
---|
310 | D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
|
---|
311 | D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
|
---|
312 | D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
|
---|
313 | D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
|
---|
314 | D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
|
---|
315 | D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
|
---|
316 | D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
|
---|
317 | D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
|
---|
318 | D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
|
---|
319 | } D3D11_VIDEO_DECODER_BUFFER_TYPE;
|
---|
320 |
|
---|
321 | typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
|
---|
322 | {
|
---|
323 | D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
|
---|
324 | D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
|
---|
325 | D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
|
---|
326 | D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
|
---|
327 | } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
|
---|
328 |
|
---|
329 | typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
|
---|
330 | {
|
---|
331 | D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
|
---|
332 | D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
|
---|
333 | D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
|
---|
334 | } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
|
---|
335 |
|
---|
336 | typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
|
---|
337 | {
|
---|
338 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
|
---|
339 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
|
---|
340 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
|
---|
341 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
|
---|
342 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
|
---|
343 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
|
---|
344 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
|
---|
345 | D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
|
---|
346 | } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
|
---|
347 |
|
---|
348 | typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
|
---|
349 | {
|
---|
350 | D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
|
---|
351 | D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
|
---|
352 | D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
|
---|
353 | } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
|
---|
354 |
|
---|
355 | typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
|
---|
356 | {
|
---|
357 | D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
|
---|
358 | D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
|
---|
359 | D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
|
---|
360 | D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
|
---|
361 | } D3D11_VIDEO_PROCESSOR_ROTATION;
|
---|
362 |
|
---|
363 | typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS
|
---|
364 | {
|
---|
365 | D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x00000001,
|
---|
366 | D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x00000002,
|
---|
367 | D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x00000004,
|
---|
368 | D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x00000008,
|
---|
369 | D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x00000010,
|
---|
370 | } D3D11_VIDEO_PROCESSOR_DEVICE_CAPS;
|
---|
371 |
|
---|
372 | typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS
|
---|
373 | {
|
---|
374 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x00000001,
|
---|
375 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x00000002,
|
---|
376 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x00000004,
|
---|
377 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x00000008,
|
---|
378 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x00000010,
|
---|
379 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x00000020,
|
---|
380 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x00000040,
|
---|
381 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x00000080,
|
---|
382 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x00000100,
|
---|
383 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x00000200,
|
---|
384 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x00000400,
|
---|
385 | D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x00000800,
|
---|
386 | } D3D11_VIDEO_PROCESSOR_FEATURE_CAPS;
|
---|
387 |
|
---|
388 | typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS
|
---|
389 | {
|
---|
390 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x00000001,
|
---|
391 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x00000002,
|
---|
392 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x00000004,
|
---|
393 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x00000008,
|
---|
394 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x00000010,
|
---|
395 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x00000020,
|
---|
396 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x00000040,
|
---|
397 | D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x00000080,
|
---|
398 | } D3D11_VIDEO_PROCESSOR_FILTER_CAPS;
|
---|
399 |
|
---|
400 | typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS
|
---|
401 | {
|
---|
402 | D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x00000001,
|
---|
403 | D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x00000002,
|
---|
404 | D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x00000004,
|
---|
405 | D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x00000008,
|
---|
406 | } D3D11_VIDEO_PROCESSOR_FORMAT_CAPS;
|
---|
407 |
|
---|
408 | typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS
|
---|
409 | {
|
---|
410 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x00000001,
|
---|
411 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x00000002,
|
---|
412 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x00000004,
|
---|
413 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x00000008,
|
---|
414 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x00000010,
|
---|
415 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x00000020,
|
---|
416 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x00000040,
|
---|
417 | D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x00000080,
|
---|
418 | } D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS;
|
---|
419 |
|
---|
420 | typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS
|
---|
421 | {
|
---|
422 | D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x00000001,
|
---|
423 | D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x00000002,
|
---|
424 | D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x00000004,
|
---|
425 | D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x00000008,
|
---|
426 | D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x00000010,
|
---|
427 | } D3D11_VIDEO_PROCESSOR_STEREO_CAPS;
|
---|
428 |
|
---|
429 | typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
|
---|
430 | {
|
---|
431 | D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
|
---|
432 | D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
|
---|
433 | D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
|
---|
434 | D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
|
---|
435 | D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
|
---|
436 | D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
|
---|
437 | } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
|
---|
438 |
|
---|
439 | typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
|
---|
440 | {
|
---|
441 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
|
---|
442 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
|
---|
443 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
|
---|
444 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
|
---|
445 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
|
---|
446 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
|
---|
447 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
|
---|
448 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
|
---|
449 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
|
---|
450 | D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
|
---|
451 | } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
|
---|
452 |
|
---|
453 | typedef enum D3D11_CONTENT_PROTECTION_CAPS
|
---|
454 | {
|
---|
455 | D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
|
---|
456 | D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
|
---|
457 | D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
|
---|
458 | D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
|
---|
459 | D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
|
---|
460 | D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
|
---|
461 | D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
|
---|
462 | D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
|
---|
463 | D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
|
---|
464 | D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
|
---|
465 | D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
|
---|
466 | D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
|
---|
467 | D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
|
---|
468 | D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
|
---|
469 | D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
|
---|
470 | } D3D11_CONTENT_PROTECTION_CAPS;
|
---|
471 |
|
---|
472 | typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
|
---|
473 | {
|
---|
474 | D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
|
---|
475 | D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
|
---|
476 | D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
|
---|
477 | } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
|
---|
478 |
|
---|
479 | typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
|
---|
480 | {
|
---|
481 | D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
|
---|
482 | D3D11_PROCESSIDTYPE_DWM = 0x00000001,
|
---|
483 | D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
|
---|
484 | } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
|
---|
485 |
|
---|
486 | typedef enum D3D11_BUS_TYPE
|
---|
487 | {
|
---|
488 | D3D11_BUS_TYPE_OTHER = 0x00000000,
|
---|
489 | D3D11_BUS_TYPE_PCI = 0x00000001,
|
---|
490 | D3D11_BUS_TYPE_PCIX = 0x00000002,
|
---|
491 | D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
|
---|
492 | D3D11_BUS_TYPE_AGP = 0x00000004,
|
---|
493 | D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
|
---|
494 | D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
|
---|
495 | D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
|
---|
496 | D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
|
---|
497 | D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
|
---|
498 | D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
|
---|
499 | } D3D11_BUS_TYPE;
|
---|
500 |
|
---|
501 | typedef struct D3D11_BOX
|
---|
502 | {
|
---|
503 | UINT left;
|
---|
504 | UINT top;
|
---|
505 | UINT front;
|
---|
506 | UINT right;
|
---|
507 | UINT bottom;
|
---|
508 | UINT back;
|
---|
509 | } D3D11_BOX;
|
---|
510 |
|
---|
511 | typedef struct D3D11_BUFFER_RTV
|
---|
512 | {
|
---|
513 | union
|
---|
514 | {
|
---|
515 | UINT FirstElement;
|
---|
516 | UINT ElementOffset;
|
---|
517 | };
|
---|
518 | union
|
---|
519 | {
|
---|
520 | UINT NumElements;
|
---|
521 | UINT ElementWidth;
|
---|
522 | };
|
---|
523 | } D3D11_BUFFER_RTV;
|
---|
524 |
|
---|
525 | typedef struct D3D11_BUFFER_SRV
|
---|
526 | {
|
---|
527 | union
|
---|
528 | {
|
---|
529 | UINT FirstElement;
|
---|
530 | UINT ElementOffset;
|
---|
531 | };
|
---|
532 | union
|
---|
533 | {
|
---|
534 | UINT NumElements;
|
---|
535 | UINT ElementWidth;
|
---|
536 | };
|
---|
537 | } D3D11_BUFFER_SRV;
|
---|
538 |
|
---|
539 | typedef struct D3D11_BUFFER_UAV
|
---|
540 | {
|
---|
541 | UINT FirstElement;
|
---|
542 | UINT NumElements;
|
---|
543 | UINT Flags;
|
---|
544 | } D3D11_BUFFER_UAV;
|
---|
545 |
|
---|
546 | typedef struct D3D11_BUFFEREX_SRV
|
---|
547 | {
|
---|
548 | UINT FirstElement;
|
---|
549 | UINT NumElements;
|
---|
550 | UINT Flags;
|
---|
551 | } D3D11_BUFFEREX_SRV;
|
---|
552 |
|
---|
553 | typedef struct D3D11_CLASS_INSTANCE_DESC
|
---|
554 | {
|
---|
555 | UINT InstanceId;
|
---|
556 | UINT InstanceIndex;
|
---|
557 | UINT TypeId;
|
---|
558 | UINT ConstantBuffer;
|
---|
559 | UINT BaseConstantBufferOffset;
|
---|
560 | UINT BaseTexture;
|
---|
561 | UINT BaseSampler;
|
---|
562 | BOOL Created;
|
---|
563 | } D3D11_CLASS_INSTANCE_DESC;
|
---|
564 |
|
---|
565 | typedef enum D3D11_COMPARISON_FUNC
|
---|
566 | {
|
---|
567 | D3D11_COMPARISON_NEVER = 1,
|
---|
568 | D3D11_COMPARISON_LESS,
|
---|
569 | D3D11_COMPARISON_EQUAL,
|
---|
570 | D3D11_COMPARISON_LESS_EQUAL,
|
---|
571 | D3D11_COMPARISON_GREATER,
|
---|
572 | D3D11_COMPARISON_NOT_EQUAL,
|
---|
573 | D3D11_COMPARISON_GREATER_EQUAL,
|
---|
574 | D3D11_COMPARISON_ALWAYS
|
---|
575 | } D3D11_COMPARISON_FUNC;
|
---|
576 |
|
---|
577 | typedef enum D3D11_COUNTER
|
---|
578 | {
|
---|
579 | D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
|
---|
580 | } D3D11_COUNTER;
|
---|
581 |
|
---|
582 | typedef struct D3D11_COUNTER_DESC
|
---|
583 | {
|
---|
584 | D3D11_COUNTER Counter;
|
---|
585 | UINT MiscFlags;
|
---|
586 | } D3D11_COUNTER_DESC;
|
---|
587 |
|
---|
588 | typedef struct D3D11_COUNTER_INFO
|
---|
589 | {
|
---|
590 | D3D11_COUNTER LastDeviceDependentCounter;
|
---|
591 | UINT NumSimultaneousCounters;
|
---|
592 | UINT8 NumDetectableParallelUnits;
|
---|
593 | } D3D11_COUNTER_INFO;
|
---|
594 |
|
---|
595 | typedef enum D3D11_COUNTER_TYPE
|
---|
596 | {
|
---|
597 | D3D11_COUNTER_TYPE_FLOAT32,
|
---|
598 | D3D11_COUNTER_TYPE_UINT16,
|
---|
599 | D3D11_COUNTER_TYPE_UINT32,
|
---|
600 | D3D11_COUNTER_TYPE_UINT64,
|
---|
601 | } D3D11_COUNTER_TYPE;
|
---|
602 |
|
---|
603 | typedef enum D3D11_CULL_MODE
|
---|
604 | {
|
---|
605 | D3D11_CULL_NONE = 1,
|
---|
606 | D3D11_CULL_FRONT,
|
---|
607 | D3D11_CULL_BACK
|
---|
608 | } D3D11_CULL_MODE;
|
---|
609 |
|
---|
610 | typedef enum D3D11_DEPTH_WRITE_MASK
|
---|
611 | {
|
---|
612 | D3D11_DEPTH_WRITE_MASK_ZERO,
|
---|
613 | D3D11_DEPTH_WRITE_MASK_ALL,
|
---|
614 | } D3D11_DEPTH_WRITE_MASK;
|
---|
615 |
|
---|
616 | typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
|
---|
617 | {
|
---|
618 | D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
|
---|
619 | D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
|
---|
620 | } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
|
---|
621 |
|
---|
622 | typedef enum D3D11_DEVICE_CONTEXT_TYPE
|
---|
623 | {
|
---|
624 | D3D11_DEVICE_CONTEXT_IMMEDIATE,
|
---|
625 | D3D11_DEVICE_CONTEXT_DEFERRED,
|
---|
626 | } D3D11_DEVICE_CONTEXT_TYPE;
|
---|
627 |
|
---|
628 | typedef enum D3D11_DSV_DIMENSION
|
---|
629 | {
|
---|
630 | D3D11_DSV_DIMENSION_UNKNOWN,
|
---|
631 | D3D11_DSV_DIMENSION_TEXTURE1D,
|
---|
632 | D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
|
---|
633 | D3D11_DSV_DIMENSION_TEXTURE2D,
|
---|
634 | D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
|
---|
635 | D3D11_DSV_DIMENSION_TEXTURE2DMS,
|
---|
636 | D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
|
---|
637 | } D3D11_DSV_DIMENSION;
|
---|
638 |
|
---|
639 | typedef enum D3D11_FEATURE
|
---|
640 | {
|
---|
641 | D3D11_FEATURE_THREADING,
|
---|
642 | D3D11_FEATURE_DOUBLES,
|
---|
643 | D3D11_FEATURE_FORMAT_SUPPORT,
|
---|
644 | D3D11_FEATURE_FORMAT_SUPPORT2,
|
---|
645 | D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
|
---|
646 | D3D11_FEATURE_D3D11_OPTIONS,
|
---|
647 | D3D11_FEATURE_ARCHITECTURE_INFO,
|
---|
648 | D3D11_FEATURE_D3D9_OPTIONS,
|
---|
649 | D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
|
---|
650 | D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
|
---|
651 | D3D11_FEATURE_D3D11_OPTIONS1,
|
---|
652 | D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
|
---|
653 | D3D11_FEATURE_MARKER_SUPPORT,
|
---|
654 | D3D11_FEATURE_D3D9_OPTIONS1,
|
---|
655 | D3D11_FEATURE_D3D11_OPTIONS2,
|
---|
656 | D3D11_FEATURE_D3D11_OPTIONS3,
|
---|
657 | D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
|
---|
658 | D3D11_FEATURE_D3D11_OPTIONS4,
|
---|
659 | D3D11_FEATURE_SHADER_CACHE,
|
---|
660 | D3D11_FEATURE_D3D11_OPTIONS5,
|
---|
661 | } D3D11_FEATURE;
|
---|
662 |
|
---|
663 | typedef struct D3D11_FEATURE_DATA_THREADING
|
---|
664 | {
|
---|
665 | BOOL DriverConcurrentCreates;
|
---|
666 | BOOL DriverCommandLists;
|
---|
667 | } D3D11_FEATURE_DATA_THREADING;
|
---|
668 |
|
---|
669 | typedef struct D3D11_FEATURE_DATA_DOUBLES
|
---|
670 | {
|
---|
671 | BOOL DoublePrecisionFloatShaderOps;
|
---|
672 | } D3D11_FEATURE_DATA_DOUBLES;
|
---|
673 |
|
---|
674 | typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
|
---|
675 | {
|
---|
676 | DXGI_FORMAT InFormat;
|
---|
677 | UINT OutFormatSupport;
|
---|
678 | } D3D11_FEATURE_DATA_FORMAT_SUPPORT;
|
---|
679 |
|
---|
680 | typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
|
---|
681 | {
|
---|
682 | DXGI_FORMAT InFormat;
|
---|
683 | UINT OutFormatSupport2;
|
---|
684 | } D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
|
---|
685 |
|
---|
686 | typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
|
---|
687 | {
|
---|
688 | BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
|
---|
689 | } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
|
---|
690 |
|
---|
691 | typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
|
---|
692 | {
|
---|
693 | BOOL OutputMergerLogicOp;
|
---|
694 | BOOL UAVOnlyRenderingForcedSampleCount;
|
---|
695 | BOOL DiscardAPIsSeenByDriver;
|
---|
696 | BOOL FlagsForUpdateAndCopySeenByDriver;
|
---|
697 | BOOL ClearView;
|
---|
698 | BOOL CopyWithOverlap;
|
---|
699 | BOOL ConstantBufferPartialUpdate;
|
---|
700 | BOOL ConstantBufferOffsetting;
|
---|
701 | BOOL MapNoOverwriteOnDynamicConstantBuffer;
|
---|
702 | BOOL MapNoOverwriteOnDynamicBufferSRV;
|
---|
703 | BOOL MultisampleRTVWithForcedSampleCountOne;
|
---|
704 | BOOL SAD4ShaderInstructions;
|
---|
705 | BOOL ExtendedDoublesShaderInstructions;
|
---|
706 | BOOL ExtendedResourceSharing;
|
---|
707 | } D3D11_FEATURE_DATA_D3D11_OPTIONS;
|
---|
708 |
|
---|
709 | typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
|
---|
710 | {
|
---|
711 | BOOL TileBasedDeferredRenderer;
|
---|
712 | } D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
|
---|
713 |
|
---|
714 | typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
|
---|
715 | {
|
---|
716 | BOOL FullNonPow2TextureSupport;
|
---|
717 | } D3D11_FEATURE_DATA_D3D9_OPTIONS;
|
---|
718 |
|
---|
719 | typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
|
---|
720 | {
|
---|
721 | BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
|
---|
722 | } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
|
---|
723 |
|
---|
724 | typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
|
---|
725 | {
|
---|
726 | D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
|
---|
727 | D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
|
---|
728 | } D3D11_SHADER_MIN_PRECISION_SUPPORT;
|
---|
729 |
|
---|
730 | typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
|
---|
731 | {
|
---|
732 | UINT PixelShaderMinPrecision;
|
---|
733 | UINT AllOtherShaderStagesMinPrecision;
|
---|
734 | } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
|
---|
735 |
|
---|
736 | typedef enum D3D11_TILED_RESOURCES_TIER
|
---|
737 | {
|
---|
738 | D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
|
---|
739 | D3D11_TILED_RESOURCES_TIER_1 = 0x1,
|
---|
740 | D3D11_TILED_RESOURCES_TIER_2 = 0x2,
|
---|
741 | D3D11_TILED_RESOURCES_TIER_3 = 0x3,
|
---|
742 | } D3D11_TILED_RESOURCES_TIER;
|
---|
743 |
|
---|
744 | typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
|
---|
745 | {
|
---|
746 | D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
|
---|
747 | BOOL MinMaxFiltering;
|
---|
748 | BOOL ClearViewAlsoSupportsDepthOnlyFormats;
|
---|
749 | BOOL MapOnDefaultBuffers;
|
---|
750 | } D3D11_FEATURE_DATA_D3D11_OPTIONS1;
|
---|
751 |
|
---|
752 | typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
|
---|
753 | {
|
---|
754 | BOOL SimpleInstancingSupported;
|
---|
755 | } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
|
---|
756 |
|
---|
757 | typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
|
---|
758 | {
|
---|
759 | BOOL Profile;
|
---|
760 | } D3D11_FEATURE_DATA_MARKER_SUPPORT;
|
---|
761 |
|
---|
762 | typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
|
---|
763 | {
|
---|
764 | BOOL FullNonPow2TextureSupported;
|
---|
765 | BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
|
---|
766 | BOOL SimpleInstancingSupported;
|
---|
767 | BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
|
---|
768 | } D3D11_FEATURE_DATA_D3D9_OPTIONS1;
|
---|
769 |
|
---|
770 | typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
|
---|
771 | {
|
---|
772 | D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
|
---|
773 | D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
|
---|
774 | D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
|
---|
775 | D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
|
---|
776 | } D3D11_CONSERVATIVE_RASTERIZATION_TIER;
|
---|
777 |
|
---|
778 | typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
|
---|
779 | {
|
---|
780 | BOOL PSSpecifiedStencilRefSupported;
|
---|
781 | BOOL TypedUAVLoadAdditionalFormats;
|
---|
782 | BOOL ROVsSupported;
|
---|
783 | D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
|
---|
784 | D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
|
---|
785 | BOOL MapOnDefaultTextures;
|
---|
786 | BOOL StandardSwizzle;
|
---|
787 | BOOL UnifiedMemoryArchitecture;
|
---|
788 | } D3D11_FEATURE_DATA_D3D11_OPTIONS2;
|
---|
789 |
|
---|
790 | typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
|
---|
791 | {
|
---|
792 | BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
|
---|
793 | } D3D11_FEATURE_DATA_D3D11_OPTIONS3;
|
---|
794 |
|
---|
795 | typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
|
---|
796 | {
|
---|
797 | UINT MaxGPUVirtualAddressBitsPerResource;
|
---|
798 | UINT MaxGPUVirtualAddressBitsPerProcess;
|
---|
799 | } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
|
---|
800 |
|
---|
801 | typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
|
---|
802 | {
|
---|
803 | D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
|
---|
804 | D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
|
---|
805 | D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
|
---|
806 | } D3D11_SHADER_CACHE_SUPPORT_FLAGS;
|
---|
807 |
|
---|
808 | typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
|
---|
809 | {
|
---|
810 | UINT SupportFlags;
|
---|
811 | } D3D11_FEATURE_DATA_SHADER_CACHE;
|
---|
812 |
|
---|
813 | typedef enum D3D11_SHARED_RESOURCE_TIER
|
---|
814 | {
|
---|
815 | D3D11_SHARED_RESOURCE_TIER_0,
|
---|
816 | D3D11_SHARED_RESOURCE_TIER_1,
|
---|
817 | D3D11_SHARED_RESOURCE_TIER_2,
|
---|
818 | D3D11_SHARED_RESOURCE_TIER_3,
|
---|
819 | } D3D11_SHARED_RESOURCE_TIER;
|
---|
820 |
|
---|
821 | typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS5
|
---|
822 | {
|
---|
823 | D3D11_SHARED_RESOURCE_TIER SharedResourceTier;
|
---|
824 | } D3D11_FEATURE_DATA_D3D11_OPTIONS5;
|
---|
825 |
|
---|
826 | typedef enum D3D11_FILL_MODE
|
---|
827 | {
|
---|
828 | D3D11_FILL_WIREFRAME = 2,
|
---|
829 | D3D11_FILL_SOLID
|
---|
830 | } D3D11_FILL_MODE;
|
---|
831 |
|
---|
832 | typedef enum D3D11_FILTER_TYPE
|
---|
833 | {
|
---|
834 | D3D11_FILTER_TYPE_POINT = 0,
|
---|
835 | D3D11_FILTER_TYPE_LINEAR = 1
|
---|
836 | } D3D11_FILTER_TYPE;
|
---|
837 |
|
---|
838 | const UINT D3D11_MIN_FILTER_SHIFT = 4;
|
---|
839 | const UINT D3D11_MAG_FILTER_SHIFT = 2;
|
---|
840 | const UINT D3D11_MIP_FILTER_SHIFT = 0;
|
---|
841 | const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
|
---|
842 | const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
|
---|
843 | const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
|
---|
844 |
|
---|
845 | cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
|
---|
846 | cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
|
---|
847 | cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
|
---|
848 | cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
|
---|
849 | cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
|
---|
850 |
|
---|
851 | cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
|
---|
852 | cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
|
---|
853 | cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
|
---|
854 | cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
|
---|
855 |
|
---|
856 | cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
|
---|
857 | cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
|
---|
858 |
|
---|
859 | cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
|
---|
860 | cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
|
---|
861 |
|
---|
862 | cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
|
---|
863 | cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
|
---|
864 |
|
---|
865 | cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
|
---|
866 |
|
---|
867 | cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
|
---|
868 | cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
|
---|
869 | cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
|
---|
870 | cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
|
---|
871 | cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
|
---|
872 |
|
---|
873 | typedef enum D3D11_FILTER
|
---|
874 | {
|
---|
875 | D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
|
---|
876 | D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
|
---|
877 | D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
|
---|
878 | D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
|
---|
879 | D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
|
---|
880 | D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
|
---|
881 | D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
|
---|
882 | D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
|
---|
883 | D3D11_FILTER_ANISOTROPIC = 0x55,
|
---|
884 | D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
|
---|
885 | D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
|
---|
886 | D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
|
---|
887 | D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
|
---|
888 | D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
|
---|
889 | D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
|
---|
890 | D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
|
---|
891 | D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
|
---|
892 | D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
|
---|
893 | D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
|
---|
894 | D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
|
---|
895 | D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
|
---|
896 | D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
|
---|
897 | D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
|
---|
898 | D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
|
---|
899 | D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
|
---|
900 | D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
|
---|
901 | D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155,
|
---|
902 | D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
|
---|
903 | D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
|
---|
904 | D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
|
---|
905 | D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
|
---|
906 | D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
|
---|
907 | D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
|
---|
908 | D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
|
---|
909 | D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
|
---|
910 | D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
|
---|
911 | } D3D11_FILTER;
|
---|
912 |
|
---|
913 | typedef enum D3D11_DSV_FLAG
|
---|
914 | {
|
---|
915 | D3D11_DSV_READ_ONLY_DEPTH = 0x1,
|
---|
916 | D3D11_DSV_READ_ONLY_STENCIL = 0x2,
|
---|
917 | } D3D11_DSV_FLAG;
|
---|
918 |
|
---|
919 | typedef enum D3D11_BUFFEREX_SRV_FLAG
|
---|
920 | {
|
---|
921 | D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
|
---|
922 | } D3D11_BUFFEREX_SRV_FLAG;
|
---|
923 |
|
---|
924 | typedef enum D3D11_UAV_FLAG
|
---|
925 | {
|
---|
926 | D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
|
---|
927 | D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
|
---|
928 | D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
|
---|
929 | } D3D11_UAV_FLAG;
|
---|
930 |
|
---|
931 | typedef enum D3D11_INPUT_CLASSIFICATION
|
---|
932 | {
|
---|
933 | D3D11_INPUT_PER_VERTEX_DATA,
|
---|
934 | D3D11_INPUT_PER_INSTANCE_DATA,
|
---|
935 | } D3D11_INPUT_CLASSIFICATION;
|
---|
936 |
|
---|
937 | const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
|
---|
938 |
|
---|
939 | typedef struct D3D11_INPUT_ELEMENT_DESC
|
---|
940 | {
|
---|
941 | LPCSTR SemanticName;
|
---|
942 | UINT SemanticIndex;
|
---|
943 | DXGI_FORMAT Format;
|
---|
944 | UINT InputSlot;
|
---|
945 | UINT AlignedByteOffset;
|
---|
946 | D3D11_INPUT_CLASSIFICATION InputSlotClass;
|
---|
947 | UINT InstanceDataStepRate;
|
---|
948 | } D3D11_INPUT_ELEMENT_DESC;
|
---|
949 |
|
---|
950 | typedef enum D3D11_MAP
|
---|
951 | {
|
---|
952 | D3D11_MAP_READ = 1,
|
---|
953 | D3D11_MAP_WRITE,
|
---|
954 | D3D11_MAP_READ_WRITE,
|
---|
955 | D3D11_MAP_WRITE_DISCARD,
|
---|
956 | D3D11_MAP_WRITE_NO_OVERWRITE
|
---|
957 | } D3D11_MAP;
|
---|
958 |
|
---|
959 | typedef enum D3D11_MAP_FLAG
|
---|
960 | {
|
---|
961 | D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
|
---|
962 | } D3D11_MAP_FLAG;
|
---|
963 |
|
---|
964 | typedef enum D3D11_RAISE_FLAG
|
---|
965 | {
|
---|
966 | D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1,
|
---|
967 | } D3D11_RAISE_FLAG;
|
---|
968 |
|
---|
969 | typedef struct D3D11_QUERY_DATA_SO_STATISTICS
|
---|
970 | {
|
---|
971 | UINT64 NumPrimitivesWritten;
|
---|
972 | UINT64 PrimitivesStorageNeeded;
|
---|
973 | } D3D11_QUERY_DATA_SO_STATISTICS;
|
---|
974 |
|
---|
975 | typedef struct D3D11_MAPPED_SUBRESOURCE
|
---|
976 | {
|
---|
977 | void *pData;
|
---|
978 | UINT RowPitch;
|
---|
979 | UINT DepthPitch;
|
---|
980 | } D3D11_MAPPED_SUBRESOURCE;
|
---|
981 |
|
---|
982 | typedef enum D3D11_QUERY
|
---|
983 | {
|
---|
984 | D3D11_QUERY_EVENT,
|
---|
985 | D3D11_QUERY_OCCLUSION,
|
---|
986 | D3D11_QUERY_TIMESTAMP,
|
---|
987 | D3D11_QUERY_TIMESTAMP_DISJOINT,
|
---|
988 | D3D11_QUERY_PIPELINE_STATISTICS,
|
---|
989 | D3D11_QUERY_OCCLUSION_PREDICATE,
|
---|
990 | D3D11_QUERY_SO_STATISTICS,
|
---|
991 | D3D11_QUERY_SO_OVERFLOW_PREDICATE,
|
---|
992 | D3D11_QUERY_SO_STATISTICS_STREAM0,
|
---|
993 | D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
|
---|
994 | D3D11_QUERY_SO_STATISTICS_STREAM1,
|
---|
995 | D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
|
---|
996 | D3D11_QUERY_SO_STATISTICS_STREAM2,
|
---|
997 | D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
|
---|
998 | D3D11_QUERY_SO_STATISTICS_STREAM3,
|
---|
999 | D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
|
---|
1000 | } D3D11_QUERY;
|
---|
1001 |
|
---|
1002 | typedef enum D3D11_QUERY_MISC_FLAG
|
---|
1003 | {
|
---|
1004 | D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
|
---|
1005 | } D3D11_QUERY_MISC_FLAG;
|
---|
1006 |
|
---|
1007 | typedef enum D3D11_ASYNC_GETDATA_FLAG
|
---|
1008 | {
|
---|
1009 | D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
|
---|
1010 | } D3D11_ASYNC_GETDATA_FLAG;
|
---|
1011 |
|
---|
1012 | typedef enum D3D11_RESOURCE_MISC_FLAG
|
---|
1013 | {
|
---|
1014 | D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
|
---|
1015 | D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
|
---|
1016 | D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
|
---|
1017 | D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
|
---|
1018 | D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
|
---|
1019 | D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
|
---|
1020 | D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
|
---|
1021 | D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
|
---|
1022 | D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
|
---|
1023 | D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
|
---|
1024 | D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
|
---|
1025 | D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
|
---|
1026 | D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
|
---|
1027 | D3D11_RESOURCE_MISC_GUARDED = 0x00008000L,
|
---|
1028 | D3D11_RESOURCE_MISC_TILE_POOL = 0x00020000L,
|
---|
1029 | D3D11_RESOURCE_MISC_TILED = 0x00040000L,
|
---|
1030 | D3D11_RESOURCE_MISC_HW_PROTECTED = 0x00080000L
|
---|
1031 | } D3D11_RESOURCE_MISC_FLAG;
|
---|
1032 |
|
---|
1033 | typedef struct D3D11_QUERY_DESC
|
---|
1034 | {
|
---|
1035 | D3D11_QUERY Query;
|
---|
1036 | UINT MiscFlags;
|
---|
1037 | } D3D11_QUERY_DESC;
|
---|
1038 |
|
---|
1039 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1040 | cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
|
---|
1041 | cpp_quote(" CD3D11_QUERY_DESC() {}")
|
---|
1042 | cpp_quote(" ~CD3D11_QUERY_DESC() {}")
|
---|
1043 | cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
|
---|
1044 | cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
|
---|
1045 | cpp_quote(" Query = query;")
|
---|
1046 | cpp_quote(" MiscFlags = misc_flags;")
|
---|
1047 | cpp_quote(" }")
|
---|
1048 | cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
|
---|
1049 | cpp_quote(" return *this;")
|
---|
1050 | cpp_quote(" }")
|
---|
1051 | cpp_quote("};")
|
---|
1052 | cpp_quote("#endif")
|
---|
1053 |
|
---|
1054 | typedef struct D3D11_RASTERIZER_DESC
|
---|
1055 | {
|
---|
1056 | D3D11_FILL_MODE FillMode;
|
---|
1057 | D3D11_CULL_MODE CullMode;
|
---|
1058 | BOOL FrontCounterClockwise;
|
---|
1059 | INT DepthBias;
|
---|
1060 | FLOAT DepthBiasClamp;
|
---|
1061 | FLOAT SlopeScaledDepthBias;
|
---|
1062 | BOOL DepthClipEnable;
|
---|
1063 | BOOL ScissorEnable;
|
---|
1064 | BOOL MultisampleEnable;
|
---|
1065 | BOOL AntialiasedLineEnable;
|
---|
1066 | } D3D11_RASTERIZER_DESC;
|
---|
1067 |
|
---|
1068 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1069 | cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
|
---|
1070 | cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
|
---|
1071 | cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
|
---|
1072 | cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
|
---|
1073 | cpp_quote(" FillMode = D3D11_FILL_SOLID;")
|
---|
1074 | cpp_quote(" CullMode = D3D11_CULL_BACK;")
|
---|
1075 | cpp_quote(" FrontCounterClockwise = FALSE;")
|
---|
1076 | cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
|
---|
1077 | cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
|
---|
1078 | cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
|
---|
1079 | cpp_quote(" DepthClipEnable = TRUE;")
|
---|
1080 | cpp_quote(" ScissorEnable = FALSE;")
|
---|
1081 | cpp_quote(" MultisampleEnable = FALSE;")
|
---|
1082 | cpp_quote(" AntialiasedLineEnable = FALSE;")
|
---|
1083 | cpp_quote(" }")
|
---|
1084 | cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
|
---|
1085 | cpp_quote(" WINBOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
|
---|
1086 | cpp_quote(" BOOL depthClipEnable, WINBOOL scissorEnable, WINBOOL multisampleEnable, WINBOOL antialiasedLineEnable) {")
|
---|
1087 | cpp_quote(" FillMode = fillMode;")
|
---|
1088 | cpp_quote(" CullMode = cullMode;")
|
---|
1089 | cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
|
---|
1090 | cpp_quote(" DepthBias = depthBias;")
|
---|
1091 | cpp_quote(" DepthBiasClamp = depthBiasClamp;")
|
---|
1092 | cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
|
---|
1093 | cpp_quote(" DepthClipEnable = depthClipEnable;")
|
---|
1094 | cpp_quote(" ScissorEnable = scissorEnable;")
|
---|
1095 | cpp_quote(" MultisampleEnable = multisampleEnable;")
|
---|
1096 | cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
|
---|
1097 | cpp_quote(" }")
|
---|
1098 | cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
|
---|
1099 | cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
|
---|
1100 | cpp_quote("};")
|
---|
1101 | cpp_quote("#endif")
|
---|
1102 |
|
---|
1103 | typedef enum D3D11_RESOURCE_DIMENSION
|
---|
1104 | {
|
---|
1105 | D3D11_RESOURCE_DIMENSION_UNKNOWN,
|
---|
1106 | D3D11_RESOURCE_DIMENSION_BUFFER,
|
---|
1107 | D3D11_RESOURCE_DIMENSION_TEXTURE1D,
|
---|
1108 | D3D11_RESOURCE_DIMENSION_TEXTURE2D,
|
---|
1109 | D3D11_RESOURCE_DIMENSION_TEXTURE3D,
|
---|
1110 | } D3D11_RESOURCE_DIMENSION;
|
---|
1111 |
|
---|
1112 | typedef enum D3D11_RTV_DIMENSION
|
---|
1113 | {
|
---|
1114 | D3D11_RTV_DIMENSION_UNKNOWN,
|
---|
1115 | D3D11_RTV_DIMENSION_BUFFER,
|
---|
1116 | D3D11_RTV_DIMENSION_TEXTURE1D,
|
---|
1117 | D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
|
---|
1118 | D3D11_RTV_DIMENSION_TEXTURE2D,
|
---|
1119 | D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
|
---|
1120 | D3D11_RTV_DIMENSION_TEXTURE2DMS,
|
---|
1121 | D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
|
---|
1122 | D3D11_RTV_DIMENSION_TEXTURE3D,
|
---|
1123 | } D3D11_RTV_DIMENSION;
|
---|
1124 |
|
---|
1125 | typedef struct D3D11_SO_DECLARATION_ENTRY
|
---|
1126 | {
|
---|
1127 | UINT Stream;
|
---|
1128 | LPCSTR SemanticName;
|
---|
1129 | UINT SemanticIndex;
|
---|
1130 | BYTE StartComponent;
|
---|
1131 | BYTE ComponentCount;
|
---|
1132 | BYTE OutputSlot;
|
---|
1133 | } D3D11_SO_DECLARATION_ENTRY;
|
---|
1134 |
|
---|
1135 | typedef enum D3D11_STENCIL_OP
|
---|
1136 | {
|
---|
1137 | D3D11_STENCIL_OP_KEEP = 1,
|
---|
1138 | D3D11_STENCIL_OP_ZERO,
|
---|
1139 | D3D11_STENCIL_OP_REPLACE,
|
---|
1140 | D3D11_STENCIL_OP_INCR_SAT,
|
---|
1141 | D3D11_STENCIL_OP_DECR_SAT,
|
---|
1142 | D3D11_STENCIL_OP_INVERT,
|
---|
1143 | D3D11_STENCIL_OP_INCR,
|
---|
1144 | D3D11_STENCIL_OP_DECR
|
---|
1145 | } D3D11_STENCIL_OP;
|
---|
1146 |
|
---|
1147 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1148 | cpp_quote("}")
|
---|
1149 | cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
|
---|
1150 | cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
|
---|
1151 | cpp_quote("}")
|
---|
1152 | cpp_quote("extern \"C\"{")
|
---|
1153 | cpp_quote("#endif")
|
---|
1154 |
|
---|
1155 | typedef struct D3D11_SUBRESOURCE_DATA
|
---|
1156 | {
|
---|
1157 | const void *pSysMem;
|
---|
1158 | UINT SysMemPitch;
|
---|
1159 | UINT SysMemSlicePitch;
|
---|
1160 | } D3D11_SUBRESOURCE_DATA;
|
---|
1161 |
|
---|
1162 | typedef struct D3D11_TEX1D_ARRAY_DSV
|
---|
1163 | {
|
---|
1164 | UINT MipSlice;
|
---|
1165 | UINT FirstArraySlice;
|
---|
1166 | UINT ArraySize;
|
---|
1167 | } D3D11_TEX1D_ARRAY_DSV;
|
---|
1168 |
|
---|
1169 | typedef struct D3D11_TEX1D_ARRAY_RTV
|
---|
1170 | {
|
---|
1171 | UINT MipSlice;
|
---|
1172 | UINT FirstArraySlice;
|
---|
1173 | UINT ArraySize;
|
---|
1174 | } D3D11_TEX1D_ARRAY_RTV;
|
---|
1175 |
|
---|
1176 | typedef struct D3D11_TEX1D_ARRAY_SRV
|
---|
1177 | {
|
---|
1178 | UINT MostDetailedMip;
|
---|
1179 | UINT MipLevels;
|
---|
1180 | UINT FirstArraySlice;
|
---|
1181 | UINT ArraySize;
|
---|
1182 | } D3D11_TEX1D_ARRAY_SRV;
|
---|
1183 |
|
---|
1184 | typedef struct D3D11_TEX1D_ARRAY_UAV
|
---|
1185 | {
|
---|
1186 | UINT MipSlice;
|
---|
1187 | UINT FirstArraySlice;
|
---|
1188 | UINT ArraySize;
|
---|
1189 | } D3D11_TEX1D_ARRAY_UAV;
|
---|
1190 |
|
---|
1191 | typedef struct D3D11_TEX1D_DSV
|
---|
1192 | {
|
---|
1193 | UINT MipSlice;
|
---|
1194 | } D3D11_TEX1D_DSV;
|
---|
1195 |
|
---|
1196 | typedef struct D3D11_TEX1D_RTV
|
---|
1197 | {
|
---|
1198 | UINT MipSlice;
|
---|
1199 | } D3D11_TEX1D_RTV;
|
---|
1200 |
|
---|
1201 | typedef struct D3D11_TEX1D_SRV
|
---|
1202 | {
|
---|
1203 | UINT MostDetailedMip;
|
---|
1204 | UINT MipLevels;
|
---|
1205 | } D3D11_TEX1D_SRV;
|
---|
1206 |
|
---|
1207 | typedef struct D3D11_TEX1D_UAV
|
---|
1208 | {
|
---|
1209 | UINT MipSlice;
|
---|
1210 | } D3D11_TEX1D_UAV;
|
---|
1211 |
|
---|
1212 | typedef struct D3D11_TEX2D_ARRAY_DSV
|
---|
1213 | {
|
---|
1214 | UINT MipSlice;
|
---|
1215 | UINT FirstArraySlice;
|
---|
1216 | UINT ArraySize;
|
---|
1217 | } D3D11_TEX2D_ARRAY_DSV;
|
---|
1218 |
|
---|
1219 | typedef struct D3D11_TEX2D_ARRAY_RTV
|
---|
1220 | {
|
---|
1221 | UINT MipSlice;
|
---|
1222 | UINT FirstArraySlice;
|
---|
1223 | UINT ArraySize;
|
---|
1224 | } D3D11_TEX2D_ARRAY_RTV;
|
---|
1225 |
|
---|
1226 | typedef struct D3D11_TEX2D_ARRAY_SRV
|
---|
1227 | {
|
---|
1228 | UINT MostDetailedMip;
|
---|
1229 | UINT MipLevels;
|
---|
1230 | UINT FirstArraySlice;
|
---|
1231 | UINT ArraySize;
|
---|
1232 | } D3D11_TEX2D_ARRAY_SRV;
|
---|
1233 |
|
---|
1234 | typedef struct D3D11_TEX2D_ARRAY_UAV
|
---|
1235 | {
|
---|
1236 | UINT MipSlice;
|
---|
1237 | UINT FirstArraySlice;
|
---|
1238 | UINT ArraySize;
|
---|
1239 | } D3D11_TEX2D_ARRAY_UAV;
|
---|
1240 |
|
---|
1241 | typedef struct D3D11_TEX2D_DSV
|
---|
1242 | {
|
---|
1243 | UINT MipSlice;
|
---|
1244 | } D3D11_TEX2D_DSV;
|
---|
1245 |
|
---|
1246 | typedef struct D3D11_TEX2D_RTV
|
---|
1247 | {
|
---|
1248 | UINT MipSlice;
|
---|
1249 | } D3D11_TEX2D_RTV;
|
---|
1250 |
|
---|
1251 | typedef struct D3D11_TEX2D_SRV
|
---|
1252 | {
|
---|
1253 | UINT MostDetailedMip;
|
---|
1254 | UINT MipLevels;
|
---|
1255 | } D3D11_TEX2D_SRV;
|
---|
1256 |
|
---|
1257 | typedef struct D3D11_TEX2D_UAV
|
---|
1258 | {
|
---|
1259 | UINT MipSlice;
|
---|
1260 | } D3D11_TEX2D_UAV;
|
---|
1261 |
|
---|
1262 | typedef struct D3D11_TEX2DMS_ARRAY_DSV
|
---|
1263 | {
|
---|
1264 | UINT FirstArraySlice;
|
---|
1265 | UINT ArraySize;
|
---|
1266 | } D3D11_TEX2DMS_ARRAY_DSV;
|
---|
1267 |
|
---|
1268 | typedef struct D3D11_TEX2DMS_ARRAY_RTV
|
---|
1269 | {
|
---|
1270 | UINT FirstArraySlice;
|
---|
1271 | UINT ArraySize;
|
---|
1272 | } D3D11_TEX2DMS_ARRAY_RTV;
|
---|
1273 |
|
---|
1274 | typedef struct D3D11_TEX2DMS_ARRAY_SRV
|
---|
1275 | {
|
---|
1276 | UINT FirstArraySlice;
|
---|
1277 | UINT ArraySize;
|
---|
1278 | } D3D11_TEX2DMS_ARRAY_SRV;
|
---|
1279 |
|
---|
1280 | typedef struct D3D11_TEX2DMS_DSV
|
---|
1281 | {
|
---|
1282 | UINT UnusedField_NothingToDefine;
|
---|
1283 | } D3D11_TEX2DMS_DSV;
|
---|
1284 |
|
---|
1285 | typedef struct D3D11_TEX2DMS_RTV
|
---|
1286 | {
|
---|
1287 | UINT UnusedField_NothingToDefine;
|
---|
1288 | } D3D11_TEX2DMS_RTV;
|
---|
1289 |
|
---|
1290 | typedef struct D3D11_TEX2DMS_SRV
|
---|
1291 | {
|
---|
1292 | UINT UnusedField_NothingToDefine;
|
---|
1293 | } D3D11_TEX2DMS_SRV;
|
---|
1294 |
|
---|
1295 | typedef struct D3D11_TEX3D_RTV
|
---|
1296 | {
|
---|
1297 | UINT MipSlice;
|
---|
1298 | UINT FirstWSlice;
|
---|
1299 | UINT WSize;
|
---|
1300 | } D3D11_TEX3D_RTV;
|
---|
1301 |
|
---|
1302 | typedef struct D3D11_TEX3D_SRV
|
---|
1303 | {
|
---|
1304 | UINT MostDetailedMip;
|
---|
1305 | UINT MipLevels;
|
---|
1306 | } D3D11_TEX3D_SRV;
|
---|
1307 |
|
---|
1308 | typedef struct D3D11_TEX3D_UAV
|
---|
1309 | {
|
---|
1310 | UINT MipSlice;
|
---|
1311 | UINT FirstWSlice;
|
---|
1312 | UINT WSize;
|
---|
1313 | } D3D11_TEX3D_UAV;
|
---|
1314 |
|
---|
1315 | typedef struct D3D11_TEXCUBE_ARRAY_SRV
|
---|
1316 | {
|
---|
1317 | UINT MostDetailedMip;
|
---|
1318 | UINT MipLevels;
|
---|
1319 | UINT First2DArrayFace;
|
---|
1320 | UINT NumCubes;
|
---|
1321 | } D3D11_TEXCUBE_ARRAY_SRV;
|
---|
1322 |
|
---|
1323 | typedef struct D3D11_TEXCUBE_SRV
|
---|
1324 | {
|
---|
1325 | UINT MostDetailedMip;
|
---|
1326 | UINT MipLevels;
|
---|
1327 | } D3D11_TEXCUBE_SRV;
|
---|
1328 |
|
---|
1329 | typedef enum D3D11_TEXTURE_ADDRESS_MODE
|
---|
1330 | {
|
---|
1331 | D3D11_TEXTURE_ADDRESS_WRAP = 1,
|
---|
1332 | D3D11_TEXTURE_ADDRESS_MIRROR,
|
---|
1333 | D3D11_TEXTURE_ADDRESS_CLAMP,
|
---|
1334 | D3D11_TEXTURE_ADDRESS_BORDER,
|
---|
1335 | D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
|
---|
1336 | } D3D11_TEXTURE_ADDRESS_MODE;
|
---|
1337 |
|
---|
1338 | typedef enum D3D11_UAV_DIMENSION
|
---|
1339 | {
|
---|
1340 | D3D11_UAV_DIMENSION_UNKNOWN,
|
---|
1341 | D3D11_UAV_DIMENSION_BUFFER,
|
---|
1342 | D3D11_UAV_DIMENSION_TEXTURE1D,
|
---|
1343 | D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
|
---|
1344 | D3D11_UAV_DIMENSION_TEXTURE2D,
|
---|
1345 | D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
|
---|
1346 | D3D11_UAV_DIMENSION_TEXTURE3D = 8,
|
---|
1347 | } D3D11_UAV_DIMENSION;
|
---|
1348 |
|
---|
1349 | typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
|
---|
1350 | {
|
---|
1351 | DXGI_FORMAT Format;
|
---|
1352 | D3D11_UAV_DIMENSION ViewDimension;
|
---|
1353 |
|
---|
1354 | union
|
---|
1355 | {
|
---|
1356 | D3D11_BUFFER_UAV Buffer;
|
---|
1357 | D3D11_TEX1D_UAV Texture1D;
|
---|
1358 | D3D11_TEX1D_ARRAY_UAV Texture1DArray;
|
---|
1359 | D3D11_TEX2D_UAV Texture2D;
|
---|
1360 | D3D11_TEX2D_ARRAY_UAV Texture2DArray;
|
---|
1361 | D3D11_TEX3D_UAV Texture3D;
|
---|
1362 | };
|
---|
1363 | } D3D11_UNORDERED_ACCESS_VIEW_DESC;
|
---|
1364 |
|
---|
1365 | typedef enum D3D11_USAGE
|
---|
1366 | {
|
---|
1367 | D3D11_USAGE_DEFAULT,
|
---|
1368 | D3D11_USAGE_IMMUTABLE,
|
---|
1369 | D3D11_USAGE_DYNAMIC,
|
---|
1370 | D3D11_USAGE_STAGING,
|
---|
1371 | } D3D11_USAGE;
|
---|
1372 |
|
---|
1373 | typedef enum D3D11_BIND_FLAG
|
---|
1374 | {
|
---|
1375 | D3D11_BIND_VERTEX_BUFFER = 0x0001,
|
---|
1376 | D3D11_BIND_INDEX_BUFFER = 0x0002,
|
---|
1377 | D3D11_BIND_CONSTANT_BUFFER = 0x0004,
|
---|
1378 | D3D11_BIND_SHADER_RESOURCE = 0x0008,
|
---|
1379 | D3D11_BIND_STREAM_OUTPUT = 0x0010,
|
---|
1380 | D3D11_BIND_RENDER_TARGET = 0x0020,
|
---|
1381 | D3D11_BIND_DEPTH_STENCIL = 0x0040,
|
---|
1382 | D3D11_BIND_UNORDERED_ACCESS = 0x0080,
|
---|
1383 | D3D11_BIND_DECODER = 0x0200,
|
---|
1384 | D3D11_BIND_VIDEO_ENCODER = 0x0400
|
---|
1385 | } D3D11_BIND_FLAG;
|
---|
1386 |
|
---|
1387 | typedef enum D3D11_CPU_ACCESS_FLAG
|
---|
1388 | {
|
---|
1389 | D3D11_CPU_ACCESS_WRITE = 0x00010000,
|
---|
1390 | D3D11_CPU_ACCESS_READ = 0x00020000
|
---|
1391 | } D3D11_CPU_ACCESS_FLAG;
|
---|
1392 |
|
---|
1393 | typedef struct D3D11_VIEWPORT
|
---|
1394 | {
|
---|
1395 | FLOAT TopLeftX;
|
---|
1396 | FLOAT TopLeftY;
|
---|
1397 | FLOAT Width;
|
---|
1398 | FLOAT Height;
|
---|
1399 | FLOAT MinDepth;
|
---|
1400 | FLOAT MaxDepth;
|
---|
1401 | } D3D11_VIEWPORT;
|
---|
1402 |
|
---|
1403 | typedef enum D3D11_COLOR_WRITE_ENABLE
|
---|
1404 | {
|
---|
1405 | D3D11_COLOR_WRITE_ENABLE_RED = 1,
|
---|
1406 | D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
|
---|
1407 | D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
|
---|
1408 | D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
|
---|
1409 | D3D11_COLOR_WRITE_ENABLE_ALL =
|
---|
1410 | (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
|
---|
1411 | } D3D11_COLOR_WRITE_ENABLE;
|
---|
1412 |
|
---|
1413 | typedef enum D3D11_FORMAT_SUPPORT
|
---|
1414 | {
|
---|
1415 | D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
|
---|
1416 | D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
|
---|
1417 | D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
|
---|
1418 | D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
|
---|
1419 | D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
|
---|
1420 | D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
|
---|
1421 | D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
|
---|
1422 | D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
|
---|
1423 | D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
|
---|
1424 | D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
|
---|
1425 | D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
|
---|
1426 | D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
|
---|
1427 | D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
|
---|
1428 | D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
|
---|
1429 | D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
|
---|
1430 | D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
|
---|
1431 | D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
|
---|
1432 | D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
|
---|
1433 | D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
|
---|
1434 | D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
|
---|
1435 | D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
|
---|
1436 | D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
|
---|
1437 | D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
|
---|
1438 | D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
|
---|
1439 | D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
|
---|
1440 | D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
|
---|
1441 | D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
|
---|
1442 | D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
|
---|
1443 | D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
|
---|
1444 | D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
|
---|
1445 | D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
|
---|
1446 | } D3D11_FORMAT_SUPPORT;
|
---|
1447 |
|
---|
1448 | typedef enum D3D11_FORMAT_SUPPORT2
|
---|
1449 | {
|
---|
1450 | D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x00000001,
|
---|
1451 | D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x00000002,
|
---|
1452 | D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x00000004,
|
---|
1453 | D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x00000008,
|
---|
1454 | D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x00000010,
|
---|
1455 | D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x00000020,
|
---|
1456 | D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x00000040,
|
---|
1457 | D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x00000080,
|
---|
1458 | D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x00000100,
|
---|
1459 | D3D11_FORMAT_SUPPORT2_TILED = 0x00000200,
|
---|
1460 | D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x00000400,
|
---|
1461 | D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x00004000,
|
---|
1462 | } D3D11_FORMAT_SUPPORT2;
|
---|
1463 |
|
---|
1464 | typedef enum D3D11_CLEAR_FLAG
|
---|
1465 | {
|
---|
1466 | D3D11_CLEAR_DEPTH = 0x0001L,
|
---|
1467 | D3D11_CLEAR_STENCIL = 0x0002L
|
---|
1468 | } D3D11_CLEAR_FLAG;
|
---|
1469 |
|
---|
1470 | typedef struct D3D11_RENDER_TARGET_BLEND_DESC
|
---|
1471 | {
|
---|
1472 | BOOL BlendEnable;
|
---|
1473 | D3D11_BLEND SrcBlend;
|
---|
1474 | D3D11_BLEND DestBlend;
|
---|
1475 | D3D11_BLEND_OP BlendOp;
|
---|
1476 | D3D11_BLEND SrcBlendAlpha;
|
---|
1477 | D3D11_BLEND DestBlendAlpha;
|
---|
1478 | D3D11_BLEND_OP BlendOpAlpha;
|
---|
1479 | UINT8 RenderTargetWriteMask;
|
---|
1480 | } D3D11_RENDER_TARGET_BLEND_DESC;
|
---|
1481 |
|
---|
1482 | typedef struct D3D11_BLEND_DESC
|
---|
1483 | {
|
---|
1484 | BOOL AlphaToCoverageEnable;
|
---|
1485 | BOOL IndependentBlendEnable;
|
---|
1486 | D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
|
---|
1487 | } D3D11_BLEND_DESC;
|
---|
1488 |
|
---|
1489 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1490 | cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
|
---|
1491 | cpp_quote(" CD3D11_BLEND_DESC() {}")
|
---|
1492 | cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
|
---|
1493 | cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
|
---|
1494 | cpp_quote(" AlphaToCoverageEnable = FALSE;")
|
---|
1495 | cpp_quote(" IndependentBlendEnable = FALSE;")
|
---|
1496 | cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
|
---|
1497 | cpp_quote(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
|
---|
1498 | cpp_quote(" target++) {")
|
---|
1499 | cpp_quote(" target->BlendEnable = FALSE;")
|
---|
1500 | cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
|
---|
1501 | cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
|
---|
1502 | cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
|
---|
1503 | cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
|
---|
1504 | cpp_quote(" }")
|
---|
1505 | cpp_quote(" }")
|
---|
1506 | cpp_quote(" ~CD3D11_BLEND_DESC() {}")
|
---|
1507 | cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
|
---|
1508 | cpp_quote("};" )
|
---|
1509 | cpp_quote("#endif" )
|
---|
1510 |
|
---|
1511 | typedef struct D3D11_BUFFER_DESC
|
---|
1512 | {
|
---|
1513 | UINT ByteWidth;
|
---|
1514 | D3D11_USAGE Usage;
|
---|
1515 | UINT BindFlags;
|
---|
1516 | UINT CPUAccessFlags;
|
---|
1517 | UINT MiscFlags;
|
---|
1518 | UINT StructureByteStride;
|
---|
1519 | } D3D11_BUFFER_DESC;
|
---|
1520 |
|
---|
1521 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1522 | cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
|
---|
1523 | cpp_quote(" CD3D11_BUFFER_DESC() {}" )
|
---|
1524 | cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
|
---|
1525 | cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
|
---|
1526 | cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
|
---|
1527 | cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
|
---|
1528 | cpp_quote(" ByteWidth = byteWidth;")
|
---|
1529 | cpp_quote(" Usage = usage;")
|
---|
1530 | cpp_quote(" BindFlags = bindFlags;")
|
---|
1531 | cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
|
---|
1532 | cpp_quote(" MiscFlags = miscFlags;" )
|
---|
1533 | cpp_quote(" StructureByteStride = structureByteStride;")
|
---|
1534 | cpp_quote(" }")
|
---|
1535 | cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
|
---|
1536 | cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
|
---|
1537 | cpp_quote("};" )
|
---|
1538 | cpp_quote("#endif" )
|
---|
1539 |
|
---|
1540 | typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
|
---|
1541 | {
|
---|
1542 | DXGI_FORMAT Format;
|
---|
1543 | D3D11_DSV_DIMENSION ViewDimension;
|
---|
1544 | UINT Flags;
|
---|
1545 |
|
---|
1546 | union
|
---|
1547 | {
|
---|
1548 | D3D11_TEX1D_DSV Texture1D;
|
---|
1549 | D3D11_TEX1D_ARRAY_DSV Texture1DArray;
|
---|
1550 | D3D11_TEX2D_DSV Texture2D;
|
---|
1551 | D3D11_TEX2D_ARRAY_DSV Texture2DArray;
|
---|
1552 | D3D11_TEX2DMS_DSV Texture2DMS;
|
---|
1553 | D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
|
---|
1554 | };
|
---|
1555 | } D3D11_DEPTH_STENCIL_VIEW_DESC;
|
---|
1556 |
|
---|
1557 | typedef struct D3D11_DEPTH_STENCILOP_DESC
|
---|
1558 | {
|
---|
1559 | D3D11_STENCIL_OP StencilFailOp;
|
---|
1560 | D3D11_STENCIL_OP StencilDepthFailOp;
|
---|
1561 | D3D11_STENCIL_OP StencilPassOp;
|
---|
1562 | D3D11_COMPARISON_FUNC StencilFunc;
|
---|
1563 | } D3D11_DEPTH_STENCILOP_DESC;
|
---|
1564 |
|
---|
1565 | typedef struct D3D11_DEPTH_STENCIL_DESC
|
---|
1566 | {
|
---|
1567 | BOOL DepthEnable;
|
---|
1568 | D3D11_DEPTH_WRITE_MASK DepthWriteMask;
|
---|
1569 | D3D11_COMPARISON_FUNC DepthFunc;
|
---|
1570 | BOOL StencilEnable;
|
---|
1571 | UINT8 StencilReadMask;
|
---|
1572 | UINT8 StencilWriteMask;
|
---|
1573 | D3D11_DEPTH_STENCILOP_DESC FrontFace;
|
---|
1574 | D3D11_DEPTH_STENCILOP_DESC BackFace;
|
---|
1575 | } D3D11_DEPTH_STENCIL_DESC;
|
---|
1576 |
|
---|
1577 | cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
|
---|
1578 | cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
|
---|
1579 | cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
|
---|
1580 | cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
|
---|
1581 | cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
|
---|
1582 | cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
|
---|
1583 | cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
|
---|
1584 | cpp_quote(" DepthEnable = TRUE;")
|
---|
1585 | cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
|
---|
1586 | cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
|
---|
1587 | cpp_quote(" StencilEnable = FALSE;")
|
---|
1588 | cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
|
---|
1589 | cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
|
---|
1590 | cpp_quote(" FrontFace = default_op;")
|
---|
1591 | cpp_quote(" BackFace = default_op;")
|
---|
1592 | cpp_quote(" }")
|
---|
1593 | cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
|
---|
1594 | cpp_quote(" WINBOOL depth_enable,")
|
---|
1595 | cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
|
---|
1596 | cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
|
---|
1597 | cpp_quote(" WINBOOL stencil_enable,")
|
---|
1598 | cpp_quote(" UINT8 stencil_read_mask,")
|
---|
1599 | cpp_quote(" UINT8 stencil_write_mask,")
|
---|
1600 | cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
|
---|
1601 | cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
|
---|
1602 | cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
|
---|
1603 | cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
|
---|
1604 | cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
|
---|
1605 | cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
|
---|
1606 | cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
|
---|
1607 | cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
|
---|
1608 | cpp_quote(" DepthEnable = depth_enable;")
|
---|
1609 | cpp_quote(" DepthWriteMask = depth_write_mask;")
|
---|
1610 | cpp_quote(" DepthFunc = depth_func;")
|
---|
1611 | cpp_quote(" StencilEnable = stencil_enable;")
|
---|
1612 | cpp_quote(" StencilReadMask = stencil_read_mask;")
|
---|
1613 | cpp_quote(" StencilWriteMask = stencil_write_mask;")
|
---|
1614 | cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
|
---|
1615 | cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
|
---|
1616 | cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
|
---|
1617 | cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
|
---|
1618 | cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
|
---|
1619 | cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
|
---|
1620 | cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
|
---|
1621 | cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
|
---|
1622 | cpp_quote(" }")
|
---|
1623 | cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
|
---|
1624 | cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
|
---|
1625 | cpp_quote("};")
|
---|
1626 | cpp_quote("#endif")
|
---|
1627 |
|
---|
1628 | typedef struct D3D11_RENDER_TARGET_VIEW_DESC
|
---|
1629 | {
|
---|
1630 | DXGI_FORMAT Format;
|
---|
1631 | D3D11_RTV_DIMENSION ViewDimension;
|
---|
1632 |
|
---|
1633 | union
|
---|
1634 | {
|
---|
1635 | D3D11_BUFFER_RTV Buffer;
|
---|
1636 | D3D11_TEX1D_RTV Texture1D;
|
---|
1637 | D3D11_TEX1D_ARRAY_RTV Texture1DArray;
|
---|
1638 | D3D11_TEX2D_RTV Texture2D;
|
---|
1639 | D3D11_TEX2D_ARRAY_RTV Texture2DArray;
|
---|
1640 | D3D11_TEX2DMS_RTV Texture2DMS;
|
---|
1641 | D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
|
---|
1642 | D3D11_TEX3D_RTV Texture3D;
|
---|
1643 | };
|
---|
1644 | } D3D11_RENDER_TARGET_VIEW_DESC;
|
---|
1645 |
|
---|
1646 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1647 | cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
|
---|
1648 | cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
|
---|
1649 | cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
|
---|
1650 | cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
|
---|
1651 | cpp_quote(" Format = format;")
|
---|
1652 | cpp_quote(" ViewDimension = dim;")
|
---|
1653 | cpp_quote(" switch(dim) {")
|
---|
1654 | cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
|
---|
1655 | cpp_quote(" Buffer.FirstElement = mip_slice;")
|
---|
1656 | cpp_quote(" Buffer.NumElements = first_slice;")
|
---|
1657 | cpp_quote(" break;")
|
---|
1658 | cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
|
---|
1659 | cpp_quote(" Texture1D.MipSlice = mip_slice;")
|
---|
1660 | cpp_quote(" break;")
|
---|
1661 | cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
|
---|
1662 | cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
|
---|
1663 | cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
|
---|
1664 | cpp_quote(" Texture1DArray.ArraySize = array_size;")
|
---|
1665 | cpp_quote(" break;")
|
---|
1666 | cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
|
---|
1667 | cpp_quote(" Texture2D.MipSlice = mip_slice;")
|
---|
1668 | cpp_quote(" break;")
|
---|
1669 | cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
|
---|
1670 | cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
|
---|
1671 | cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
|
---|
1672 | cpp_quote(" Texture2DArray.ArraySize = array_size;")
|
---|
1673 | cpp_quote(" break;")
|
---|
1674 | cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
|
---|
1675 | cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
|
---|
1676 | cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
|
---|
1677 | cpp_quote(" break;")
|
---|
1678 | cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
|
---|
1679 | cpp_quote(" Texture3D.MipSlice = mip_slice;")
|
---|
1680 | cpp_quote(" Texture3D.FirstWSlice = first_slice;")
|
---|
1681 | cpp_quote(" Texture3D.WSize = array_size;")
|
---|
1682 | cpp_quote(" break;")
|
---|
1683 | cpp_quote(" default:")
|
---|
1684 | cpp_quote(" break;")
|
---|
1685 | cpp_quote(" }")
|
---|
1686 | cpp_quote(" }")
|
---|
1687 | cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
|
---|
1688 | cpp_quote(" UINT elem_cnt) {")
|
---|
1689 | cpp_quote(" Format = format;")
|
---|
1690 | cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
|
---|
1691 | cpp_quote(" Buffer.FirstElement = first_elem;")
|
---|
1692 | cpp_quote(" Buffer.NumElements = elem_cnt;")
|
---|
1693 | cpp_quote(" }")
|
---|
1694 | cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
|
---|
1695 | cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
|
---|
1696 | cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
|
---|
1697 | cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
|
---|
1698 | cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
|
---|
1699 | cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
|
---|
1700 | cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
|
---|
1701 | cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
|
---|
1702 | cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
|
---|
1703 | cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
|
---|
1704 | cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
|
---|
1705 | cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
|
---|
1706 | cpp_quote(" return *this;")
|
---|
1707 | cpp_quote(" }")
|
---|
1708 | cpp_quote("};")
|
---|
1709 | cpp_quote("#endif")
|
---|
1710 |
|
---|
1711 |
|
---|
1712 | typedef struct D3D11_SAMPLER_DESC
|
---|
1713 | {
|
---|
1714 | D3D11_FILTER Filter;
|
---|
1715 | D3D11_TEXTURE_ADDRESS_MODE AddressU;
|
---|
1716 | D3D11_TEXTURE_ADDRESS_MODE AddressV;
|
---|
1717 | D3D11_TEXTURE_ADDRESS_MODE AddressW;
|
---|
1718 | FLOAT MipLODBias;
|
---|
1719 | UINT MaxAnisotropy;
|
---|
1720 | D3D11_COMPARISON_FUNC ComparisonFunc;
|
---|
1721 | FLOAT BorderColor[4];
|
---|
1722 | FLOAT MinLOD;
|
---|
1723 | FLOAT MaxLOD;
|
---|
1724 | } D3D11_SAMPLER_DESC;
|
---|
1725 |
|
---|
1726 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1727 | cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
|
---|
1728 | cpp_quote(" CD3D11_SAMPLER_DESC() {}")
|
---|
1729 | cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
|
---|
1730 | cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
|
---|
1731 | cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
|
---|
1732 | cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
|
---|
1733 | cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
|
---|
1734 | cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
|
---|
1735 | cpp_quote(" MipLODBias = 0;")
|
---|
1736 | cpp_quote(" MaxAnisotropy = 1;")
|
---|
1737 | cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
|
---|
1738 | cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
|
---|
1739 | cpp_quote(" MinLOD = -3.402823466e+38f;")
|
---|
1740 | cpp_quote(" MaxLOD = 3.402823466e+38f;")
|
---|
1741 | cpp_quote(" }")
|
---|
1742 | cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
|
---|
1743 | cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
|
---|
1744 | cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
|
---|
1745 | cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
|
---|
1746 | cpp_quote(" Filter = filter;")
|
---|
1747 | cpp_quote(" AddressU = addressU;")
|
---|
1748 | cpp_quote(" AddressV = addressV;")
|
---|
1749 | cpp_quote(" AddressW = addressW;")
|
---|
1750 | cpp_quote(" MipLODBias = mipLODBias;")
|
---|
1751 | cpp_quote(" MaxAnisotropy = maxAnisotropy;")
|
---|
1752 | cpp_quote(" ComparisonFunc = comparisonFunc;")
|
---|
1753 | cpp_quote(" if(borderColor) {")
|
---|
1754 | cpp_quote(" BorderColor[0] = borderColor[0];")
|
---|
1755 | cpp_quote(" BorderColor[1] = borderColor[1];")
|
---|
1756 | cpp_quote(" BorderColor[2] = borderColor[2];")
|
---|
1757 | cpp_quote(" BorderColor[3] = borderColor[3];")
|
---|
1758 | cpp_quote(" }else {")
|
---|
1759 | cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
|
---|
1760 | cpp_quote(" }")
|
---|
1761 | cpp_quote(" MinLOD = minLOD;")
|
---|
1762 | cpp_quote(" MaxLOD = maxLOD;")
|
---|
1763 | cpp_quote(" }")
|
---|
1764 | cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
|
---|
1765 | cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
|
---|
1766 | cpp_quote("};")
|
---|
1767 | cpp_quote("#endif")
|
---|
1768 |
|
---|
1769 | typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
|
---|
1770 | {
|
---|
1771 | DXGI_FORMAT Format;
|
---|
1772 | D3D11_SRV_DIMENSION ViewDimension;
|
---|
1773 |
|
---|
1774 | union
|
---|
1775 | {
|
---|
1776 | D3D11_BUFFER_SRV Buffer;
|
---|
1777 | D3D11_TEX1D_SRV Texture1D;
|
---|
1778 | D3D11_TEX1D_ARRAY_SRV Texture1DArray;
|
---|
1779 | D3D11_TEX2D_SRV Texture2D;
|
---|
1780 | D3D11_TEX2D_ARRAY_SRV Texture2DArray;
|
---|
1781 | D3D11_TEX2DMS_SRV Texture2DMS;
|
---|
1782 | D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
|
---|
1783 | D3D11_TEX3D_SRV Texture3D;
|
---|
1784 | D3D11_TEXCUBE_SRV TextureCube;
|
---|
1785 | D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
|
---|
1786 | D3D11_BUFFEREX_SRV BufferEx;
|
---|
1787 | };
|
---|
1788 | } D3D11_SHADER_RESOURCE_VIEW_DESC;
|
---|
1789 |
|
---|
1790 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
|
---|
1791 | cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
|
---|
1792 | cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
|
---|
1793 | cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
|
---|
1794 | cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
|
---|
1795 | cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
|
---|
1796 | cpp_quote(" Format = format;")
|
---|
1797 | cpp_quote(" ViewDimension = dim;")
|
---|
1798 | cpp_quote(" switch(ViewDimension) {")
|
---|
1799 | cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
|
---|
1800 | cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
|
---|
1801 | cpp_quote(" Buffer.NumElements = mip_levels;")
|
---|
1802 | cpp_quote(" break;")
|
---|
1803 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
|
---|
1804 | cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
|
---|
1805 | cpp_quote(" Texture1D.MipLevels = mip_levels;")
|
---|
1806 | cpp_quote(" break;")
|
---|
1807 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
|
---|
1808 | cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
|
---|
1809 | cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
|
---|
1810 | cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
|
---|
1811 | cpp_quote(" Texture1DArray.ArraySize = array_size;")
|
---|
1812 | cpp_quote(" break;")
|
---|
1813 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
|
---|
1814 | cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
|
---|
1815 | cpp_quote(" Texture2D.MipLevels = mip_levels;")
|
---|
1816 | cpp_quote(" break;")
|
---|
1817 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
|
---|
1818 | cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
|
---|
1819 | cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
|
---|
1820 | cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
|
---|
1821 | cpp_quote(" Texture2DArray.ArraySize = array_size;")
|
---|
1822 | cpp_quote(" break;")
|
---|
1823 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
|
---|
1824 | cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
|
---|
1825 | cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
|
---|
1826 | cpp_quote(" break;")
|
---|
1827 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
|
---|
1828 | cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
|
---|
1829 | cpp_quote(" Texture3D.MipLevels = mip_levels;")
|
---|
1830 | cpp_quote(" break;")
|
---|
1831 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
|
---|
1832 | cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
|
---|
1833 | cpp_quote(" TextureCube.MipLevels = mip_levels;")
|
---|
1834 | cpp_quote(" break;")
|
---|
1835 | cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
|
---|
1836 | cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
|
---|
1837 | cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
|
---|
1838 | cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
|
---|
1839 | cpp_quote(" TextureCubeArray.NumCubes = array_size;")
|
---|
1840 | cpp_quote(" break;")
|
---|
1841 | cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
|
---|
1842 | cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
|
---|
1843 | cpp_quote(" BufferEx.NumElements = mip_levels;")
|
---|
1844 | cpp_quote(" BufferEx.Flags = flags;")
|
---|
1845 | cpp_quote(" break;")
|
---|
1846 | cpp_quote(" default:")
|
---|
1847 | cpp_quote(" break;")
|
---|
1848 | cpp_quote(" }")
|
---|
1849 | cpp_quote(" }")
|
---|
1850 | cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
|
---|
1851 | cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
|
---|
1852 | cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
|
---|
1853 | cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
|
---|
1854 | cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
|
---|
1855 | cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
|
---|
1856 | cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
|
---|
1857 | cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
|
---|
1858 | cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
|
---|
1859 | cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
|
---|
1860 | cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
|
---|
1861 | cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
|
---|
1862 | cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
|
---|
1863 | cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
|
---|
1864 | cpp_quote(" return *this;")
|
---|
1865 | cpp_quote(" }")
|
---|
1866 | cpp_quote("};")
|
---|
1867 | cpp_quote("#endif")
|
---|
1868 |
|
---|
1869 | typedef struct D3D11_TEXTURE1D_DESC
|
---|
1870 | {
|
---|
1871 | UINT Width;
|
---|
1872 | UINT MipLevels;
|
---|
1873 | UINT ArraySize;
|
---|
1874 | DXGI_FORMAT Format;
|
---|
1875 | D3D11_USAGE Usage;
|
---|
1876 | UINT BindFlags;
|
---|
1877 | UINT CPUAccessFlags;
|
---|
1878 | UINT MiscFlags;
|
---|
1879 | } D3D11_TEXTURE1D_DESC;
|
---|
1880 |
|
---|
1881 | typedef struct D3D11_TEXTURE2D_DESC
|
---|
1882 | {
|
---|
1883 | UINT Width;
|
---|
1884 | UINT Height;
|
---|
1885 | UINT MipLevels;
|
---|
1886 | UINT ArraySize;
|
---|
1887 | DXGI_FORMAT Format;
|
---|
1888 | DXGI_SAMPLE_DESC SampleDesc;
|
---|
1889 | D3D11_USAGE Usage;
|
---|
1890 | UINT BindFlags;
|
---|
1891 | UINT CPUAccessFlags;
|
---|
1892 | UINT MiscFlags;
|
---|
1893 | } D3D11_TEXTURE2D_DESC;
|
---|
1894 |
|
---|
1895 | cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
|
---|
1896 | cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
|
---|
1897 | cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
|
---|
1898 | cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
|
---|
1899 | cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
|
---|
1900 | cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
|
---|
1901 | cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
|
---|
1902 | cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
|
---|
1903 | cpp_quote(" Width = width;")
|
---|
1904 | cpp_quote(" Height = height;")
|
---|
1905 | cpp_quote(" MipLevels = mipLevels;")
|
---|
1906 | cpp_quote(" ArraySize = arraySize;")
|
---|
1907 | cpp_quote(" Format = format;")
|
---|
1908 | cpp_quote(" SampleDesc.Count = sampleCount;")
|
---|
1909 | cpp_quote(" SampleDesc.Quality = sampleQuality;")
|
---|
1910 | cpp_quote(" Usage = usage;")
|
---|
1911 | cpp_quote(" BindFlags = bindFlags;")
|
---|
1912 | cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
|
---|
1913 | cpp_quote(" MiscFlags = miscFlags;")
|
---|
1914 | cpp_quote(" }" )
|
---|
1915 | cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
|
---|
1916 | cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
|
---|
1917 | cpp_quote("};")
|
---|
1918 | cpp_quote("#endif")
|
---|
1919 |
|
---|
1920 | typedef struct D3D11_TEXTURE3D_DESC
|
---|
1921 | {
|
---|
1922 | UINT Width;
|
---|
1923 | UINT Height;
|
---|
1924 | UINT Depth;
|
---|
1925 | UINT MipLevels;
|
---|
1926 | DXGI_FORMAT Format;
|
---|
1927 | D3D11_USAGE Usage;
|
---|
1928 | UINT BindFlags;
|
---|
1929 | UINT CPUAccessFlags;
|
---|
1930 | UINT MiscFlags;
|
---|
1931 | } D3D11_TEXTURE3D_DESC;
|
---|
1932 |
|
---|
1933 | typedef struct D3D11_VIDEO_DECODER_DESC
|
---|
1934 | {
|
---|
1935 | GUID Guid;
|
---|
1936 | UINT SampleWidth;
|
---|
1937 | UINT SampleHeight;
|
---|
1938 | DXGI_FORMAT OutputFormat;
|
---|
1939 | } D3D11_VIDEO_DECODER_DESC;
|
---|
1940 |
|
---|
1941 | typedef struct D3D11_VIDEO_DECODER_CONFIG
|
---|
1942 | {
|
---|
1943 | GUID guidConfigBitstreamEncryption;
|
---|
1944 | GUID guidConfigMBcontrolEncryption;
|
---|
1945 | GUID guidConfigResidDiffEncryption;
|
---|
1946 | UINT ConfigBitstreamRaw;
|
---|
1947 | UINT ConfigMBcontrolRasterOrder;
|
---|
1948 | UINT ConfigResidDiffHost;
|
---|
1949 | UINT ConfigSpatialResid8;
|
---|
1950 | UINT ConfigResid8Subtraction;
|
---|
1951 | UINT ConfigSpatialHost8or9Clipping;
|
---|
1952 | UINT ConfigSpatialResidInterleaved;
|
---|
1953 | UINT ConfigIntraResidUnsigned;
|
---|
1954 | UINT ConfigResidDiffAccelerator;
|
---|
1955 | UINT ConfigHostInverseScan;
|
---|
1956 | UINT ConfigSpecificIDCT;
|
---|
1957 | UINT Config4GroupedCoefs;
|
---|
1958 | USHORT ConfigMinRenderTargetBuffCount;
|
---|
1959 | USHORT ConfigDecoderSpecific;
|
---|
1960 | } D3D11_VIDEO_DECODER_CONFIG;
|
---|
1961 |
|
---|
1962 | typedef enum D3D11_VIDEO_FRAME_FORMAT
|
---|
1963 | {
|
---|
1964 | D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
|
---|
1965 | D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
|
---|
1966 | D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
|
---|
1967 | } D3D11_VIDEO_FRAME_FORMAT;
|
---|
1968 |
|
---|
1969 | typedef enum D3D11_VIDEO_USAGE
|
---|
1970 | {
|
---|
1971 | D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
|
---|
1972 | D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
|
---|
1973 | D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
|
---|
1974 | } D3D11_VIDEO_USAGE;
|
---|
1975 |
|
---|
1976 | typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
|
---|
1977 | {
|
---|
1978 | D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
|
---|
1979 | DXGI_RATIONAL InputFrameRate;
|
---|
1980 | UINT InputWidth;
|
---|
1981 | UINT InputHeight;
|
---|
1982 | DXGI_RATIONAL OutputFrameRate;
|
---|
1983 | UINT OutputWidth;
|
---|
1984 | UINT OutputHeight;
|
---|
1985 | D3D11_VIDEO_USAGE Usage;
|
---|
1986 | } D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
|
---|
1987 |
|
---|
1988 | typedef struct D3D11_VIDEO_PROCESSOR_CAPS
|
---|
1989 | {
|
---|
1990 | UINT DeviceCaps;
|
---|
1991 | UINT FeatureCaps;
|
---|
1992 | UINT FilterCaps;
|
---|
1993 | UINT InputFormatCaps;
|
---|
1994 | UINT AutoStreamCaps;
|
---|
1995 | UINT StereoCaps;
|
---|
1996 | UINT RateConversionCapsCount;
|
---|
1997 | UINT MaxInputStreams;
|
---|
1998 | UINT MaxStreamStates;
|
---|
1999 | } D3D11_VIDEO_PROCESSOR_CAPS;
|
---|
2000 |
|
---|
2001 | typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
|
---|
2002 | {
|
---|
2003 | UINT PastFrames;
|
---|
2004 | UINT FutureFrames;
|
---|
2005 | UINT ProcessorCaps;
|
---|
2006 | UINT ITelecineCaps;
|
---|
2007 | UINT CustomRateCount;
|
---|
2008 | } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
|
---|
2009 |
|
---|
2010 | typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
|
---|
2011 | {
|
---|
2012 | DXGI_RATIONAL CustomRate;
|
---|
2013 | UINT OutputFrames;
|
---|
2014 | BOOL InputInterlaced;
|
---|
2015 | UINT InputFramesOrFields;
|
---|
2016 | } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
|
---|
2017 |
|
---|
2018 | typedef enum D3D11_VIDEO_PROCESSOR_FILTER
|
---|
2019 | {
|
---|
2020 | D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
|
---|
2021 | D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
|
---|
2022 | D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
|
---|
2023 | D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
|
---|
2024 | D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
|
---|
2025 | D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
|
---|
2026 | D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
|
---|
2027 | D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
|
---|
2028 | } D3D11_VIDEO_PROCESSOR_FILTER;
|
---|
2029 |
|
---|
2030 | typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
|
---|
2031 | {
|
---|
2032 | int Minimum;
|
---|
2033 | int Maximum;
|
---|
2034 | int Default;
|
---|
2035 | float Multiplier;
|
---|
2036 | } D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
|
---|
2037 |
|
---|
2038 | typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
|
---|
2039 | {
|
---|
2040 | D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
|
---|
2041 | D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
|
---|
2042 | D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
|
---|
2043 | } D3D11_AUTHENTICATED_CHANNEL_TYPE;
|
---|
2044 |
|
---|
2045 | typedef enum D3D11_VDOV_DIMENSION
|
---|
2046 | {
|
---|
2047 | D3D11_VDOV_DIMENSION_UNKNOWN = 0,
|
---|
2048 | D3D11_VDOV_DIMENSION_TEXTURE2D = 1
|
---|
2049 | } D3D11_VDOV_DIMENSION;
|
---|
2050 |
|
---|
2051 | typedef struct D3D11_TEX2D_VDOV
|
---|
2052 | {
|
---|
2053 | UINT ArraySlice;
|
---|
2054 | } D3D11_TEX2D_VDOV;
|
---|
2055 |
|
---|
2056 | typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
|
---|
2057 | {
|
---|
2058 | GUID DecodeProfile;
|
---|
2059 | D3D11_VDOV_DIMENSION ViewDimension;
|
---|
2060 | union {
|
---|
2061 | D3D11_TEX2D_VDOV Texture2D;
|
---|
2062 | };
|
---|
2063 | } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
|
---|
2064 |
|
---|
2065 | typedef enum D3D11_VPIV_DIMENSION
|
---|
2066 | {
|
---|
2067 | D3D11_VPIV_DIMENSION_UNKNOWN = 0,
|
---|
2068 | D3D11_VPIV_DIMENSION_TEXTURE2D = 1
|
---|
2069 | } D3D11_VPIV_DIMENSION;
|
---|
2070 |
|
---|
2071 | typedef struct D3D11_TEX2D_VPIV
|
---|
2072 | {
|
---|
2073 | UINT MipSlice;
|
---|
2074 | UINT ArraySlice;
|
---|
2075 | } D3D11_TEX2D_VPIV;
|
---|
2076 |
|
---|
2077 | typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
|
---|
2078 | {
|
---|
2079 | UINT FourCC;
|
---|
2080 | D3D11_VPIV_DIMENSION ViewDimension;
|
---|
2081 | union {
|
---|
2082 | D3D11_TEX2D_VPIV Texture2D;
|
---|
2083 | };
|
---|
2084 | } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
|
---|
2085 |
|
---|
2086 | typedef enum D3D11_VPOV_DIMENSION
|
---|
2087 | {
|
---|
2088 | D3D11_VPOV_DIMENSION_UNKNOWN = 0,
|
---|
2089 | D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
|
---|
2090 | D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
|
---|
2091 | } D3D11_VPOV_DIMENSION;
|
---|
2092 |
|
---|
2093 | typedef struct D3D11_TEX2D_VPOV
|
---|
2094 | {
|
---|
2095 | UINT MipSlice;
|
---|
2096 | } D3D11_TEX2D_VPOV;
|
---|
2097 |
|
---|
2098 | typedef struct D3D11_TEX2D_ARRAY_VPOV
|
---|
2099 | {
|
---|
2100 | UINT MipSlice;
|
---|
2101 | UINT FirstArraySlice;
|
---|
2102 | UINT ArraySize;
|
---|
2103 | } D3D11_TEX2D_ARRAY_VPOV;
|
---|
2104 |
|
---|
2105 | typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
|
---|
2106 | {
|
---|
2107 | D3D11_VPOV_DIMENSION ViewDimension;
|
---|
2108 | union {
|
---|
2109 | D3D11_TEX2D_VPOV Texture2D;
|
---|
2110 | D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
|
---|
2111 | };
|
---|
2112 | } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
|
---|
2113 |
|
---|
2114 | typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
|
---|
2115 | {
|
---|
2116 | UINT Caps;
|
---|
2117 | UINT KeyExchangeTypeCount;
|
---|
2118 | UINT BlockAlignmentSize;
|
---|
2119 | ULONGLONG ProtectedMemorySize;
|
---|
2120 | } D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
|
---|
2121 |
|
---|
2122 | typedef struct D3D11_ENCRYPTED_BLOCK_INFO
|
---|
2123 | {
|
---|
2124 | UINT NumEncryptedBytesAtBeginning;
|
---|
2125 | UINT NumBytesInSkipPattern;
|
---|
2126 | UINT NumBytesInEncryptPattern;
|
---|
2127 | } D3D11_ENCRYPTED_BLOCK_INFO;
|
---|
2128 |
|
---|
2129 | typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
|
---|
2130 | {
|
---|
2131 | D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
|
---|
2132 | UINT BufferIndex;
|
---|
2133 | UINT DataOffset;
|
---|
2134 | UINT DataSize;
|
---|
2135 | UINT FirstMBaddress;
|
---|
2136 | UINT NumMBsInBuffer;
|
---|
2137 | UINT Width;
|
---|
2138 | UINT Height;
|
---|
2139 | UINT Stride;
|
---|
2140 | UINT ReservedBits;
|
---|
2141 | void *pIV;
|
---|
2142 | UINT IVSize;
|
---|
2143 | BOOL PartialEncryption;
|
---|
2144 | D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
|
---|
2145 | } D3D11_VIDEO_DECODER_BUFFER_DESC;
|
---|
2146 |
|
---|
2147 | typedef struct D3D11_VIDEO_DECODER_EXTENSION
|
---|
2148 | {
|
---|
2149 | UINT Function;
|
---|
2150 | void *pPrivateInputData;
|
---|
2151 | UINT PrivateInputDataSize;
|
---|
2152 | void *pPrivateOutputData;
|
---|
2153 | UINT PrivateOutputDataSize;
|
---|
2154 | UINT ResourceCount;
|
---|
2155 | ID3D11Resource **ppResourceList;
|
---|
2156 | } D3D11_VIDEO_DECODER_EXTENSION;
|
---|
2157 |
|
---|
2158 | typedef struct D3D11_VIDEO_COLOR_YCbCrA
|
---|
2159 | {
|
---|
2160 | float Y;
|
---|
2161 | float Cb;
|
---|
2162 | float Cr;
|
---|
2163 | float A;
|
---|
2164 | } D3D11_VIDEO_COLOR_YCbCrA;
|
---|
2165 |
|
---|
2166 | typedef struct D3D11_VIDEO_COLOR_RGBA
|
---|
2167 | {
|
---|
2168 | float R;
|
---|
2169 | float G;
|
---|
2170 | float B;
|
---|
2171 | float A;
|
---|
2172 | } D3D11_VIDEO_COLOR_RGBA;
|
---|
2173 |
|
---|
2174 | typedef struct D3D11_VIDEO_COLOR
|
---|
2175 | {
|
---|
2176 | union
|
---|
2177 | {
|
---|
2178 | D3D11_VIDEO_COLOR_YCbCrA YCbCr;
|
---|
2179 | D3D11_VIDEO_COLOR_RGBA RGBA;
|
---|
2180 | };
|
---|
2181 | } D3D11_VIDEO_COLOR;
|
---|
2182 |
|
---|
2183 | typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
|
---|
2184 | {
|
---|
2185 | UINT Usage : 1;
|
---|
2186 | UINT RGB_Range : 1;
|
---|
2187 | UINT YCbCr_Matrix : 1;
|
---|
2188 | UINT YCbCr_xvYCC : 1;
|
---|
2189 | UINT Nominal_Range : 2;
|
---|
2190 | UINT Reserved : 26;
|
---|
2191 | } D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
|
---|
2192 |
|
---|
2193 | typedef struct D3D11_VIDEO_PROCESSOR_STREAM
|
---|
2194 | {
|
---|
2195 | BOOL Enable;
|
---|
2196 | UINT OutputIndex;
|
---|
2197 | UINT InputFrameOrField;
|
---|
2198 | UINT PastFrames;
|
---|
2199 | UINT FutureFrames;
|
---|
2200 | ID3D11VideoProcessorInputView **ppPastSurfaces;
|
---|
2201 | ID3D11VideoProcessorInputView *pInputSurface;
|
---|
2202 | ID3D11VideoProcessorInputView **ppFutureSurfaces;
|
---|
2203 | ID3D11VideoProcessorInputView **ppPastSurfacesRight;
|
---|
2204 | ID3D11VideoProcessorInputView *pInputSurfaceRight;
|
---|
2205 | ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
|
---|
2206 | } D3D11_VIDEO_PROCESSOR_STREAM;
|
---|
2207 |
|
---|
2208 | typedef struct D3D11_OMAC
|
---|
2209 | {
|
---|
2210 | BYTE Omac[D3D11_OMAC_SIZE];
|
---|
2211 | } D3D11_OMAC;
|
---|
2212 |
|
---|
2213 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
|
---|
2214 | {
|
---|
2215 | D3D11_OMAC omac;
|
---|
2216 | GUID ConfigureType;
|
---|
2217 | HANDLE hChannel;
|
---|
2218 | UINT SequenceNumber;
|
---|
2219 | HRESULT ReturnCode;
|
---|
2220 | } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
|
---|
2221 |
|
---|
2222 | typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
|
---|
2223 | {
|
---|
2224 | UINT64 Frequency;
|
---|
2225 | BOOL Disjoint;
|
---|
2226 | } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
|
---|
2227 |
|
---|
2228 | typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
|
---|
2229 | {
|
---|
2230 | UINT64 IAVertices;
|
---|
2231 | UINT64 IAPrimitives;
|
---|
2232 | UINT64 VSInvocations;
|
---|
2233 | UINT64 GSInvocations;
|
---|
2234 | UINT64 GSPrimitives;
|
---|
2235 | UINT64 CInvocations;
|
---|
2236 | UINT64 CPrimitives;
|
---|
2237 | UINT64 PSInvocations;
|
---|
2238 | UINT64 HSInvocations;
|
---|
2239 | UINT64 DSInvocations;
|
---|
2240 | UINT64 CSInvocations;
|
---|
2241 | } D3D11_QUERY_DATA_PIPELINE_STATISTICS;
|
---|
2242 |
|
---|
2243 | typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
|
---|
2244 | {
|
---|
2245 | UINT VertexCountPerInstance;
|
---|
2246 | UINT InstanceCount;
|
---|
2247 | UINT StartVertexLocation;
|
---|
2248 | UINT StartInstanceLocation;
|
---|
2249 | } D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
|
---|
2250 |
|
---|
2251 | typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
|
---|
2252 | {
|
---|
2253 | UINT IndexCountPerInstance;
|
---|
2254 | UINT InstanceCount;
|
---|
2255 | UINT StartIndexLocation;
|
---|
2256 | INT BaseVertexLocation;
|
---|
2257 | UINT StartInstanceLocation;
|
---|
2258 | } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
|
---|
2259 |
|
---|
2260 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
|
---|
2261 | {
|
---|
2262 | D3D11_OMAC omac;
|
---|
2263 | GUID ConfigureType;
|
---|
2264 | HANDLE hChannel;
|
---|
2265 | UINT SequenceNumber;
|
---|
2266 | } D3D11_AUTHENTICATED_CONFIGURE_INPUT;
|
---|
2267 |
|
---|
2268 | typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
|
---|
2269 | {
|
---|
2270 | GUID QueryType;
|
---|
2271 | HANDLE hChannel;
|
---|
2272 | UINT SequenceNumber;
|
---|
2273 | } D3D11_AUTHENTICATED_QUERY_INPUT;
|
---|
2274 |
|
---|
2275 | typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
|
---|
2276 | {
|
---|
2277 | D3D11_OMAC omac;
|
---|
2278 | GUID QueryType;
|
---|
2279 | HANDLE hChannel;
|
---|
2280 | UINT SequenceNumber;
|
---|
2281 | HRESULT ReturnCode;
|
---|
2282 | } D3D11_AUTHENTICATED_QUERY_OUTPUT;
|
---|
2283 |
|
---|
2284 | typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
|
---|
2285 | {
|
---|
2286 | struct
|
---|
2287 | {
|
---|
2288 | UINT ProtectionEnabled : 1;
|
---|
2289 | UINT OverlayOrFullscreenRequired : 1;
|
---|
2290 | UINT Reserved : 30;
|
---|
2291 | } Flags;
|
---|
2292 | UINT Value;
|
---|
2293 | } D3D11_AUTHENTICATED_PROTECTION_FLAGS;
|
---|
2294 |
|
---|
2295 | typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
|
---|
2296 | {
|
---|
2297 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2298 | D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
|
---|
2299 | } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
|
---|
2300 |
|
---|
2301 | typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
|
---|
2302 | {
|
---|
2303 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2304 | D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
|
---|
2305 | } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
|
---|
2306 |
|
---|
2307 | typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
|
---|
2308 | {
|
---|
2309 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2310 | HANDLE DeviceHandle;
|
---|
2311 | } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
|
---|
2312 |
|
---|
2313 | typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
|
---|
2314 | {
|
---|
2315 | D3D11_AUTHENTICATED_QUERY_INPUT Input;
|
---|
2316 | HANDLE DecoderHandle;
|
---|
2317 | } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
|
---|
2318 |
|
---|
2319 | typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
|
---|
2320 | {
|
---|
2321 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2322 | HANDLE DecoderHandle;
|
---|
2323 | HANDLE CryptoSessionHandle;
|
---|
2324 | HANDLE DeviceHandle;
|
---|
2325 | } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
|
---|
2326 |
|
---|
2327 | typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
|
---|
2328 | {
|
---|
2329 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2330 | UINT RestrictedSharedResourceProcessCount;
|
---|
2331 | } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
|
---|
2332 |
|
---|
2333 | typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
|
---|
2334 | {
|
---|
2335 | D3D11_AUTHENTICATED_QUERY_INPUT Input;
|
---|
2336 | UINT ProcessIndex;
|
---|
2337 | } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
|
---|
2338 |
|
---|
2339 | typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
|
---|
2340 | {
|
---|
2341 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2342 | UINT ProcessIndex;
|
---|
2343 | D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
|
---|
2344 | HANDLE ProcessHandle;
|
---|
2345 | } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
|
---|
2346 |
|
---|
2347 | typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
|
---|
2348 | {
|
---|
2349 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2350 | UINT UnrestrictedProtectedSharedResourceCount;
|
---|
2351 | } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
|
---|
2352 |
|
---|
2353 | typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
|
---|
2354 | {
|
---|
2355 | D3D11_AUTHENTICATED_QUERY_INPUT Input;
|
---|
2356 | HANDLE DeviceHandle;
|
---|
2357 | HANDLE CryptoSessionHandle;
|
---|
2358 | } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
|
---|
2359 |
|
---|
2360 | typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
|
---|
2361 | {
|
---|
2362 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2363 | HANDLE DeviceHandle;
|
---|
2364 | HANDLE CryptoSessionHandle;
|
---|
2365 | UINT OutputIDCount;
|
---|
2366 | } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
|
---|
2367 |
|
---|
2368 | typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
|
---|
2369 | {
|
---|
2370 | D3D11_AUTHENTICATED_QUERY_INPUT Input;
|
---|
2371 | HANDLE DeviceHandle;
|
---|
2372 | HANDLE CryptoSessionHandle;
|
---|
2373 | UINT OutputIDIndex;
|
---|
2374 | } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
|
---|
2375 |
|
---|
2376 | typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
|
---|
2377 | {
|
---|
2378 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2379 | HANDLE DeviceHandle;
|
---|
2380 | HANDLE CryptoSessionHandle;
|
---|
2381 | UINT OutputIDIndex;
|
---|
2382 | UINT64 OutputID;
|
---|
2383 | } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
|
---|
2384 |
|
---|
2385 | typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
|
---|
2386 | {
|
---|
2387 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2388 | D3D11_BUS_TYPE BusType;
|
---|
2389 | BOOL AccessibleInContiguousBlocks;
|
---|
2390 | BOOL AccessibleInNonContiguousBlocks;
|
---|
2391 | } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
|
---|
2392 |
|
---|
2393 | typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
|
---|
2394 | {
|
---|
2395 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2396 | UINT EncryptionGuidCount;
|
---|
2397 | } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
|
---|
2398 |
|
---|
2399 | typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
|
---|
2400 | {
|
---|
2401 | D3D11_AUTHENTICATED_QUERY_INPUT Input;
|
---|
2402 | UINT EncryptionGuidIndex;
|
---|
2403 | } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
|
---|
2404 |
|
---|
2405 | typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
|
---|
2406 | {
|
---|
2407 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2408 | UINT EncryptionGuidIndex;
|
---|
2409 | GUID EncryptionGuid;
|
---|
2410 | } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
|
---|
2411 |
|
---|
2412 | typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
|
---|
2413 | {
|
---|
2414 | D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
|
---|
2415 | GUID EncryptionGuid;
|
---|
2416 | } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
|
---|
2417 |
|
---|
2418 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
|
---|
2419 | {
|
---|
2420 | D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
|
---|
2421 | UINT StartSequenceQuery;
|
---|
2422 | UINT StartSequenceConfigure;
|
---|
2423 | } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
|
---|
2424 |
|
---|
2425 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
|
---|
2426 | {
|
---|
2427 | D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
|
---|
2428 | D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
|
---|
2429 | } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
|
---|
2430 |
|
---|
2431 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
|
---|
2432 | {
|
---|
2433 | D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
|
---|
2434 | HANDLE DecoderHandle;
|
---|
2435 | HANDLE CryptoSessionHandle;
|
---|
2436 | HANDLE DeviceHandle;
|
---|
2437 | } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
|
---|
2438 |
|
---|
2439 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
|
---|
2440 | {
|
---|
2441 | D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
|
---|
2442 | D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
|
---|
2443 | HANDLE ProcessHandle;
|
---|
2444 | BOOL AllowAccess;
|
---|
2445 | } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
|
---|
2446 |
|
---|
2447 | typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
|
---|
2448 | {
|
---|
2449 | D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
|
---|
2450 | GUID EncryptionGuid;
|
---|
2451 | } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
|
---|
2452 |
|
---|
2453 | [
|
---|
2454 | object,
|
---|
2455 | local,
|
---|
2456 | uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
|
---|
2457 | ]
|
---|
2458 | interface ID3D11DeviceChild : IUnknown
|
---|
2459 | {
|
---|
2460 | void GetDevice(
|
---|
2461 | [out] ID3D11Device **ppDevice);
|
---|
2462 | HRESULT GetPrivateData(
|
---|
2463 | [in] REFGUID guid,
|
---|
2464 | [in, out] UINT *pDataSize,
|
---|
2465 | [out] void *pData);
|
---|
2466 | HRESULT SetPrivateData(
|
---|
2467 | [in] REFGUID guid,
|
---|
2468 | [in] UINT DataSize,
|
---|
2469 | [in] const void *pData);
|
---|
2470 | HRESULT SetPrivateDataInterface(
|
---|
2471 | [in] REFGUID guid,
|
---|
2472 | [in] const IUnknown *pData);
|
---|
2473 | }
|
---|
2474 |
|
---|
2475 | [
|
---|
2476 | object,
|
---|
2477 | local,
|
---|
2478 | uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
|
---|
2479 | ]
|
---|
2480 | interface ID3D11Asynchronous : ID3D11DeviceChild
|
---|
2481 | {
|
---|
2482 | UINT GetDataSize();
|
---|
2483 | }
|
---|
2484 |
|
---|
2485 | [
|
---|
2486 | object,
|
---|
2487 | local,
|
---|
2488 | uuid(d6c00747-87b7-425e-b84d-44d108560afd)
|
---|
2489 | ]
|
---|
2490 | interface ID3D11Query : ID3D11Asynchronous
|
---|
2491 | {
|
---|
2492 | void GetDesc(
|
---|
2493 | [out] D3D11_QUERY_DESC *pDesc);
|
---|
2494 | }
|
---|
2495 |
|
---|
2496 | [
|
---|
2497 | object,
|
---|
2498 | local,
|
---|
2499 | uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
|
---|
2500 | ]
|
---|
2501 | interface ID3D11Resource : ID3D11DeviceChild
|
---|
2502 | {
|
---|
2503 | void GetType(
|
---|
2504 | [out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
|
---|
2505 | void SetEvictionPriority(
|
---|
2506 | [in] UINT EvictionPriority);
|
---|
2507 | UINT GetEvictionPriority();
|
---|
2508 | }
|
---|
2509 |
|
---|
2510 | [
|
---|
2511 | object,
|
---|
2512 | local,
|
---|
2513 | uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
|
---|
2514 | ]
|
---|
2515 | interface ID3D11View : ID3D11DeviceChild
|
---|
2516 | {
|
---|
2517 | void GetResource(
|
---|
2518 | [out] ID3D11Resource **ppResource);
|
---|
2519 | }
|
---|
2520 |
|
---|
2521 | [
|
---|
2522 | object,
|
---|
2523 | local,
|
---|
2524 | uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
|
---|
2525 | ]
|
---|
2526 | interface ID3D11BlendState : ID3D11DeviceChild
|
---|
2527 | {
|
---|
2528 | void GetDesc(
|
---|
2529 | [out] D3D11_BLEND_DESC *pDesc);
|
---|
2530 | }
|
---|
2531 |
|
---|
2532 | [
|
---|
2533 | object,
|
---|
2534 | local,
|
---|
2535 | uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
|
---|
2536 | ]
|
---|
2537 | interface ID3D11Buffer : ID3D11Resource
|
---|
2538 | {
|
---|
2539 | void GetDesc(
|
---|
2540 | [out] D3D11_BUFFER_DESC *pDesc);
|
---|
2541 | }
|
---|
2542 |
|
---|
2543 | [
|
---|
2544 | object,
|
---|
2545 | local,
|
---|
2546 | uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
|
---|
2547 | ]
|
---|
2548 | interface ID3D11ClassInstance : ID3D11DeviceChild
|
---|
2549 | {
|
---|
2550 | void GetClassLinkage(
|
---|
2551 | [out] ID3D11ClassLinkage **ppLinkage);
|
---|
2552 | void GetDesc(
|
---|
2553 | [out] D3D11_CLASS_INSTANCE_DESC *pDesc);
|
---|
2554 | void GetInstanceName(
|
---|
2555 | [out] LPSTR pInstanceName,
|
---|
2556 | [in, out] SIZE_T *pBufferLength);
|
---|
2557 | void GetTypeName(
|
---|
2558 | [out] LPSTR pTypeName,
|
---|
2559 | [in, out] SIZE_T *pBufferLength);
|
---|
2560 | }
|
---|
2561 |
|
---|
2562 | [
|
---|
2563 | object,
|
---|
2564 | local,
|
---|
2565 | uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
|
---|
2566 | ]
|
---|
2567 | interface ID3D11ClassLinkage : ID3D11DeviceChild
|
---|
2568 | {
|
---|
2569 | HRESULT GetClassInstance(
|
---|
2570 | [in] LPCSTR pClassInstanceName,
|
---|
2571 | [in] UINT InstanceIndex,
|
---|
2572 | [out] ID3D11ClassInstance **ppInstance);
|
---|
2573 | HRESULT CreateClassInstance(
|
---|
2574 | [in] LPCSTR pClassTypeName,
|
---|
2575 | [in] UINT ConstantBufferOffset,
|
---|
2576 | [in] UINT ConstantVectorOffset,
|
---|
2577 | [in] UINT TextureOffset,
|
---|
2578 | [in] UINT SamplerOffset,
|
---|
2579 | [out] ID3D11ClassInstance **ppInstance);
|
---|
2580 | }
|
---|
2581 |
|
---|
2582 | [
|
---|
2583 | object,
|
---|
2584 | local,
|
---|
2585 | uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
|
---|
2586 | ]
|
---|
2587 | interface ID3D11CommandList : ID3D11DeviceChild
|
---|
2588 | {
|
---|
2589 | UINT GetContextFlags();
|
---|
2590 | }
|
---|
2591 |
|
---|
2592 | [
|
---|
2593 | object,
|
---|
2594 | local,
|
---|
2595 | uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
|
---|
2596 | ]
|
---|
2597 | interface ID3D11ComputeShader : ID3D11DeviceChild
|
---|
2598 | {
|
---|
2599 | }
|
---|
2600 |
|
---|
2601 | [
|
---|
2602 | object,
|
---|
2603 | local,
|
---|
2604 | uuid(6e8c49fb-a371-4770-b440-29086022b741)
|
---|
2605 | ]
|
---|
2606 | interface ID3D11Counter : ID3D11Asynchronous
|
---|
2607 | {
|
---|
2608 | void GetDesc(
|
---|
2609 | [out] D3D11_COUNTER_DESC *pDesc);
|
---|
2610 | }
|
---|
2611 |
|
---|
2612 | [
|
---|
2613 | object,
|
---|
2614 | local,
|
---|
2615 | uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
|
---|
2616 | ]
|
---|
2617 | interface ID3D11DepthStencilState : ID3D11DeviceChild
|
---|
2618 | {
|
---|
2619 | void GetDesc(
|
---|
2620 | [out] D3D11_DEPTH_STENCIL_DESC *pDesc);
|
---|
2621 | }
|
---|
2622 |
|
---|
2623 | [
|
---|
2624 | object,
|
---|
2625 | local,
|
---|
2626 | uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
|
---|
2627 | ]
|
---|
2628 | interface ID3D11DepthStencilView : ID3D11View
|
---|
2629 | {
|
---|
2630 | void GetDesc(
|
---|
2631 | [out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
|
---|
2632 | }
|
---|
2633 |
|
---|
2634 | [
|
---|
2635 | object,
|
---|
2636 | local,
|
---|
2637 | uuid(f582c508-0f36-490c-9977-31eece268cfa)
|
---|
2638 | ]
|
---|
2639 | interface ID3D11DomainShader : ID3D11DeviceChild
|
---|
2640 | {
|
---|
2641 | }
|
---|
2642 |
|
---|
2643 | [
|
---|
2644 | object,
|
---|
2645 | local,
|
---|
2646 | uuid(38325b96-effb-4022-ba02-2e795b70275c)
|
---|
2647 | ]
|
---|
2648 | interface ID3D11GeometryShader : ID3D11DeviceChild
|
---|
2649 | {
|
---|
2650 | }
|
---|
2651 |
|
---|
2652 | [
|
---|
2653 | object,
|
---|
2654 | local,
|
---|
2655 | uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
|
---|
2656 | ]
|
---|
2657 | interface ID3D11HullShader : ID3D11DeviceChild
|
---|
2658 | {
|
---|
2659 | }
|
---|
2660 |
|
---|
2661 | [
|
---|
2662 | object,
|
---|
2663 | local,
|
---|
2664 | uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
|
---|
2665 | ]
|
---|
2666 | interface ID3D11InputLayout : ID3D11DeviceChild
|
---|
2667 | {
|
---|
2668 | }
|
---|
2669 |
|
---|
2670 | [
|
---|
2671 | object,
|
---|
2672 | local,
|
---|
2673 | uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
|
---|
2674 | ]
|
---|
2675 | interface ID3D11PixelShader : ID3D11DeviceChild
|
---|
2676 | {
|
---|
2677 | }
|
---|
2678 |
|
---|
2679 | [
|
---|
2680 | object,
|
---|
2681 | local,
|
---|
2682 | uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
|
---|
2683 | ]
|
---|
2684 | interface ID3D11Predicate : ID3D11Query
|
---|
2685 | {
|
---|
2686 | }
|
---|
2687 |
|
---|
2688 | [
|
---|
2689 | object,
|
---|
2690 | local,
|
---|
2691 | uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
|
---|
2692 | ]
|
---|
2693 | interface ID3D11RasterizerState : ID3D11DeviceChild
|
---|
2694 | {
|
---|
2695 | void GetDesc(
|
---|
2696 | [out] D3D11_RASTERIZER_DESC *pDesc);
|
---|
2697 | }
|
---|
2698 |
|
---|
2699 | [
|
---|
2700 | object,
|
---|
2701 | local,
|
---|
2702 | uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
|
---|
2703 | ]
|
---|
2704 | interface ID3D11RenderTargetView : ID3D11View
|
---|
2705 | {
|
---|
2706 | void GetDesc(
|
---|
2707 | [out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
|
---|
2708 | }
|
---|
2709 |
|
---|
2710 | [
|
---|
2711 | object,
|
---|
2712 | local,
|
---|
2713 | uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
|
---|
2714 | ]
|
---|
2715 | interface ID3D11SamplerState : ID3D11DeviceChild
|
---|
2716 | {
|
---|
2717 | void GetDesc(
|
---|
2718 | [out] D3D11_SAMPLER_DESC *pDesc);
|
---|
2719 | }
|
---|
2720 |
|
---|
2721 | [
|
---|
2722 | object,
|
---|
2723 | local,
|
---|
2724 | uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
|
---|
2725 | ]
|
---|
2726 | interface ID3D11ShaderResourceView : ID3D11View
|
---|
2727 | {
|
---|
2728 | void GetDesc(
|
---|
2729 | [out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
|
---|
2730 | }
|
---|
2731 |
|
---|
2732 | [
|
---|
2733 | object,
|
---|
2734 | local,
|
---|
2735 | uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
|
---|
2736 | ]
|
---|
2737 | interface ID3D11Texture1D : ID3D11Resource
|
---|
2738 | {
|
---|
2739 | void GetDesc(
|
---|
2740 | [out] D3D11_TEXTURE1D_DESC *pDesc);
|
---|
2741 | }
|
---|
2742 |
|
---|
2743 | [
|
---|
2744 | object,
|
---|
2745 | local,
|
---|
2746 | uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
|
---|
2747 | ]
|
---|
2748 | interface ID3D11Texture2D : ID3D11Resource
|
---|
2749 | {
|
---|
2750 | void GetDesc(
|
---|
2751 | [out] D3D11_TEXTURE2D_DESC *pDesc);
|
---|
2752 | }
|
---|
2753 |
|
---|
2754 | [
|
---|
2755 | object,
|
---|
2756 | local,
|
---|
2757 | uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
|
---|
2758 | ]
|
---|
2759 | interface ID3D11Texture3D : ID3D11Resource
|
---|
2760 | {
|
---|
2761 | void GetDesc(
|
---|
2762 | [out] D3D11_TEXTURE3D_DESC *pDesc);
|
---|
2763 | }
|
---|
2764 |
|
---|
2765 | [
|
---|
2766 | object,
|
---|
2767 | local,
|
---|
2768 | uuid(28acf509-7f5c-48f6-8611-f316010a6380)
|
---|
2769 | ]
|
---|
2770 | interface ID3D11UnorderedAccessView : ID3D11View
|
---|
2771 | {
|
---|
2772 | void GetDesc(
|
---|
2773 | [out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
|
---|
2774 | }
|
---|
2775 |
|
---|
2776 | [
|
---|
2777 | object,
|
---|
2778 | local,
|
---|
2779 | uuid(3b301d64-d678-4289-8897-22f8928b72f3)
|
---|
2780 | ]
|
---|
2781 | interface ID3D11VertexShader : ID3D11DeviceChild
|
---|
2782 | {
|
---|
2783 | }
|
---|
2784 |
|
---|
2785 | [
|
---|
2786 | object,
|
---|
2787 | local,
|
---|
2788 | uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
|
---|
2789 | ]
|
---|
2790 | interface ID3D11DeviceContext : ID3D11DeviceChild
|
---|
2791 | {
|
---|
2792 | void VSSetConstantBuffers(
|
---|
2793 | [in] UINT StartSlot,
|
---|
2794 | [in] UINT NumBuffers,
|
---|
2795 | [in] ID3D11Buffer *const *ppConstantBuffers);
|
---|
2796 | void PSSetShaderResources(
|
---|
2797 | [in] UINT StartSlot,
|
---|
2798 | [in] UINT NumViews,
|
---|
2799 | [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
|
---|
2800 | void PSSetShader(
|
---|
2801 | [in] ID3D11PixelShader *pPixelShader,
|
---|
2802 | [in] ID3D11ClassInstance *const *ppClassInstances,
|
---|
2803 | UINT NumClassInstances);
|
---|
2804 | void PSSetSamplers(
|
---|
2805 | [in] UINT StartSlot,
|
---|
2806 | [in] UINT NumSamplers,
|
---|
2807 | [in] ID3D11SamplerState *const *ppSamplers);
|
---|
2808 | void VSSetShader(
|
---|
2809 | [in] ID3D11VertexShader *pVertexShader,
|
---|
2810 | [in] ID3D11ClassInstance *const *ppClassInstances,
|
---|
2811 | UINT NumClassInstances);
|
---|
2812 | void DrawIndexed(
|
---|
2813 | [in] UINT IndexCount,
|
---|
2814 | [in] UINT StartIndexLocation,
|
---|
2815 | [in] INT BaseVertexLocation);
|
---|
2816 | void Draw(
|
---|
2817 | [in] UINT VertexCount,
|
---|
2818 | [in] UINT StartVertexLocation);
|
---|
2819 | HRESULT Map(
|
---|
2820 | [in] ID3D11Resource *pResource,
|
---|
2821 | [in] UINT Subresource,
|
---|
2822 | [in] D3D11_MAP MapType,
|
---|
2823 | [in] UINT MapFlags,
|
---|
2824 | [out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
|
---|
2825 | void Unmap(
|
---|
2826 | [in] ID3D11Resource *pResource,
|
---|
2827 | [in] UINT Subresource);
|
---|
2828 | void PSSetConstantBuffers(
|
---|
2829 | [in] UINT StartSlot,
|
---|
2830 | [in] UINT NumBuffers,
|
---|
2831 | [in] ID3D11Buffer *const *ppConstantBuffers);
|
---|
2832 | void IASetInputLayout(
|
---|
2833 | [in] ID3D11InputLayout *pInputLayout);
|
---|
2834 | void IASetVertexBuffers(
|
---|
2835 | [in] UINT StartSlot,
|
---|
2836 | [in] UINT NumBuffers,
|
---|
2837 | [in] ID3D11Buffer *const *ppVertexBuffers,
|
---|
2838 | [in] const UINT *pStrides,
|
---|
2839 | [in] const UINT *pOffsets);
|
---|
2840 | void IASetIndexBuffer(
|
---|
2841 | [in] ID3D11Buffer *pIndexBuffer,
|
---|
2842 | [in] DXGI_FORMAT Format,
|
---|
2843 | [in] UINT Offset);
|
---|
2844 | void DrawIndexedInstanced(
|
---|
2845 | [in] UINT IndexCountPerInstance,
|
---|
2846 | [in] UINT InstanceCount,
|
---|
2847 | [in] UINT StartIndexLocation,
|
---|
2848 | [in] INT BaseVertexLocation,
|
---|
2849 | [in] UINT StartInstanceLocation);
|
---|
2850 | void DrawInstanced(
|
---|
2851 | [in] UINT VertexCountPerInstance,
|
---|
2852 | [in] UINT InstanceCount,
|
---|
2853 | [in] UINT StartVertexLocation,
|
---|
2854 | [in] UINT StartInstanceLocation);
|
---|
2855 | void GSSetConstantBuffers(
|
---|
2856 | [in] UINT StartSlot,
|
---|
2857 | [in] UINT NumBuffers,
|
---|
2858 | [in] ID3D11Buffer *const *ppConstantBuffers);
|
---|
2859 | void GSSetShader(
|
---|
2860 | [in] ID3D11GeometryShader *pShader,
|
---|
2861 | [in] ID3D11ClassInstance *const *ppClassInstances,
|
---|
2862 | UINT NumClassInstances);
|
---|
2863 | void IASetPrimitiveTopology(
|
---|
2864 | [in] D3D11_PRIMITIVE_TOPOLOGY Topology);
|
---|
2865 | void VSSetShaderResources(
|
---|
2866 | [in] UINT StartSlot,
|
---|
2867 | [in] UINT NumViews,
|
---|
2868 | [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
|
---|
2869 | void VSSetSamplers(
|
---|
2870 | [in] UINT StartSlot,
|
---|
2871 | [in] UINT NumSamplers,
|
---|
2872 | [in] ID3D11SamplerState *const *ppSamplers);
|
---|
2873 | void Begin(
|
---|
2874 | [in] ID3D11Asynchronous *pAsync);
|
---|
2875 | void End(
|
---|
2876 | [in] ID3D11Asynchronous *pAsync);
|
---|
2877 | HRESULT GetData(
|
---|
2878 | [in] ID3D11Asynchronous *pAsync,
|
---|
2879 | [in] void *pData,
|
---|
2880 | [in] UINT DataSize,
|
---|
2881 | [in] UINT GetDataFlags);
|
---|
2882 | void SetPredication(
|
---|
2883 | [in] ID3D11Predicate *pPredicate,
|
---|
2884 | [in] BOOL PredicateValue);
|
---|
2885 | void GSSetShaderResources(
|
---|
2886 | [in] UINT StartSlot,
|
---|
2887 | [in] UINT NumViews,
|
---|
2888 | [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
|
---|
2889 | void GSSetSamplers(
|
---|
2890 | [in] UINT StartSlot,
|
---|
2891 | [in] UINT NumSamplers,
|
---|
2892 | [in] ID3D11SamplerState *const *ppSamplers);
|
---|
2893 | void OMSetRenderTargets(
|
---|
2894 | [in] UINT NumViews,
|
---|
2895 | [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
|
---|
2896 | [in] ID3D11DepthStencilView *pDepthStencilView);
|
---|
2897 | void OMSetRenderTargetsAndUnorderedAccessViews(
|
---|
2898 | [in] UINT NumRTVs,
|
---|
2899 | [in] ID3D11RenderTargetView *const *ppRenderTargetViews,
|
---|
2900 | [in] ID3D11DepthStencilView *pDepthStencilView,
|
---|
2901 | [in] UINT UAVStartSlot,
|
---|
2902 | [in] UINT NumUAVs,
|
---|
2903 | [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
|
---|
2904 | [in] const UINT *pUAVInitialCounts);
|
---|
2905 | void OMSetBlendState(
|
---|
2906 | [in] ID3D11BlendState *pBlendState,
|
---|
2907 | [in] const FLOAT BlendFactor[4],
|
---|
2908 | [in] UINT SampleMask);
|
---|
2909 | void OMSetDepthStencilState(
|
---|
2910 | [in] ID3D11DepthStencilState *pDepthStencilState,
|
---|
2911 | [in] UINT StencilRef);
|
---|
2912 | void SOSetTargets(
|
---|
2913 | [in] UINT NumBuffers,
|
---|
2914 | [in] ID3D11Buffer *const *ppSOTargets,
|
---|
2915 | [in] const UINT *pOffsets);
|
---|
2916 | void DrawAuto();
|
---|
2917 | void DrawIndexedInstancedIndirect(
|
---|
2918 | [in] ID3D11Buffer *pBufferForArgs,
|
---|
2919 | [in] UINT AlignedByteOffsetForArgs);
|
---|
2920 | void DrawInstancedIndirect(
|
---|
2921 | [in] ID3D11Buffer *pBufferForArgs,
|
---|
2922 | [in] UINT AlignedByteOffsetForArgs);
|
---|
2923 | void Dispatch(
|
---|
2924 | [in] UINT ThreadGroupCountX,
|
---|
2925 | [in] UINT ThreadGroupCountY,
|
---|
2926 | [in] UINT ThreadGroupCountZ);
|
---|
2927 | void DispatchIndirect(
|
---|
2928 | [in] ID3D11Buffer *pBufferForArgs,
|
---|
2929 | [in] UINT AlignedByteOffsetForArgs);
|
---|
2930 | void RSSetState(
|
---|
2931 | [in] ID3D11RasterizerState *pRasterizerState);
|
---|
2932 | void RSSetViewports(
|
---|
2933 | [in] UINT NumViewports,
|
---|
2934 | [in] const D3D11_VIEWPORT *pViewports);
|
---|
2935 | void RSSetScissorRects(
|
---|
2936 | [in] UINT NumRects,
|
---|
2937 | [in] const D3D11_RECT *pRects);
|
---|
2938 | void CopySubresourceRegion(
|
---|
2939 | [in] ID3D11Resource *pDstResource,
|
---|
2940 | [in] UINT DstSubresource,
|
---|
2941 | [in] UINT DstX,
|
---|
2942 | [in] UINT DstY,
|
---|
2943 | [in] UINT DstZ,
|
---|
2944 | [in] ID3D11Resource *pSrcResource,
|
---|
2945 | [in] UINT SrcSubresource,
|
---|
2946 | [in] const D3D11_BOX *pSrcBox);
|
---|
2947 | void CopyResource(
|
---|
2948 | [in] ID3D11Resource *pDstResource,
|
---|
2949 | [in] ID3D11Resource *pSrcResource);
|
---|
2950 | void UpdateSubresource(
|
---|
2951 | [in] ID3D11Resource *pDstResource,
|
---|
2952 | [in] UINT DstSubresource,
|
---|
2953 | [in] const D3D11_BOX *pDstBox,
|
---|
2954 | [in] const void *pSrcData,
|
---|
2955 | [in] UINT SrcRowPitch,
|
---|
2956 | [in] UINT SrcDepthPitch);
|
---|
2957 | void CopyStructureCount(
|
---|
2958 | [in] ID3D11Buffer *pDstBuffer,
|
---|
2959 | [in] UINT DstAlignedByteOffset,
|
---|
2960 | [in] ID3D11UnorderedAccessView *pSrcView);
|
---|
2961 | void ClearRenderTargetView(
|
---|
2962 | [in] ID3D11RenderTargetView *pRenderTargetView,
|
---|
2963 | [in] const FLOAT ColorRGBA[4]);
|
---|
2964 | void ClearUnorderedAccessViewUint(
|
---|
2965 | [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
|
---|
2966 | [in] const UINT Values[4]);
|
---|
2967 | void ClearUnorderedAccessViewFloat(
|
---|
2968 | [in] ID3D11UnorderedAccessView *pUnorderedAccessView,
|
---|
2969 | [in] const FLOAT Values[4]);
|
---|
2970 | void ClearDepthStencilView(
|
---|
2971 | [in] ID3D11DepthStencilView *pDepthStencilView,
|
---|
2972 | [in] UINT ClearFlags,
|
---|
2973 | [in] FLOAT Depth,
|
---|
2974 | [in] UINT8 Stencil);
|
---|
2975 | void GenerateMips(
|
---|
2976 | [in] ID3D11ShaderResourceView *pShaderResourceView);
|
---|
2977 | void SetResourceMinLOD(
|
---|
2978 | [in] ID3D11Resource *pResource, FLOAT MinLOD);
|
---|
2979 | FLOAT GetResourceMinLOD(
|
---|
2980 | [in] ID3D11Resource *pResource);
|
---|
2981 | void ResolveSubresource(
|
---|
2982 | [in] ID3D11Resource *pDstResource,
|
---|
2983 | [in] UINT DstSubresource,
|
---|
2984 | [in] ID3D11Resource *pSrcResource,
|
---|
2985 | [in] UINT SrcSubresource,
|
---|
2986 | [in] DXGI_FORMAT Format);
|
---|
2987 | void ExecuteCommandList(
|
---|
2988 | [in] ID3D11CommandList *pCommandList,
|
---|
2989 | BOOL RestoreContextState);
|
---|
2990 | void HSSetShaderResources(
|
---|
2991 | [in] UINT StartSlot,
|
---|
2992 | [in] UINT NumViews,
|
---|
2993 | [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
|
---|
2994 | void HSSetShader(
|
---|
2995 | [in] ID3D11HullShader *pHullShader,
|
---|
2996 | [in] ID3D11ClassInstance *const *ppClassInstances,
|
---|
2997 | UINT NumClassInstances);
|
---|
2998 | void HSSetSamplers(
|
---|
2999 | [in] UINT StartSlot,
|
---|
3000 | [in] UINT NumSamplers,
|
---|
3001 | [in] ID3D11SamplerState *const *ppSamplers);
|
---|
3002 | void HSSetConstantBuffers(
|
---|
3003 | [in] UINT StartSlot,
|
---|
3004 | [in] UINT NumBuffers,
|
---|
3005 | [in] ID3D11Buffer *const *ppConstantBuffers);
|
---|
3006 | void DSSetShaderResources(
|
---|
3007 | [in] UINT StartSlot,
|
---|
3008 | [in] UINT NumViews,
|
---|
3009 | [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
|
---|
3010 | void DSSetShader(
|
---|
3011 | [in] ID3D11DomainShader *pDomainShader,
|
---|
3012 | [in] ID3D11ClassInstance *const *ppClassInstances,
|
---|
3013 | UINT NumClassInstances);
|
---|
3014 | void DSSetSamplers(
|
---|
3015 | [in] UINT StartSlot,
|
---|
3016 | [in] UINT NumSamplers,
|
---|
3017 | [in] ID3D11SamplerState *const *ppSamplers);
|
---|
3018 | void DSSetConstantBuffers(
|
---|
3019 | [in] UINT StartSlot,
|
---|
3020 | [in] UINT NumBuffers,
|
---|
3021 | [in] ID3D11Buffer *const *ppConstantBuffers);
|
---|
3022 | void CSSetShaderResources(
|
---|
3023 | [in] UINT StartSlot,
|
---|
3024 | [in] UINT NumViews,
|
---|
3025 | [in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
|
---|
3026 | void CSSetUnorderedAccessViews(
|
---|
3027 | [in] UINT StartSlot,
|
---|
3028 | [in] UINT NumUAVs,
|
---|
3029 | [in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
|
---|
3030 | [in] const UINT *pUAVInitialCounts);
|
---|
3031 | void CSSetShader(
|
---|
3032 | [in] ID3D11ComputeShader *pComputeShader,
|
---|
3033 | [in] ID3D11ClassInstance *const *ppClassInstances,
|
---|
3034 | UINT NumClassInstances);
|
---|
3035 | void CSSetSamplers(
|
---|
3036 | [in] UINT StartSlot,
|
---|
3037 | [in] UINT NumSamplers,
|
---|
3038 | [in] ID3D11SamplerState *const *ppSamplers);
|
---|
3039 | void CSSetConstantBuffers(
|
---|
3040 | [in] UINT StartSlot,
|
---|
3041 | [in] UINT NumBuffers,
|
---|
3042 | [in] ID3D11Buffer *const *ppConstantBuffers);
|
---|
3043 | void VSGetConstantBuffers(
|
---|
3044 | [in] UINT StartSlot,
|
---|
3045 | [in] UINT NumBuffers,
|
---|
3046 | [out] ID3D11Buffer **ppConstantBuffers);
|
---|
3047 | void PSGetShaderResources(
|
---|
3048 | [in] UINT StartSlot,
|
---|
3049 | [in] UINT NumViews,
|
---|
3050 | [out] ID3D11ShaderResourceView **ppShaderResourceViews);
|
---|
3051 | void PSGetShader(
|
---|
3052 | [out] ID3D11PixelShader **ppPixelShader,
|
---|
3053 | [out] ID3D11ClassInstance **ppClassInstances,
|
---|
3054 | [in, out] UINT *pNumClassInstances);
|
---|
3055 | void PSGetSamplers(
|
---|
3056 | [in] UINT StartSlot,
|
---|
3057 | [in] UINT NumSamplers,
|
---|
3058 | [out] ID3D11SamplerState **ppSamplers);
|
---|
3059 | void VSGetShader(
|
---|
3060 | [out] ID3D11VertexShader **ppVertexShader,
|
---|
3061 | [out] ID3D11ClassInstance **ppClassInstances,
|
---|
3062 | [in, out] UINT *pNumClassInstances);
|
---|
3063 | void PSGetConstantBuffers(
|
---|
3064 | [in] UINT StartSlot,
|
---|
3065 | [in] UINT NumBuffers,
|
---|
3066 | [out] ID3D11Buffer **ppConstantBuffers);
|
---|
3067 | void IAGetInputLayout(
|
---|
3068 | [out] ID3D11InputLayout **ppInputLayout);
|
---|
3069 | void IAGetVertexBuffers(
|
---|
3070 | [in] UINT StartSlot,
|
---|
3071 | [in] UINT NumBuffers,
|
---|
3072 | [out] ID3D11Buffer **ppVertexBuffers,
|
---|
3073 | [out] UINT *pStrides,
|
---|
3074 | [out] UINT *pOffsets);
|
---|
3075 | void IAGetIndexBuffer(
|
---|
3076 | [out] ID3D11Buffer **pIndexBuffer,
|
---|
3077 | [out] DXGI_FORMAT* Format,
|
---|
3078 | [out] UINT* Offset);
|
---|
3079 | void GSGetConstantBuffers(
|
---|
3080 | [in] UINT StartSlot,
|
---|
3081 | [in] UINT NumBuffers,
|
---|
3082 | [out] ID3D11Buffer **ppConstantBuffers);
|
---|
3083 | void GSGetShader(
|
---|
3084 | [out] ID3D11GeometryShader **ppGeometryShader,
|
---|
3085 | [out] ID3D11ClassInstance **ppClassInstances,
|
---|
3086 | [in, out] UINT *pNumClassInstances);
|
---|
3087 | void IAGetPrimitiveTopology(
|
---|
3088 | [out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
|
---|
3089 | void VSGetShaderResources(
|
---|
3090 | [in] UINT StartSlot,
|
---|
3091 | [in] UINT NumViews,
|
---|
3092 | [out] ID3D11ShaderResourceView **ppShaderResourceViews);
|
---|
3093 | void VSGetSamplers(
|
---|
3094 | [in] UINT StartSlot,
|
---|
3095 | [in] UINT NumSamplers,
|
---|
3096 | [out] ID3D11SamplerState **ppSamplers);
|
---|
3097 | void GetPredication(
|
---|
3098 | [out] ID3D11Predicate **ppPredicate,
|
---|
3099 | [out] BOOL *pPredicateValue);
|
---|
3100 | void GSGetShaderResources(
|
---|
3101 | [in] UINT StartSlot,
|
---|
3102 | [in] UINT NumViews,
|
---|
3103 | [out] ID3D11ShaderResourceView **ppShaderResourceViews);
|
---|
3104 | void GSGetSamplers(
|
---|
3105 | [in] UINT StartSlot,
|
---|
3106 | [in] UINT NumSamplers,
|
---|
3107 | [out] ID3D11SamplerState **ppSamplers);
|
---|
3108 | void OMGetRenderTargets(
|
---|
3109 | [in] UINT NumViews,
|
---|
3110 | [out] ID3D11RenderTargetView **ppRenderTargetViews,
|
---|
3111 | [out] ID3D11DepthStencilView **ppDepthStencilView);
|
---|
3112 | void OMGetRenderTargetsAndUnorderedAccessViews(
|
---|
3113 | [in] UINT NumRTVs,
|
---|
3114 | [out] ID3D11RenderTargetView **ppRenderTargetViews,
|
---|
3115 | [out] ID3D11DepthStencilView **ppDepthStencilView,
|
---|
3116 | [in] UINT UAVStartSlot,
|
---|
3117 | [in] UINT NumUAVs,
|
---|
3118 | [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
|
---|
3119 | void OMGetBlendState(
|
---|
3120 | [out] ID3D11BlendState **ppBlendState,
|
---|
3121 | [out] FLOAT BlendFactor[4],
|
---|
3122 | [out] UINT *pSampleMask);
|
---|
3123 | void OMGetDepthStencilState(
|
---|
3124 | [out] ID3D11DepthStencilState **ppDepthStencilState,
|
---|
3125 | [out] UINT *pStencilRef);
|
---|
3126 | void SOGetTargets(
|
---|
3127 | [in] UINT NumBuffers,
|
---|
3128 | [out] ID3D11Buffer **ppSOTargets);
|
---|
3129 | void RSGetState(
|
---|
3130 | [out] ID3D11RasterizerState **ppRasterizerState);
|
---|
3131 | void RSGetViewports(
|
---|
3132 | [in, out] UINT *pNumViewports,
|
---|
3133 | [out] D3D11_VIEWPORT *pViewports);
|
---|
3134 | void RSGetScissorRects(
|
---|
3135 | [in, out] UINT *pNumRects,
|
---|
3136 | [out] D3D11_RECT *pRects);
|
---|
3137 | void HSGetShaderResources(
|
---|
3138 | [in] UINT StartSlot,
|
---|
3139 | [in] UINT NumViews,
|
---|
3140 | [out] ID3D11ShaderResourceView **ppShaderResourceViews);
|
---|
3141 | void HSGetShader(
|
---|
3142 | [out] ID3D11HullShader **ppHullShader,
|
---|
3143 | [out] ID3D11ClassInstance **ppClassInstances,
|
---|
3144 | [in, out] UINT *pNumClassInstances);
|
---|
3145 | void HSGetSamplers(
|
---|
3146 | [in] UINT StartSlot,
|
---|
3147 | [in] UINT NumSamplers,
|
---|
3148 | [out] ID3D11SamplerState **ppSamplers);
|
---|
3149 | void HSGetConstantBuffers(
|
---|
3150 | [in] UINT StartSlot,
|
---|
3151 | [in] UINT NumBuffers,
|
---|
3152 | [out] ID3D11Buffer **ppConstantBuffers);
|
---|
3153 | void DSGetShaderResources(
|
---|
3154 | [in] UINT StartSlot,
|
---|
3155 | [in] UINT NumViews,
|
---|
3156 | [out] ID3D11ShaderResourceView **ppShaderResourceViews);
|
---|
3157 | void DSGetShader(
|
---|
3158 | [out] ID3D11DomainShader **ppDomainShader,
|
---|
3159 | [out] ID3D11ClassInstance **ppClassInstances,
|
---|
3160 | [in, out] UINT *pNumClassInstances);
|
---|
3161 | void DSGetSamplers(
|
---|
3162 | [in] UINT StartSlot,
|
---|
3163 | [in] UINT NumSamplers,
|
---|
3164 | [out] ID3D11SamplerState **ppSamplers);
|
---|
3165 | void DSGetConstantBuffers(
|
---|
3166 | [in] UINT StartSlot,
|
---|
3167 | [in] UINT NumBuffers,
|
---|
3168 | [out] ID3D11Buffer **ppConstantBuffers);
|
---|
3169 | void CSGetShaderResources(
|
---|
3170 | [in] UINT StartSlot,
|
---|
3171 | [in] UINT NumViews,
|
---|
3172 | [out] ID3D11ShaderResourceView **ppShaderResourceViews);
|
---|
3173 | void CSGetUnorderedAccessViews(
|
---|
3174 | [in] UINT StartSlot,
|
---|
3175 | [in] UINT NumUAVs,
|
---|
3176 | [out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
|
---|
3177 | void CSGetShader(
|
---|
3178 | [out] ID3D11ComputeShader **ppComputeShader,
|
---|
3179 | [out] ID3D11ClassInstance **ppClassInstances,
|
---|
3180 | [in, out] UINT *pNumClassInstances);
|
---|
3181 | void CSGetSamplers(
|
---|
3182 | [in] UINT StartSlot,
|
---|
3183 | [in] UINT NumSamplers,
|
---|
3184 | [out] ID3D11SamplerState **ppSamplers);
|
---|
3185 | void CSGetConstantBuffers(
|
---|
3186 | [in] UINT StartSlot,
|
---|
3187 | [in] UINT NumBuffers,
|
---|
3188 | [out] ID3D11Buffer **ppConstantBuffers);
|
---|
3189 | void ClearState();
|
---|
3190 | void Flush();
|
---|
3191 | D3D11_DEVICE_CONTEXT_TYPE GetType();
|
---|
3192 | UINT GetContextFlags();
|
---|
3193 | HRESULT FinishCommandList(
|
---|
3194 | BOOL RestoreDeferredContextState,
|
---|
3195 | [out] ID3D11CommandList **ppCommandList);
|
---|
3196 | }
|
---|
3197 |
|
---|
3198 | [
|
---|
3199 | object,
|
---|
3200 | uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
|
---|
3201 | local,
|
---|
3202 | pointer_default(unique)
|
---|
3203 | ]
|
---|
3204 | interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
|
---|
3205 | {
|
---|
3206 | HRESULT GetCertificateSize(
|
---|
3207 | UINT *pCertificateSize);
|
---|
3208 | HRESULT GetCertificate(
|
---|
3209 | UINT CertificateSize,
|
---|
3210 | BYTE *pCertificate);
|
---|
3211 | void GetChannelHandle(
|
---|
3212 | HANDLE *pChannelHandle);
|
---|
3213 | }
|
---|
3214 |
|
---|
3215 | [
|
---|
3216 | object,
|
---|
3217 | uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
|
---|
3218 | local,
|
---|
3219 | pointer_default(unique)
|
---|
3220 | ]
|
---|
3221 | interface ID3D11CryptoSession : ID3D11DeviceChild
|
---|
3222 | {
|
---|
3223 | void GetCryptoType(
|
---|
3224 | GUID *pCryptoType);
|
---|
3225 | void GetDecoderProfile(
|
---|
3226 | GUID *pDecoderProfile);
|
---|
3227 | HRESULT GetCertificateSize(
|
---|
3228 | UINT *pCertificateSize);
|
---|
3229 | HRESULT GetCertificate(
|
---|
3230 | UINT CertificateSize,
|
---|
3231 | BYTE *pCertificate);
|
---|
3232 | void GetCryptoSessionHandle(
|
---|
3233 | HANDLE *pCryptoSessionHandle);
|
---|
3234 | }
|
---|
3235 |
|
---|
3236 | [
|
---|
3237 | object,
|
---|
3238 | uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
|
---|
3239 | local,
|
---|
3240 | pointer_default(unique)
|
---|
3241 | ]
|
---|
3242 | interface ID3D11VideoDecoder : ID3D11DeviceChild
|
---|
3243 | {
|
---|
3244 | HRESULT GetCreationParameters(
|
---|
3245 | D3D11_VIDEO_DECODER_DESC *pVideoDesc,
|
---|
3246 | D3D11_VIDEO_DECODER_CONFIG *pConfig);
|
---|
3247 | HRESULT GetDriverHandle(
|
---|
3248 | HANDLE *pDriverHandle);
|
---|
3249 | }
|
---|
3250 |
|
---|
3251 | [
|
---|
3252 | object,
|
---|
3253 | uuid(31627037-53ab-4200-9061-05faa9ab45f9),
|
---|
3254 | local,
|
---|
3255 | pointer_default(unique)
|
---|
3256 | ]
|
---|
3257 | interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
|
---|
3258 | {
|
---|
3259 | HRESULT GetVideoProcessorContentDesc(
|
---|
3260 | D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
|
---|
3261 | HRESULT CheckVideoProcessorFormat(
|
---|
3262 | DXGI_FORMAT Format,
|
---|
3263 | UINT *pFlags);
|
---|
3264 | HRESULT GetVideoProcessorCaps(
|
---|
3265 | D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
|
---|
3266 | HRESULT GetVideoProcessorRateConversionCaps(
|
---|
3267 | UINT TypeIndex,
|
---|
3268 | D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
|
---|
3269 | HRESULT GetVideoProcessorCustomRate(
|
---|
3270 | UINT TypeIndex,
|
---|
3271 | UINT CustomRateIndex,
|
---|
3272 | D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
|
---|
3273 | HRESULT GetVideoProcessorFilterRange(
|
---|
3274 | D3D11_VIDEO_PROCESSOR_FILTER Filter,
|
---|
3275 | D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
|
---|
3276 | }
|
---|
3277 |
|
---|
3278 | [
|
---|
3279 | object,
|
---|
3280 | uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
|
---|
3281 | local,
|
---|
3282 | pointer_default(unique)
|
---|
3283 | ]
|
---|
3284 | interface ID3D11VideoProcessor : ID3D11DeviceChild
|
---|
3285 | {
|
---|
3286 | void GetContentDesc(
|
---|
3287 | D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
|
---|
3288 | void GetRateConversionCaps(
|
---|
3289 | D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
|
---|
3290 | }
|
---|
3291 |
|
---|
3292 | [
|
---|
3293 | object,
|
---|
3294 | uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
|
---|
3295 | local,
|
---|
3296 | pointer_default(unique)
|
---|
3297 | ]
|
---|
3298 | interface ID3D11VideoDecoderOutputView : ID3D11View
|
---|
3299 | {
|
---|
3300 | void GetDesc(
|
---|
3301 | D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
|
---|
3302 | }
|
---|
3303 |
|
---|
3304 | [
|
---|
3305 | object,
|
---|
3306 | uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
|
---|
3307 | local,
|
---|
3308 | pointer_default(unique)
|
---|
3309 | ]
|
---|
3310 | interface ID3D11VideoProcessorInputView : ID3D11View
|
---|
3311 | {
|
---|
3312 | void GetDesc(
|
---|
3313 | D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
|
---|
3314 | }
|
---|
3315 |
|
---|
3316 | [
|
---|
3317 | object,
|
---|
3318 | uuid(a048285e-25a9-4527-bd93-d68b68c44254),
|
---|
3319 | local,
|
---|
3320 | pointer_default(unique)
|
---|
3321 | ]
|
---|
3322 | interface ID3D11VideoProcessorOutputView : ID3D11View
|
---|
3323 | {
|
---|
3324 | void GetDesc(
|
---|
3325 | D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
|
---|
3326 | }
|
---|
3327 |
|
---|
3328 | [
|
---|
3329 | object,
|
---|
3330 | uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
|
---|
3331 | local,
|
---|
3332 | pointer_default(unique)
|
---|
3333 | ]
|
---|
3334 | interface ID3D11VideoDevice : IUnknown
|
---|
3335 | {
|
---|
3336 | HRESULT CreateVideoDecoder(
|
---|
3337 | const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
|
---|
3338 | const D3D11_VIDEO_DECODER_CONFIG *pConfig,
|
---|
3339 | ID3D11VideoDecoder **ppDecoder);
|
---|
3340 | HRESULT CreateVideoProcessor(
|
---|
3341 | ID3D11VideoProcessorEnumerator *pEnum,
|
---|
3342 | UINT RateConversionIndex,
|
---|
3343 | ID3D11VideoProcessor **ppVideoProcessor);
|
---|
3344 | HRESULT CreateAuthenticatedChannel(
|
---|
3345 | D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
|
---|
3346 | ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
|
---|
3347 | HRESULT CreateCryptoSession(
|
---|
3348 | const GUID *pCryptoType,
|
---|
3349 | const GUID *pDecoderProfile,
|
---|
3350 | const GUID *pKeyExchangeType,
|
---|
3351 | ID3D11CryptoSession **ppCryptoSession);
|
---|
3352 | HRESULT CreateVideoDecoderOutputView(
|
---|
3353 | ID3D11Resource *pResource,
|
---|
3354 | const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
|
---|
3355 | ID3D11VideoDecoderOutputView **ppVDOVView);
|
---|
3356 | HRESULT CreateVideoProcessorInputView(
|
---|
3357 | ID3D11Resource *pResource,
|
---|
3358 | ID3D11VideoProcessorEnumerator *pEnum,
|
---|
3359 | const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
|
---|
3360 | ID3D11VideoProcessorInputView **ppVPIView);
|
---|
3361 | HRESULT CreateVideoProcessorOutputView(
|
---|
3362 | ID3D11Resource *pResource,
|
---|
3363 | ID3D11VideoProcessorEnumerator *pEnum,
|
---|
3364 | const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
|
---|
3365 | ID3D11VideoProcessorOutputView **ppVPOView);
|
---|
3366 | HRESULT CreateVideoProcessorEnumerator(
|
---|
3367 | const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
|
---|
3368 | ID3D11VideoProcessorEnumerator **ppEnum);
|
---|
3369 | UINT GetVideoDecoderProfileCount();
|
---|
3370 | HRESULT GetVideoDecoderProfile(
|
---|
3371 | UINT Index,
|
---|
3372 | GUID *pDecoderProfile);
|
---|
3373 | HRESULT CheckVideoDecoderFormat(
|
---|
3374 | const GUID *pDecoderProfile,
|
---|
3375 | DXGI_FORMAT Format,
|
---|
3376 | BOOL *pSupported);
|
---|
3377 | HRESULT GetVideoDecoderConfigCount(
|
---|
3378 | const D3D11_VIDEO_DECODER_DESC *pDesc,
|
---|
3379 | UINT *pCount);
|
---|
3380 | HRESULT GetVideoDecoderConfig(
|
---|
3381 | const D3D11_VIDEO_DECODER_DESC *pDesc,
|
---|
3382 | UINT Index,
|
---|
3383 | D3D11_VIDEO_DECODER_CONFIG *pConfig);
|
---|
3384 | HRESULT GetContentProtectionCaps(
|
---|
3385 | const GUID *pCryptoType,
|
---|
3386 | const GUID *pDecoderProfile,
|
---|
3387 | D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
|
---|
3388 | HRESULT CheckCryptoKeyExchange(
|
---|
3389 | const GUID *pCryptoType,
|
---|
3390 | const GUID *pDecoderProfile,
|
---|
3391 | UINT Index,
|
---|
3392 | GUID *pKeyExchangeType);
|
---|
3393 | HRESULT SetPrivateData(
|
---|
3394 | REFGUID guid,
|
---|
3395 | UINT DataSize,
|
---|
3396 | const void *pData);
|
---|
3397 | HRESULT SetPrivateDataInterface(
|
---|
3398 | REFGUID guid,
|
---|
3399 | const IUnknown *pData);
|
---|
3400 | }
|
---|
3401 |
|
---|
3402 | [
|
---|
3403 | object,
|
---|
3404 | uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
|
---|
3405 | local,
|
---|
3406 | pointer_default(unique)
|
---|
3407 | ]
|
---|
3408 | interface ID3D11VideoContext : ID3D11DeviceChild
|
---|
3409 | {
|
---|
3410 | HRESULT GetDecoderBuffer(
|
---|
3411 | [in] ID3D11VideoDecoder *decoder,
|
---|
3412 | [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
|
---|
3413 | [out] UINT *buffer_size,
|
---|
3414 | [out] void **buffer
|
---|
3415 | );
|
---|
3416 | HRESULT ReleaseDecoderBuffer(
|
---|
3417 | [in] ID3D11VideoDecoder *decoder,
|
---|
3418 | [in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
|
---|
3419 | );
|
---|
3420 | HRESULT DecoderBeginFrame(
|
---|
3421 | [in] ID3D11VideoDecoder *decoder,
|
---|
3422 | [in] ID3D11VideoDecoderOutputView *view,
|
---|
3423 | [in] UINT key_size,
|
---|
3424 | [in] const void *key
|
---|
3425 | );
|
---|
3426 | HRESULT DecoderEndFrame(
|
---|
3427 | [in] ID3D11VideoDecoder *decoder
|
---|
3428 | );
|
---|
3429 | HRESULT SubmitDecoderBuffers(
|
---|
3430 | [in] ID3D11VideoDecoder *decoder,
|
---|
3431 | [in] UINT buffers_count,
|
---|
3432 | [in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
|
---|
3433 | );
|
---|
3434 | HRESULT DecoderExtension(
|
---|
3435 | [in] ID3D11VideoDecoder *decoder,
|
---|
3436 | [in] const D3D11_VIDEO_DECODER_EXTENSION *extension
|
---|
3437 | );
|
---|
3438 | void VideoProcessorSetOutputTargetRect(
|
---|
3439 | [in] ID3D11VideoProcessor *processor,
|
---|
3440 | [in] BOOL enable,
|
---|
3441 | [in] const RECT *rect
|
---|
3442 | );
|
---|
3443 | void VideoProcessorSetOutputBackgroundColor(
|
---|
3444 | [in] ID3D11VideoProcessor *processor,
|
---|
3445 | [in] BOOL y_cb_cr,
|
---|
3446 | [in] const D3D11_VIDEO_COLOR *color
|
---|
3447 | );
|
---|
3448 | void VideoProcessorSetOutputColorSpace(
|
---|
3449 | [in] ID3D11VideoProcessor *processor,
|
---|
3450 | [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
|
---|
3451 | );
|
---|
3452 | void VideoProcessorSetOutputAlphaFillMode(
|
---|
3453 | [in] ID3D11VideoProcessor *processor,
|
---|
3454 | [in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
|
---|
3455 | [in] UINT stream_idx
|
---|
3456 | );
|
---|
3457 | void VideoProcessorSetOutputConstriction(
|
---|
3458 | [in] ID3D11VideoProcessor *processor,
|
---|
3459 | [in] BOOL enable,
|
---|
3460 | [in] SIZE size
|
---|
3461 | );
|
---|
3462 | void VideoProcessorSetOutputStereoMode(
|
---|
3463 | [in] ID3D11VideoProcessor *processor,
|
---|
3464 | [in] BOOL enable
|
---|
3465 | );
|
---|
3466 | HRESULT VideoProcessorSetOutputExtension(
|
---|
3467 | [in] ID3D11VideoProcessor *processor,
|
---|
3468 | [in] const GUID *guid,
|
---|
3469 | [in] UINT data_size,
|
---|
3470 | [in] void *data
|
---|
3471 | );
|
---|
3472 | void VideoProcessorGetOutputTargetRect(
|
---|
3473 | [in] ID3D11VideoProcessor *processor,
|
---|
3474 | [out] BOOL *enabled,
|
---|
3475 | [out] RECT *rect
|
---|
3476 | );
|
---|
3477 | void VideoProcessorGetOutputBackgroundColor(
|
---|
3478 | [in] ID3D11VideoProcessor *processor,
|
---|
3479 | [out] BOOL *y_cb_cr,
|
---|
3480 | [out] D3D11_VIDEO_COLOR *color
|
---|
3481 | );
|
---|
3482 | void VideoProcessorGetOutputColorSpace(
|
---|
3483 | [in] ID3D11VideoProcessor *processor,
|
---|
3484 | [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
|
---|
3485 | );
|
---|
3486 | void VideoProcessorGetOutputAlphaFillMode(
|
---|
3487 | [in] ID3D11VideoProcessor *processor,
|
---|
3488 | [out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
|
---|
3489 | [out] UINT *stream_idx
|
---|
3490 | );
|
---|
3491 | void VideoProcessorGetOutputConstriction(
|
---|
3492 | [in] ID3D11VideoProcessor *processor,
|
---|
3493 | [out] BOOL *enabled,
|
---|
3494 | [out] SIZE *size
|
---|
3495 | );
|
---|
3496 | void VideoProcessorGetOutputStereoMode(
|
---|
3497 | [in] ID3D11VideoProcessor *processor,
|
---|
3498 | [out] BOOL *enabled
|
---|
3499 | );
|
---|
3500 | HRESULT VideoProcessorGetOutputExtension(
|
---|
3501 | [in] ID3D11VideoProcessor *processor,
|
---|
3502 | [in] const GUID *guid,
|
---|
3503 | [in] UINT data_size,
|
---|
3504 | [out] void *data
|
---|
3505 | );
|
---|
3506 | void VideoProcessorSetStreamFrameFormat(
|
---|
3507 | [in] ID3D11VideoProcessor *processor,
|
---|
3508 | [in] UINT stream_idx,
|
---|
3509 | [in] D3D11_VIDEO_FRAME_FORMAT format
|
---|
3510 | );
|
---|
3511 | void VideoProcessorSetStreamColorSpace(
|
---|
3512 | [in] ID3D11VideoProcessor *processor,
|
---|
3513 | [in] UINT stream_idx,
|
---|
3514 | [in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
|
---|
3515 | );
|
---|
3516 | void VideoProcessorSetStreamOutputRate(
|
---|
3517 | [in] ID3D11VideoProcessor *processor,
|
---|
3518 | [in] UINT stream_idx,
|
---|
3519 | [in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
|
---|
3520 | [in] BOOL repeat,
|
---|
3521 | [in] const DXGI_RATIONAL *custom_rate
|
---|
3522 | );
|
---|
3523 | void VideoProcessorSetStreamSourceRect(
|
---|
3524 | [in] ID3D11VideoProcessor *processor,
|
---|
3525 | [in] UINT stream_idx,
|
---|
3526 | [in] BOOL enable,
|
---|
3527 | [in] const RECT *rect
|
---|
3528 | );
|
---|
3529 | void VideoProcessorSetStreamDestRect(
|
---|
3530 | [in] ID3D11VideoProcessor *processor,
|
---|
3531 | [in] UINT stream_idx,
|
---|
3532 | [in] BOOL enable,
|
---|
3533 | [in] const RECT *rect
|
---|
3534 | );
|
---|
3535 | void VideoProcessorSetStreamAlpha(
|
---|
3536 | [in] ID3D11VideoProcessor *processor,
|
---|
3537 | [in] UINT stream_idx,
|
---|
3538 | [in] BOOL enable,
|
---|
3539 | [in] float alpha
|
---|
3540 | );
|
---|
3541 | void VideoProcessorSetStreamPalette(
|
---|
3542 | [in] ID3D11VideoProcessor *processor,
|
---|
3543 | [in] UINT stream_idx,
|
---|
3544 | [in] UINT entry_count,
|
---|
3545 | [in] const UINT *entries
|
---|
3546 | );
|
---|
3547 | void VideoProcessorSetStreamPixelAspectRatio(
|
---|
3548 | [in] ID3D11VideoProcessor *processor,
|
---|
3549 | [in] UINT stream_idx,
|
---|
3550 | [in] BOOL enable,
|
---|
3551 | [in] const DXGI_RATIONAL *src_aspect_ratio,
|
---|
3552 | [in] const DXGI_RATIONAL *dst_aspect_ratio
|
---|
3553 | );
|
---|
3554 | void VideoProcessorSetStreamLumaKey(
|
---|
3555 | [in] ID3D11VideoProcessor *processor,
|
---|
3556 | [in] UINT stream_idx,
|
---|
3557 | [in] BOOL enable,
|
---|
3558 | [in] float lower,
|
---|
3559 | [in] float upper
|
---|
3560 | );
|
---|
3561 | void VideoProcessorSetStreamStereoFormat(
|
---|
3562 | [in] ID3D11VideoProcessor *processor,
|
---|
3563 | [in] UINT stream_idx,
|
---|
3564 | [in] BOOL enable,
|
---|
3565 | [in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
|
---|
3566 | [in] BOOL left_view_frame0,
|
---|
3567 | [in] BOOL base_view_frame0,
|
---|
3568 | [in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
|
---|
3569 | [in] int mono_offset
|
---|
3570 | );
|
---|
3571 | void VideoProcessorSetStreamAutoProcessingMode(
|
---|
3572 | [in] ID3D11VideoProcessor *processor,
|
---|
3573 | [in] UINT stream_idx,
|
---|
3574 | [in] BOOL enable
|
---|
3575 | );
|
---|
3576 | void VideoProcessorSetStreamFilter(
|
---|
3577 | [in] ID3D11VideoProcessor *processor,
|
---|
3578 | [in] UINT stream_idx,
|
---|
3579 | [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
|
---|
3580 | [in] BOOL enable,
|
---|
3581 | [in] int level
|
---|
3582 | );
|
---|
3583 | HRESULT VideoProcessorSetStreamExtension(
|
---|
3584 | [in] ID3D11VideoProcessor *processor,
|
---|
3585 | [in] UINT stream_idx,
|
---|
3586 | [in] const GUID *guid,
|
---|
3587 | [in] UINT data_size,
|
---|
3588 | [in] void *data
|
---|
3589 | );
|
---|
3590 | void VideoProcessorGetStreamFrameFormat(
|
---|
3591 | [in] ID3D11VideoProcessor *processor,
|
---|
3592 | [in] UINT stream_idx,
|
---|
3593 | [out] D3D11_VIDEO_FRAME_FORMAT *format
|
---|
3594 | );
|
---|
3595 | void VideoProcessorGetStreamColorSpace(
|
---|
3596 | [in] ID3D11VideoProcessor *processor,
|
---|
3597 | [in] UINT stream_idx,
|
---|
3598 | [out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
|
---|
3599 | );
|
---|
3600 | void VideoProcessorGetStreamOutputRate(
|
---|
3601 | [in] ID3D11VideoProcessor *processor,
|
---|
3602 | [in] UINT stream_idx,
|
---|
3603 | [out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
|
---|
3604 | [out] BOOL *repeat,
|
---|
3605 | [out] DXGI_RATIONAL *custom_rate
|
---|
3606 | );
|
---|
3607 | void VideoProcessorGetStreamSourceRect(
|
---|
3608 | [in] ID3D11VideoProcessor *processor,
|
---|
3609 | [in] UINT stream_idx,
|
---|
3610 | [out] BOOL *enabled,
|
---|
3611 | [out] RECT *rect
|
---|
3612 | );
|
---|
3613 | void VideoProcessorGetStreamDestRect(
|
---|
3614 | [in] ID3D11VideoProcessor *processor,
|
---|
3615 | [in] UINT stream_idx,
|
---|
3616 | [out] BOOL *enabled,
|
---|
3617 | [out] RECT *rect
|
---|
3618 | );
|
---|
3619 | void VideoProcessorGetStreamAlpha(
|
---|
3620 | [in] ID3D11VideoProcessor *processor,
|
---|
3621 | [in] UINT stream_idx,
|
---|
3622 | [out] BOOL *enabled,
|
---|
3623 | [out] float *alpha
|
---|
3624 | );
|
---|
3625 | void VideoProcessorGetStreamPalette(
|
---|
3626 | [in] ID3D11VideoProcessor *processor,
|
---|
3627 | [in] UINT stream_idx,
|
---|
3628 | [in] UINT entry_count,
|
---|
3629 | [out] UINT *entries
|
---|
3630 | );
|
---|
3631 | void VideoProcessorGetStreamPixelAspectRatio(
|
---|
3632 | [in] ID3D11VideoProcessor *processor,
|
---|
3633 | [in] UINT stream_idx,
|
---|
3634 | [out] BOOL *enabled,
|
---|
3635 | [out] DXGI_RATIONAL *src_aspect_ratio,
|
---|
3636 | [out] DXGI_RATIONAL *dst_aspect_ratio
|
---|
3637 | );
|
---|
3638 | void VideoProcessorGetStreamLumaKey(
|
---|
3639 | [in] ID3D11VideoProcessor *processor,
|
---|
3640 | [in] UINT stream_idx,
|
---|
3641 | [out] BOOL *enabled,
|
---|
3642 | [out] float *lower,
|
---|
3643 | [out] float *upper
|
---|
3644 | );
|
---|
3645 | void VideoProcessorGetStreamStereoFormat(
|
---|
3646 | [in] ID3D11VideoProcessor *processor,
|
---|
3647 | [in] UINT stream_idx,
|
---|
3648 | [out] BOOL *enabled,
|
---|
3649 | [out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
|
---|
3650 | [out] BOOL *left_view_frame0,
|
---|
3651 | [out] BOOL *base_view_frame0,
|
---|
3652 | [out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
|
---|
3653 | [out] int *mono_offset
|
---|
3654 | );
|
---|
3655 | void VideoProcessorGetStreamAutoProcessingMode(
|
---|
3656 | [in] ID3D11VideoProcessor *processor,
|
---|
3657 | [in] UINT stream_idx,
|
---|
3658 | [out] BOOL *enabled
|
---|
3659 | );
|
---|
3660 | void VideoProcessorGetStreamFilter(
|
---|
3661 | [in] ID3D11VideoProcessor *processor,
|
---|
3662 | [in] UINT stream_idx,
|
---|
3663 | [in] D3D11_VIDEO_PROCESSOR_FILTER filter,
|
---|
3664 | [out] BOOL *enabled,
|
---|
3665 | [out] int *level
|
---|
3666 | );
|
---|
3667 | HRESULT VideoProcessorGetStreamExtension(
|
---|
3668 | [in] ID3D11VideoProcessor *processor,
|
---|
3669 | [in] UINT stream_idx,
|
---|
3670 | [in] const GUID *guid,
|
---|
3671 | [in] UINT data_size,
|
---|
3672 | [out] void *data
|
---|
3673 | );
|
---|
3674 | HRESULT VideoProcessorBlt(
|
---|
3675 | [in] ID3D11VideoProcessor *processor,
|
---|
3676 | [in] ID3D11VideoProcessorOutputView *view,
|
---|
3677 | [in] UINT frame_idx,
|
---|
3678 | [in] UINT stream_count,
|
---|
3679 | [in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
|
---|
3680 | );
|
---|
3681 | HRESULT NegotiateCryptoSessionKeyExchange(
|
---|
3682 | [in] ID3D11CryptoSession *session,
|
---|
3683 | [in] UINT data_size,
|
---|
3684 | [in, out] void *data
|
---|
3685 | );
|
---|
3686 | void EncryptionBlt(
|
---|
3687 | [in] ID3D11CryptoSession *session,
|
---|
3688 | [in] ID3D11Texture2D *src_surface,
|
---|
3689 | [in] ID3D11Texture2D *dst_surface,
|
---|
3690 | [in] UINT iv_size,
|
---|
3691 | [in, out] void *iv
|
---|
3692 | );
|
---|
3693 | void DecryptionBlt(
|
---|
3694 | [in] ID3D11CryptoSession *session,
|
---|
3695 | [in] ID3D11Texture2D *src_surface,
|
---|
3696 | [in] ID3D11Texture2D *dst_surface,
|
---|
3697 | [in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
|
---|
3698 | [in] UINT key_size,
|
---|
3699 | [in] const void *key,
|
---|
3700 | [in] UINT iv_size,
|
---|
3701 | [in, out] void *iv
|
---|
3702 | );
|
---|
3703 | void StartSessionKeyRefresh(
|
---|
3704 | [in] ID3D11CryptoSession *session,
|
---|
3705 | [in] UINT random_number_size,
|
---|
3706 | [out] void *random_number
|
---|
3707 | );
|
---|
3708 | void FinishSessionKeyRefresh(
|
---|
3709 | [in] ID3D11CryptoSession *session
|
---|
3710 | );
|
---|
3711 | HRESULT GetEncryptionBltKey(
|
---|
3712 | [in] ID3D11CryptoSession *session,
|
---|
3713 | [in] UINT key_size,
|
---|
3714 | [out] void *key
|
---|
3715 | );
|
---|
3716 | HRESULT NegotiateAuthenticatedChannelKeyExchange(
|
---|
3717 | [in] ID3D11AuthenticatedChannel *channel,
|
---|
3718 | [in] UINT data_size,
|
---|
3719 | [in, out] void *data
|
---|
3720 | );
|
---|
3721 | HRESULT QueryAuthenticatedChannel(
|
---|
3722 | [in] ID3D11AuthenticatedChannel *channel,
|
---|
3723 | [in] UINT input_size,
|
---|
3724 | [in] const void *input,
|
---|
3725 | [in] UINT output_size,
|
---|
3726 | [out] void *output
|
---|
3727 | );
|
---|
3728 | HRESULT ConfigureAuthenticatedChannel(
|
---|
3729 | [in] ID3D11AuthenticatedChannel *channel,
|
---|
3730 | [in] UINT input_size,
|
---|
3731 | [in] const void *input,
|
---|
3732 | [out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
|
---|
3733 | );
|
---|
3734 | void VideoProcessorSetStreamRotation(
|
---|
3735 | [in] ID3D11VideoProcessor *processor,
|
---|
3736 | [in] UINT stream_idx,
|
---|
3737 | [in] BOOL enable,
|
---|
3738 | [in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
|
---|
3739 | );
|
---|
3740 | void VideoProcessorGetStreamRotation(
|
---|
3741 | [in] ID3D11VideoProcessor *processor,
|
---|
3742 | [in] UINT stream_idx,
|
---|
3743 | [out] BOOL *enable,
|
---|
3744 | [out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
|
---|
3745 | );
|
---|
3746 | }
|
---|
3747 |
|
---|
3748 | [
|
---|
3749 | object,
|
---|
3750 | local,
|
---|
3751 | uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
|
---|
3752 | ]
|
---|
3753 | interface ID3D11Device : IUnknown
|
---|
3754 | {
|
---|
3755 | HRESULT CreateBuffer(
|
---|
3756 | [in] const D3D11_BUFFER_DESC *pDesc,
|
---|
3757 | [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
|
---|
3758 | [out] ID3D11Buffer **ppBuffer);
|
---|
3759 | HRESULT CreateTexture1D(
|
---|
3760 | [in] const D3D11_TEXTURE1D_DESC *pDesc,
|
---|
3761 | [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
|
---|
3762 | [out] ID3D11Texture1D **ppTexture1D);
|
---|
3763 | HRESULT CreateTexture2D(
|
---|
3764 | [in] const D3D11_TEXTURE2D_DESC *pDesc,
|
---|
3765 | [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
|
---|
3766 | [out] ID3D11Texture2D **ppTexture2D);
|
---|
3767 | HRESULT CreateTexture3D(
|
---|
3768 | [in] const D3D11_TEXTURE3D_DESC *pDesc,
|
---|
3769 | [in] const D3D11_SUBRESOURCE_DATA *pInitialData,
|
---|
3770 | [out] ID3D11Texture3D **ppTexture3D);
|
---|
3771 | HRESULT CreateShaderResourceView(
|
---|
3772 | [in] ID3D11Resource *pResource,
|
---|
3773 | [in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
|
---|
3774 | [out] ID3D11ShaderResourceView **ppSRView);
|
---|
3775 | HRESULT CreateUnorderedAccessView(
|
---|
3776 | [in] ID3D11Resource *pResource,
|
---|
3777 | [in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
|
---|
3778 | [out] ID3D11UnorderedAccessView **ppUAView);
|
---|
3779 | HRESULT CreateRenderTargetView(
|
---|
3780 | [in] ID3D11Resource *pResource,
|
---|
3781 | [in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
|
---|
3782 | [out] ID3D11RenderTargetView **ppRTView);
|
---|
3783 | HRESULT CreateDepthStencilView(
|
---|
3784 | [in] ID3D11Resource *pResource,
|
---|
3785 | [in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
|
---|
3786 | [out] ID3D11DepthStencilView **ppDepthStencilView);
|
---|
3787 | HRESULT CreateInputLayout(
|
---|
3788 | [in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
|
---|
3789 | [in] UINT NumElements,
|
---|
3790 | [in] const void *pShaderBytecodeWithInputSignature,
|
---|
3791 | [in] SIZE_T BytecodeLength,
|
---|
3792 | [out] ID3D11InputLayout **ppInputLayout);
|
---|
3793 | HRESULT CreateVertexShader(
|
---|
3794 | [in] const void *pShaderBytecode,
|
---|
3795 | [in] SIZE_T BytecodeLength,
|
---|
3796 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3797 | [out] ID3D11VertexShader **ppVertexShader);
|
---|
3798 | HRESULT CreateGeometryShader(
|
---|
3799 | [in] const void *pShaderBytecode,
|
---|
3800 | [in] SIZE_T BytecodeLength,
|
---|
3801 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3802 | [out] ID3D11GeometryShader **ppGeometryShader);
|
---|
3803 | HRESULT CreateGeometryShaderWithStreamOutput(
|
---|
3804 | [in] const void *pShaderBytecode,
|
---|
3805 | [in] SIZE_T BytecodeLength,
|
---|
3806 | [in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
|
---|
3807 | [in] UINT NumEntries,
|
---|
3808 | [in] const UINT *pBufferStrides,
|
---|
3809 | [in] UINT NumStrides,
|
---|
3810 | [in] UINT RasterizedStream,
|
---|
3811 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3812 | [out] ID3D11GeometryShader **ppGeometryShader);
|
---|
3813 | HRESULT CreatePixelShader(
|
---|
3814 | [in] const void *pShaderBytecode,
|
---|
3815 | [in] SIZE_T BytecodeLength,
|
---|
3816 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3817 | [out] ID3D11PixelShader **ppPixelShader);
|
---|
3818 | HRESULT CreateHullShader(
|
---|
3819 | [in] const void *pShaderBytecode,
|
---|
3820 | [in] SIZE_T BytecodeLength,
|
---|
3821 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3822 | [out] ID3D11HullShader **ppHullShader);
|
---|
3823 | HRESULT CreateDomainShader(
|
---|
3824 | [in] const void *pShaderBytecode,
|
---|
3825 | [in] SIZE_T BytecodeLength,
|
---|
3826 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3827 | [out] ID3D11DomainShader **ppDomainShader);
|
---|
3828 | HRESULT CreateComputeShader(
|
---|
3829 | [in] const void *pShaderBytecode,
|
---|
3830 | [in] SIZE_T BytecodeLength,
|
---|
3831 | [in] ID3D11ClassLinkage *pClassLinkage,
|
---|
3832 | [out] ID3D11ComputeShader **ppComputeShader);
|
---|
3833 | HRESULT CreateClassLinkage(
|
---|
3834 | [out] ID3D11ClassLinkage **ppLinkage);
|
---|
3835 | HRESULT CreateBlendState(
|
---|
3836 | [in] const D3D11_BLEND_DESC *pBlendStateDesc,
|
---|
3837 | [out] ID3D11BlendState **ppBlendState);
|
---|
3838 | HRESULT CreateDepthStencilState(
|
---|
3839 | [in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
|
---|
3840 | [out] ID3D11DepthStencilState **ppDepthStencilState);
|
---|
3841 | HRESULT CreateRasterizerState(
|
---|
3842 | [in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
|
---|
3843 | [out] ID3D11RasterizerState **ppRasterizerState);
|
---|
3844 | HRESULT CreateSamplerState(
|
---|
3845 | [in] const D3D11_SAMPLER_DESC *pSamplerDesc,
|
---|
3846 | [out] ID3D11SamplerState **ppSamplerState);
|
---|
3847 | HRESULT CreateQuery(
|
---|
3848 | [in] const D3D11_QUERY_DESC *pQueryDesc,
|
---|
3849 | [out] ID3D11Query **ppQuery);
|
---|
3850 | HRESULT CreatePredicate(
|
---|
3851 | [in] const D3D11_QUERY_DESC *pPredicateDesc,
|
---|
3852 | [out] ID3D11Predicate **ppPredicate);
|
---|
3853 | HRESULT CreateCounter(
|
---|
3854 | [in] const D3D11_COUNTER_DESC *pCounterDesc,
|
---|
3855 | [out] ID3D11Counter **ppCounter);
|
---|
3856 | HRESULT CreateDeferredContext(
|
---|
3857 | UINT ContextFlags,
|
---|
3858 | [out] ID3D11DeviceContext **ppDeferredContext);
|
---|
3859 | HRESULT OpenSharedResource(
|
---|
3860 | [in] HANDLE hResource,
|
---|
3861 | [in] REFIID ReturnedInterface,
|
---|
3862 | [out] void **ppResource);
|
---|
3863 | HRESULT CheckFormatSupport(
|
---|
3864 | [in] DXGI_FORMAT Format,
|
---|
3865 | [out] UINT *pFormatSupport);
|
---|
3866 | HRESULT CheckMultisampleQualityLevels(
|
---|
3867 | [in] DXGI_FORMAT Format,
|
---|
3868 | [in] UINT SampleCount,
|
---|
3869 | [out] UINT *pNumQualityLevels);
|
---|
3870 | void CheckCounterInfo(
|
---|
3871 | [out] D3D11_COUNTER_INFO *pCounterInfo);
|
---|
3872 | HRESULT CheckCounter(
|
---|
3873 | [in] const D3D11_COUNTER_DESC *pDesc,
|
---|
3874 | [out] D3D11_COUNTER_TYPE *pType,
|
---|
3875 | [out] UINT *pActiveCounters,
|
---|
3876 | [out] LPSTR szName,
|
---|
3877 | [in, out] UINT *pNameLength,
|
---|
3878 | [out] LPSTR szUnits,
|
---|
3879 | [in, out] UINT *pUnitsLength,
|
---|
3880 | [out] LPSTR szDescription,
|
---|
3881 | [in, out] UINT *pDescriptionLength);
|
---|
3882 | HRESULT CheckFeatureSupport(
|
---|
3883 | D3D11_FEATURE Feature,
|
---|
3884 | [out] void *pFeatureSupportData,
|
---|
3885 | UINT FeatureSupportDataSize);
|
---|
3886 | HRESULT GetPrivateData(
|
---|
3887 | [in] REFGUID guid,
|
---|
3888 | [in, out] UINT *pDataSize,
|
---|
3889 | [out] void *pData);
|
---|
3890 | HRESULT SetPrivateData(
|
---|
3891 | [in] REFGUID guid,
|
---|
3892 | [in] UINT DataSize,
|
---|
3893 | [in] const void *pData);
|
---|
3894 | HRESULT SetPrivateDataInterface(
|
---|
3895 | [in] REFGUID guid,
|
---|
3896 | [in] const IUnknown *pData);
|
---|
3897 | D3D_FEATURE_LEVEL GetFeatureLevel();
|
---|
3898 | UINT GetCreationFlags();
|
---|
3899 | HRESULT GetDeviceRemovedReason();
|
---|
3900 | void GetImmediateContext(
|
---|
3901 | [out] ID3D11DeviceContext **ppImmediateContext);
|
---|
3902 | HRESULT SetExceptionMode(UINT RaiseFlags);
|
---|
3903 | UINT GetExceptionMode();
|
---|
3904 | }
|
---|
3905 |
|
---|
3906 | typedef enum D3D11_CREATE_DEVICE_FLAG {
|
---|
3907 | D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
|
---|
3908 | D3D11_CREATE_DEVICE_DEBUG = 0x0002,
|
---|
3909 | D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
|
---|
3910 | D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
|
---|
3911 | D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
|
---|
3912 | D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
|
---|
3913 | D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
|
---|
3914 | D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
|
---|
3915 | D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
|
---|
3916 | } D3D11_CREATE_DEVICE_FLAG;
|
---|
3917 |
|
---|
3918 | typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
|
---|
3919 | {
|
---|
3920 | D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001,
|
---|
3921 | D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002,
|
---|
3922 | } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
|
---|
3923 |
|
---|
3924 | const UINT D3D11_SDK_VERSION = 7;
|
---|
3925 |
|
---|
3926 | cpp_quote("#include <d3d10_1.h>")
|
---|
3927 | cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
|
---|
3928 | cpp_quote("# include <d3d11sdklayers.h>")
|
---|
3929 | cpp_quote("#endif")
|
---|
3930 | cpp_quote("#include <d3d10misc.h>")
|
---|
3931 | cpp_quote("#include <d3d10shader.h>")
|
---|
3932 | cpp_quote("#include <d3d10effect.h>")
|
---|
3933 | cpp_quote("#include <d3d10_1shader.h>")
|
---|
3934 |
|
---|
3935 | const UINT _FACD3D11 = 0x87c;
|
---|
3936 | cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
|
---|
3937 |
|
---|
3938 | cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
|
---|
3939 | cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
|
---|
3940 |
|
---|
3941 | cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
|
---|
3942 | cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
|
---|
3943 |
|
---|
3944 | cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
|
---|
3945 | cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
|
---|
3946 | cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
|
---|
3947 |
|
---|
3948 | [local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
|
---|
3949 | HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
|
---|
3950 | const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
|
---|
3951 | D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);
|
---|