diff options
Diffstat (limited to 'include/vulkan/vulkan_shared.hpp')
-rw-r--r-- | include/vulkan/vulkan_shared.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/vulkan/vulkan_shared.hpp b/include/vulkan/vulkan_shared.hpp index 0843fe2..8b2697a 100644 --- a/include/vulkan/vulkan_shared.hpp +++ b/include/vulkan/vulkan_shared.hpp @@ -182,6 +182,13 @@ namespace VULKAN_HPP_NAMESPACE return bool( m_handle ); } +# if defined( VULKAN_HPP_SMART_HANDLE_IMPLICIT_CAST ) + operator HandleType() const VULKAN_HPP_NOEXCEPT + { + return m_handle; + } +# endif + const HandleType * operator->() const VULKAN_HPP_NOEXCEPT { return &m_handle; |