| 510 | } |
| 511 | |
| 512 | OIDN_API int oidnGetDeviceInt(OIDNDevice deviceC, const char* name) |
| 513 | { |
| 514 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 515 | OIDN_TRY |
| 516 | checkHandle(deviceC); |
| 517 | OIDN_LOCK_DEVICE(device); |
| 518 | checkString(name); |
| 519 | return device->getInt(name); |
| 520 | OIDN_CATCH_DEVICE(device) |
| 521 | return 0; |
| 522 | } |
| 523 | |
| 524 | OIDN_API void oidnSetDeviceErrorFunction(OIDNDevice deviceC, OIDNErrorFunction func, void* userPtr) |
| 525 | { |
no test coverage detected