Sets the error callback function of the device.
| 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 |
nothing calls this directly
no test coverage detected