2 * Copyright (c) 2007-2010 SlimDX Group
\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
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\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
24 #include "../Result.h"
\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
39 /// Occurs when attribute sorting is not supported as an optimization technique.
\r
41 /// <remarks>This is a failed result.</remarks>
\r
42 /// <unmanaged>D3DXERR_CANNOTATTRSORT</unmanaged>
\r
43 property static Result CannotAttributeSort
\r
49 /// Occurs when a user tries to modify an immutable index buffer.
\r
51 /// <remarks>This is a failed result.</remarks>
\r
52 /// <unmanaged>D3DXERR_CANNOTMODIFYINDEXBUFFER</unmanaged>
\r
53 property static Result CannotModifyIndexBuffer
\r
59 /// Occurs when a user tries to remove the last item in a collection.
\r
61 /// <remarks>This is a failed result.</remarks>
\r
62 /// <unmanaged>D3DXERR_CANNOTREMOVELASTITEM</unmanaged>
\r
63 property static Result CannotRemoveLastItem
\r
69 /// Occurs when two set render states conflict with each other.
\r
71 /// <remarks>This is a failed result.</remarks>
\r
72 /// <unmanaged>D3DERR_CONFLICTINGRENDERSTATE</unmanaged>
\r
73 property static Result ConflictingRenderState
\r
79 /// Occurs when two set texture filters conflict with each other.
\r
81 /// <remarks>This is a failed result.</remarks>
\r
82 /// <unmanaged>D3DERR_CONFLICTINGTEXTUREFILTER</unmanaged>
\r
83 property static Result ConflictingTextureFilter
\r
89 /// Occurs when two texture palettes conflict with each other.
\r
91 /// <remarks>This is a failed result.</remarks>
\r
92 /// <unmanaged>D3DERR_CONFLICTINGTEXTUREPALETTE</unmanaged>
\r
93 property static Result ConflictingTexturePalette
\r
99 /// Occurs when a device is hung.
\r
101 /// <remarks>This is a failed result.</remarks>
\r
102 /// <unmanaged>D3DERR_DEVICEHUNG</unmanaged>
\r
103 property static Result DeviceHung
\r
109 /// Occurs when a device is lost.
\r
111 /// <remarks>This is a failed result.</remarks>
\r
112 /// <unmanaged href="bb172554">D3DERR_DEVICELOST</unmanaged>
\r
113 property static Result DeviceLost
\r
119 /// Occurs when a lost yet resettable device has not yet been reset.
\r
121 /// <remarks>This is a failed result.</remarks>
\r
122 /// <unmanaged href="bb172554">D3DERR_DEVICENOTRESET</unmanaged>
\r
123 property static Result DeviceNotReset
\r
129 /// Occurs when a device is removed from the system.
\r
131 /// <remarks>This is a failed result.</remarks>
\r
132 /// <unmanaged>D3DERR_DEVICEREMOVED</unmanaged>
\r
133 property static Result DeviceRemoved
\r
139 /// Occurs when a driver internal error is thrown.
\r
141 /// <remarks>This is a failed result.</remarks>
\r
142 /// <unmanaged>D3DERR_DRIVERINTERNALERROR</unmanaged>
\r
143 property static Result DriverInternalError
\r
149 /// Occurs when a fragment with the specified name already exists.
\r
151 /// <remarks>This is a failed result.</remarks>
\r
152 /// <unmanaged>D3DXERR_DUPLICATENAMEDFRAGMENT</unmanaged>
\r
153 property static Result DuplicateNamedFragment
\r
159 /// Represents a generic failure result.
\r
161 /// <remarks>This is a failed result.</remarks>
\r
162 /// <unmanaged href="aa378137">E_FAIL</unmanaged>
\r
163 property static Result Failure
\r
169 /// Occurs when an invalid method call is made. This is usually do to an invalid parameter.
\r
171 /// <remarks>This is a failed result.</remarks>
\r
172 /// <unmanaged href="bb172554">D3DERR_INVALIDCALL</unmanaged>
\r
173 property static Result InvalidCall
\r
179 /// Occurs when passed data is invalid.
\r
181 /// <remarks>This is a failed result.</remarks>
\r
182 /// <unmanaged>D3DXERR_INVALIDDATA</unmanaged>
\r
183 property static Result InvalidData
\r
189 /// Occurs when a requested device type is invalid.
\r
191 /// <remarks>This is a failed result.</remarks>
\r
192 /// <unmanaged>D3DERR_INVALIDDEVICE</unmanaged>
\r
193 property static Result InvalidDevice
\r
199 /// Occurs when an invalid mesh is passed.
\r
201 /// <remarks>This is a failed result.</remarks>
\r
202 /// <unmanaged>D3DXERR_INVALIDMESH</unmanaged>
\r
203 property static Result InvalidMesh
\r
209 /// Occurs when a loaded mesh has no data.
\r
211 /// <remarks>This is a failed result.</remarks>
\r
212 /// <unmanaged>D3DXERR_LOADEDMESHASNODATA</unmanaged>
\r
213 property static Result LoadedMeshHasNoData
\r
219 /// Occurs when there is more data available than the specified buffer can hold.
\r
221 /// <remarks>This is a failed result.</remarks>
\r
222 /// <unmanaged>D3DERR_MOREDATA</unmanaged>
\r
223 property static Result MoreData
\r
229 /// Occurs when a method succeeds but mipmaps could not be automatically generated.
\r
231 /// <remarks>This is a successful result.</remarks>
\r
232 /// <unmanaged>D3DOK_NOAUTOGEN</unmanaged>
\r
233 property static Result NoAutomaticGeneration
\r
239 /// Occurs when the device does not support the queried technique.
\r
241 /// <remarks>This is a failed result.</remarks>
\r
242 /// <unmanaged href="bb172554">D3DERR_NOTAVAILABLE</unmanaged>
\r
243 property static Result NotAvailable
\r
249 /// Occurs when the requested item cannot be found.
\r
251 /// <remarks>This is a failed result.</remarks>
\r
252 /// <unmanaged>D3DERR_NOTFOUND</unmanaged>
\r
253 property static Result NotFound
\r
259 /// Occurs when the resource is not resident in memory.
\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
269 /// Occurs when the driver runs out of video memory.
\r
271 /// <remarks>This is a failed result.</remarks>
\r
272 /// <unmanaged>D3DERR_OUTOFVIDEOMEMORY</unmanaged>
\r
273 property static Result OutOfVideoMemory
\r
279 /// Occurs when the desktop display mode changes.
\r
281 /// <remarks>This is a successful result.</remarks>
\r
282 /// <unmanaged>S_PRESENT_MODE_CHANGED</unmanaged>
\r
283 property static Result PresentModeChanged
\r
289 /// Occurs when the presentation area is occluded.
\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
299 /// Occurs when the resource is resident in shared memory.
\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
309 /// Occurs when skinning is not supported.
\r
311 /// <remarks>This is a failed result.</remarks>
\r
312 /// <unmanaged>D3DXERR_SKINNINGNOTSUPPORTED</unmanaged>
\r
313 property static Result SkinningNotSupported
\r
319 /// Represents a generic success result.
\r
321 /// <remarks>This is a successful result.</remarks>
\r
322 /// <unmanaged href="bb172554">D3D_OK</unmanaged>
\r
323 property static Result Success
\r
329 /// Occurs when too many vertex influences are specified.
\r
331 /// <remarks>This is a failed result.</remarks>
\r
332 /// <unmanaged>D3DXERR_TOOMANYINFLUENCES</unmanaged>
\r
333 property static Result TooManyInfluences
\r
339 /// Occurs when more texture-filtering operations are requested than the device can support.
\r
341 /// <remarks>This is a failed result.</remarks>
\r
342 /// <unmanaged>D3DERR_TOOMANYOPERATIONS</unmanaged>
\r
343 property static Result TooManyOperations
\r
349 /// Occurs when the device does not support the requested alpha blending argument.
\r
351 /// <remarks>This is a failed result.</remarks>
\r
352 /// <unmanaged>D3DERR_UNSUPPORTEDALPHAARG</unmanaged>
\r
353 property static Result UnsupportedAlphaArgument
\r
359 /// Occurs when the device does not support the requested alpha blending operation.
\r
361 /// <remarks>This is a failed result.</remarks>
\r
362 /// <unmanaged>D3DERR_UNSUPPORTEDALPHAOPERATION</unmanaged>
\r
363 property static Result UnsupportedAlphaOperation
\r
369 /// Occurs when the device not support the requested color blending argument.
\r
371 /// <remarks>This is a failed result.</remarks>
\r
372 /// <unmanaged>D3DERR_UNSUPPORTEDCOLORARG</unmanaged>
\r
373 property static Result UnsupportedColorArgument
\r
379 /// Occurs when the device does not support the requested color blending operation.
\r
381 /// <remarks>This is a failed result.</remarks>
\r
382 /// <unmanaged>D3DERR_UNSUPPORTEDCOLOROPERATION</unmanaged>
\r
383 property static Result UnsupportedColorOperation
\r
389 /// Occurs when the device does not support the requested texture factor value.
\r
391 /// <remarks>This is a failed result.</remarks>
\r
392 /// <unmanaged>D3DERR_UNSUPPORTEDFACTORVALUE</unmanaged>
\r
393 property static Result UnsupportedFactorValue
\r
399 /// Occurs when the device does not support the requested texture filter.
\r
401 /// <remarks>This is a failed result.</remarks>
\r
402 /// <unmanaged>D3DERR_UNSUPPORTEDTEXTUREFILTER</unmanaged>
\r
403 property static Result UnsupportedTextureFilter
\r
409 /// Occurs when a previous draw operation has not yet completed at the time of a new draw call.
\r
411 /// <remarks>This is a failed result.</remarks>
\r
412 /// <unmanaged>D3DERR_WASSTILLDRAWING</unmanaged>
\r
413 property static Result WasStillDrawing
\r
419 /// Occurs when the pixel format for a texture is invalid.
\r
421 /// <remarks>This is a failed result.</remarks>
\r
422 /// <unmanaged>D3DERR_WRONGTEXTUREFORMAT</unmanaged>
\r
423 property static Result WrongTextureFormat
\r