| 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 | { |
no test coverage detected