VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10.idl

最後變更 在這個檔案是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

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

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