fuck vk_enum_helper / fix device features

This commit is contained in:
2026-06-22 20:48:47 +02:00
parent 331a565cc9
commit 2d0e2abbae
2 changed files with 14 additions and 10 deletions
+8 -9
View File
@@ -5,7 +5,6 @@
#include <destrum/Graphics/GfxDevice.h>
#include <destrum/Graphics/Init.h>
#include <vulkan/vk_enum_string_helper.h>
#include "volk.h"
@@ -39,10 +38,10 @@ void Swapchain::createSwapchain(GfxDevice* gfxDevice, VkFormat format, std::uint
.set_desired_extent(width, height)
.build();
if (!res.has_value()) {
throw std::runtime_error(std::format(
"failed to create swapchain: error = {}, vk result = {}",
res.full_error().type.message(),
string_VkResult(res.full_error().vk_result)));
// throw std::runtime_error(std::format(
// "failed to create swapchain: error = {}, vk result = {}",
// res.full_error().type.message(),
// string_VkResult(res.full_error().vk_result)));
}
m_swapchain = res.value();
@@ -96,10 +95,10 @@ void Swapchain::recreateSwapchain(
.build();
if (!res.has_value()) {
throw std::runtime_error(std::format(
"failed to create swapchain: error = {}, vk result = {}",
res.full_error().type.message(),
string_VkResult(res.full_error().vk_result)));
// throw std::runtime_error(std::format(
// "failed to create swapchain: error = {}, vk result = {}",
// res.full_error().type.message(),
// string_VkResult(res.full_error().vk_result)));
}
for (auto sem : imageRenderSemaphores) {