X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fmemoryallocator.h;h=0b185585e89e14bab48536449c7c68c8d1bbcfd3;hb=4795cdfc7936ac89da46f4d6f9de33fd481933a4;hp=272f54e0ed79d87cd73180702558a5c0ee507b09;hpb=738e2879b3cc64a7200f64e7a838704db82550b4;p=libs%2Fgl.git diff --git a/source/backends/vulkan/memoryallocator.h b/source/backends/vulkan/memoryallocator.h index 272f54e0..0b185585 100644 --- a/source/backends/vulkan/memoryallocator.h +++ b/source/backends/vulkan/memoryallocator.h @@ -64,9 +64,9 @@ public: ~MemoryAllocator(); private: - unsigned find_memory_pool(unsigned, MemoryType); + unsigned find_memory_pool(unsigned, MemoryType) const; unsigned create_region(unsigned, size_t, bool); - std::vector::iterator lower_bound_by_size(std::vector &, std::size_t); + std::vector::iterator lower_bound_by_size(std::vector &, std::size_t) const; unsigned allocate(std::size_t, std::size_t, unsigned, MemoryType); unsigned split_block(unsigned, std::size_t); void consolidate(unsigned); @@ -79,6 +79,8 @@ public: void *map(unsigned); void unmap(unsigned); + + std::string get_debug() const; }; } // namespace GL