OSDN Git Service

DTXMania089リリースに際してのtag付け。
[dtxmania/dtxmania.git] / 110401(DTXMania089) / SlimDXc_Jun2010(VC++2008) / source / direct3d11 / ResultCode11.cpp
1 #include "stdafx.h"\r
2 /*\r
3 * Copyright (c) 2007-2010 SlimDX Group\r
4\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
11\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
14\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
21 * THE SOFTWARE.\r
22 */\r
23 \r
24 #include <d3d11.h>\r
25 #include <d3dx11.h>\r
26 \r
27 #include "ResultCode11.h"\r
28 \r
29 namespace SlimDX\r
30 {\r
31 namespace Direct3D11\r
32 {\r
33         ResultCode::ResultCode()\r
34         {\r
35         }\r
36 \r
37         Result ResultCode::InvalidCall::get()\r
38         {\r
39                 return Result( D3DERR_INVALIDCALL );\r
40         }\r
41 \r
42         Result ResultCode::WasStillDrawing::get()\r
43         {\r
44                 return Result( D3DERR_WASSTILLDRAWING );\r
45         }\r
46 \r
47         Result ResultCode::FileNotFound::get()\r
48         {\r
49                 return Result( D3D11_ERROR_FILE_NOT_FOUND );\r
50         }\r
51 \r
52         Result ResultCode::TooManyUniqueStateObjects::get()\r
53         {\r
54                 return Result( D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS );\r
55         }\r
56         \r
57         Result ResultCode::CannotModifyIndexBuffer::get()\r
58         {\r
59                 return Result( D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER );\r
60         }\r
61         \r
62         Result ResultCode::InvalidMesh::get()\r
63         {\r
64                 return Result( D3DX11_ERR_INVALID_MESH );\r
65         }\r
66         \r
67         Result ResultCode::CannotSortByAttribute::get()\r
68         {\r
69                 return Result( D3DX11_ERR_CANNOT_ATTR_SORT );\r
70         }\r
71         \r
72         Result ResultCode::SkinningNotSupported::get()\r
73         {\r
74                 return Result( D3DX11_ERR_SKINNING_NOT_SUPPORTED );\r
75         }\r
76         \r
77         Result ResultCode::TooManyInfluences::get()\r
78         {\r
79                 return Result( D3DX11_ERR_TOO_MANY_INFLUENCES );\r
80         }\r
81         \r
82         Result ResultCode::InvalidData::get()\r
83         {\r
84                 return Result( D3DX11_ERR_INVALID_DATA );\r
85         }\r
86         \r
87         Result ResultCode::LoadedMeshHasNoData::get()\r
88         {\r
89                 return Result( D3DX11_ERR_LOADED_MESH_HAS_NO_DATA );\r
90         }\r
91         \r
92         Result ResultCode::DuplicateNamedFragment::get()\r
93         {\r
94                 return Result( D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT );\r
95         }\r
96         \r
97         Result ResultCode::CannotRemoveLastItem::get()\r
98         {\r
99                 return Result( D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM );\r
100         }\r
101 \r
102         Result ResultCode::Success::get()\r
103         {\r
104                 return Result( S_OK );\r
105         }\r
106 \r
107         Result ResultCode::Failure::get()\r
108         {\r
109                 return Result( E_FAIL );\r
110         }\r
111 \r
112         Result ResultCode::InvalidArgument::get()\r
113         {\r
114                 return Result( E_INVALIDARG );\r
115         }\r
116 \r
117         Result ResultCode::OutOfMemory::get()\r
118         {\r
119                 return Result( E_OUTOFMEMORY );\r
120         }\r
121 \r
122         Result ResultCode::False::get()\r
123         {\r
124                 return Result( S_FALSE );\r
125         }\r
126 }\r
127 }