diff options
author | Liam <byteslice@airmail.cc> | 2022-12-31 15:48:50 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-01-09 22:12:16 +0100 |
commit | 279005448a287204cbd5cc90a3e0837ece7481af (patch) | |
tree | 192226996d89bcb92dab45b6b51c504345f2d49e /src/video_core/renderer_vulkan | |
parent | Merge pull request #9583 from FernandoS27/fuck-ogl-already (diff) | |
download | yuzu-279005448a287204cbd5cc90a3e0837ece7481af.tar yuzu-279005448a287204cbd5cc90a3e0837ece7481af.tar.gz yuzu-279005448a287204cbd5cc90a3e0837ece7481af.tar.bz2 yuzu-279005448a287204cbd5cc90a3e0837ece7481af.tar.lz yuzu-279005448a287204cbd5cc90a3e0837ece7481af.tar.xz yuzu-279005448a287204cbd5cc90a3e0837ece7481af.tar.zst yuzu-279005448a287204cbd5cc90a3e0837ece7481af.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/renderer_vulkan.cpp | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp index 52855120c..067cafb85 100644 --- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp +++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp @@ -60,22 +60,9 @@ std::string GetDriverVersion(const Device& device) { return GetReadableVersion(version); } -std::string BuildCommaSeparatedExtensions(std::vector<std::string> available_extensions) { - std::sort(std::begin(available_extensions), std::end(available_extensions)); - - static constexpr std::size_t AverageExtensionSize = 64; - std::string separated_extensions; - separated_extensions.reserve(available_extensions.size() * AverageExtensionSize); - - const auto end = std::end(available_extensions); - for (auto extension = std::begin(available_extensions); extension != end; ++extension) { - if (const bool is_last = extension + 1 == end; is_last) { - separated_extensions += *extension; - } else { - separated_extensions += fmt::format("{},", *extension); - } - } - return separated_extensions; +std::string BuildCommaSeparatedExtensions( + const std::set<std::string, std::less<>>& available_extensions) { + return fmt::format("{}", fmt::join(available_extensions, ",")); } } // Anonymous namespace |