OSDN Git Service

#32713 初コミット。SVNrev567時点での、ファイルはbranch/140707(ReBuild XGVersion)から移行したもの。
[dtxmaniaxg-verk/dtxmaniaxg-verk-git.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d10 / ResultCode10.h
1 /*
2 * Copyright (c) 2007-2010 SlimDX Group
3
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 */
22 #pragma once
23
24 #include "../Result.h"
25
26 namespace SlimDX
27 {
28         namespace Direct3D10
29         {
30                 /// <summary>Defines result codes that are returned by Direct3D 10 functions.</summary>
31                 /// <unmanaged href="ms679692">HRESULT</unmanaged>
32                 public ref class ResultCode sealed
33                 {
34                 private:
35                         ResultCode();
36                         
37                 public:
38                         /// <summary>
39                         /// The method call is invalid. For example, a method's parameter may not be a valid pointer.
40                         /// </summary>
41                         /// <remarks>This is a failed result.</remarks>
42                         /// <unmanaged href="bb205278">D3DERR_INVALIDCALL</unmanaged>
43                         property static Result InvalidCall
44                         {
45                                 Result get();
46                         };
47                         
48                         /// <summary>
49                         /// The file was not found.
50                         /// </summary>
51                         /// <remarks>This is a failed result.</remarks>
52                         /// <unmanaged href="bb205278">D3D10_ERROR_FILE_NOT_FOUND</unmanaged>
53                         property static Result FileNotFound
54                         {
55                                 Result get();
56                         }
57
58                         /// <summary>
59                         /// There are too many unique instances of a particular type of state object.
60                         /// </summary>
61                         /// <remarks>This is a failed result.</remarks>
62                         /// <unmanaged href="bb205278">D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS</unmanaged>
63                         property static Result TooManyUniqueStateObjects
64                         {
65                                 Result get();
66                         }
67
68                         /// <summary>
69                         /// The previous blit operation that is transferring information to or from this surface is incomplete.
70                         /// </summary>
71                         /// <remarks>This is a failed result.</remarks>
72                         /// <unmanaged href="bb205278">D3DERR_WASSTILLDRAWING</unmanaged>
73                         property static Result WasStillDrawing
74                         {
75                                 Result get();
76                         }
77
78                         /// <summary>
79                         /// The index buffer cannot be modified. 
80                         /// </summary>
81                         /// <remarks>This is a failed result.</remarks>
82                         /// <unmanaged href="bb172691">D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER</unmanaged>
83                         property static Result CannotModifyIndexBuffer
84                         {
85                                 Result get();
86                         }
87                         
88                         /// <summary>
89                         /// The mesh is invalid.
90                         /// </summary>
91                         /// <remarks>This is a failed result.</remarks>
92                         /// <unmanaged href="bb172691">D3DX10_ERR_INVALID_MESH</unmanaged>
93                         property static Result InvalidMesh
94                         {
95                                 Result get();
96                         }
97                         
98                         /// <summary>
99                         /// Attribute sort is not supported as an optimization technique. 
100                         /// </summary>
101                         /// <remarks>This is a failed result.</remarks>
102                         /// <unmanaged href="bb172691">D3DX10_ERR_CANNOT_ATTR_SORT</unmanaged>
103                         property static Result CannotSortByAttribute
104                         {
105                                 Result get();
106                         }
107                         
108                         /// <summary>
109                         /// Skinning is not supported. 
110                         /// </summary>
111                         /// <remarks>This is a failed result.</remarks>
112                         /// <unmanaged href="bb172691">D3DX10_ERR_SKINNING_NOT_SUPPORTED</unmanaged>
113                         property static Result SkinningNotSupported
114                         {
115                                 Result get();
116                         }
117                         
118                         /// <summary>
119                         /// Too many influences specified. 
120                         /// </summary>
121                         /// <remarks>This is a failed result.</remarks>
122                         /// <unmanaged href="bb172691">D3DX10_ERR_TOO_MANY_INFLUENCES</unmanaged>
123                         property static Result TooManyInfluences
124                         {
125                                 Result get();
126                         }
127                         
128                         /// <summary>
129                         /// The data is invalid.
130                         /// </summary>
131                         /// <remarks>This is a failed result.</remarks>
132                         /// <unmanaged href="bb172691">D3DX10_ERR_INVALID_DATA</unmanaged>
133                         property static Result InvalidData
134                         {
135                                 Result get();
136                         }
137                         
138                         /// <summary>
139                         /// The mesh has no data. 
140                         /// </summary>
141                         /// <remarks>This is a failed result.</remarks>
142                         /// <unmanaged href="bb172691">D3DX10_ERR_LOADED_MESH_HAS_NO_DATA</unmanaged>
143                         property static Result LoadedMeshHasNoData
144                         {
145                                 Result get();
146                         }
147                         
148                         /// <summary>
149                         /// A fragment with that name already exists. 
150                         /// </summary>
151                         /// <remarks>This is a failed result.</remarks>
152                         /// <unmanaged href="bb172691">D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT</unmanaged>
153                         property static Result DuplicateNamedFragment
154                         {
155                                 Result get();
156                         }
157                         
158                         /// <summary>
159                         /// The last item cannot be deleted. 
160                         /// </summary>
161                         /// <remarks>This is a failed result.</remarks>
162                         /// <unmanaged href="bb172691">D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM</unmanaged>
163                         property static Result CannotRemoveLastItem
164                         {
165                                 Result get();
166                         }
167
168                         /// <summary>
169                         /// Represents the result of a successful operation.
170                         /// </summary>
171                         /// <remarks>This is a successful result.</remarks>
172                         /// <unmanaged href="aa378137">S_OK</unmanaged>
173                         property static Result Success
174                         {
175                                 Result get();
176                         };
177
178                         /// <summary>
179                         /// Represents a generic failure result.
180                         /// </summary>
181                         /// <remarks>This is a successful result.</remarks>
182                         /// <unmanaged href="aa378137">E_FAIL</unmanaged>
183                         property static Result Failure
184                         {
185                                 Result get();
186                         };
187
188                         /// <summary>
189                         /// An invalid parameter was passed to the returning function.
190                         /// </summary>
191                         /// <remarks>This is a failed result.</remarks>
192                         /// <unmanaged href="bb205278">E_INVALIDARG</unmanaged>
193                         property static Result InvalidArgument
194                         {
195                                 Result get();
196                         }
197
198                         /// <summary>
199                         /// Direct3D could not allocate sufficient memory to complete the call.
200                         /// </summary>
201                         /// <remarks>This is a failed result.</remarks>
202                         /// <unmanaged href="bb205278">E_OUTOFMEMORY</unmanaged>
203                         property static Result OutOfMemory
204                         {
205                                 Result get();
206                         }
207
208                         /// <summary>
209                         /// Alternate success value, indicating a successful but nonstandard completion (the precise meaning depends on context).
210                         /// </summary>
211                         /// <remarks>This is a successful result.</remarks>
212                         /// <unmanaged href="bb205278">S_FALSE</unmanaged>
213                         property static Result False
214                         {
215                                 Result get();
216                         }
217                 };
218         }
219 }