Commit: caac5686c5d4756be2e9d7a0200b63cea7f2fab7
Author: Jeroen Bakker
Date:   Fri Dec 2 12:51:11 2022 +0100
Branches: master
https://developer.blender.org/rBcaac5686c5d4756be2e9d7a0200b63cea7f2fab7

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.

===================================================================

M       source/blender/gpu/intern/gpu_context.cc

===================================================================

diff --git a/source/blender/gpu/intern/gpu_context.cc 
b/source/blender/gpu/intern/gpu_context.cc
index 7e94538892a..0443417a32a 100644
--- a/source/blender/gpu/intern/gpu_context.cc
+++ b/source/blender/gpu/intern/gpu_context.cc
@@ -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;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to