VR-Vantage 3.0.3 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cg_errors.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2002-2010, NVIDIA Corporation.
4  *
5  *
6  *
7  * NVIDIA Corporation("NVIDIA") supplies this software to you in consideration
8  * of your agreement to the following terms, and your use, installation,
9  * modification or redistribution of this NVIDIA software constitutes
10  * acceptance of these terms. If you do not agree with these terms, please do
11  * not use, install, modify or redistribute this NVIDIA software.
12  *
13  *
14  *
15  * In consideration of your agreement to abide by the following terms, and
16  * subject to these terms, NVIDIA grants you a personal, non-exclusive license,
17  * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
18  * Software"), to use, reproduce, modify and redistribute the NVIDIA
19  * Software, with or without modifications, in source and/or binary forms;
20  * provided that if you redistribute the NVIDIA Software, you must retain the
21  * copyright notice of NVIDIA, this notice and the following text and
22  * disclaimers in all such redistributions of the NVIDIA Software. Neither the
23  * name, trademarks, service marks nor logos of NVIDIA Corporation may be used
24  * to endorse or promote products derived from the NVIDIA Software without
25  * specific prior written permission from NVIDIA. Except as expressly stated
26  * in this notice, no other rights or licenses express or implied, are granted
27  * by NVIDIA herein, including but not limited to any patent rights that may be
28  * infringed by your derivative works or by other works in which the NVIDIA
29  * Software may be incorporated. No hardware is licensed hereunder.
30  *
31  *
32  *
33  * THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
34  * WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
35  * WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
36  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR ITS USE AND OPERATION
37  * EITHER ALONE OR IN COMBINATION WITH OTHER PRODUCTS.
38  *
39  *
40  *
41  * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
42  * EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, LOST
43  * PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
44  * PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY OUT OF THE USE,
45  * REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE NVIDIA SOFTWARE,
46  * HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING
47  * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVISED
48  * OF THE POSSIBILITY OF SUCH DAMAGE.
49  *
50  */
51 
52 /*
53  * The following macro invocations define error codes returned by various cg
54  * API functions.
55  *
56  * The macros have the form :
57  *
58  * CG_ERROR_MACRO(code, enum_name, message)
59  *
60  * code : The integer error code associated with the error.
61  * enum_name : The name of enumerant of the error code in the API.
62  * message : A description string associated with the error.
63  *
64  */
65 
66 
68  CG_NO_ERROR,
69  "No error has occurred.")
70 
73  "The compile returned an error.")
74 
76  CG_INVALID_PARAMETER_ERROR,
77  "The parameter used is invalid.")
78 
79 CG_ERROR_MACRO(3,
81  "The profile is not supported.")
82 
83 CG_ERROR_MACRO(4,
84  CG_PROGRAM_LOAD_ERROR,
85  "The program could not load.")
86 
87 CG_ERROR_MACRO(5,
89  "The program could not bind.")
90 
91 CG_ERROR_MACRO(6,
92  CG_PROGRAM_NOT_LOADED_ERROR,
93  "The program must be loaded before this operation may be used.")
94 
95 CG_ERROR_MACRO(7,
97  "An unsupported GL extension was required to perform this operation.")
98 
99 CG_ERROR_MACRO(8,
100  CG_INVALID_VALUE_TYPE_ERROR,
101  "An unknown value type was assigned to a parameter.")
102 
103 CG_ERROR_MACRO(9,
105  "The parameter is not of matrix type.")
106 
107 CG_ERROR_MACRO(10,
108  CG_INVALID_ENUMERANT_ERROR,
109  "The enumerant parameter has an invalid value.")
110 
111 CG_ERROR_MACRO(11,
113  "The parameter must be a 4x4 matrix type.")
114 
115 CG_ERROR_MACRO(12,
116  CG_FILE_READ_ERROR,
117  "The file could not be read.")
118 
119 CG_ERROR_MACRO(13,
121  "The file could not be written.")
122 
123 CG_ERROR_MACRO(14,
124  CG_NVPARSE_ERROR,
125  "nvparse could not successfully parse the output from the Cg "
126  "compiler backend.")
127 
128 CG_ERROR_MACRO(15,
130  "Memory allocation failed.")
131 
132 CG_ERROR_MACRO(16,
133  CG_INVALID_CONTEXT_HANDLE_ERROR,
134  "Invalid context handle.")
135 
136 CG_ERROR_MACRO(17,
138  "Invalid program handle.")
139 
140 CG_ERROR_MACRO(18,
141  CG_INVALID_PARAM_HANDLE_ERROR,
142  "Invalid parameter handle.")
143 
144 CG_ERROR_MACRO(19,
146  "The specified profile is unknown.")
147 
148 CG_ERROR_MACRO(20,
149  CG_VAR_ARG_ERROR,
150  "The variable arguments were specified incorrectly.")
151 
152 CG_ERROR_MACRO(21,
154  "The dimension value is invalid.")
155 
156 CG_ERROR_MACRO(22,
157  CG_ARRAY_PARAM_ERROR,
158  "The parameter must be an array.")
159 
160 CG_ERROR_MACRO(23,
162  "Index into the array is out of bounds.")
163 
164 CG_ERROR_MACRO(24,
165  CG_CONFLICTING_TYPES_ERROR,
166  "A type being added to the context conflicts with an "
167  "existing type.")
168 
169 CG_ERROR_MACRO(25,
171  "The parameters being bound have conflicting types.")
172 
173 CG_ERROR_MACRO(26,
174  CG_PARAMETER_IS_NOT_SHARED_ERROR,
175  "The parameter must be global.")
176 
177 CG_ERROR_MACRO(27,
179  "The parameter could not be changed to the given variability.")
180 
181 CG_ERROR_MACRO(28,
182  CG_CANNOT_DESTROY_PARAMETER_ERROR,
183  "Cannot destroy the parameter. It is bound to other parameters "
184  "or is not a root parameter.")
185 
186 
187 CG_ERROR_MACRO(29,
189  "The parameter is not a root parameter.")
190 
191 CG_ERROR_MACRO(30,
192  CG_PARAMETERS_DO_NOT_MATCH_ERROR,
193  "The two parameters being bound do not match.")
194 
195 CG_ERROR_MACRO(31,
197  "The parameter is not a program parameter.")
198 
199 CG_ERROR_MACRO(32,
200  CG_INVALID_PARAMETER_TYPE_ERROR,
201  "The type of the parameter is invalid.")
202 
203 CG_ERROR_MACRO(33,
205  "The parameter must be a resizable array.")
206 
207 CG_ERROR_MACRO(34,
208  CG_INVALID_SIZE_ERROR,
209  "The size value is invalid.")
210 
211 CG_ERROR_MACRO(35,
213  "Cannot bind the given parameters. Binding will form a cycle.")
214 
215 CG_ERROR_MACRO(36,
216  CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR,
217  "Cannot bind the given parameters. Array types do not match.")
218 
219 CG_ERROR_MACRO(37,
221  "Cannot bind the given parameters. "
222  "Array dimensions do not match.")
223 
224 CG_ERROR_MACRO(38,
225  CG_ARRAY_HAS_WRONG_DIMENSION_ERROR,
226  "The array has the wrong dimension.")
227 
228 CG_ERROR_MACRO(39,
230  "Connecting the parameters failed because The type of the "
231  "source parameter is not defined within the given program "
232  "or does not match the type with the same name in the program.")
233 
234 CG_ERROR_MACRO(40,
235  CG_INVALID_EFFECT_HANDLE_ERROR,
236  "Invalid effect handle.")
237 
238 CG_ERROR_MACRO(41,
240  "Invalid state handle.")
241 
242 CG_ERROR_MACRO(42,
243  CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR,
244  "Invalid stateassignment handle.")
245 
246 CG_ERROR_MACRO(43,
248  "Invalid pass handle.")
249 
250 CG_ERROR_MACRO(44,
251  CG_INVALID_ANNOTATION_HANDLE_ERROR,
252  "Invalid annotation handle.")
253 
254 CG_ERROR_MACRO(45,
256  "Invalid technique handle.")
257 
258 /* Do not use this! Use CG_INVALID_PARAM_HANDLE_ERROR instead. */
259 
260 CG_ERROR_MACRO(46,
261  CG_INVALID_PARAMETER_HANDLE_ERROR,
262  "Invalid parameter handle.")
263 
264 CG_ERROR_MACRO(47,
266  "Operation is not valid for this type of stateassignment.")
267 
268 CG_ERROR_MACRO(48,
269  CG_INVALID_FUNCTION_HANDLE_ERROR,
270  "Invalid function handle.")
271 
272 CG_ERROR_MACRO(49,
274  "Technique did not pass validation.")
275 
276 CG_ERROR_MACRO(50,
277  CG_INVALID_POINTER_ERROR,
278  "The supplied pointer is NULL.")
279 
280 CG_ERROR_MACRO(51,
282  "Not enough data was provided.")
283 
284 CG_ERROR_MACRO(52,
285  CG_NON_NUMERIC_PARAMETER_ERROR,
286  "The parameter is not of a numeric type.")
287 
288 CG_ERROR_MACRO(53,
290  "The specified array sizes are not compatible with the given array.")
291 
292 CG_ERROR_MACRO(54,
293  CG_CANNOT_SET_NON_UNIFORM_PARAMETER_ERROR,
294  "Cannot set the value of a non-uniform parameter.")
295 
296 CG_ERROR_MACRO(55,
298  "This name is already in use.")
299 
300 CG_ERROR_MACRO(56,
301  CG_INVALID_OBJ_HANDLE_ERROR,
302  "Invalid object handle.")
303 
304 CG_ERROR_MACRO(57,
306  "Invalid buffer handle.")
307 
308 CG_ERROR_MACRO(58,
309  CG_BUFFER_INDEX_OUT_OF_RANGE_ERROR,
310  "Buffer index is out of bounds.")
311 
312 CG_ERROR_MACRO(59,
314  "The buffer is already mapped.")
315 
316 CG_ERROR_MACRO(60,
317  CG_BUFFER_UPDATE_NOT_ALLOWED_ERROR,
318  "The buffer cannot be updated.")
319 
320 CG_ERROR_MACRO(61,
322  "The GLSL geometry program can not load without being combined with a vertex program.")
323 
324 #undef CG_ERROR_MACRO
325 


Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)