OSDN Git Service

DTXMania089リリースに際してのtag付け。
[dtxmania/dtxmania.git] / 110401(DTXMania089) / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / ResultCode9.h
1 /*\r
2 * Copyright (c) 2007-2010 SlimDX Group\r
3\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy\r
5 * of this software and associated documentation files (the "Software"), to deal\r
6 * in the Software without restriction, including without limitation the rights\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
8 * copies of the Software, and to permit persons to whom the Software is\r
9 * furnished to do so, subject to the following conditions:\r
10\r
11 * The above copyright notice and this permission notice shall be included in\r
12 * all copies or substantial portions of the Software.\r
13\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
20 * THE SOFTWARE.\r
21 */\r
22 #pragma once\r
23 \r
24 #include "../Result.h"\r
25 \r
26 namespace SlimDX\r
27 {\r
28         namespace Direct3D9\r
29         {\r
30                 /// <summary>Defines result codes that are returned by Direct3D 9 functions.</summary>\r
31                 /// <unmanaged href="ms679692">HRESULT</unmanaged>\r
32                 public ref class ResultCode sealed\r
33                 {\r
34                 private:\r
35                         ResultCode();\r
36                         \r
37                 public:\r
38                         /// <summary>\r
39                         /// Occurs when attribute sorting is not supported as an optimization technique.\r
40                         /// </summary>\r
41                         /// <remarks>This is a failed result.</remarks>\r
42                         /// <unmanaged>D3DXERR_CANNOTATTRSORT</unmanaged>\r
43                         property static Result CannotAttributeSort\r
44                         {\r
45                                 Result get();\r
46                         };\r
47 \r
48                         /// <summary>\r
49                         /// Occurs when a user tries to modify an immutable index buffer.\r
50                         /// </summary>\r
51                         /// <remarks>This is a failed result.</remarks>\r
52                         /// <unmanaged>D3DXERR_CANNOTMODIFYINDEXBUFFER</unmanaged>\r
53                         property static Result CannotModifyIndexBuffer\r
54                         {\r
55                                 Result get();\r
56                         };\r
57 \r
58                         /// <summary>\r
59                         /// Occurs when a user tries to remove the last item in a collection.\r
60                         /// </summary>\r
61                         /// <remarks>This is a failed result.</remarks>\r
62                         /// <unmanaged>D3DXERR_CANNOTREMOVELASTITEM</unmanaged>\r
63                         property static Result CannotRemoveLastItem\r
64                         {\r
65                                 Result get();\r
66                         };\r
67 \r
68                         /// <summary>\r
69                         /// Occurs when two set render states conflict with each other.\r
70                         /// </summary>\r
71                         /// <remarks>This is a failed result.</remarks>\r
72                         /// <unmanaged>D3DERR_CONFLICTINGRENDERSTATE</unmanaged>\r
73                         property static Result ConflictingRenderState\r
74                         {\r
75                                 Result get();\r
76                         };\r
77                         \r
78                         /// <summary>\r
79                         /// Occurs when two set texture filters conflict with each other.\r
80                         /// </summary>\r
81                         /// <remarks>This is a failed result.</remarks>\r
82                         /// <unmanaged>D3DERR_CONFLICTINGTEXTUREFILTER</unmanaged>\r
83                         property static Result ConflictingTextureFilter\r
84                         {\r
85                                 Result get();\r
86                         };\r
87                         \r
88                         /// <summary>\r
89                         /// Occurs when two texture palettes conflict with each other.\r
90                         /// </summary>\r
91                         /// <remarks>This is a failed result.</remarks>\r
92                         /// <unmanaged>D3DERR_CONFLICTINGTEXTUREPALETTE</unmanaged>\r
93                         property static Result ConflictingTexturePalette\r
94                         {\r
95                                 Result get();\r
96                         };\r
97                         \r
98                         /// <summary>\r
99                         /// Occurs when a device is hung.\r
100                         /// </summary>\r
101                         /// <remarks>This is a failed result.</remarks>\r
102                         /// <unmanaged>D3DERR_DEVICEHUNG</unmanaged>\r
103                         property static Result DeviceHung\r
104                         {\r
105                                 Result get();\r
106                         }\r
107 \r
108                         /// <summary>\r
109                         /// Occurs when a device is lost.\r
110                         /// </summary>\r
111                         /// <remarks>This is a failed result.</remarks>\r
112                         /// <unmanaged href="bb172554">D3DERR_DEVICELOST</unmanaged>\r
113                         property static Result DeviceLost\r
114                         {\r
115                                 Result get();\r
116                         };\r
117                         \r
118                         /// <summary>\r
119                         /// Occurs when a lost yet resettable device has not yet been reset.\r
120                         /// </summary>\r
121                         /// <remarks>This is a failed result.</remarks>\r
122                         /// <unmanaged href="bb172554">D3DERR_DEVICENOTRESET</unmanaged>\r
123                         property static Result DeviceNotReset\r
124                         {\r
125                                 Result get();\r
126                         };\r
127                         \r
128                         /// <summary>\r
129                         /// Occurs when a device is removed from the system.\r
130                         /// </summary>\r
131                         /// <remarks>This is a failed result.</remarks>\r
132                         /// <unmanaged>D3DERR_DEVICEREMOVED</unmanaged>\r
133                         property static Result DeviceRemoved\r
134                         {\r
135                                 Result get();\r
136                         };\r
137 \r
138                         /// <summary>\r
139                         /// Occurs when a driver internal error is thrown.\r
140                         /// </summary>\r
141                         /// <remarks>This is a failed result.</remarks>\r
142                         /// <unmanaged>D3DERR_DRIVERINTERNALERROR</unmanaged>\r
143                         property static Result DriverInternalError\r
144                         {\r
145                                 Result get();\r
146                         };\r
147 \r
148                         /// <summary>\r
149                         /// Occurs when a fragment with the specified name already exists.\r
150                         /// </summary>\r
151                         /// <remarks>This is a failed result.</remarks>\r
152                         /// <unmanaged>D3DXERR_DUPLICATENAMEDFRAGMENT</unmanaged>\r
153                         property static Result DuplicateNamedFragment\r
154                         {\r
155                                 Result get();\r
156                         };\r
157 \r
158                         /// <summary>\r
159                         /// Represents a generic failure result.\r
160                         /// </summary>\r
161                         /// <remarks>This is a failed result.</remarks>\r
162                         /// <unmanaged href="aa378137">E_FAIL</unmanaged>\r
163                         property static Result Failure\r
164                         {\r
165                                 Result get();\r
166                         };\r
167                         \r
168                         /// <summary>\r
169                         /// Occurs when an invalid method call is made. This is usually do to an invalid parameter.\r
170                         /// </summary>\r
171                         /// <remarks>This is a failed result.</remarks>\r
172                         /// <unmanaged href="bb172554">D3DERR_INVALIDCALL</unmanaged>\r
173                         property static Result InvalidCall\r
174                         {\r
175                                 Result get();\r
176                         };\r
177 \r
178                         /// <summary>\r
179                         /// Occurs when passed data is invalid.\r
180                         /// </summary>\r
181                         /// <remarks>This is a failed result.</remarks>\r
182                         /// <unmanaged>D3DXERR_INVALIDDATA</unmanaged>\r
183                         property static Result InvalidData\r
184                         {\r
185                                 Result get();\r
186                         };\r
187                         \r
188                         /// <summary>\r
189                         /// Occurs when a requested device type is invalid.\r
190                         /// </summary>\r
191                         /// <remarks>This is a failed result.</remarks>\r
192                         /// <unmanaged>D3DERR_INVALIDDEVICE</unmanaged>\r
193                         property static Result InvalidDevice\r
194                         {\r
195                                 Result get();\r
196                         };\r
197 \r
198                         /// <summary>\r
199                         /// Occurs when an invalid mesh is passed.\r
200                         /// </summary>\r
201                         /// <remarks>This is a failed result.</remarks>\r
202                         /// <unmanaged>D3DXERR_INVALIDMESH</unmanaged>\r
203                         property static Result InvalidMesh\r
204                         {\r
205                                 Result get();\r
206                         };\r
207 \r
208                         /// <summary>\r
209                         /// Occurs when a loaded mesh has no data.\r
210                         /// </summary>\r
211                         /// <remarks>This is a failed result.</remarks>\r
212                         /// <unmanaged>D3DXERR_LOADEDMESHASNODATA</unmanaged>\r
213                         property static Result LoadedMeshHasNoData\r
214                         {\r
215                                 Result get();\r
216                         };\r
217                         \r
218                         /// <summary>\r
219                         /// Occurs when there is more data available than the specified buffer can hold.\r
220                         /// </summary>\r
221                         /// <remarks>This is a failed result.</remarks>\r
222                         /// <unmanaged>D3DERR_MOREDATA</unmanaged>\r
223                         property static Result MoreData\r
224                         {\r
225                                 Result get();\r
226                         };\r
227 \r
228                         /// <summary>\r
229                         /// Occurs when a method succeeds but mipmaps could not be automatically generated.\r
230                         /// </summary>\r
231                         /// <remarks>This is a successful result.</remarks>\r
232                         /// <unmanaged>D3DOK_NOAUTOGEN</unmanaged>\r
233                         property static Result NoAutomaticGeneration\r
234                         {\r
235                                 Result get();\r
236                         };\r
237                         \r
238                         /// <summary>\r
239                         /// Occurs when the device does not support the queried technique.\r
240                         /// </summary>\r
241                         /// <remarks>This is a failed result.</remarks>\r
242                         /// <unmanaged href="bb172554">D3DERR_NOTAVAILABLE</unmanaged>\r
243                         property static Result NotAvailable\r
244                         {\r
245                                 Result get();\r
246                         };\r
247                         \r
248                         /// <summary>\r
249                         /// Occurs when the requested item cannot be found.\r
250                         /// </summary>\r
251                         /// <remarks>This is a failed result.</remarks>\r
252                         /// <unmanaged>D3DERR_NOTFOUND</unmanaged>\r
253                         property static Result NotFound\r
254                         {\r
255                                 Result get();\r
256                         };\r
257                         \r
258                         /// <summary>\r
259                         /// Occurs when the resource is not resident in memory.\r
260                         /// </summary>\r
261                         /// <remarks>This is a successful result.</remarks>\r
262                         /// <unmanaged href="bb174339">S_NOT_RESIDENT</unmanaged>\r
263                         property static Result NotResident\r
264                         {\r
265                                 Result get();\r
266                         };\r
267                         \r
268                         /// <summary>\r
269                         /// Occurs when the driver runs out of video memory.\r
270                         /// </summary>\r
271                         /// <remarks>This is a failed result.</remarks>\r
272                         /// <unmanaged>D3DERR_OUTOFVIDEOMEMORY</unmanaged>\r
273                         property static Result OutOfVideoMemory\r
274                         {\r
275                                 Result get();\r
276                         };\r
277 \r
278                         /// <summary>\r
279                         /// Occurs when the desktop display mode changes.\r
280                         /// </summary>\r
281                         /// <remarks>This is a successful result.</remarks>\r
282                         /// <unmanaged>S_PRESENT_MODE_CHANGED</unmanaged>\r
283                         property static Result PresentModeChanged\r
284                         {\r
285                                 Result get();\r
286                         };\r
287 \r
288                         /// <summary>\r
289                         /// Occurs when the presentation area is occluded.\r
290                         /// </summary>\r
291                         /// <remarks>This is a successful result.</remarks>\r
292                         /// <unmanaged href="bb219624">S_PRESENT_OCCLUDED</unmanaged>\r
293                         property static Result PresentOccluded\r
294                         {\r
295                                 Result get();\r
296                         };\r
297 \r
298                         /// <summary>\r
299                         /// Occurs when the resource is resident in shared memory.\r
300                         /// </summary>\r
301                         /// <remarks>This is a successful result.</remarks>\r
302                         /// <unmanaged href="bb174339">S_RESIDENT_IN_SHARED_MEMORY</unmanaged>\r
303                         property static Result ResidentInSharedMemory\r
304                         {\r
305                                 Result get();\r
306                         };\r
307                         \r
308                         /// <summary>\r
309                         /// Occurs when skinning is not supported.\r
310                         /// </summary>\r
311                         /// <remarks>This is a failed result.</remarks>\r
312                         /// <unmanaged>D3DXERR_SKINNINGNOTSUPPORTED</unmanaged>\r
313                         property static Result SkinningNotSupported\r
314                         {\r
315                                 Result get();\r
316                         };\r
317 \r
318                         /// <summary>\r
319                         /// Represents a generic success result.\r
320                         /// </summary>\r
321                         /// <remarks>This is a successful result.</remarks>\r
322                         /// <unmanaged href="bb172554">D3D_OK</unmanaged>\r
323                         property static Result Success\r
324                         {\r
325                                 Result get();\r
326                         };\r
327 \r
328                         /// <summary>\r
329                         /// Occurs when too many vertex influences are specified.\r
330                         /// </summary>\r
331                         /// <remarks>This is a failed result.</remarks>\r
332                         /// <unmanaged>D3DXERR_TOOMANYINFLUENCES</unmanaged>\r
333                         property static Result TooManyInfluences\r
334                         {\r
335                                 Result get();\r
336                         };\r
337                         \r
338                         /// <summary>\r
339                         /// Occurs when more texture-filtering operations are requested than the device can support.\r
340                         /// </summary>\r
341                         /// <remarks>This is a failed result.</remarks>\r
342                         /// <unmanaged>D3DERR_TOOMANYOPERATIONS</unmanaged>\r
343                         property static Result TooManyOperations\r
344                         {\r
345                                 Result get();\r
346                         };\r
347                         \r
348                         /// <summary>\r
349                         /// Occurs when the device does not support the requested alpha blending argument.\r
350                         /// </summary>\r
351                         /// <remarks>This is a failed result.</remarks>\r
352                         /// <unmanaged>D3DERR_UNSUPPORTEDALPHAARG</unmanaged>\r
353                         property static Result UnsupportedAlphaArgument\r
354                         {\r
355                                 Result get();\r
356                         };\r
357                         \r
358                         /// <summary>\r
359                         /// Occurs when the device does not support the requested alpha blending operation.\r
360                         /// </summary>\r
361                         /// <remarks>This is a failed result.</remarks>\r
362                         /// <unmanaged>D3DERR_UNSUPPORTEDALPHAOPERATION</unmanaged>\r
363                         property static Result UnsupportedAlphaOperation\r
364                         {\r
365                                 Result get();\r
366                         };\r
367                         \r
368                         /// <summary>\r
369                         /// Occurs when the device not support the requested color blending argument.\r
370                         /// </summary>\r
371                         /// <remarks>This is a failed result.</remarks>\r
372                         /// <unmanaged>D3DERR_UNSUPPORTEDCOLORARG</unmanaged>\r
373                         property static Result UnsupportedColorArgument\r
374                         {\r
375                                 Result get();\r
376                         };\r
377                         \r
378                         /// <summary>\r
379                         /// Occurs when the device does not support the requested color blending operation.\r
380                         /// </summary>\r
381                         /// <remarks>This is a failed result.</remarks>\r
382                         /// <unmanaged>D3DERR_UNSUPPORTEDCOLOROPERATION</unmanaged>\r
383                         property static Result UnsupportedColorOperation\r
384                         {\r
385                                 Result get();\r
386                         };\r
387                         \r
388                         /// <summary>\r
389                         /// Occurs when the device does not support the requested texture factor value.\r
390                         /// </summary>\r
391                         /// <remarks>This is a failed result.</remarks>\r
392                         /// <unmanaged>D3DERR_UNSUPPORTEDFACTORVALUE</unmanaged>\r
393                         property static Result UnsupportedFactorValue\r
394                         {\r
395                                 Result get();\r
396                         };\r
397                         \r
398                         /// <summary>\r
399                         /// Occurs when the device does not support the requested texture filter.\r
400                         /// </summary>\r
401                         /// <remarks>This is a failed result.</remarks>\r
402                         /// <unmanaged>D3DERR_UNSUPPORTEDTEXTUREFILTER</unmanaged>\r
403                         property static Result UnsupportedTextureFilter\r
404                         {\r
405                                 Result get();\r
406                         };\r
407                 \r
408                         /// <summary>\r
409                         /// Occurs when a previous draw operation has not yet completed at the time of a new draw call.\r
410                         /// </summary>\r
411                         /// <remarks>This is a failed result.</remarks>\r
412                         /// <unmanaged>D3DERR_WASSTILLDRAWING</unmanaged>\r
413                         property static Result WasStillDrawing\r
414                         {\r
415                                 Result get();\r
416                         };\r
417                         \r
418                         /// <summary>\r
419                         /// Occurs when the pixel format for a texture is invalid.\r
420                         /// </summary>\r
421                         /// <remarks>This is a failed result.</remarks>\r
422                         /// <unmanaged>D3DERR_WRONGTEXTUREFORMAT</unmanaged>\r
423                         property static Result WrongTextureFormat\r
424                         {\r
425                                 Result get();\r
426                         };\r
427                 };\r
428         }\r
429 }