* We will register this error handler with the device in initializeDevice(), * so that we are automatically informed on errors. * This is extremely helpful for finding bugs in your code, prevents you * from having to add explicit error checking to each Embree API call. */
| 88 | * from having to add explicit error checking to each Embree API call. |
| 89 | */ |
| 90 | void errorFunction(void* userPtr, enum RTCError error, const char* str) |
| 91 | { |
| 92 | printf("error %s: %s\n", rtcGetErrorString(error), str); |
| 93 | } |
| 94 | |
| 95 | /* |
| 96 | * Embree has a notion of devices, which are entities that can run |
nothing calls this directly
no test coverage detected