mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-09 20:09:49 -04:00
Minor code cleanup (#2253)
This commit is contained in:
parent
c17f7f47cb
commit
c97b7ff82d
@ -246,9 +246,9 @@ namespace vk
|
||||
vk::raii::Buffer buffer = nullptr;
|
||||
#if !defined( NDEBUG )
|
||||
private:
|
||||
vk::DeviceSize m_size;
|
||||
vk::BufferUsageFlags m_usage;
|
||||
vk::MemoryPropertyFlags m_propertyFlags;
|
||||
vk::DeviceSize m_size = 0;
|
||||
vk::BufferUsageFlags m_usage = {};
|
||||
vk::MemoryPropertyFlags m_propertyFlags = {};
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -993,7 +993,7 @@ namespace vk
|
||||
|
||||
WindowData::WindowData( GLFWwindow * wnd, std::string const & name, vk::Extent2D const & extent ) : handle{ wnd }, name{ name }, extent{ extent } {}
|
||||
|
||||
WindowData::WindowData( WindowData && other ) : handle{}, name{}, extent{}
|
||||
WindowData::WindowData( WindowData && other ) noexcept : handle{}, name{}, extent{}
|
||||
{
|
||||
std::swap( handle, other.handle );
|
||||
std::swap( name, other.name );
|
||||
|
@ -92,7 +92,7 @@ namespace vk
|
||||
{
|
||||
WindowData( GLFWwindow * wnd, std::string const & name, vk::Extent2D const & extent );
|
||||
WindowData( const WindowData & ) = delete;
|
||||
WindowData( WindowData && other );
|
||||
WindowData( WindowData && other ) noexcept;
|
||||
~WindowData() noexcept;
|
||||
|
||||
GLFWwindow * handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user