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

Function oidnGetPhysicalDeviceInt

api/api.cpp:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 OIDN_API int oidnGetPhysicalDeviceInt(int physicalDeviceID, const char* name)
168 {
169 OIDN_TRY
170 OIDN_INIT_CONTEXT(ctx, DeviceType::Default);
171 checkString(name);
172 return ctx.getPhysicalDevice(physicalDeviceID)->getInt(name);
173 OIDN_CATCH
174 return 0;
175 }
176
177 OIDN_API const char* oidnGetPhysicalDeviceString(int physicalDeviceID, const char* name)
178 {

Callers 2

getMethod · 0.85

Calls 2

checkStringFunction · 0.85
getIntMethod · 0.45

Tested by

no test coverage detected