| 165 | } |
| 166 | |
| 167 | OIDN_API int oidnGetPhysicalDeviceInt(int physicalDeviceID, const char* name) |
| 168 | { |
| 169 | OIDN_TRY |
| 170 | OIDN_INIT_CONTEXT(ctx, DeviceType::Default); |
| 171 | checkString(name); |
| 172 | return ctx.getPhysicalDevice(physicalDeviceID)->getInt(name); |
| 173 | OIDN_CATCH |
| 174 | return 0; |
| 175 | } |
| 176 | |
| 177 | OIDN_API const char* oidnGetPhysicalDeviceString(int physicalDeviceID, const char* name) |
| 178 | { |
no test coverage detected