| 476 | } |
| 477 | |
| 478 | OIDN_API void oidnSetDeviceBool(OIDNDevice deviceC, const char* name, bool value) |
| 479 | { |
| 480 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 481 | OIDN_TRY |
| 482 | checkHandle(deviceC); |
| 483 | OIDN_LOCK_DEVICE(device); |
| 484 | checkString(name); |
| 485 | device->setInt(name, value); |
| 486 | OIDN_CATCH_DEVICE(device) |
| 487 | } |
| 488 | |
| 489 | OIDN_API void oidnSetDeviceInt(OIDNDevice deviceC, const char* name, int value) |
| 490 | { |
no test coverage detected