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:
parent
3d5a4fbcc2
commit
caac5686c5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue