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);
- void *map(unsigned, std::size_t, std::size_t);
- void unmap(void *);
+ void *map(unsigned);
+ void unmap(unsigned);
};
} // namespace GL