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

Method newDevice

core/context.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 Ref<Device> Context::newDevice(int physicalDeviceID)
35 {
36 const auto& physicalDevice = getPhysicalDevice(physicalDeviceID);
37 const DeviceType type = physicalDevice->type;
38 return getDeviceFactory(type)->newDevice(physicalDevice);
39 }
40
41 Ref<Device> Context::newDevice(DeviceType type)
42 {

Callers 13

mainFunction · 0.45
makeDeviceFunction · 0.45
oidnTest.cppFile · 0.45
mainFunction · 0.45
OIDNDevice oidnNewDeviceFunction · 0.45

Calls 3

ExceptionFunction · 0.85
toStringFunction · 0.85
newDeviceFunction · 0.50

Tested by 1

makeDeviceFunction · 0.36