Fix issues with debug layers

This commit is contained in:
2021-07-29 15:32:23 +02:00
parent 312ac14bef
commit 582a82d9b4
3 changed files with 12 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ namespace openVulkanoCpp::Vulkan
const std::initializer_list<std::string> activeValidationLayerNames = {
"VK_LAYER_LUNARG_assistant_layer",
"VK_LAYER_LUNARG_standard_validation",
"VK_LAYER_KHRONOS_validation",
//"VK_EXT_debug_marker",
#ifdef RENDER_DOC
"VK_LAYER_RENDERDOC_Capture", // RenderDoc must be open for this layer to work!
@@ -29,7 +30,7 @@ namespace openVulkanoCpp::Vulkan
auto layers = vk::enumerateInstanceLayerProperties();
for (const auto& layer: layers)
{
availableLayers.insert(layer.layerName);
availableLayers.insert(layer.layerName.data());
}
Logger::RENDER->debug("Available Vulkan Validation Layers: {0}", fmt::join(availableLayers, ", "));
}