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