Lluvia
vulkan.hpp
Go to the documentation of this file.
1 #ifndef LLUVIA_CORE_VULKAN_VULKAN_HPP_
2 #define LLUVIA_CORE_VULKAN_VULKAN_HPP_
3 
4 // Disable some diagnostics before including vulkan.hpp
5 // This is necessary as the .cpp files of the core library
6 // have more strict checks.
7 #pragma clang diagnostic push
8 #pragma clang diagnostic ignored "-Wall"
9 #pragma clang diagnostic ignored "-Wextra"
10 #pragma clang diagnostic ignored "-Wshadow"
11 #pragma clang diagnostic ignored "-Wshorten-64-to-32"
12 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
13 #pragma clang diagnostic ignored "-pedantic"
14 
15 
16 // On Android avoid defining the vulkan function prototypes,
17 // as those are loaded dynamically when the instance is created.
18 // FIXME: However, disabling the prototypes on Linux fails the Python tests.
19 #ifdef __ANDROID__
20 #define VK_NO_PROTOTYPES 1
21 #endif
22 
23 #include <vulkan/vulkan.hpp>
24 
25 #pragma clang diagnostic pop
26 
27 #endif // LLUVIA_CORE_VULKAN_VULKAN_HPP_