| 532 | } |
| 533 | |
| 534 | OIDN_API OIDNError oidnGetDeviceError(OIDNDevice deviceC, const char** outMessage) |
| 535 | { |
| 536 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 537 | OIDN_TRY |
| 538 | return static_cast<OIDNError>(Device::getError(device, outMessage)); |
| 539 | OIDN_CATCH_DEVICE(device) |
| 540 | if (outMessage) *outMessage = ""; |
| 541 | return OIDN_ERROR_UNKNOWN; |
| 542 | } |
| 543 | |
| 544 | OIDN_API void oidnCommitDevice(OIDNDevice deviceC) |
| 545 | { |