MCPcopy Create free account
hub / github.com/RenderKit/oidn / retainObject

Function retainObject

api/api.cpp:97–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96 template<typename T>
97 oidn_inline void retainObject(T* obj)
98 {
99 if (obj)
100 {
101 obj->incRef();
102 }
103 else
104 {
105 OIDN_TRY
106 checkHandle(obj);
107 OIDN_CATCH_DEVICE(obj)
108 }
109 }
110
111 template<typename T>
112 oidn_inline void releaseObject(T* obj)

Callers 4

oidnRetainDeviceFunction · 0.85
oidnRetainBufferFunction · 0.85
oidnRetainSemaphoreFunction · 0.85
oidnRetainFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected