fuck vk_enum_helper / fix device features
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user