X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fmemoryallocator.h;h=230f21a202126d176034f576981426eddab9f281;hb=bec8444ce5f844d156f5aac90ce9f0a92750cf62;hp=b7603f1586a069c82307b219f110a53f1c3b0e61;hpb=99ca354f18119f82f1adeca100cd665a8f640317;p=libs%2Fgl.git diff --git a/source/backends/vulkan/memoryallocator.h b/source/backends/vulkan/memoryallocator.h index b7603f15..230f21a2 100644 --- a/source/backends/vulkan/memoryallocator.h +++ b/source/backends/vulkan/memoryallocator.h @@ -40,17 +40,14 @@ public: private: unsigned find_memory_type_index(unsigned, MemoryType); unsigned allocate(std::size_t, unsigned, MemoryType); - Allocation &get_allocation(unsigned); - const Allocation &get_allocation(unsigned) const; public: unsigned allocate(VkBuffer, MemoryType); + unsigned allocate(VkImage, MemoryType); void release(unsigned); - std::size_t get_allocation_size(unsigned) const; - - void *map(unsigned, std::size_t, std::size_t); - void unmap(void *); + void *map(unsigned); + void unmap(unsigned); }; } // namespace GL