GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
rtcGetDeviceError(3) Embree Ray Tracing Kernels 3 rtcGetDeviceError(3)


rtcGetDeviceError - returns the error code of the device

    


#include <embree3/rtcore.h>
RTCError rtcGetDeviceError(RTCDevice device);

    

Each thread has its own error code per device. If an error occurs when calling an API function, this error code is set to the occurred error if it stores no previous error. The rtcGetDeviceError function reads and returns the currently stored error and clears the error code. This assures that the returned error code is always the first error occurred since the last invocation of rtcGetDeviceError.

Possible error codes returned by rtcGetDeviceError are:

RTC_ERROR_NONE: No error occurred.
RTC_ERROR_UNKNOWN: An unknown error has occurred.
RTC_ERROR_INVALID_ARGUMENT: An invalid argument was specified.
RTC_ERROR_INVALID_OPERATION: The operation is not allowed for the specified object.
RTC_ERROR_OUT_OF_MEMORY: There is not enough memory left to complete the operation.
RTC_ERROR_UNSUPPORTED_CPU: The CPU is not supported as it does not support the lowest ISA Embree is compiled for.
RTC_ERROR_CANCELLED: The operation got canceled by a memory monitor callback or progress monitor callback function.

When the device construction fails, rtcNewDevice returns NULL as device. To detect the error code of a such a failed device construction, pass NULL as device to the rtcGetDeviceError function. For all other invocations of rtcGetDeviceError, a proper device pointer must be specified.

Returns the error code for the device.

[rtcSetDeviceErrorFunction]

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.