MCPcopy Create free account
hub / github.com/RenderKit/embree / errorFunction

Function errorFunction

tutorials/minimal/minimal_sycl.cpp:90–93  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

88 * from having to add explicit error checking to each Embree API call.
89 */
90void 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

Callers

nothing calls this directly

Calls 1

rtcGetErrorStringFunction · 0.85

Tested by

no test coverage detected