From 02f4f34f9c9ef0a4c551aae0dcc98553e4507096 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 3 Oct 2020 15:26:11 +0100 Subject: [PATCH] Updated signle include --- single_include/kompute/Kompute.hpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/single_include/kompute/Kompute.hpp b/single_include/kompute/Kompute.hpp index 5452c7927..6ee47169c 100755 --- a/single_include/kompute/Kompute.hpp +++ b/single_include/kompute/Kompute.hpp @@ -1,20 +1,23 @@ -#if defined(VK_USE_PLATFORM_ANDROID_KHR) -#include -#include -#endif - //#define VK_NO_PROTOTYPES 1 //#undef VK_NO_PROTOTYPES -#undef DEBUG -#ifndef RELEASE -#define RELEASE 1 -#endif +//#undef DEBUG +//#ifndef RELEASE +//#define RELEASE 1 +//#endif //#define USE_DEBUG_EXTENTIONS + +#ifdef VK_USE_PLATFORM_ANDROID_KHR +#include +#include #include +// VK_NO_PROTOTYPES required before vulkan import but after wrapper.hpp #undef VK_NO_PROTOTYPES +#define DVULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1 +#endif + #include // SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import @@ -888,8 +891,10 @@ class Manager mManagedSequences; #if DEBUG +#ifndef KOMPUTE_DISABLE_VK_DEBUG_LAYERS vk::DebugReportCallbackEXT mDebugReportCallback; vk::DispatchLoaderDynamic mDebugDispatcher; +#endif #endif // Create functions