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

Function oidnGetPhysicalDeviceBool

api/api.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 OIDN_API bool oidnGetPhysicalDeviceBool(int physicalDeviceID, const char* name)
158 {
159 OIDN_TRY
160 OIDN_INIT_CONTEXT(ctx, DeviceType::Default);
161 checkString(name);
162 return ctx.getPhysicalDevice(physicalDeviceID)->getInt(name);
163 OIDN_CATCH
164 return 0;
165 }
166
167 OIDN_API int oidnGetPhysicalDeviceInt(int physicalDeviceID, const char* name)
168 {

Callers 1

getMethod · 0.85

Calls 2

checkStringFunction · 0.85
getIntMethod · 0.45

Tested by

no test coverage detected