source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/Standalone/Hierarchical Systems Demo [OpenGL]/RESOURCES/include/Cg/cg_errors.h @ 3255

Revision 3255, 8.3 KB checked in by szirmay, 15 years ago (diff)
Line 
1/*
2 *
3 * Copyright (c) 2002, 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
67CG_ERROR_MACRO(0,
68               CG_NO_ERROR,
69               "No error has occurred.")
70
71CG_ERROR_MACRO(1,
72               CG_COMPILER_ERROR,
73               "The compile returned an error.")
74
75CG_ERROR_MACRO(2,
76               CG_INVALID_PARAMETER_ERROR,
77               "The parameter used is invalid.")
78
79CG_ERROR_MACRO(3,
80               CG_INVALID_PROFILE_ERROR,
81               "The profile is not supported.")
82
83CG_ERROR_MACRO(4,
84               CG_PROGRAM_LOAD_ERROR,
85               "The program could not load.")
86
87CG_ERROR_MACRO(5,
88               CG_PROGRAM_BIND_ERROR,
89               "The program could not bind.")
90
91CG_ERROR_MACRO(6,
92               CG_PROGRAM_NOT_LOADED_ERROR,
93               "The program must be loaded before this operation may be used.")
94
95CG_ERROR_MACRO(7,
96               CG_UNSUPPORTED_GL_EXTENSION_ERROR,
97               "An unsupported GL extension was required to perform this operation.")
98
99CG_ERROR_MACRO(8,
100               CG_INVALID_VALUE_TYPE_ERROR,
101               "An unknown value type was assigned to a parameter.")
102
103CG_ERROR_MACRO(9,
104               CG_NOT_MATRIX_PARAM_ERROR,
105               "The parameter is not of matrix type.")
106
107CG_ERROR_MACRO(10,
108               CG_INVALID_ENUMERANT_ERROR,
109               "The enumerant parameter has an invalid value.")
110
111CG_ERROR_MACRO(11,
112               CG_NOT_4x4_MATRIX_ERROR,
113               "The parameter must be a 4x4 matrix type.")
114
115CG_ERROR_MACRO(12,
116               CG_FILE_READ_ERROR,
117               "The file could not be read.")
118
119CG_ERROR_MACRO(13,
120               CG_FILE_WRITE_ERROR,
121               "The file could not be written.")
122
123CG_ERROR_MACRO(14,
124               CG_NVPARSE_ERROR,
125               "nvparse could not successfully parse the output from the Cg "
126               "compiler backend.")
127
128CG_ERROR_MACRO(15,
129               CG_MEMORY_ALLOC_ERROR,
130               "Memory allocation failed.")
131
132CG_ERROR_MACRO(16,
133               CG_INVALID_CONTEXT_HANDLE_ERROR,
134               "Invalid context handle.")
135
136CG_ERROR_MACRO(17,
137               CG_INVALID_PROGRAM_HANDLE_ERROR,
138               "Invalid program handle.")
139
140CG_ERROR_MACRO(18,
141               CG_INVALID_PARAM_HANDLE_ERROR,
142               "Invalid parameter handle.")
143
144CG_ERROR_MACRO(19,
145               CG_UNKNOWN_PROFILE_ERROR,
146               "The specified profile is unknown.")
147
148CG_ERROR_MACRO(20,
149               CG_VAR_ARG_ERROR,
150               "The variable arguments were specified incorrectly.")
151
152CG_ERROR_MACRO(21,
153               CG_INVALID_DIMENSION_ERROR,
154               "The dimension value is invalid.")
155
156CG_ERROR_MACRO(22,
157               CG_ARRAY_PARAM_ERROR,
158               "The parameter must be an array.")
159
160CG_ERROR_MACRO(23,
161               CG_OUT_OF_ARRAY_BOUNDS_ERROR,
162               "Index into the array is out of bounds.")
163
164CG_ERROR_MACRO(24,
165               CG_CONFLICTING_TYPES_ERROR,
166               "A type being added to the context conflicts with an "
167               "existing type.")
168
169CG_ERROR_MACRO(25,
170               CG_CONFLICTING_PARAMETER_TYPES_ERROR,
171               "The parameters being bound have conflicting types.")
172
173CG_ERROR_MACRO(26,
174               CG_PARAMETER_IS_NOT_SHARED_ERROR,
175               "The parameter must be global.")
176
177CG_ERROR_MACRO(27,
178               CG_INVALID_PARAMETER_VARIABILITY_ERROR,
179               "The parameter could not be changed to the given variability.")
180
181CG_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
187CG_ERROR_MACRO(29,
188               CG_NOT_ROOT_PARAMETER_ERROR,
189               "The parameter is not a root parameter.")
190
191CG_ERROR_MACRO(30,
192               CG_PARAMETERS_DO_NOT_MATCH_ERROR,
193               "The two parameters being bound do not match.")
194
195CG_ERROR_MACRO(31,
196               CG_IS_NOT_PROGRAM_PARAMETER_ERROR,
197               "The parameter is not a program parameter.")
198
199CG_ERROR_MACRO(32,
200               CG_INVALID_PARAMETER_TYPE_ERROR,
201               "The type of the parameter is invalid.")
202
203CG_ERROR_MACRO(33,
204               CG_PARAMETER_IS_NOT_RESIZABLE_ARRAY_ERROR,
205               "The parameter must be a resizable array.")
206
207CG_ERROR_MACRO(34,
208               CG_INVALID_SIZE_ERROR,
209               "The size value is invalid.")
210
211CG_ERROR_MACRO(35,
212               CG_BIND_CREATES_CYCLE_ERROR,
213               "Cannot bind the given parameters.  Binding will form a cycle.")
214
215CG_ERROR_MACRO(36,
216               CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR,
217               "Cannot bind the given parameters.  Array types do not match.")
218
219CG_ERROR_MACRO(37,
220               CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR,
221               "Cannot bind the given parameters.  "
222               "Array dimensions do not match.")
223
224CG_ERROR_MACRO(38,
225               CG_ARRAY_HAS_WRONG_DIMENSION_ERROR,
226               "The array is has the wrong dimension.")
227
228CG_ERROR_MACRO(39,
229               CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR,
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#undef CG_ERROR_MACRO
235
Note: See TracBrowser for help on using the repository browser.