Skip to content

Commit

Permalink
[Vulkan] Additional logging / tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 4, 2023
1 parent 545da52 commit fca5ba8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ivis_opengl/gfx_api_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ std::vector<const char*> findSupportedDeviceExtensions(const vk::PhysicalDevice
std::unordered_set<std::string> supportedExtensionNames;
for (auto & extension : availableExtensions)
{
supportedExtensionNames.insert(extension.extensionName);
supportedExtensionNames.insert(std::string(extension.extensionName.data()));
}

std::vector<const char*> foundExtensions;
Expand Down Expand Up @@ -348,7 +348,11 @@ bool checkDeviceExtensionSupport(const vk::PhysicalDevice &device, const std::ve

for (const auto& extension : availableExtensions)
{
requiredExtensions.erase(extension.extensionName);
auto extensionName = std::string(extension.extensionName.data());
if (requiredExtensions.erase(extensionName) > 0)
{
debug(LOG_3D, "Found extension: \"%s\"", extensionName.c_str());
}
}

debug(LOG_3D, "Found %zu extensions / did not find %zu extensions, in the enumerated list of %zu device extensions", desiredExtensions.size() - requiredExtensions.size(), requiredExtensions.size(), availableExtensions.size());
Expand Down

0 comments on commit fca5ba8

Please sign in to comment.