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

Function oidnGetDeviceInt

api/api.cpp:512–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510 }
511
512 OIDN_API int oidnGetDeviceInt(OIDNDevice deviceC, const char* name)
513 {
514 Device* device = reinterpret_cast<Device*>(deviceC);
515 OIDN_TRY
516 checkHandle(deviceC);
517 OIDN_LOCK_DEVICE(device);
518 checkString(name);
519 return device->getInt(name);
520 OIDN_CATCH_DEVICE(device)
521 return 0;
522 }
523
524 OIDN_API void oidnSetDeviceErrorFunction(OIDNDevice deviceC, OIDNErrorFunction func, void* userPtr)
525 {

Callers 3

oidnGetDeviceUIntFunction · 0.85
oidnGetDevice1iFunction · 0.85
getMethod · 0.85

Calls 2

checkStringFunction · 0.85
getIntMethod · 0.45

Tested by

no test coverage detected