]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/memoryallocator.h
Refactor Vulkan memory mapping functions
[libs/gl.git] / source / backends / vulkan / memoryallocator.h
index f8d08c4ff5e3a202a7c644b9ce4aef6946da9d4a..230f21a202126d176034f576981426eddab9f281 100644 (file)
@@ -40,18 +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