is_valid -> is_null.

This commit is contained in:
2022-03-03 22:26:20 +01:00
parent c73d773845
commit b4cb6ebbbc
9 changed files with 37 additions and 37 deletions

View File

@@ -33,8 +33,8 @@ public:
return m_size != 0;
}
inline bool is_valid() const noexcept {
return m_size != 0;
inline bool is_null() const noexcept {
return m_size == 0;
}
inline VkDeviceSize size() const noexcept {
@@ -92,11 +92,11 @@ public:
MemoryPage& operator=(MemoryPage&&);
explicit inline operator bool() const noexcept {
return is_valid();
return !is_null();
}
inline bool is_valid() const noexcept {
return m_size != 0;
inline bool is_null() const noexcept {
return m_size == 0;
}
inline VkDeviceSize size() const noexcept {