| 146 | // ----------------------------------------------------------------------------------------------- |
| 147 | |
| 148 | OIDN_API int oidnGetNumPhysicalDevices() |
| 149 | { |
| 150 | OIDN_TRY |
| 151 | OIDN_INIT_CONTEXT(ctx, DeviceType::Default); |
| 152 | return ctx.getNumPhysicalDevices(); |
| 153 | OIDN_CATCH |
| 154 | return 0; |
| 155 | } |
| 156 | |
| 157 | OIDN_API bool oidnGetPhysicalDeviceBool(int physicalDeviceID, const char* name) |
| 158 | { |
no test coverage detected