Editing Error Codes

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 6,413: Line 6,413:
|-
|-
| SCECGC_ERROR_UNEXPECTED || -1 || Unexpected failure.
| SCECGC_ERROR_UNEXPECTED || -1 || Unexpected failure.
|-
|}
== CG API errors ==
{| border="1" cellspacing="0" cellpadding="5" border="#999" class="wikitable sortable" style="border:1px solid #999; border-collapse: collapse;"
|- bgcolor="#cccccc"
! Description !! Errorcode !! Remarks
|-
| CG_NO_ERROR || 0 || No error has occurred.
|-
| CG_COMPILER_ERROR || 1 || The compile returned an error.
|-
| CG_INVALID_PARAMETER_ERROR || 2 || The parameter used is invalid.
|-
| CG_INVALID_PROFILE_ERROR || 3 || The profile is not supported.
|-
| CG_PROGRAM_LOAD_ERROR || 4 || The program could not load.
|-
| CG_PROGRAM_BIND_ERROR || 5 || The program could not bind.
|-
| CG_PROGRAM_NOT_LOADED_ERROR || 6 || The program must be loaded before this operation may be used.
|-
| CG_UNSUPPORTED_GL_EXTENSION_ERROR || 7 || An unsupported GL extension was required to perform this operation.
|-
| CG_INVALID_VALUE_TYPE_ERROR || 8 || An unknown value type was assigned to a parameter.
|-
| CG_NOT_MATRIX_PARAM_ERROR || 9 || The parameter is not of matrix type.
|-
| CG_INVALID_ENUMERANT_ERROR || 10 || The enumerant parameter has an invalid value.
|-
| CG_NOT_4x4_MATRIX_ERROR || 11 || The parameter must be a 4x4 matrix type.
|-
| CG_FILE_READ_ERROR || 12 || The file could not be read.
|-
| CG_FILE_WRITE_ERROR || 13 || The file could not be written.
|-
| CG_NVPARSE_ERROR || 14 || nvparse could not successfully parse the output from the Cg compiler backend.
|-
| CG_MEMORY_ALLOC_ERROR || 15 || Memory allocation failed.
|-
| CG_INVALID_CONTEXT_HANDLE_ERROR || 16 || Invalid context handle.
|-
| CG_INVALID_PROGRAM_HANDLE_ERROR || 17 || Invalid program handle.
|-
| CG_INVALID_PARAM_HANDLE_ERROR || 18 || Invalid parameter handle.
|-
| CG_UNKNOWN_PROFILE_ERROR || 19 || The specified profile is unknown.
|-
| CG_VAR_ARG_ERROR || 20 || The variable arguments were specified incorrectly.
|-
| CG_INVALID_DIMENSION_ERROR || 21 || The dimension value is invalid.
|-
| CG_ARRAY_PARAM_ERROR || 22 || The parameter must be an array.
|-
| CG_OUT_OF_ARRAY_BOUNDS_ERROR || 23 || Index into the array is out of bounds.
|-
| CG_CONFLICTING_TYPES_ERROR || 24 || A type being added to the context conflicts with an existing type.
|-
| CG_CONFLICTING_PARAMETER_TYPES_ERROR || 25 || The parameters being bound have conflicting types.
|-
| CG_PARAMETER_IS_NOT_SHARED_ERROR || 26 || The parameter must be global.
|-
| CG_INVALID_PARAMETER_VARIABILITY_ERROR || 27 || The parameter could not be changed to the given variability.
|-
| CG_CANNOT_DESTROY_PARAMETER_ERROR || 28 || Cannot destroy the parameter.  It is bound to other parameters or is not a root parameter.
|-
| CG_NOT_ROOT_PARAMETER_ERROR || 29 || The parameter is not a root parameter.
|-
| CG_PARAMETERS_DO_NOT_MATCH_ERROR || 30 || The two parameters being bound do not match.
|-
| CG_IS_NOT_PROGRAM_PARAMETER_ERROR || 31 || The parameter is not a program parameter.
|-
| CG_INVALID_PARAMETER_TYPE_ERROR || 32 || The type of the parameter is invalid.
|-
| CG_PARAMETER_IS_NOT_RESIZABLE_ARRAY_ERROR || 33 || The parameter must be a resizable array.
|-
| CG_INVALID_SIZE_ERROR || 34 || The size value is invalid.
|-
| CG_BIND_CREATES_CYCLE_ERROR || 35 || Cannot bind the given parameters.  Binding will form a cycle.
|-
| CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR || 36 || Cannot bind the given parameters.  Array types do not match.
|-
| CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR || 37 || Cannot bind the given parameters. Array dimensions do not match.
|-
| CG_ARRAY_HAS_WRONG_DIMENSION_ERROR || 38 || The array has the wrong dimension.
|-
| CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR || 39 || Connecting the parameters failed because The type of the source parameter is not defined within the given program or does not match the type with the same name in the program.
|-
| CG_INVALID_EFFECT_HANDLE_ERROR || 40 || Invalid effect handle.
|-
| CG_INVALID_STATE_HANDLE_ERROR || 41 || Invalid state handle.
|-
| CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR || 42 || Invalid stateassignment handle.
|-
| CG_INVALID_PASS_HANDLE_ERROR || 43 || Invalid pass handle.
|-
| CG_INVALID_ANNOTATION_HANDLE_ERROR || 44 || Invalid annotation handle.
|-
| CG_INVALID_TECHNIQUE_HANDLE_ERROR || 45 || Invalid technique handle.
|-
| CG_INVALID_PARAMETER_HANDLE_ERROR || 46 || Invalid parameter handle. Do not use this! Use CG_INVALID_PARAM_HANDLE_ERROR instead.
|-
| CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR || 47 || Operation is not valid for this type of stateassignment.
|-
| CG_INVALID_FUNCTION_HANDLE_ERROR || 48 || Invalid function handle.
|-
| CG_INVALID_TECHNIQUE_ERROR || 49 || Technique did not pass validation.
|-
| CG_INVALID_POINTER_ERROR || 50 || The supplied pointer is NULL.
|-
| CG_NOT_ENOUGH_DATA_ERROR || 51 || Not enough data was provided.
|-
| CG_NON_NUMERIC_PARAMETER_ERROR || 52 || The parameter is not of a numeric type.
|-
| CG_ARRAY_SIZE_MISMATCH_ERROR || 53 || The specified array sizes are not compatible with the given array.
|-
| CG_CANNOT_SET_NON_UNIFORM_PARAMETER_ERROR || 54 || Cannot set the value of a non-uniform parameter.
|-
| CG_DUPLICATE_NAME_ERROR || 55 || This name is already in use.
|-
| CG_INVALID_OBJ_HANDLE_ERROR || 56 || Invalid object handle.
|-
| CG_INVALID_BUFFER_HANDLE_ERROR || 57 || Invalid buffer handle.
|-
| CG_BUFFER_INDEX_OUT_OF_RANGE_ERROR || 58 || Buffer index is out of bounds.
|-
| CG_BUFFER_ALREADY_MAPPED_ERROR || 59 || The buffer is already mapped.
|-
| CG_BUFFER_UPDATE_NOT_ALLOWED_ERROR || 60 || The buffer cannot be updated.
|-
|-
|}
|}
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)