Minor code cleanup (#2253)

This commit is contained in:
Andreas Süßenbach 2025-08-12 09:06:23 +02:00 committed by GitHub
parent c17f7f47cb
commit c97b7ff82d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 26 additions and 26 deletions

View File

@ -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
};

View File

@ -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 );

View File

@ -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;