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

Function oidnSetDeviceErrorFunction

api/api.cpp:524–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522 }
523
524 OIDN_API void oidnSetDeviceErrorFunction(OIDNDevice deviceC, OIDNErrorFunction func, void* userPtr)
525 {
526 Device* device = reinterpret_cast<Device*>(deviceC);
527 OIDN_TRY
528 checkHandle(deviceC);
529 OIDN_LOCK_DEVICE(device);
530 device->setErrorFunction(reinterpret_cast<ErrorFunction>(func), userPtr);
531 OIDN_CATCH_DEVICE(device)
532 }
533
534 OIDN_API OIDNError oidnGetDeviceError(OIDNDevice deviceC, const char** outMessage)
535 {

Callers 1

setErrorFunctionMethod · 0.85

Calls 1

setErrorFunctionMethod · 0.45

Tested by

no test coverage detected