Fix issues with debug layers
This commit is contained in:
@@ -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, ", "));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user