MCPcopy Create free account
hub / github.com/RenderKit/oidn / setErrorFunction

Method setErrorFunction

include/OpenImageDenoise/oidn.hpp:827–830  ·  view source on GitHub ↗

Sets the error callback function of the device.

Source from the content-addressed store, hash-verified

825
826 // Sets the error callback function of the device.
827 void setErrorFunction(ErrorFunction func, void* userPtr = nullptr)
828 {
829 oidnSetDeviceErrorFunction(handle, reinterpret_cast<OIDNErrorFunction>(func), userPtr);
830 }
831
832 // Returns the first unqueried error code and clears the stored error.
833 // Can be called for a null device as well to check for global errors (e.g. why a device

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected