struct Block {
vk::DeviceMemory memory;
vk::DeviceSize offset;
vk::DeviceSize size;
bool free;
void *ptr = nullptr; // Useless if it is a GPU allocation
bool operator==(Block const &block);
};
bool Block::operator==(Block const &block) {
if(memory == block.memory &&
offset == block.offset &&
size == block.size &&
free == block.free &&
ptr == block.ptr)
return true;
return false;
}