VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/d3d10.idl@ 19678

Last change on this file since 19678 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 59.4 KB
Line 
1/*
2 * Copyright 2007 Andras Kovacs
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28import "oaidl.idl";
29import "ocidl.idl";
30import "dxgi.idl";
31
32cpp_quote("#ifndef _D3D10_CONSTANTS")
33cpp_quote("#define _D3D10_CONSTANTS")
34const float D3D10_DEFAULT_BLEND_FACTOR_ALPHA = 1.0;
35const float D3D10_DEFAULT_BLEND_FACTOR_BLUE = 1.0;
36const float D3D10_DEFAULT_BLEND_FACTOR_GREEN = 1.0;
37const float D3D10_DEFAULT_BLEND_FACTOR_RED = 1.0;
38const float D3D10_DEFAULT_BORDER_COLOR_COMPONENT = 0.0;
39const float D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = 0.0;
40const float D3D10_DEFAULT_DEPTH_BIAS_CLAMP = 0.0;
41const float D3D10_DEFAULT_MAX_ANISOTROPY = 16.0;
42const float D3D10_DEFAULT_MIP_LOD_BIAS = 0.0;
43const float D3D10_DEFAULT_VIEWPORT_MAX_DEPTH = 0.0;
44const float D3D10_DEFAULT_VIEWPORT_MIN_DEPTH = 0.0;
45const float D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP = 0.6;
46const float D3D10_FLOAT32_MAX = 3.402823466e+38;
47const float D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = 0.6;
48const float D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = 2.4;
49const float D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = 1.0;
50const float D3D10_FLOAT_TO_SRGB_OFFSET = 0.055;
51const float D3D10_FLOAT_TO_SRGB_SCALE_1 = 12.92;
52const float D3D10_FLOAT_TO_SRGB_SCALE_2 = 1.055;
53const float D3D10_FLOAT_TO_SRGB_THRESHOLD = 0.0031308;
54const float D3D10_FTOI_INSTRUCTION_MAX_INPUT = 2147483647.999;
55const float D3D10_FTOI_INSTRUCTION_MIN_INPUT = -2147483648.999;
56const float D3D10_FTOU_INSTRUCTION_MAX_INPUT = 4294967295.999;
57const float D3D10_FTOU_INSTRUCTION_MIN_INPUT = 0.0;
58const float D3D10_LINEAR_GAMMA = 1.0;
59const float D3D10_MAX_BORDER_COLOR_COMPONENT = 1.0;
60const float D3D10_MAX_DEPTH = 1.0;
61const float D3D10_MAX_POSITION_VALUE = 3.402823466e+34;
62const float D3D10_MIN_BORDER_COLOR_COMPONENT = 0.0;
63const float D3D10_MIN_DEPTH = 0.0;
64const float D3D10_MIP_LOD_BIAS_MAX = 15.99;
65const float D3D10_MIP_LOD_BIAS_MIN = -16.0;
66const float D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = 0.5;
67const float D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = 1.4;
68const float D3D10_SRGB_GAMMA = 2.2;
69const float D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 = 12.92;
70const float D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 = 1.055;
71const float D3D10_SRGB_TO_FLOAT_EXPONENT = 2.4;
72const float D3D10_SRGB_TO_FLOAT_OFFSET = 0.055;
73const float D3D10_SRGB_TO_FLOAT_THRESHOLD = 0.04045;
74const float D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = 0.5;
75const float D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = 0.0;
76const float D3D_SPEC_VERSION = 1.050005;
77const unsigned int D3D10_16BIT_INDEX_STRIP_CUT_VALUE = 0xffff;
78const unsigned int D3D10_32BIT_INDEX_STRIP_CUT_VALUE = 0xffffffff;
79const unsigned int D3D10_8BIT_INDEX_STRIP_CUT_VALUE = 0xff;
80const unsigned int D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9;
81const unsigned int D3D10_CLIP_OR_CULL_DISTANCE_COUNT = 8;
82const unsigned int D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2;
83const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
84const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
85const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
86const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
87const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
88const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
89const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
90const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
91const unsigned int D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
92const unsigned int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
93const unsigned int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
94const unsigned int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
95const unsigned int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
96const unsigned int D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
97const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
98const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
99const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
100const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
101const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
102const unsigned int D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
103const unsigned int D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
104const unsigned int D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
105const unsigned int D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
106const unsigned int D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
107const unsigned int D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
108const unsigned int D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
109const unsigned int D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
110const unsigned int D3D10_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
111const unsigned int D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
112const unsigned int D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
113const unsigned int D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
114const int D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
115const int D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
116const unsigned int D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
117const unsigned int D3D10_DEFAULT_DEPTH_BIAS = 0;
118const unsigned int D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
119const unsigned int D3D10_DEFAULT_SAMPLE_MASK = 0xffffffff;
120const unsigned int D3D10_DEFAULT_SCISSOR_ENDX = 0;
121const unsigned int D3D10_DEFAULT_SCISSOR_ENDY = 0;
122const unsigned int D3D10_DEFAULT_SCISSOR_STARTX = 0;
123const unsigned int D3D10_DEFAULT_SCISSOR_STARTY = 0;
124const unsigned int D3D10_DEFAULT_STENCIL_READ_MASK = 0xff;
125const unsigned int D3D10_DEFAULT_STENCIL_REFERENCE = 0;
126const unsigned int D3D10_DEFAULT_STENCIL_WRITE_MASK = 0xff;
127const unsigned int D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
128const unsigned int D3D10_DEFAULT_VIEWPORT_HEIGHT = 0;
129const unsigned int D3D10_DEFAULT_VIEWPORT_TOPLEFTX = 0;
130const unsigned int D3D10_DEFAULT_VIEWPORT_TOPLEFTY = 0;
131const unsigned int D3D10_DEFAULT_VIEWPORT_WIDTH = 0;
132const unsigned int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = 1;
133const unsigned int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = 32;
134const unsigned int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT = 1;
135const unsigned int D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = 2;
136const unsigned int D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = 1;
137const unsigned int D3D10_GS_INPUT_REGISTER_COMPONENTS = 4;
138const unsigned int D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT =32;
139const unsigned int D3D10_GS_INPUT_REGISTER_COUNT = 16;
140const unsigned int D3D10_GS_INPUT_REGISTER_READS_PER_INST = 2;
141const unsigned int D3D10_GS_INPUT_REGISTER_READ_PORTS = 1;
142const unsigned int D3D10_GS_INPUT_REGISTER_VERTICES = 6;
143const unsigned int D3D10_GS_OUTPUT_ELEMENTS = 32;
144const unsigned int D3D10_GS_OUTPUT_REGISTER_COMPONENTS = 4;
145const unsigned int D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
146const unsigned int D3D10_GS_OUTPUT_REGISTER_COUNT = 32;
147const unsigned int D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = 0;
148const unsigned int D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY = 0;
149const unsigned int D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = 0;
150const unsigned int D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = 1;
151const unsigned int D3D10_IA_INSTANCE_ID_BIT_COUNT = 32;
152const unsigned int D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT = 32;
153const unsigned int D3D10_IA_PRIMITIVE_ID_BIT_COUNT = 32;
154const unsigned int D3D10_IA_VERTEX_ID_BIT_COUNT = 32;
155const unsigned int D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 16;
156const unsigned int D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 64;
157const unsigned int D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 16;
158const unsigned int D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = 0xffffffff;
159const unsigned int D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER = 0xffffffff;
160const unsigned int D3D10_MAX_MAXANISOTROPY = 16;
161const unsigned int D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
162const unsigned int D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP = 17;
163const unsigned int D3D10_MIN_MAXANISOTROPY = 0;
164const unsigned int D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT = 6;
165const unsigned int D3D10_MIP_LOD_RANGE_BIT_COUNT = 8;
166const unsigned int D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = 0;
167const unsigned int D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT = 13;
168const unsigned int D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = 15;
169const unsigned int D3D10_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
170const unsigned int D3D10_PS_FRONTFACING_FALSE_VALUE = 0;
171const unsigned int D3D10_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
172const unsigned int D3D10_PS_INPUT_REGISTER_COMPONENTS = 4;
173const unsigned int D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
174const unsigned int D3D10_PS_INPUT_REGISTER_COUNT = 32;
175const unsigned int D3D10_PS_INPUT_REGISTER_READS_PER_INST = 2;
176const unsigned int D3D10_PS_INPUT_REGISTER_READ_PORTS = 1;
177const unsigned int D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
178const unsigned int D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
179const unsigned int D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
180const unsigned int D3D10_PS_OUTPUT_REGISTER_COMPONENTS = 4;
181const unsigned int D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
182const unsigned int D3D10_PS_OUTPUT_REGISTER_COUNT = 8;
183const unsigned int D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT = 4096;
184const unsigned int D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
185const unsigned int D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
186const unsigned int D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT = 4096;
187const unsigned int D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
188const unsigned int D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
189const unsigned int D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 8192;
190const unsigned int D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
191const unsigned int D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
192const unsigned int D3D10_REQ_MAXANISOTROPY = 16;
193const unsigned int D3D10_REQ_MIP_LEVELS = 14;
194const unsigned int D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
195const unsigned int D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT = 4096;
196const unsigned int D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 8192;
197const unsigned int D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES = 128;
198const unsigned int D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP = 20;
199const unsigned int D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT = 4096;
200const unsigned int D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 512;
201const unsigned int D3D10_REQ_TEXTURE1D_U_DIMENSION = 8192;
202const unsigned int D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 512;
203const unsigned int D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION = 8192;
204const unsigned int D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
205const unsigned int D3D10_REQ_TEXTURECUBE_DIMENSION = 8192;
206const unsigned int D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
207const unsigned int D3D10_SHADER_MAJOR_VERSION = 4;
208const unsigned int D3D10_SHADER_MINOR_VERSION = 0;
209const unsigned int D3D10_SHIFT_INSTRUCTION_PAD_VALUE = 0;
210const unsigned int D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
211const unsigned int D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
212const unsigned int D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
213const unsigned int D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256;
214const unsigned int D3D10_SO_BUFFER_SLOT_COUNT = 4;
215const unsigned int D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
216const unsigned int D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1;
217const unsigned int D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64;
218const unsigned int D3D10_STANDARD_COMPONENT_BIT_COUNT = 32;
219const unsigned int D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
220const unsigned int D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
221const unsigned int D3D10_STANDARD_PIXEL_COMPONENT_COUNT = 128;
222const unsigned int D3D10_STANDARD_PIXEL_ELEMENT_COUNT = 32;
223const unsigned int D3D10_STANDARD_VECTOR_SIZE = 4;
224const unsigned int D3D10_STANDARD_VERTEX_ELEMENT_COUNT = 16;
225const unsigned int D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
226const unsigned int D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8;
227const unsigned int D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT = 6;
228const unsigned int D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT = 18;
229const unsigned int D3D10_UNBOUND_MEMORY_ACCESS_RESULT = 0;
230const unsigned int D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
231const unsigned int D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
232const unsigned int D3D10_VIEWPORT_BOUNDS_MAX = 16383;
233const int D3D10_VIEWPORT_BOUNDS_MIN = -16384;
234const unsigned int D3D10_VS_INPUT_REGISTER_COMPONENTS = 4;
235const unsigned int D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
236const unsigned int D3D10_VS_INPUT_REGISTER_COUNT = 16;
237const unsigned int D3D10_VS_INPUT_REGISTER_READS_PER_INST = 2;
238const unsigned int D3D10_VS_INPUT_REGISTER_READ_PORTS = 1;
239const unsigned int D3D10_VS_OUTPUT_REGISTER_COMPONENTS = 4;
240const unsigned int D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
241const unsigned int D3D10_VS_OUTPUT_REGISTER_COUNT = 16;
242const unsigned int D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = 10;
243const unsigned int D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 25;
244const unsigned int D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = 25;
245const unsigned int D3D_MAJOR_VERSION = 10;
246const unsigned int D3D_MINOR_VERSION = 0;
247const unsigned int D3D_SPEC_DATE_DAY = 8;
248const unsigned int D3D_SPEC_DATE_MONTH = 8;
249const unsigned int D3D_SPEC_DATE_YEAR = 2006;
250cpp_quote("#endif")
251
252const unsigned int D3D10_APPEND_ALIGNED_ELEMENT = 0xffffffff;
253const unsigned int _FACD3D10 = 0x87;
254const unsigned int _FACD3D10DEBUG = _FACD3D10 + 1;
255const unsigned int D3D10_FILTER_TYPE_MASK = 0x3;
256const unsigned int D3D10_SDK_VERSION = 29;
257
258cpp_quote("#define MAKE_D3D10_HRESULT(code) MAKE_HRESULT( 1, _FACD3D10, code)")
259cpp_quote("#define MAKE_D3D10_STATUS(code) MAKE_HRESULT( 0, _FACD3D10, code)")
260cpp_quote("#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D10_HRESULT(1)")
261cpp_quote("#define D3D10_ERROR_FILE_NOT_FOUND MAKE_D3D10_HRESULT(2)")
262
263typedef enum D3D10_BLEND {
264 D3D10_BLEND_ZERO = 1,
265 D3D10_BLEND_ONE = 2,
266 D3D10_BLEND_SRC_COLOR = 3,
267 D3D10_BLEND_INV_SRC_COLOR = 4,
268 D3D10_BLEND_SRC_ALPHA = 5,
269 D3D10_BLEND_INV_SRC_ALPHA = 6,
270 D3D10_BLEND_DEST_ALPHA = 7,
271 D3D10_BLEND_INV_DEST_ALPHA = 8,
272 D3D10_BLEND_DEST_COLOR = 9,
273 D3D10_BLEND_INV_DEST_COLOR = 10,
274 D3D10_BLEND_SRC_ALPHA_SAT = 11,
275 D3D10_BLEND_BLEND_FACTOR = 14,
276 D3D10_BLEND_INV_BLEND_FACTOR = 15,
277 D3D10_BLEND_SRC1_COLOR = 16,
278 D3D10_BLEND_INV_SRC1_COLOR = 17,
279 D3D10_BLEND_SRC1_ALPHA = 18,
280 D3D10_BLEND_INV_SRC1_ALPHA = 19
281} D3D10_BLEND;
282
283typedef enum D3D10_BLEND_OP {
284 D3D10_BLEND_OP_ADD = 1,
285 D3D10_BLEND_OP_SUBTRACT,
286 D3D10_BLEND_OP_REV_SUBTRACT,
287 D3D10_BLEND_OP_MIN,
288 D3D10_BLEND_OP_MAX,
289} D3D10_BLEND_OP;
290
291typedef struct D3D10_BLEND_DESC {
292 BOOL AlphaToCoverageEnable;
293 BOOL BlendEnable[8];
294 D3D10_BLEND SrcBlend;
295 D3D10_BLEND DestBlend;
296 D3D10_BLEND_OP BlendOp;
297 D3D10_BLEND SrcBlendAlpha;
298 D3D10_BLEND DestBlendAlpha;
299 D3D10_BLEND_OP BlendOpAlpha;
300 UINT8 RenderTargetWriteMask[8];
301} D3D10_BLEND_DESC;
302
303typedef enum D3D10_DEPTH_WRITE_MASK {
304 D3D10_DEPTH_WRITE_MASK_ZERO,
305 D3D10_DEPTH_WRITE_MASK_ALL,
306} D3D10_DEPTH_WRITE_MASK;
307
308typedef enum D3D10_COMPARISON_FUNC {
309 D3D10_COMPARISON_NEVER = 1,
310 D3D10_COMPARISON_LESS,
311 D3D10_COMPARISON_EQUAL,
312 D3D10_COMPARISON_LESS_EQUAL,
313 D3D10_COMPARISON_GREATER,
314 D3D10_COMPARISON_NOT_EQUAL,
315 D3D10_COMPARISON_GREATER_EQUAL,
316 D3D10_COMPARISON_ALWAYS,
317} D3D10_COMPARISON_FUNC;
318
319typedef enum D3D10_STENCIL_OP {
320 D3D10_STENCIL_OP_KEEP = 1,
321 D3D10_STENCIL_OP_ZERO,
322 D3D10_STENCIL_OP_REPLACE,
323 D3D10_STENCIL_OP_INCR_SAT,
324 D3D10_STENCIL_OP_DECR_SAT,
325 D3D10_STENCIL_OP_INVERT,
326 D3D10_STENCIL_OP_INCR,
327 D3D10_STENCIL_OP_DECR,
328} D3D10_STENCIL_OP;
329
330typedef struct D3D10_DEPTH_STENCILOP_DESC {
331 D3D10_STENCIL_OP StencilFailOp;
332 D3D10_STENCIL_OP StencilDepthFailOp;
333 D3D10_STENCIL_OP StencilPassOp;
334 D3D10_COMPARISON_FUNC StencilFunc;
335} D3D10_DEPTH_STENCILOP_DESC;
336
337typedef struct D3D10_DEPTH_STENCIL_DESC {
338 BOOL DepthEnable;
339 D3D10_DEPTH_WRITE_MASK DepthWriteMask;
340 D3D10_COMPARISON_FUNC DepthFunc;
341 BOOL StencilEnable;
342 UINT8 StencilReadMask;
343 UINT8 StencilWriteMask;
344 D3D10_DEPTH_STENCILOP_DESC FrontFace;
345 D3D10_DEPTH_STENCILOP_DESC BackFace;
346} D3D10_DEPTH_STENCIL_DESC;
347
348typedef enum D3D10_FILL_MODE {
349 D3D10_FILL_WIREFRAME = 2,
350 D3D10_FILL_SOLID,
351} D3D10_FILL_MODE;
352
353typedef enum D3D10_CULL_MODE {
354 D3D10_CULL_NONE = 1,
355 D3D10_CULL_FRONT,
356 D3D10_CULL_BACK,
357} D3D10_CULL_MODE;
358
359typedef struct D3D10_RASTERIZER_DESC {
360 D3D10_FILL_MODE FillMode;
361 D3D10_CULL_MODE CullMode;
362 BOOL FrontCounterClockwise;
363 INT DepthBias;
364 FLOAT DepthBiasClamp;
365 FLOAT SlopeScaledDepthBias;
366 BOOL DepthClipEnable;
367 BOOL ScissorEnable;
368 BOOL MultisampleEnable;
369 BOOL AntialiasedLineEnable;
370} D3D10_RASTERIZER_DESC;
371
372typedef enum D3D10_FILTER {
373 D3D10_FILTER_MIN_MAG_MIP_POINT = 0,
374 D3D10_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1,
375 D3D10_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4,
376 D3D10_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5,
377 D3D10_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
378 D3D10_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
379 D3D10_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
380 D3D10_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
381 D3D10_FILTER_ANISOTROPIC = 0x55,
382 D3D10_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
383 D3D10_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
384 D3D10_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
385 D3D10_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
386 D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
387 D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
388 D3D10_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
389 D3D10_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
390 D3D10_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
391 D3D10_FILTER_TEXT_1BIT = 0x80000000
392} D3D10_FILTER;
393
394typedef enum D3D10_TEXTURE_ADDRESS_MODE {
395 D3D10_TEXTURE_ADDRESS_WRAP = 1,
396 D3D10_TEXTURE_ADDRESS_MIRROR,
397 D3D10_TEXTURE_ADDRESS_CLAMP,
398 D3D10_TEXTURE_ADDRESS_BORDER,
399 D3D10_TEXTURE_ADDRESS_MIRROR_ONCE,
400} D3D10_TEXTURE_ADDRESS_MODE;
401
402typedef struct D3D10_SAMPLER_DESC {
403 D3D10_FILTER Filter;
404 D3D10_TEXTURE_ADDRESS_MODE AddressU;
405 D3D10_TEXTURE_ADDRESS_MODE AddressV;
406 D3D10_TEXTURE_ADDRESS_MODE AddressW;
407 FLOAT MipLODBias;
408 UINT MaxAnisotropy;
409 D3D10_COMPARISON_FUNC ComparisonFunc;
410 FLOAT BorderColor[4];
411 FLOAT MinLOD;
412 FLOAT MaxLOD;
413} D3D10_SAMPLER_DESC;
414
415typedef enum D3D10_COUNTER {
416 D3D10_COUNTER_GPU_IDLE,
417 D3D10_COUNTER_VERTEX_PROCESSING,
418 D3D10_COUNTER_GEOMETRY_PROCESSING,
419 D3D10_COUNTER_PIXEL_PROCESSING,
420 D3D10_COUNTER_OTHER_GPU_PROCESSING,
421 D3D10_COUNTER_HOST_ADAPTER_BANDWIDTH_UTILIZATION,
422 D3D10_COUNTER_LOCAL_VIDMEM_BANDWIDTH_UTILIZATION,
423 D3D10_COUNTER_VERTEX_THROUGHPUT_UTILIZATION,
424 D3D10_COUNTER_TRIANGLE_SETUP_THROUGHPUT_UTILIZATION,
425 D3D10_COUNTER_FILLRATE_THROUGHPUT_UTILIZATION,
426 D3D10_COUNTER_VS_MEMORY_LIMITED,
427 D3D10_COUNTER_VS_COMPUTATION_LIMITED,
428 D3D10_COUNTER_GS_MEMORY_LIMITED,
429 D3D10_COUNTER_GS_COMPUTATION_LIMITED,
430 D3D10_COUNTER_PS_MEMORY_LIMITED,
431 D3D10_COUNTER_PS_COMPUTATION_LIMITED,
432 D3D10_COUNTER_POST_TRANSFORM_CACHE_HIT_RATE,
433 D3D10_COUNTER_TEXTURE_CACHE_HIT_RATE,
434 D3D10_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000
435} D3D10_COUNTER;
436
437typedef struct D3D10_COUNTER_DESC {
438 D3D10_COUNTER Counter;
439 UINT MiscFlags;
440} D3D10_COUNTER_DESC;
441
442typedef enum D3D10_COUNTER_TYPE {
443 D3D10_COUNTER_TYPE_FLOAT32,
444 D3D10_COUNTER_TYPE_UINT16,
445 D3D10_COUNTER_TYPE_UINT32,
446 D3D10_COUNTER_TYPE_UINT64,
447} D3D10_COUNTER_TYPE;
448
449typedef struct D3D10_COUNTER_INFO {
450 D3D10_COUNTER LastDeviceDependentCounter;
451 UINT NumSimultaneousCounters;
452 UINT8 NumDetectableParallelUnits;
453} D3D10_COUNTER_INFO;
454
455typedef enum D3D10_RESOURCE_DIMENSION {
456 D3D10_RESOURCE_DIMENSION_UNKNOWN,
457 D3D10_RESOURCE_DIMENSION_BUFFER,
458 D3D10_RESOURCE_DIMENSION_TEXTURE1D,
459 D3D10_RESOURCE_DIMENSION_TEXTURE2D,
460 D3D10_RESOURCE_DIMENSION_TEXTURE3D,
461} D3D10_RESOURCE_DIMENSION;
462
463typedef enum D3D10_USAGE {
464 D3D10_USAGE_DEFAULT,
465 D3D10_USAGE_IMMUTABLE,
466 D3D10_USAGE_DYNAMIC,
467 D3D10_USAGE_STAGING,
468} D3D10_USAGE;
469
470typedef struct D3D10_BUFFER_DESC {
471 UINT ByteWidth;
472 D3D10_USAGE Usage;
473 UINT BindFlags;
474 UINT CPUAccessFlags;
475 UINT MiscFlags;
476} D3D10_BUFFER_DESC;
477
478typedef enum D3D10_MAP {
479 D3D10_MAP_READ = 1,
480 D3D10_MAP_WRITE,
481 D3D10_MAP_READ_WRITE,
482 D3D10_MAP_WRITE_DISCARD,
483 D3D10_MAP_WRITE_NO_OVERWRITE,
484} D3D10_MAP;
485
486typedef struct D3D10_TEXTURE1D_DESC {
487 UINT Width;
488 UINT MipLevels;
489 UINT ArraySize;
490 DXGI_FORMAT Format;
491 D3D10_USAGE Usage;
492 UINT BindFlags;
493 UINT CPUAccessFlags;
494 UINT MiscFlags;
495} D3D10_TEXTURE1D_DESC;
496
497typedef struct D3D10_TEXTURE2D_DESC {
498 UINT Width;
499 UINT Height;
500 UINT MipLevels;
501 UINT ArraySize;
502 DXGI_FORMAT Format;
503 DXGI_SAMPLE_DESC SampleDesc;
504 D3D10_USAGE Usage;
505 UINT BindFlags;
506 UINT CPUAccessFlags;
507 UINT MiscFlags;
508} D3D10_TEXTURE2D_DESC;
509
510typedef struct D3D10_TEXTURE3D_DESC {
511 UINT Width;
512 UINT Height;
513 UINT Depth;
514 UINT MipLevels;
515 DXGI_FORMAT Format;
516 D3D10_USAGE Usage;
517 UINT BindFlags;
518 UINT CPUAccessFlags;
519 UINT MiscFlags;
520} D3D10_TEXTURE3D_DESC;
521
522typedef enum D3D10_DSV_DIMENSION
523{
524 D3D10_DSV_DIMENSION_UNKNOWN,
525 D3D10_DSV_DIMENSION_TEXTURE1D,
526 D3D10_DSV_DIMENSION_TEXTURE1DARRAY,
527 D3D10_DSV_DIMENSION_TEXTURE2D,
528 D3D10_DSV_DIMENSION_TEXTURE2DARRAY,
529 D3D10_DSV_DIMENSION_TEXTURE2DMS,
530 D3D10_DSV_DIMENSION_TEXTURE2DMSARRAY,
531} D3D10_DSV_DIMENSION;
532
533typedef struct D3D10_TEX1D_DSV {
534 UINT MipSlice;
535} D3D10_TEX1D_DSV;
536
537typedef struct D3D10_TEX1D_ARRAY_DSV {
538 UINT MipSlice;
539 UINT FirstArraySlice;
540 UINT ArraySize;
541} D3D10_TEX1D_ARRAY_DSV;
542
543typedef struct D3D10_TEX2D_DSV {
544 UINT MipSlice;
545} D3D10_TEX2D_DSV;
546
547typedef struct D3D10_TEX2D_ARRAY_DSV {
548 UINT MipSlice;
549 UINT FirstArraySlice;
550 UINT ArraySize;
551} D3D10_TEX2D_ARRAY_DSV;
552
553typedef struct D3D10_TEX2DMS_DSV {
554 UINT UnusedField_NothingToDefine;
555} D3D10_TEX2DMS_DSV;
556
557typedef struct D3D10_TEX2DMS_ARRAY_DSV {
558 UINT FirstArraySlice;
559 UINT ArraySize;
560} D3D10_TEX2DMS_ARRAY_DSV;
561
562typedef struct D3D10_DEPTH_STENCIL_VIEW_DESC {
563 DXGI_FORMAT Format;
564 D3D10_DSV_DIMENSION ViewDimension;
565 union {
566 D3D10_TEX1D_DSV Texture1D;
567 D3D10_TEX1D_ARRAY_DSV Texture1DArray;
568 D3D10_TEX2D_DSV Texture2D;
569 D3D10_TEX2D_ARRAY_DSV Texture2DArray;
570 D3D10_TEX2DMS_DSV Texture2DMS;
571 D3D10_TEX2DMS_ARRAY_DSV Texture2DMSArray;
572 } DUMMYUNIONNAME;
573} D3D10_DEPTH_STENCIL_VIEW_DESC;
574
575typedef enum D3D10_RTV_DIMENSION {
576 D3D10_RTV_DIMENSION_UNKNOWN,
577 D3D10_RTV_DIMENSION_BUFFER,
578 D3D10_RTV_DIMENSION_TEXTURE1D,
579 D3D10_RTV_DIMENSION_TEXTURE1DARRAY,
580 D3D10_RTV_DIMENSION_TEXTURE2D,
581 D3D10_RTV_DIMENSION_TEXTURE2DARRAY,
582 D3D10_RTV_DIMENSION_TEXTURE2DMS,
583 D3D10_RTV_DIMENSION_TEXTURE2DMSARRAY,
584 D3D10_RTV_DIMENSION_TEXTURE3D,
585} D3D10_RTV_DIMENSION;
586
587typedef struct D3D10_BUFFER_RTV {
588 UINT ElementOffset;
589 UINT ElementWidth;
590} D3D10_BUFFER_RTV;
591
592typedef struct D3D10_TEX1D_RTV {
593 UINT MipSlice;
594} D3D10_TEX1D_RTV;
595
596typedef struct D3D10_TEX1D_ARRAY_RTV {
597 UINT MipSlice;
598 UINT FirstArraySlice;
599 UINT ArraySize;
600} D3D10_TEX1D_ARRAY_RTV;
601
602typedef struct D3D10_TEX2D_RTV {
603 UINT MipSlice;
604} D3D10_TEX2D_RTV;
605
606typedef struct D3D10_TEX2D_ARRAY_RTV {
607 UINT MipSlice;
608 UINT FirstArraySlice;
609 UINT ArraySize;
610} D3D10_TEX2D_ARRAY_RTV;
611
612typedef struct D3D10_TEX2DMS_RTV {
613 UINT UnusedField_NothingToDefine;
614} D3D10_TEX2DMS_RTV;
615
616typedef struct D3D10_TEX2DMS_ARRAY_RTV {
617 UINT FirstArraySlice;
618 UINT ArraySize;
619} D3D10_TEX2DMS_ARRAY_RTV;
620
621typedef struct D3D10_TEX3D_RTV {
622 UINT MipSlice;
623 UINT FirstWSlice;
624 UINT WSize;
625} D3D10_TEX3D_RTV;
626
627typedef struct D3D10_RENDER_TARGET_VIEW_DESC {
628 DXGI_FORMAT Format;
629 D3D10_RTV_DIMENSION ViewDimension;
630 union {
631 D3D10_BUFFER_RTV Buffer;
632 D3D10_TEX1D_RTV Texture1D;
633 D3D10_TEX1D_ARRAY_RTV Texture1DArray;
634 D3D10_TEX2D_RTV Texture2D;
635 D3D10_TEX2D_ARRAY_RTV Texture2DArray;
636 D3D10_TEX2DMS_RTV Texture2DMS;
637 D3D10_TEX2DMS_ARRAY_RTV Texture2DMSArray;
638 D3D10_TEX3D_RTV Texture3D;
639 } DUMMYUNIONNAME;
640} D3D10_RENDER_TARGET_VIEW_DESC;
641
642typedef enum D3D10_SRV_DIMENSION {
643 D3D10_SRV_DIMENSION_UNKNOWN,
644 D3D10_SRV_DIMENSION_BUFFER,
645 D3D10_SRV_DIMENSION_TEXTURE1D,
646 D3D10_SRV_DIMENSION_TEXTURE1DARRAY,
647 D3D10_SRV_DIMENSION_TEXTURE2D,
648 D3D10_SRV_DIMENSION_TEXTURE2DARRAY,
649 D3D10_SRV_DIMENSION_TEXTURE2DMS,
650 D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY,
651 D3D10_SRV_DIMENSION_TEXTURE3D,
652 D3D10_SRV_DIMENSION_TEXTURECUBE,
653} D3D10_SRV_DIMENSION;
654
655typedef struct D3D10_BUFFER_SRV {
656 UINT ElementOffset;
657 UINT ElementWidth;
658} D3D10_BUFFER_SRV;
659
660typedef struct D3D10_TEX1D_SRV {
661 UINT MostDetailedMip;
662 UINT MipLevels;
663} D3D10_TEX1D_SRV;
664
665typedef struct D3D10_TEX1D_ARRAY_SRV {
666 UINT MostDetailedMip;
667 UINT MipLevels;
668 UINT FirstArraySlice;
669 UINT ArraySize;
670} D3D10_TEX1D_ARRAY_SRV;
671
672typedef struct D3D10_TEX2D_SRV {
673 UINT MostDetailedMip;
674 UINT MipLevels;
675} D3D10_TEX2D_SRV;
676
677typedef struct D3D10_TEX2D_ARRAY_SRV {
678 UINT MostDetailedMip;
679 UINT MipLevels;
680 UINT FirstArraySlice;
681 UINT ArraySize;
682} D3D10_TEX2D_ARRAY_SRV;
683
684typedef struct D3D10_TEX2DMS_SRV {
685 UINT UnusedField_NothingToDefine;
686} D3D10_TEX2DMS_SRV;
687
688typedef struct D3D10_TEX2DMS_ARRAY_SRV {
689 UINT FirstArraySlice;
690 UINT ArraySize;
691} D3D10_TEX2DMS_ARRAY_SRV;
692
693typedef struct D3D10_TEX3D_SRV {
694 UINT MostDetailedMip;
695 UINT MipLevels;
696} D3D10_TEX3D_SRV;
697
698typedef struct D3D10_TEXCUBE_SRV {
699 UINT MostDetailedMip;
700 UINT MipLevels;
701} D3D10_TEXCUBE_SRV;
702
703typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC {
704 DXGI_FORMAT Format;
705 D3D10_SRV_DIMENSION ViewDimension;
706 union {
707 D3D10_BUFFER_SRV Buffer;
708 D3D10_TEX1D_SRV Texture1D;
709 D3D10_TEX1D_ARRAY_SRV Texture1DArray;
710 D3D10_TEX2D_SRV Texture2D;
711 D3D10_TEX2D_ARRAY_SRV Texture2DArray;
712 D3D10_TEX2DMS_SRV Texture2DMS;
713 D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray;
714 D3D10_TEX3D_SRV Texture3D;
715 D3D10_TEXCUBE_SRV TextureCube;
716 } DUMMYUNIONNAME;
717} D3D10_SHADER_RESOURCE_VIEW_DESC;
718
719typedef struct D3D10_BOX {
720 UINT left;
721 UINT top;
722 UINT front;
723 UINT right;
724 UINT bottom;
725 UINT back;
726} D3D10_BOX;
727
728typedef struct D3D10_SUBRESOURCE_DATA {
729 const void *pSysMem;
730 UINT SysMemPitch;
731 UINT SysMemSlicePitch;
732} D3D10_SUBRESOURCE_DATA;
733
734typedef struct D3D10_SO_DECLARATION_ENTRY {
735 LPCSTR SemanticName;
736 UINT SemanticIndex;
737 BYTE StartComponent;
738 BYTE ComponentCount;
739 BYTE OutputSlot;
740} D3D10_SO_DECLARATION_ENTRY;
741
742typedef enum D3D10_INPUT_CLASSIFICATION {
743 D3D10_INPUT_PER_VERTEX_DATA,
744 D3D10_INPUT_PER_INSTANCE_DATA,
745} D3D10_INPUT_CLASSIFICATION;
746
747typedef struct D3D10_INPUT_ELEMENT_DESC {
748 LPCSTR SemanticName;
749 UINT SemanticIndex;
750 DXGI_FORMAT Format;
751 UINT InputSlot;
752 UINT AlignedByteOffset;
753 D3D10_INPUT_CLASSIFICATION InputSlotClass;
754 UINT InstanceDataStepRate;
755} D3D10_INPUT_ELEMENT_DESC;
756
757typedef enum D3D10_QUERY {
758 D3D10_QUERY_EVENT,
759 D3D10_QUERY_OCCLUSION,
760 D3D10_QUERY_TIMESTAMP,
761 D3D10_QUERY_TIMESTAMP_DISJOINT,
762 D3D10_QUERY_PIPELINE_STATISTICS,
763 D3D10_QUERY_OCCLUSION_PREDICATE,
764 D3D10_QUERY_SO_STATISTICS,
765 D3D10_QUERY_SO_OVERFLOW_PREDICATE,
766} D3D10_QUERY;
767
768typedef struct D3D10_QUERY_DESC {
769 D3D10_QUERY Query;
770 UINT MiscFlags;
771} D3D10_QUERY_DESC;
772
773typedef enum D3D10_PRIMITIVE_TOPOLOGY {
774 D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
775 D3D10_PRIMITIVE_TOPOLOGY_POINTLIST = 1,
776 D3D10_PRIMITIVE_TOPOLOGY_LINELIST = 2,
777 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP = 3,
778 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST = 4,
779 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = 5,
780 D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
781 D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = 11,
782 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = 12,
783 D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = 13
784} D3D10_PRIMITIVE_TOPOLOGY;
785
786typedef RECT D3D10_RECT;
787
788typedef struct D3D10_VIEWPORT {
789 INT TopLeftX;
790 INT TopLeftY;
791 UINT Width;
792 UINT Height;
793 FLOAT MinDepth;
794 FLOAT MaxDepth;
795} D3D10_VIEWPORT;
796
797typedef struct D3D10_MAPPED_TEXTURE2D {
798 void *pData;
799 UINT RowPitch;
800} D3D10_MAPPED_TEXTURE2D;
801
802typedef struct D3D10_MAPPED_TEXTURE3D {
803 void *pData;
804 UINT RowPitch;
805 UINT DepthPitch;
806} D3D10_MAPPED_TEXTURE3D;
807
808typedef enum D3D10_BIND_FLAG {
809 D3D10_BIND_VERTEX_BUFFER = 0x1,
810 D3D10_BIND_INDEX_BUFFER = 0x2,
811 D3D10_BIND_CONSTANT_BUFFER = 0x4,
812 D3D10_BIND_SHADER_RESOURCE = 0x8,
813 D3D10_BIND_STREAM_OUTPUT = 0x10,
814 D3D10_BIND_RENDER_TARGET = 0x20,
815 D3D10_BIND_DEPTH_STENCIL = 0x40
816} D3D10_BIND_FLAG;
817
818typedef enum D3D10_CPU_ACCESS_FLAG {
819 D3D10_CPU_ACCESS_WRITE = 0x10000,
820 D3D10_CPU_ACCESS_READ = 0x20000
821} D3D10_CPU_ACCESS_FLAG;
822
823typedef enum D3D10_RESOURCE_MISC_FLAG {
824 D3D10_RESOURCE_MISC_GENERATE_MIPS = 0x1,
825 D3D10_RESOURCE_MISC_SHARED = 0x2,
826 D3D10_RESOURCE_MISC_TEXTURECUBE = 0x4
827} D3D10_RESOURCE_MISC_FLAG;
828
829typedef enum D3D10_MAP_FLAG {
830 D3D10_MAP_FLAG_DO_NOT_WAIT = 0x100000,
831} D3D10_MAP_FLAG;
832
833typedef enum D3D10_CLEAR_FLAG {
834 D3D10_CLEAR_DEPTH = 0x1,
835 D3D10_CLEAR_STENCIL = 0x2
836} D3D10_CLEAR_FLAG;
837
838typedef enum D3D10_COLOR_WRITE_ENABLE {
839 D3D10_COLOR_WRITE_ENABLE_RED = 0x1,
840 D3D10_COLOR_WRITE_ENABLE_GREEN = 0x2,
841 D3D10_COLOR_WRITE_ENABLE_BLUE = 0x4,
842 D3D10_COLOR_WRITE_ENABLE_ALPHA = 0x8,
843 D3D10_COLOR_WRITE_ENABLE_ALL = (D3D10_COLOR_WRITE_ENABLE_RED | D3D10_COLOR_WRITE_ENABLE_GREEN |
844 D3D10_COLOR_WRITE_ENABLE_BLUE | D3D10_COLOR_WRITE_ENABLE_ALPHA)
845} D3D10_COLOR_WRITE_ENABLE;
846
847typedef enum D3D10_TEXTURECUBE_FACE {
848 D3D10_TEXTURECUBE_FACE_POSITIVE_X,
849 D3D10_TEXTURECUBE_FACE_NEGATIVE_X,
850 D3D10_TEXTURECUBE_FACE_POSITIVE_Y,
851 D3D10_TEXTURECUBE_FACE_NEGATIVE_Y,
852 D3D10_TEXTURECUBE_FACE_POSITIVE_Z,
853 D3D10_TEXTURECUBE_FACE_NEGATIVE_Z,
854} D3D10_TEXTURECUBE_FACE;
855
856typedef enum D3D10_ASYNC_GETDATA_FLAG {
857 D3D10_ASYNC_GETDATA_DONOTFLUSH = 0x1,
858} D3D10_ASYNC_GETDATA_FLAG;
859
860typedef enum D3D10_FILTER_TYPE {
861 D3D10_FILTER_TYPE_POINT,
862 D3D10_FILTER_TYPE_LINEAR
863} D3D10_FILTER_TYPE;
864
865typedef enum D3D10_QUERY_MISC_FLAG {
866 D3D10_QUERY_MISC_PREDICATEHINT = 0x1
867} D3D10_QUERY_MISC_FLAG;
868
869typedef struct D3D10_QUERY_DATA_TIMESTAMP_DISJOINT {
870 UINT64 Frequency;
871 BOOL Disjoint;
872} D3D10_QUERY_DATA_TIMESTAMP_DISJOINT;
873
874typedef struct D3D10_QUERY_DATA_PIPELINE_STATISTICS {
875 UINT64 IAVertices;
876 UINT64 IAPrimitives;
877 UINT64 VSInvocations;
878 UINT64 GSInvocations;
879 UINT64 GSPrimitives;
880 UINT64 CInvocations;
881 UINT64 CPrimitives;
882 UINT64 PSInvocations;
883} D3D10_QUERY_DATA_PIPELINE_STATISTICS;
884
885typedef struct D3D10_QUERY_DATA_SO_STATISTICS {
886 UINT64 NumPrimitivesWritten;
887 UINT64 PrimitivesStorageNeeded;
888} D3D10_QUERY_DATA_SO_STATISTICS;
889
890typedef enum D3D10_CREATE_DEVICE_FLAG {
891 D3D10_CREATE_DEVICE_SINGLETHREADED = 0x1,
892 D3D10_CREATE_DEVICE_DEBUG = 0x2,
893 D3D10_CREATE_DEVICE_SWITCH_TO_REF = 0x4,
894 D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8
895} D3D10_CREATE_DEVICE_FLAG;
896
897/* Core */
898
899interface ID3D10Device;
900
901[
902 object,
903 local,
904 uuid(9b7e4c00-342c-4106-a19f-4f2704f689f0)
905]
906interface ID3D10DeviceChild : IUnknown
907{
908 void GetDevice(
909 [out] ID3D10Device **ppDevice);
910 HRESULT GetPrivateData(
911 [in] REFGUID guid,
912 [in, out] UINT *pDataSize,
913 [out] void *pData);
914 HRESULT SetPrivateData(
915 [in] REFGUID guid,
916 [in] UINT DataSize,
917 [in] const void *pData);
918 HRESULT SetPrivateDataInterface(
919 [in] REFGUID guid,
920 [in] const IUnknown *pData);
921}
922
923/* Resource */
924
925[
926 object,
927 local,
928 uuid(9b7e4c01-342c-4106-a19f-4f2704f689f0)
929]
930interface ID3D10Resource : ID3D10DeviceChild
931{
932 void GetType(
933 [out] D3D10_RESOURCE_DIMENSION *rType);
934 void SetEvictionPriority(
935 [in] UINT EvictionPriority);
936 UINT GetEvictionPriority();
937}
938
939[
940 object,
941 local,
942 uuid(9b7e4c02-342c-4106-a19f-4f2704f689f0)
943]
944interface ID3D10Buffer : ID3D10Resource
945{
946 HRESULT Map(
947 [in] D3D10_MAP MapType,
948 [in] UINT MapFlags,
949 [out] void **ppData);
950 void Unmap();
951 void GetDesc(
952 [out] D3D10_BUFFER_DESC *pDesc);
953}
954
955[
956 object,
957 local,
958 uuid(9b7e4c03-342c-4106-a19f-4f2704f689F0)
959]
960interface ID3D10Texture1D : ID3D10Resource
961{
962 HRESULT Map(
963 [in] UINT Subresource,
964 [in] D3D10_MAP MapType,
965 [in] UINT MapFlags,
966 [out] void **ppData);
967 void Unmap(
968 [in] UINT Subresource);
969 void GetDesc(
970 [out] D3D10_TEXTURE1D_DESC *pDesc);
971}
972
973[
974 object,
975 local,
976 uuid(9b7e4c04-342c-4106-a19f-4f2704f689F0)
977]
978interface ID3D10Texture2D : ID3D10Resource
979{
980 HRESULT Map(
981 [in] UINT Subresource,
982 [in] D3D10_MAP MapType,
983 [in] UINT MapFlags,
984 [out] D3D10_MAPPED_TEXTURE2D *pMappedTex2D);
985 void Unmap(
986 [in] UINT Subresource);
987 void GetDesc(
988 [out] D3D10_TEXTURE2D_DESC *pDesc);
989}
990
991[
992 object,
993 local,
994 uuid(9b7e4c05-342c-4106-a19f-4f2704f689F0)
995]
996interface ID3D10Texture3D : ID3D10Resource
997{
998 HRESULT Map(
999 [in] UINT Subresource,
1000 [in] D3D10_MAP MapType,
1001 [in] UINT MapFlags,
1002 [out] D3D10_MAPPED_TEXTURE3D *pMappedTex3D);
1003 void Unmap(
1004 [in] UINT Subresource);
1005 void GetDesc(
1006 [out] D3D10_TEXTURE3D_DESC *pDesc);
1007}
1008
1009[
1010 object,
1011 local,
1012 uuid(c902b03f-60a7-49ba-9936-2a3ab37a7e33)
1013]
1014interface ID3D10View : ID3D10DeviceChild
1015{
1016 void GetResource(
1017 [out] ID3D10Resource **ppResource);
1018}
1019
1020[
1021 object,
1022 local,
1023 uuid(9b7e4c09-342c-4106-a19f-4f2704f689f0)
1024]
1025interface ID3D10DepthStencilView : ID3D10View
1026{
1027 void GetDesc(
1028 [out] D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc);
1029}
1030
1031
1032[
1033 object,
1034 local,
1035 uuid(9b7e4c08-342c-4106-a19f-4f2704f689f0)
1036]
1037interface ID3D10RenderTargetView : ID3D10View
1038{
1039 void GetDesc(
1040 [out] D3D10_RENDER_TARGET_VIEW_DESC *pDesc);
1041}
1042
1043[
1044 object,
1045 local,
1046 uuid(9b7e4c07-342c-4106-a19f-4f2704f689f0)
1047]
1048interface ID3D10ShaderResourceView : ID3D10View
1049{
1050 void GetDesc(
1051 [out] D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc);
1052}
1053
1054/* Resource End */
1055
1056[
1057 object,
1058 local,
1059 uuid(edad8d19-8a35-4d6d-8566-2ea276cde161)
1060]
1061interface ID3D10BlendState : ID3D10DeviceChild
1062{
1063 void GetDesc(
1064 [out] D3D10_BLEND_DESC *pDesc);
1065}
1066
1067[
1068 object,
1069 local,
1070 uuid(2b4b1cc8-a4ad-41f8-8322-ca86fc3ec675)
1071]
1072interface ID3D10DepthStencilState : ID3D10DeviceChild
1073{
1074 void GetDesc(
1075 [out] D3D10_DEPTH_STENCIL_DESC *pDesc);
1076}
1077
1078[
1079 object,
1080 local,
1081 uuid(6316be88-54cd-4040-ab44-20461bc81f68)
1082]
1083interface ID3D10GeometryShader : ID3D10DeviceChild
1084{
1085}
1086
1087[
1088 object,
1089 local,
1090 uuid(9b7e4c0b-342c-4106-a19f-4f2704f689f0)
1091]
1092interface ID3D10InputLayout : ID3D10DeviceChild
1093{
1094}
1095
1096[
1097 object,
1098 local,
1099 uuid(4968b601-9d00-4cde-8346-8e7f675819b6)
1100]
1101interface ID3D10PixelShader : ID3D10DeviceChild
1102{
1103}
1104
1105[
1106 object,
1107 local,
1108 uuid(a2a07292-89af-4345-be2e-c53d9fbb6e9f)
1109]
1110interface ID3D10RasterizerState : ID3D10DeviceChild
1111{
1112 void GetDesc(
1113 [out] D3D10_RASTERIZER_DESC *pDesc);
1114}
1115
1116[
1117 object,
1118 local,
1119 uuid(9b7e4c0c-342c-4106-a19f-4f2704f689f0)
1120]
1121interface ID3D10SamplerState : ID3D10DeviceChild
1122{
1123 void GetDesc(
1124 [out] D3D10_SAMPLER_DESC *pDesc);
1125}
1126
1127[
1128 object,
1129 local,
1130 uuid(9b7e4c0a-342c-4106-a19f-4f2704f689f0)
1131]
1132interface ID3D10VertexShader : ID3D10DeviceChild
1133{
1134}
1135
1136[
1137 object,
1138 local,
1139 uuid(9b7e4c0d-342c-4106-a19f-4f2704f689f0)
1140]
1141interface ID3D10Asynchronous : ID3D10DeviceChild
1142{
1143 void Begin();
1144 void End();
1145 HRESULT GetData(
1146 [out] void *pData,
1147 [in] UINT DataSize,
1148 [in] UINT GetDataFlags);
1149 UINT GetDataSize();
1150}
1151
1152[
1153 object,
1154 local,
1155 uuid(9b7e4c11-342c-4106-a19f-4f2704f689f0)
1156]
1157interface ID3D10Counter : ID3D10Asynchronous
1158{
1159 void GetDesc(
1160 [out] D3D10_COUNTER_DESC *pDesc);
1161}
1162
1163[
1164 object,
1165 local,
1166 uuid(9b7e4C0e-342C-4106-a19f-4f2704f689f0)
1167]
1168interface ID3D10Query : ID3D10Asynchronous
1169{
1170 void GetDesc(
1171 [out] D3D10_QUERY_DESC *pDesc);
1172}
1173
1174[
1175 object,
1176 local,
1177 uuid(9b7e4c10-342c-4106-a19f-4f2704f689f0)
1178]
1179interface ID3D10Predicate : ID3D10Query
1180{
1181}
1182
1183[
1184 object,
1185 local,
1186 uuid(9b7e4c0f-342c-4106-a19f-4f2704f689f0)
1187]
1188interface ID3D10Device : IUnknown
1189{
1190 void VSSetConstantBuffers(
1191 [in] UINT StartSlot,
1192 [in] UINT NumBuffers,
1193 [in] ID3D10Buffer *const *ppConstantBuffers);
1194 void PSSetShaderResources(
1195 [in] UINT StartSlot,
1196 [in] UINT NumViews,
1197 [in] ID3D10ShaderResourceView *const *ppShaderResourceViews);
1198 void PSSetShader(
1199 [in] ID3D10PixelShader *pPixelShader);
1200 void PSSetSamplers(
1201 [in] UINT StartSlot,
1202 [in] UINT NumSamplers,
1203 [in]ID3D10SamplerState *const *ppSamplers);
1204 void VSSetShader(
1205 [in] ID3D10VertexShader *pVertexShader);
1206 void DrawIndexed(
1207 [in] UINT IndexCount,
1208 [in] UINT StartIndexLocation,
1209 [in] INT BaseVertexLocation);
1210 void Draw(
1211 [in] UINT VertexCount,
1212 [in] UINT StartVertexLocation);
1213 void PSSetConstantBuffers(
1214 [in] UINT StartSlot,
1215 [in] UINT NumBuffers,
1216 [in] ID3D10Buffer *const *ppConstantBuffers);
1217 void IASetInputLayout(
1218 [in] ID3D10InputLayout *pInputLayout);
1219 void IASetVertexBuffers(
1220 [in] UINT StartSlot,
1221 [in] UINT NumBuffers,
1222 [in] ID3D10Buffer *const *ppVertexBuffers,
1223 [in] const UINT *pStrides,
1224 [in] const UINT *pOffsets);
1225 void IASetIndexBuffer(
1226 [in] ID3D10Buffer *pIndexBuffer,
1227 [in] DXGI_FORMAT Format,
1228 [in] UINT Offset);
1229 void DrawIndexedInstanced(
1230 [in] UINT IndexCountPerInstance,
1231 [in] UINT InstanceCount,
1232 [in] UINT StartIndexLocation,
1233 [in] INT BaseVertexLocation,
1234 [in] UINT StartInstanceLocation);
1235 void DrawInstanced(
1236 [in] UINT VertexCountPerInstance,
1237 [in] UINT InstanceCount,
1238 [in] UINT StartVertexLocation,
1239 [in] UINT StartInstanceLocation);
1240 void GSSetConstantBuffers(
1241 [in] UINT StartSlot,
1242 [in] UINT NumBuffers,
1243 [in] ID3D10Buffer *const *ppConstantBuffers);
1244 void GSSetShader(
1245 [in] ID3D10GeometryShader *pShader);
1246 void IASetPrimitiveTopology(
1247 [in] D3D10_PRIMITIVE_TOPOLOGY Topology);
1248 void VSSetShaderResources(
1249 [in] UINT StartSlot,
1250 [in] UINT NumViews,
1251 [in] ID3D10ShaderResourceView *const *ppShaderResourceViews);
1252 void VSSetSamplers(
1253 [in] UINT StartSlot,
1254 [in] UINT NumSamplers,
1255 [in] ID3D10SamplerState *const *ppSamplers);
1256 void SetPredication(
1257 [in] ID3D10Predicate *pPredicate,
1258 [in] BOOL PredicateValue);
1259 void GSSetShaderResources(
1260 [in] UINT StartSlot,
1261 [in] UINT NumViews,
1262 [in] ID3D10ShaderResourceView * const *ppShaderResourceViews);
1263 void GSSetSamplers(
1264 [in] UINT StartSlot,
1265 [in] UINT NumSamplers,
1266 [in] ID3D10SamplerState *const *ppSamplers);
1267 void OMSetRenderTargets(
1268 [in] UINT NumViews,
1269 [in] ID3D10RenderTargetView *const *ppRenderTargetViews,
1270 [in] ID3D10DepthStencilView *pDepthStencilView);
1271 void OMSetBlendState(
1272 [in] ID3D10BlendState *pBlendState,
1273 [in] const FLOAT BlendFactor[4],
1274 [in] UINT SampleMask);
1275 void OMSetDepthStencilState(
1276 [in] ID3D10DepthStencilState *pDepthStencilState,
1277 [in] UINT StencilRef);
1278 void SOSetTargets(
1279 [in] UINT NumBuffers,
1280 [in] ID3D10Buffer *const *ppSOTargets,
1281 [in] const UINT *pOffsets);
1282 void DrawAuto();
1283 void RSSetState(
1284 [in] ID3D10RasterizerState *pRasterizerState);
1285 void RSSetViewports(
1286 [in] UINT NumViewports,
1287 [in] const D3D10_VIEWPORT *pViewports);
1288 void RSSetScissorRects(
1289 [in] UINT NumRects,
1290 [in] const D3D10_RECT *pRects);
1291 void CopySubresourceRegion(
1292 [in] ID3D10Resource *pDstResource,
1293 [in] UINT DstSubresource,
1294 [in] UINT DstX,
1295 [in] UINT DstY,
1296 [in] UINT DstZ,
1297 [in] ID3D10Resource *pSrcResource,
1298 [in] UINT SrcSubresource,
1299 [in] const D3D10_BOX *pSrcBox);
1300 void CopyResource(
1301 [in] ID3D10Resource *pDstResource,
1302 [in] ID3D10Resource *pSrcResource);
1303 void UpdateSubresource(
1304 [in] ID3D10Resource *pDstResource,
1305 [in] UINT DstSubresource,
1306 [in] const D3D10_BOX *pDstBox,
1307 [in] const void *pSrcData,
1308 [in] UINT SrcRowPitch,
1309 [in] UINT SrcDepthPitch);
1310 void ClearRenderTargetView(
1311 [in] ID3D10RenderTargetView *pRenderTargetView,
1312 [in] const FLOAT ColorRGBA[4]);
1313 void ClearDepthStencilView(
1314 [in] ID3D10DepthStencilView *pDepthStencilView,
1315 [in] UINT ClearFlags,
1316 [in] FLOAT Depth,
1317 [in] UINT8 Stencil);
1318 void GenerateMips(
1319 [in] ID3D10ShaderResourceView *pShaderResourceView);
1320 void ResolveSubresource(
1321 [in] ID3D10Resource *pDstResource,
1322 [in] UINT DstSubresource,
1323 [in] ID3D10Resource *pSrcResource,
1324 [in] UINT SrcSubresource,
1325 [in] DXGI_FORMAT Format);
1326 void VSGetConstantBuffers(
1327 [in] UINT StartSlot,
1328 [in] UINT NumBuffers,
1329 [out] ID3D10Buffer **ppConstantBuffers);
1330 void PSGetShaderResources(
1331 [in] UINT StartSlot,
1332 [in] UINT NumViews,
1333 [out] ID3D10ShaderResourceView **ppShaderResourceViews);
1334 void PSGetShader(
1335 [out] ID3D10PixelShader **ppPixelShader);
1336 void PSGetSamplers(
1337 [in] UINT StartSlot,
1338 [in] UINT NumSamplers,
1339 [out] ID3D10SamplerState **ppSamplers);
1340 void VSGetShader(
1341 [out] ID3D10VertexShader **ppVertexShader);
1342 void PSGetConstantBuffers(
1343 [in] UINT StartSlot,
1344 [in] UINT NumBuffers,
1345 [out] ID3D10Buffer **ppConstantBuffers);
1346 void IAGetInputLayout(
1347 [out] ID3D10InputLayout **ppInputLayout);
1348 void IAGetVertexBuffers(
1349 [in] UINT StartSlot,
1350 [in] UINT NumBuffers,
1351 [out] ID3D10Buffer **ppVertexBuffers,
1352 [out] UINT *pStrides,
1353 [out] UINT *pOffsets);
1354 void IAGetIndexBuffer(
1355 [out] ID3D10Buffer **pIndexBuffer,
1356 [out] DXGI_FORMAT *Format,
1357 [out] UINT *Offset);
1358 void GSGetConstantBuffers(
1359 [in] UINT StartSlot,
1360 [in] UINT NumBuffers,
1361 [out] ID3D10Buffer **ppConstantBuffers);
1362 void GSGetShader(
1363 [out] ID3D10GeometryShader **ppGeometryShader);
1364 void IAGetPrimitiveTopology(
1365 [out] D3D10_PRIMITIVE_TOPOLOGY *pTopology);
1366 void VSGetShaderResources(
1367 [in] UINT StartSlot,
1368 [in] UINT NumViews,
1369 [out] ID3D10ShaderResourceView **ppShaderResourceViews);
1370 void VSGetSamplers(
1371 [in] UINT StartSlot,
1372 [in] UINT NumSamplers,
1373 [out] ID3D10SamplerState **ppSamplers);
1374 void GetPredication(
1375 [out] ID3D10Predicate **ppPredicate,
1376 [out] BOOL *pPredicateValue);
1377 void GSGetShaderResources(
1378 [in] UINT StartSlot,
1379 [in] UINT NumViews,
1380 [out] ID3D10ShaderResourceView **ppShaderResourceViews);
1381 void GSGetSamplers(
1382 [in] UINT StartSlot,
1383 [in] UINT NumSamplers,
1384 [out] ID3D10SamplerState **ppSamplers);
1385 void OMGetRenderTargets(
1386 [in] UINT NumViews,
1387 [out] ID3D10RenderTargetView **ppRenderTargetViews,
1388 [out] ID3D10DepthStencilView **ppDepthStencilView);
1389 void OMGetBlendState(
1390 [out] ID3D10BlendState **ppBlendState,
1391 [out] FLOAT BlendFactor[4],
1392 [out] UINT *pSampleMask);
1393 void OMGetDepthStencilState(
1394 [out] ID3D10DepthStencilState **ppDepthStencilState,
1395 [out] UINT *pStencilRef);
1396 void SOGetTargets(
1397 [in] UINT NumBuffers,
1398 [out] ID3D10Buffer **ppSOTargets,
1399 [out] UINT *pOffsets);
1400 void RSGetState(
1401 [out] ID3D10RasterizerState **ppRasterizerState);
1402 void RSGetViewports(
1403 [in, out] UINT *NumViewports,
1404 [out] D3D10_VIEWPORT *pViewports);
1405 void RSGetScissorRects(
1406 [in, out] UINT *NumRects,
1407 [out] D3D10_RECT *pRects);
1408 HRESULT GetDeviceRemovedReason();
1409 HRESULT SetExceptionMode(
1410 [in] UINT RaiseFlags);
1411 UINT GetExceptionMode();
1412 HRESULT GetPrivateData(
1413 [in] REFGUID guid,
1414 [in, out] UINT *pDataSize,
1415 [out] void *pData);
1416 HRESULT SetPrivateData(
1417 [in] REFGUID guid,
1418 [in] UINT DataSize,
1419 [in] const void *pData);
1420 HRESULT SetPrivateDataInterface(
1421 [in] REFGUID guid,
1422 [in] const IUnknown *pData);
1423 void ClearState();
1424 void Flush();
1425 HRESULT CreateBuffer(
1426 [in] const D3D10_BUFFER_DESC *pDesc,
1427 [in] const D3D10_SUBRESOURCE_DATA *pInitialData,
1428 [out] ID3D10Buffer **ppBuffer);
1429 HRESULT CreateTexture1D(
1430 [in] const D3D10_TEXTURE1D_DESC *pDesc,
1431 [in] const D3D10_SUBRESOURCE_DATA *pInitialData,
1432 [out] ID3D10Texture1D **ppTexture1D);
1433 HRESULT CreateTexture2D(
1434 [in] const D3D10_TEXTURE2D_DESC *pDesc,
1435 [in] const D3D10_SUBRESOURCE_DATA *pInitialData,
1436 [out] ID3D10Texture2D **ppTexture2D);
1437 HRESULT CreateTexture3D(
1438 [in] const D3D10_TEXTURE3D_DESC *pDesc,
1439 [in] const D3D10_SUBRESOURCE_DATA *pInitialData,
1440 [out] ID3D10Texture3D **ppTexture3D);
1441 HRESULT CreateShaderResourceView(
1442 [in] ID3D10Resource *pResource,
1443 [in] const D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc,
1444 [out] ID3D10ShaderResourceView **ppSRView);
1445 HRESULT CreateRenderTargetView(
1446 [in] ID3D10Resource *pResource,
1447 [in] const D3D10_RENDER_TARGET_VIEW_DESC *pDesc,
1448 [out] ID3D10RenderTargetView **ppRTView);
1449 HRESULT CreateDepthStencilView(
1450 [in] ID3D10Resource *pResource,
1451 [in] const D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc,
1452 [out] ID3D10DepthStencilView **ppDepthStencilView);
1453 HRESULT CreateInputLayout(
1454 [in] const D3D10_INPUT_ELEMENT_DESC *pInputElementDescs,
1455 [in] UINT NumElements,
1456 [in] const void *pShaderBytecodeWithInputSignature,
1457 [in] SIZE_T BytecodeLength,
1458 [out] ID3D10InputLayout **ppInputLayout);
1459 HRESULT CreateVertexShader(
1460 [in] const void *pShaderBytecode,
1461 [in] SIZE_T BytecodeLength,
1462 [out] ID3D10VertexShader **ppVertexShader);
1463 HRESULT CreateGeometryShader(
1464 [in] const void *pShaderBytecode,
1465 [in] SIZE_T BytecodeLength,
1466 [out] ID3D10GeometryShader **ppGeometryShader);
1467 HRESULT CreateGeometryShaderWithStreamOutput(
1468 [in] const void *pShaderBytecode,
1469 [in] SIZE_T BytecodeLength,
1470 [in] const D3D10_SO_DECLARATION_ENTRY *pSODeclaration,
1471 [in] UINT NumEntries,
1472 [in] UINT OutputStreamStride,
1473 [out] ID3D10GeometryShader **ppGeometryShader);
1474 HRESULT CreatePixelShader(
1475 [in] const void *pShaderBytecode,
1476 [in] SIZE_T BytecodeLength,
1477 [out] ID3D10PixelShader **ppPixelShader);
1478 HRESULT CreateBlendState(
1479 [in] const D3D10_BLEND_DESC *pBlendStateDesc,
1480 [out] ID3D10BlendState **ppBlendState);
1481 HRESULT CreateDepthStencilState(
1482 [in] const D3D10_DEPTH_STENCIL_DESC *pDepthStencilDesc,
1483 [out] ID3D10DepthStencilState **ppDepthStencilState);
1484 HRESULT CreateRasterizerState(
1485 [in] const D3D10_RASTERIZER_DESC *pRasterizerDesc,
1486 [out] ID3D10RasterizerState **ppRasterizerState);
1487 HRESULT CreateSamplerState(
1488 [in] const D3D10_SAMPLER_DESC *pSamplerDesc,
1489 [out] ID3D10SamplerState **ppSamplerState);
1490 HRESULT CreateQuery(
1491 [in] const D3D10_QUERY_DESC *pQueryDesc,
1492 [out] ID3D10Query **ppQuery);
1493 HRESULT CreatePredicate(
1494 [in] const D3D10_QUERY_DESC *pPredicateDesc,
1495 [out] ID3D10Predicate **ppPredicate);
1496 HRESULT CreateCounter(
1497 [in] const D3D10_COUNTER_DESC *pCounterDesc,
1498 [out] ID3D10Counter **ppCounter);
1499 HRESULT CheckFormatSupport(
1500 [in] DXGI_FORMAT Format,
1501 [out] UINT *pFormatSupport);
1502 HRESULT CheckMultisampleQualityLevels(
1503 [in] DXGI_FORMAT Format,
1504 [in] UINT SampleCount,
1505 [out] UINT *pNumQualityLevels);
1506 void CheckCounterInfo(
1507 [out] D3D10_COUNTER_INFO *pCounterInfo);
1508 HRESULT CheckCounter(
1509 [in] const D3D10_COUNTER_DESC *pDesc,
1510 [out] D3D10_COUNTER_TYPE *pType,
1511 [out] UINT *pActiveCounters,
1512 [out] LPSTR szName,
1513 [in, out] UINT *pNameLength,
1514 [out] LPSTR szUnits,
1515 [in, out] UINT *pUnitsLength,
1516 [out] LPSTR szDescription,
1517 [in, out] UINT *pDescriptionLength);
1518 UINT GetCreationFlags();
1519 HRESULT OpenSharedResource(
1520 [in] HANDLE hResource,
1521 [in] REFIID ReturnedInterface,
1522 [out] void **ppResource);
1523 void SetTextFilterSize(
1524 [in] UINT Width,
1525 [in] UINT Height);
1526 void GetTextFilterSize(
1527 [out] UINT *pWidth,
1528 [out] UINT *pHeight);
1529}
1530
1531[
1532 object,
1533 local,
1534 uuid(9b7e4e00-342c-4106-a19f-4f2704f689f0)
1535]
1536interface ID3D10Multithread : IUnknown
1537{
1538 void Enter();
1539 void Leave();
1540 BOOL SetMultithreadProtected(
1541 [in] BOOL bMTProtect);
1542 BOOL GetMultithreadProtected();
1543}
1544
1545cpp_quote("#include \"d3d10misc.h\"")
1546cpp_quote("#include \"d3d10shader.h\"")
1547cpp_quote("#include \"d3d10effect.h\"")
1548/* TODO: Include "d310sdklayers.h" as soon as it exists */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette