| 498 | } |
| 499 | |
| 500 | OIDN_API bool oidnGetDeviceBool(OIDNDevice deviceC, const char* name) |
| 501 | { |
| 502 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 503 | OIDN_TRY |
| 504 | checkHandle(deviceC); |
| 505 | OIDN_LOCK_DEVICE(device); |
| 506 | checkString(name); |
| 507 | return device->getInt(name); |
| 508 | OIDN_CATCH_DEVICE(device) |
| 509 | return false; |
| 510 | } |
| 511 | |
| 512 | OIDN_API int oidnGetDeviceInt(OIDNDevice deviceC, const char* name) |
| 513 | { |
no test coverage detected