想手动创建 device 失败

This commit is contained in:
xsl
2025-10-19 17:07:49 +08:00
parent 2284911161
commit 572c53c0f4
3 changed files with 14 additions and 10 deletions
+2
View File
@@ -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);
}