fix(renderer): compilation issues on gcc
This commit is contained in:
parent
e1360cabce
commit
81811351b8
3 changed files with 12 additions and 16 deletions
|
@ -140,49 +140,49 @@ void Instance::initialize_instance()
|
|||
};
|
||||
|
||||
const auto settings = std::array<VkLayerSettingEXT, 7>({
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "validate_core",
|
||||
.type = VK_LAYER_SETTING_TYPE_BOOL32_EXT,
|
||||
.valueCount = 1,
|
||||
.pValues = &setting_validate_core,
|
||||
},
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "validate_sync",
|
||||
.type = VK_LAYER_SETTING_TYPE_BOOL32_EXT,
|
||||
.valueCount = 1,
|
||||
.pValues = &setting_validate_sync,
|
||||
},
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "thread_safety",
|
||||
.type = VK_LAYER_SETTING_TYPE_BOOL32_EXT,
|
||||
.valueCount = 1,
|
||||
.pValues = &setting_thread_safety,
|
||||
},
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "debug_action",
|
||||
.type = VK_LAYER_SETTING_TYPE_STRING_EXT,
|
||||
.valueCount = 1,
|
||||
.pValues = static_cast<const void *>(&setting_debug_action),
|
||||
},
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "report_flags",
|
||||
.type = VK_LAYER_SETTING_TYPE_STRING_EXT,
|
||||
.valueCount = setting_report_flags.size(),
|
||||
.pValues = static_cast<const void *>(setting_report_flags.data()),
|
||||
},
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "enable_message_limit",
|
||||
.type = VK_LAYER_SETTING_TYPE_BOOL32_EXT,
|
||||
.valueCount = 1,
|
||||
.pValues = &setting_enable_message_limit,
|
||||
},
|
||||
{
|
||||
VkLayerSettingEXT {
|
||||
.pLayerName = layer_name,
|
||||
.pSettingName = "duplicate_message_limit",
|
||||
.type = VK_LAYER_SETTING_TYPE_UINT32_EXT,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <renderer/backend/vk/vulkan.hpp>
|
||||
#include <vulkan/vk_enum_string_helper.h>
|
||||
|
||||
namespace lt::renderer::vk {
|
||||
|
||||
|
@ -9,11 +8,9 @@ inline void vkc(VkResult result)
|
|||
{
|
||||
if (result)
|
||||
{
|
||||
throw std::runtime_error { std::format(
|
||||
"Vulkan call failed with result: {}({})",
|
||||
string_VkResult(result),
|
||||
std::to_underlying(result)
|
||||
) };
|
||||
throw std::runtime_error {
|
||||
std::format("Vulkan call failed with result: {}", std::to_underlying(result))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <memory/scope.hpp>
|
||||
#include <renderer/api.hpp>
|
||||
#include <renderer/components/messenger.hpp>
|
||||
#include <renderer/frontend/renderer/renderer.hpp>
|
||||
|
||||
namespace lt::renderer {
|
||||
|
||||
|
@ -15,10 +14,10 @@ class System: public app::ISystem
|
|||
{
|
||||
public:
|
||||
/** config.max_frames_in_flight should not be higher than this value. */
|
||||
static constexpr auto frames_in_flight_upper_limit = IRenderer::frames_in_flight_upper_limit;
|
||||
static constexpr auto frames_in_flight_upper_limit = 5u;
|
||||
|
||||
/** config.max_frames_in_flight should not be lower than this value. */
|
||||
static constexpr auto frames_in_flight_lower_limit = IRenderer::frames_in_flight_lower_limit;
|
||||
static constexpr auto frames_in_flight_lower_limit = 1u;
|
||||
|
||||
struct Configuration
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue