Merge pull request #7860 from spycrab/vulkan_moltenvk_name

Vulkan: Show backend as Vulkan (MoltenVK) on macOS
This commit is contained in:
Tilka 2019-03-06 17:46:49 +00:00 committed by GitHub
commit 668b7eec8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,14 @@ public:
void Shutdown() override; void Shutdown() override;
std::string GetName() const override { return "Vulkan"; } std::string GetName() const override { return "Vulkan"; }
std::string GetDisplayName() const override { return _trans("Vulkan"); } std::string GetDisplayName() const override
{
#ifdef __APPLE__
return _trans("Vulkan (MoltenVK)");
#else
return _trans("Vulkan");
#endif
}
void InitBackendInfo() override; void InitBackendInfo() override;
void PrepareWindow(const WindowSystemInfo& wsi) override; void PrepareWindow(const WindowSystemInfo& wsi) override;
}; };