Expose the dispatch member of deleters (#1569)
authorMichael Ferrari <nekkodroid404@gmail.com>
Wed, 3 May 2023 10:03:28 +0000 (12:03 +0200)
committerGitHub <noreply@github.com>
Wed, 3 May 2023 10:03:28 +0000 (12:03 +0200)
snippets/ObjectDestroy.hpp
snippets/ObjectFree.hpp
snippets/ObjectRelease.hpp
snippets/PoolFree.hpp

index 885fbd1..2029d4e 100644 (file)
@@ -17,6 +17,7 @@
 
     OwnerType getOwner() const VULKAN_HPP_NOEXCEPT { return m_owner; }
     Optional<const AllocationCallbacks> getAllocator() const VULKAN_HPP_NOEXCEPT { return m_allocationCallbacks; }
+    Dispatch const & getDispatch() const VULKAN_HPP_NOEXCEPT { return *m_dispatch; }
 
   protected:
     template <typename T>
@@ -47,6 +48,7 @@
     {}
 
     Optional<const AllocationCallbacks> getAllocator() const VULKAN_HPP_NOEXCEPT { return m_allocationCallbacks; }
+    Dispatch const & getDispatch() const VULKAN_HPP_NOEXCEPT { return *m_dispatch; }
 
   protected:
     template <typename T>
index 0cdcc89..2044edf 100644 (file)
       return m_allocationCallbacks;
     }
 
+    Dispatch const & getDispatch() const VULKAN_HPP_NOEXCEPT
+    {
+      return *m_dispatch;
+    }
+
   protected:
     template <typename T>
     void destroy( T t ) VULKAN_HPP_NOEXCEPT
index 344e41f..b357ccf 100644 (file)
       return m_owner;
     }
 
+    Dispatch const & getDispatch() const VULKAN_HPP_NOEXCEPT
+    {
+      return *m_dispatch;
+    }
+
   protected:
     template <typename T>
     void destroy( T t ) VULKAN_HPP_NOEXCEPT
index dba1249..16a6324 100644 (file)
@@ -14,6 +14,7 @@
 
       OwnerType getOwner() const VULKAN_HPP_NOEXCEPT { return m_owner; }
       PoolType getPool() const VULKAN_HPP_NOEXCEPT { return m_pool; }
+      Dispatch const & getDispatch() const VULKAN_HPP_NOEXCEPT { return *m_dispatch; }
 
     protected:
       template <typename T>