33 explicit operator VkDeviceMemory()
const {
39 void* map(VkDeviceSize size = VK_WHOLE_SIZE, VkDeviceSize offset = 0)
const;
40 void* mapBuffer(
const API::Buffer& buffer, VkDeviceSize size = VK_WHOLE_SIZE, VkDeviceSize offset = 0)
const;
41 void* mapImage(
const API::Image& image, VkDeviceSize size = VK_WHOLE_SIZE, VkDeviceSize offset = 0)
const;
45 VkDeviceSize getSize()
const;
48 explicit DeviceMemory(VkDeviceMemory deviceMemory,
const Device* device, VkDeviceSize size);
51 VkDeviceMemory _deviceMemory{VK_NULL_HANDLE};
54 VkDeviceSize _size{0};