aboutsummaryrefslogtreecommitdiff
path: root/graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-12-23 20:12:14 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-12-23 20:12:14 +0000
commit8d2b2a2768019f243226836085a7808e469bd0b1 (patch)
tree54d3e64a25e92ecb389a9e72cff496e30d672de8 /graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp
parentbd5a415767e994a7e91270887bd9b2b5605ab08b (diff)
downloadports-8d2b2a2768019f243226836085a7808e469bd0b1.tar.gz
ports-8d2b2a2768019f243226836085a7808e469bd0b1.zip
devel/vulkan-*: move to graphics/ where vulkan-loader is
Vulkan isn't used for generic compute workloads unlike OpenCL. For example, waifu2x-ncnn-vulkan is still graphics-related.
Notes
Notes: svn path=/head/; revision=559022
Diffstat (limited to 'graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp')
-rw-r--r--graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp b/graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp
new file mode 100644
index 000000000000..4639220cd3ac
--- /dev/null
+++ b/graphics/vulkan-headers/files/patch-include_vulkan_vulkan.hpp
@@ -0,0 +1,56 @@
+--- include/vulkan/vulkan.hpp.orig 2020-12-07 12:15:47 UTC
++++ include/vulkan/vulkan.hpp
+@@ -67,7 +67,7 @@
+ #endif
+
+ #if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL == 1
+-# if defined( __linux__ ) || defined( __APPLE__ )
++# if defined( __unix__ ) || defined( __APPLE__ )
+ # include <dlfcn.h>
+ # elif defined( _WIN32 )
+ typedef struct HINSTANCE__ * HINSTANCE;
+@@ -92754,7 +92754,7 @@ namespace VULKAN_HPP_NAMESPACE
+ {
+ if ( !vulkanLibraryName.empty() )
+ {
+-# if defined( __linux__ ) || defined( __APPLE__ )
++# if defined( __unix__ ) || defined( __APPLE__ )
+ m_library = dlopen( vulkanLibraryName.c_str(), RTLD_NOW | RTLD_LOCAL );
+ # elif defined( _WIN32 )
+ m_library = ::LoadLibraryA( vulkanLibraryName.c_str() );
+@@ -92764,7 +92764,7 @@ namespace VULKAN_HPP_NAMESPACE
+ }
+ else
+ {
+-# if defined( __linux__ )
++# if defined( __unix__ )
+ m_library = dlopen( "libvulkan.so", RTLD_NOW | RTLD_LOCAL );
+ if ( m_library == nullptr )
+ {
+@@ -92807,7 +92807,7 @@ namespace VULKAN_HPP_NAMESPACE
+ {
+ if ( m_library )
+ {
+-# if defined( __linux__ ) || defined( __APPLE__ )
++# if defined( __unix__ ) || defined( __APPLE__ )
+ dlclose( m_library );
+ # elif defined( _WIN32 )
+ ::FreeLibrary( m_library );
+@@ -92820,7 +92820,7 @@ namespace VULKAN_HPP_NAMESPACE
+ template <typename T>
+ T getProcAddress( const char* function ) const VULKAN_HPP_NOEXCEPT
+ {
+-# if defined( __linux__ ) || defined( __APPLE__ )
++# if defined( __unix__ ) || defined( __APPLE__ )
+ return (T)dlsym( m_library, function );
+ # elif defined( _WIN32 )
+ return (T)::GetProcAddress( m_library, function );
+@@ -92832,7 +92832,7 @@ namespace VULKAN_HPP_NAMESPACE
+ bool success() const VULKAN_HPP_NOEXCEPT { return m_library != nullptr; }
+
+ private:
+-# if defined( __linux__ ) || defined( __APPLE__ )
++# if defined( __unix__ ) || defined( __APPLE__ )
+ void * m_library;
+ # elif defined( _WIN32 )
+ ::HINSTANCE m_library;