is_valid -> is_null.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user