Vulkan: Make implicit conversion work on const

Former-commit-id: f4ed2fb536c1cd49b786a7cc2f0db1b23888a24b [formerly 8fa97e865fb2e8cf9c3725fedee07eee3ff3ba0a]
Former-commit-id: 4fbf84f1d35d008769750a3675fc9daa85bbe3cd
This commit is contained in:
Lynix 2016-06-13 22:29:16 +02:00
parent 52dde9bda3
commit 4c501320b8
4 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ namespace Nz
DeviceObject& operator=(const DeviceObject&) = delete;
DeviceObject& operator=(DeviceObject&&) = delete;
inline operator VkType();
inline operator VkType() const;
protected:
DeviceHandle m_device;

View File

@ -76,7 +76,7 @@ namespace Nz
}
template<typename C, typename VkType, typename CreateInfo>
inline DeviceObject<C, VkType, CreateInfo>::operator VkType()
inline DeviceObject<C, VkType, CreateInfo>::operator VkType() const
{
return m_handle;
}

View File

@ -76,7 +76,7 @@ namespace Nz
Surface& operator=(const Surface&) = delete;
Surface& operator=(Surface&&) = delete;
inline operator VkSurfaceKHR();
inline operator VkSurfaceKHR() const;
private:
inline bool Create(const VkAllocationCallbacks* allocator);

View File

@ -287,7 +287,7 @@ namespace Nz
return false;
}
inline Surface::operator VkSurfaceKHR()
inline Surface::operator VkSurfaceKHR() const
{
return m_surface;
}