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

Function oidnGetPhysicalDeviceData

api/api.cpp:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 OIDN_API const void* oidnGetPhysicalDeviceData(int physicalDeviceID, const char* name, size_t* byteSize)
188 {
189 OIDN_TRY
190 OIDN_INIT_CONTEXT(ctx, DeviceType::Default);
191 checkString(name);
192 Data data = ctx.getPhysicalDevice(physicalDeviceID)->getData(name);
193 if (byteSize != nullptr)
194 *byteSize = data.size;
195 return data.ptr;
196 OIDN_CATCH
197 return nullptr;
198 }
199
200 // -----------------------------------------------------------------------------------------------
201 // Device

Callers 1

getDataMethod · 0.85

Calls 2

checkStringFunction · 0.85
getDataMethod · 0.45

Tested by

no test coverage detected