From 1da1698f9099c13267429b0fc340c6fad90659d7 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 31 Jul 2022 15:01:42 +0100 Subject: [PATCH] Disable unused Vulkan HPP setters and smart handles --- app/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 7eb49468..f201a37a 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -64,6 +64,9 @@ include_directories(SYSTEM "libraries/lz4/lib") add_compile_definitions(VK_USE_PLATFORM_ANDROID_KHR) # We want all the Android-specific structures to be defined add_compile_definitions(VULKAN_HPP_NO_SPACESHIP_OPERATOR) # libcxx doesn't implement operator<=> for std::array which breaks this add_compile_definitions(VULKAN_HPP_NO_STRUCT_CONSTRUCTORS) # We want to use designated initializers in Vulkan-Hpp +add_compile_definitions(VULKAN_HPP_NO_SETTERS) +add_compile_definitions(VULKAN_HPP_NO_SMART_HANDLE) + add_compile_definitions(VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1) # We use the dynamic loader rather than the static one to avoid an additional level of indirection add_compile_definitions(VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL=0) # We disable the dynamic loader tool so we can supply our own getInstanceProcAddress function from a custom driver include_directories(SYSTEM "libraries/vkhpp")