| 842 | // ----------------------------------------------------------------------------------------------- |
| 843 | |
| 844 | OIDN_API OIDNFilter oidnNewFilter(OIDNDevice deviceC, const char* type) |
| 845 | { |
| 846 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 847 | OIDN_TRY |
| 848 | checkHandle(deviceC); |
| 849 | OIDN_LOCK_DEVICE(device); |
| 850 | device->checkCommitted(); |
| 851 | checkString(type); |
| 852 | Ref<Filter> filter = device->newFilter(type); |
| 853 | return reinterpret_cast<OIDNFilter>(filter.detach()); |
| 854 | OIDN_CATCH_DEVICE(device) |
| 855 | return nullptr; |
| 856 | } |
| 857 | |
| 858 | OIDN_API void oidnRetainFilter(OIDNFilter filterC) |
| 859 | { |
nothing calls this directly
no test coverage detected