|
|
@ -1520,9 +1520,13 @@ void Device::SetupFamilies(VkSurfaceKHR surface) {
|
|
|
|
LOG_ERROR(Render_Vulkan, "Device lacks a present queue");
|
|
|
|
LOG_ERROR(Render_Vulkan, "Device lacks a present queue");
|
|
|
|
throw vk::Exception(VK_ERROR_FEATURE_NOT_PRESENT);
|
|
|
|
throw vk::Exception(VK_ERROR_FEATURE_NOT_PRESENT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (graphics) {
|
|
|
|
graphics_family = *graphics;
|
|
|
|
graphics_family = *graphics;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (present) {
|
|
|
|
present_family = *present;
|
|
|
|
present_family = *present;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Device::SetupFeatures() {
|
|
|
|
void Device::SetupFeatures() {
|
|
|
|
const VkPhysicalDeviceFeatures features{physical.GetFeatures()};
|
|
|
|
const VkPhysicalDeviceFeatures features{physical.GetFeatures()};
|
|
|
|