+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "../Result.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace Direct3D11\r
- {\r
- /// <summary>Defines result codes that are returned by Direct3D 11 functions.</summary>\r
- /// <unmanaged href="ms679692">HRESULT</unmanaged>\r
- public ref class ResultCode sealed\r
- {\r
- private:\r
- ResultCode();\r
- \r
- public:\r
- /// <summary>\r
- /// The method call is invalid. For example, a method's parameter may not be a valid pointer.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DERR_INVALIDCALL</unmanaged>\r
- property static Result InvalidCall\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// The previous blit operation that is transferring information to or from this surface is incomplete.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DERR_WASSTILLDRAWING</unmanaged>\r
- property static Result WasStillDrawing\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// The file was not found.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3D11_ERROR_FILE_NOT_FOUND</unmanaged>\r
- property static Result FileNotFound\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// There are too many unique instances of a particular type of state object.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS</unmanaged>\r
- property static Result TooManyUniqueStateObjects\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// The index buffer cannot be modified. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER</unmanaged>\r
- property static Result CannotModifyIndexBuffer\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// The mesh is invalid.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_INVALID_MESH</unmanaged>\r
- property static Result InvalidMesh\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// Attribute sort is not supported as an optimization technique. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_CANNOT_ATTR_SORT</unmanaged>\r
- property static Result CannotSortByAttribute\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// Skinning is not supported. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_SKINNING_NOT_SUPPORTED</unmanaged>\r
- property static Result SkinningNotSupported\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// Too many influences specified. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_TOO_MANY_INFLUENCES</unmanaged>\r
- property static Result TooManyInfluences\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// The data is invalid.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_INVALID_DATA</unmanaged>\r
- property static Result InvalidData\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// The mesh has no data. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_LOADED_MESH_HAS_NO_DATA</unmanaged>\r
- property static Result LoadedMeshHasNoData\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// A fragment with that name already exists. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT</unmanaged>\r
- property static Result DuplicateNamedFragment\r
- {\r
- Result get();\r
- }\r
- \r
- /// <summary>\r
- /// The last item cannot be deleted. \r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged>D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM</unmanaged>\r
- property static Result CannotRemoveLastItem\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// Represents the result of a successful operation.\r
- /// </summary>\r
- /// <remarks>This is a successful result.</remarks>\r
- /// <unmanaged href="aa378137">S_OK</unmanaged>\r
- property static Result Success\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// Represents a generic failure result.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged href="aa378137">E_FAIL</unmanaged>\r
- property static Result Failure\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// An invalid parameter was passed to the returning function.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged href="bb205278">E_INVALIDARG</unmanaged>\r
- property static Result InvalidArgument\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// Direct3D could not allocate sufficient memory to complete the call.\r
- /// </summary>\r
- /// <remarks>This is a failed result.</remarks>\r
- /// <unmanaged href="bb205278">E_OUTOFMEMORY</unmanaged>\r
- property static Result OutOfMemory\r
- {\r
- Result get();\r
- }\r
-\r
- /// <summary>\r
- /// Alternate success value, indicating a successful but nonstandard completion (the precise meaning depends on context).\r
- /// </summary>\r
- /// <remarks>This is a successful result.</remarks>\r
- /// <unmanaged href="bb205278">S_FALSE</unmanaged>\r
- property static Result False\r
- {\r
- Result get();\r
- }\r
- };\r
- }\r
-}
\ No newline at end of file