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

Function oidnGetNumPhysicalDevices

api/api.cpp:148–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 // -----------------------------------------------------------------------------------------------
147
148 OIDN_API int oidnGetNumPhysicalDevices()
149 {
150 OIDN_TRY
151 OIDN_INIT_CONTEXT(ctx, DeviceType::Default);
152 return ctx.getNumPhysicalDevices();
153 OIDN_CATCH
154 return 0;
155 }
156
157 OIDN_API bool oidnGetPhysicalDeviceBool(int physicalDeviceID, const char* name)
158 {

Callers 1

getNumPhysicalDevicesFunction · 0.85

Calls 1

getNumPhysicalDevicesMethod · 0.80

Tested by

no test coverage detected