| 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 | { |