| 155 | } |
| 156 | |
| 157 | OIDN_API bool oidnGetPhysicalDeviceBool(int physicalDeviceID, const char* name) |
| 158 | { |
| 159 | OIDN_TRY |
| 160 | OIDN_INIT_CONTEXT(ctx, DeviceType::Default); |
| 161 | checkString(name); |
| 162 | return ctx.getPhysicalDevice(physicalDeviceID)->getInt(name); |
| 163 | OIDN_CATCH |
| 164 | return 0; |
| 165 | } |
| 166 | |
| 167 | OIDN_API int oidnGetPhysicalDeviceInt(int physicalDeviceID, const char* name) |
| 168 | { |
no test coverage detected