MCPcopy Create free account
hub / github.com/RenderKit/oidn / OIDNFilter oidnNewFilter

Function OIDNFilter oidnNewFilter

api/api.cpp:844–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

checkStringFunction · 0.85
checkCommittedMethod · 0.80
newFilterMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected