GPU: Add vulkan to GPU_backend_get_type().

Vulkan backend detection wasn't added to GPU_backend_get_type.
This change will add support for vulkan to the function.
This commit is contained in:
Jeroen Bakker 2022-12-02 12:51:11 +01:00
parent 3d5a4fbcc2
commit caac5686c5
1 changed files with 6 additions and 0 deletions

View File

@ -321,6 +321,12 @@ eGPUBackendType GPU_backend_get_type()
}
#endif
#ifdef WITH_VULKAN_BACKEND
if (g_backend && dynamic_cast<VKBackend *>(g_backend) != nullptr) {
return GPU_BACKEND_VULKAN;
}
#endif
return GPU_BACKEND_NONE;
}