Vulkan: Make implicit conversion work on const
Former-commit-id: f4ed2fb536c1cd49b786a7cc2f0db1b23888a24b [formerly 8fa97e865fb2e8cf9c3725fedee07eee3ff3ba0a] Former-commit-id: 4fbf84f1d35d008769750a3675fc9daa85bbe3cd
This commit is contained in:
parent
52dde9bda3
commit
4c501320b8
|
|
@ -33,7 +33,7 @@ namespace Nz
|
||||||
DeviceObject& operator=(const DeviceObject&) = delete;
|
DeviceObject& operator=(const DeviceObject&) = delete;
|
||||||
DeviceObject& operator=(DeviceObject&&) = delete;
|
DeviceObject& operator=(DeviceObject&&) = delete;
|
||||||
|
|
||||||
inline operator VkType();
|
inline operator VkType() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DeviceHandle m_device;
|
DeviceHandle m_device;
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ namespace Nz
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename C, typename VkType, typename CreateInfo>
|
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;
|
return m_handle;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ namespace Nz
|
||||||
Surface& operator=(const Surface&) = delete;
|
Surface& operator=(const Surface&) = delete;
|
||||||
Surface& operator=(Surface&&) = delete;
|
Surface& operator=(Surface&&) = delete;
|
||||||
|
|
||||||
inline operator VkSurfaceKHR();
|
inline operator VkSurfaceKHR() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline bool Create(const VkAllocationCallbacks* allocator);
|
inline bool Create(const VkAllocationCallbacks* allocator);
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ namespace Nz
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Surface::operator VkSurfaceKHR()
|
inline Surface::operator VkSurfaceKHR() const
|
||||||
{
|
{
|
||||||
return m_surface;
|
return m_surface;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue