想手动创建 device 失败
This commit is contained in:
@@ -178,6 +178,8 @@ void Application::createLogicalDevice() {
|
||||
throw std::runtime_error("failed to create logical device!");
|
||||
}
|
||||
|
||||
v_device = std::make_unique<vkb::core::DeviceC>(v_gpu, device, surface);
|
||||
|
||||
vkGetDeviceQueue(device, indices.graphicsFamily.value(), 0, &graphicsQueue);
|
||||
vkGetDeviceQueue(device, indices.presentFamily.value(), 0, &presentQueue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user