NVIDIA OptiX 7.1 API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Error handling

Functions

const char * optixGetErrorName (OptixResult result)
 
const char * optixGetErrorString (OptixResult result)
 

Detailed Description

Function Documentation

const char* optixGetErrorName ( OptixResult  result)

Returns a string containing the name of an error code in the enum.

Output is a string representation of the enum. For example "OPTIX_SUCCESS" for OPTIX_SUCCESS and "OPTIX_ERROR_INVALID_VALUE" for OPTIX_ERROR_INVALID_VALUE.

If the error code is not recognized, "Unrecognized OptixResult code" is returned.

Parameters
[in]resultOptixResult enum to generate string name for
See Also
optixGetErrorString
const char* optixGetErrorString ( OptixResult  result)

Returns the description string for an error code.

Output is a string description of the enum. For example "Success" for OPTIX_SUCCESS and "Invalid value" for OPTIX_ERROR_INVALID_VALUE.

If the error code is not recognized, "Unrecognized OptixResult code" is returned.

Parameters
[in]resultOptixResult enum to generate string description for
See Also
optixGetErrorName