From ae2a2dc99bc01417d2c80e81078a5672e9d31d0b Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Thu, 16 Nov 2023 19:04:12 -0700 Subject: cube: Fix layers on Apple Otherwise layers won't work on Apple --- cube/cube.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'cube/cube.cpp') diff --git a/cube/cube.cpp b/cube/cube.cpp index 1d594b32..a0ed023e 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -43,9 +43,6 @@ #define VULKAN_HPP_TYPESAFE_CONVERSION #include -#define VOLK_IMPLEMENTATION -#include "volk.h" - VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE #include "linmath.h" @@ -1120,16 +1117,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL Demo::debug_messenger_callback(VkDebugUtilsMessag } void Demo::init_vk() { - // Vulkan-hpp doesn't load moltenkVK, so we use volk to do that for us, then pass vkGetInstanceProcAddr along - VkResult err = volkInitialize(); - if (err != VK_SUCCESS) { - ERR_EXIT( - "Unable to find the Vulkan runtime on the system.\n\n" - "This likely indicates that no Vulkan capable drivers are installed.", - "Installation Failure"); - } - - VULKAN_HPP_DEFAULT_DISPATCHER.init(vkGetInstanceProcAddr); + VULKAN_HPP_DEFAULT_DISPATCHER.init(); std::vector instance_validation_layers = {"VK_LAYER_KHRONOS_validation"}; -- cgit v1.2.3