21 lines
454 B
C++
21 lines
454 B
C++
#ifndef __VK_DEVICE_MEMORY_HPP
|
|
#define __VK_DEVICE_MEMORY_HPP
|
|
|
|
#include "./object.hpp"
|
|
#include "./fwd.hpp"
|
|
|
|
namespace vk {
|
|
struct device_memory : public owned<device_memory,device> {
|
|
void* map (const device&,
|
|
VkDeviceSize offset,
|
|
VkDeviceSize size,
|
|
VkMemoryMapFlags flags);
|
|
|
|
void unmap (const device&);
|
|
|
|
VkDeviceSize commitment (const device&) const;
|
|
};
|
|
}
|
|
|
|
#endif
|