This commit is contained in:
2024-09-13 23:51:01 +02:00
parent 8888bd03d8
commit cd29248fc6
2 changed files with 512 additions and 274 deletions

View File

@@ -42,6 +42,9 @@ namespace mlx
Window window(1, 1, "", true);
std::vector<const char*> instance_extentions = window.GetRequiredVulkanInstanceExtentions();
#ifdef MLX_PLAT_MACOS
instance_extentions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME);
#endif
m_instance = kvfCreateInstance(instance_extensions.data(), instance_extensions.size());
DebugLog("Vulkan : instance created");