diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 2056e3e..837d063 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -8046,7 +8046,9 @@ int main( int argc, char ** argv ) public: PoolFree() = default; - PoolFree( OwnerType owner, PoolType pool, Dispatch const &dispatch ) VULKAN_HPP_NOEXCEPT + PoolFree( OwnerType owner, + PoolType pool, + Dispatch const & dispatch = VULKAN_HPP_DEFAULT_DISPATCHER ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_pool( pool ) , m_dispatch( &dispatch ) @@ -8063,9 +8065,9 @@ int main( int argc, char ** argv ) } private: - OwnerType m_owner = OwnerType(); - PoolType m_pool = PoolType(); - Dispatch const* m_dispatch = &VULKAN_HPP_DEFAULT_DISPATCHER; + OwnerType m_owner = OwnerType(); + PoolType m_pool = PoolType(); + Dispatch const * m_dispatch = nullptr; }; )"; diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index cb0d88d..105441b 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -4959,7 +4959,9 @@ namespace VULKAN_HPP_NAMESPACE public: PoolFree() = default; - PoolFree( OwnerType owner, PoolType pool, Dispatch const & dispatch ) VULKAN_HPP_NOEXCEPT + PoolFree( OwnerType owner, + PoolType pool, + Dispatch const & dispatch = VULKAN_HPP_DEFAULT_DISPATCHER ) VULKAN_HPP_NOEXCEPT : m_owner( owner ) , m_pool( pool ) , m_dispatch( &dispatch ) @@ -4984,7 +4986,7 @@ namespace VULKAN_HPP_NAMESPACE private: OwnerType m_owner = OwnerType(); PoolType m_pool = PoolType(); - Dispatch const * m_dispatch = &VULKAN_HPP_DEFAULT_DISPATCHER; + Dispatch const * m_dispatch = nullptr; }; using Bool32 = uint32_t;