3 * Copyright (c) 2007-2010 SlimDX Group
\r
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
6 * of this software and associated documentation files (the "Software"), to deal
\r
7 * in the Software without restriction, including without limitation the rights
\r
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
9 * copies of the Software, and to permit persons to whom the Software is
\r
10 * furnished to do so, subject to the following conditions:
\r
12 * The above copyright notice and this permission notice shall be included in
\r
13 * all copies or substantial portions of the Software.
\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
27 #include "ResultCode11.h"
\r
31 namespace Direct3D11
\r
33 ResultCode::ResultCode()
\r
37 Result ResultCode::InvalidCall::get()
\r
39 return Result( D3DERR_INVALIDCALL );
\r
42 Result ResultCode::WasStillDrawing::get()
\r
44 return Result( D3DERR_WASSTILLDRAWING );
\r
47 Result ResultCode::FileNotFound::get()
\r
49 return Result( D3D11_ERROR_FILE_NOT_FOUND );
\r
52 Result ResultCode::TooManyUniqueStateObjects::get()
\r
54 return Result( D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS );
\r
57 Result ResultCode::CannotModifyIndexBuffer::get()
\r
59 return Result( D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER );
\r
62 Result ResultCode::InvalidMesh::get()
\r
64 return Result( D3DX11_ERR_INVALID_MESH );
\r
67 Result ResultCode::CannotSortByAttribute::get()
\r
69 return Result( D3DX11_ERR_CANNOT_ATTR_SORT );
\r
72 Result ResultCode::SkinningNotSupported::get()
\r
74 return Result( D3DX11_ERR_SKINNING_NOT_SUPPORTED );
\r
77 Result ResultCode::TooManyInfluences::get()
\r
79 return Result( D3DX11_ERR_TOO_MANY_INFLUENCES );
\r
82 Result ResultCode::InvalidData::get()
\r
84 return Result( D3DX11_ERR_INVALID_DATA );
\r
87 Result ResultCode::LoadedMeshHasNoData::get()
\r
89 return Result( D3DX11_ERR_LOADED_MESH_HAS_NO_DATA );
\r
92 Result ResultCode::DuplicateNamedFragment::get()
\r
94 return Result( D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT );
\r
97 Result ResultCode::CannotRemoveLastItem::get()
\r
99 return Result( D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM );
\r
102 Result ResultCode::Success::get()
\r
104 return Result( S_OK );
\r
107 Result ResultCode::Failure::get()
\r
109 return Result( E_FAIL );
\r
112 Result ResultCode::InvalidArgument::get()
\r
114 return Result( E_INVALIDARG );
\r
117 Result ResultCode::OutOfMemory::get()
\r
119 return Result( E_OUTOFMEMORY );
\r
122 Result ResultCode::False::get()
\r
124 return Result( S_FALSE );
\r