aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorJuan Ramos <juan@lunarg.com>2023-11-16 19:04:12 -0700
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2023-11-16 19:09:43 -0700
commitae2a2dc99bc01417d2c80e81078a5672e9d31d0b (patch)
tree84a3f98c263b18a753123148ac2fd92306279db1 /cube/cube.cpp
parent62c4f8f7c546662aa5d43ca185e7d478d1224fb1 (diff)
downloadusermoji-ae2a2dc99bc01417d2c80e81078a5672e9d31d0b.tar.xz
cube: Fix layers on Apple
Otherwise layers won't work on Apple
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp14
1 files changed, 1 insertions, 13 deletions
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 <vulkan/vulkan.hpp>
-#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<char const *> instance_validation_layers = {"VK_LAYER_KHRONOS_validation"};