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

Method getDeviceFactory

core/context.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 DeviceFactory* Context::getDeviceFactory(DeviceType type) const
20 {
21 auto it = deviceFactories.find(type);
22 if (it == deviceFactories.end())
23 throw Exception(Error::UnsupportedHardware, "unsupported device type: " + toString(type));
24 return it->second.get();
25 }
26
27 const Ref<PhysicalDevice>& Context::getPhysicalDevice(int id) const
28 {

Calls 5

ExceptionFunction · 0.85
toStringFunction · 0.85
findMethod · 0.80
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected