39 std::unique_ptr<API::DeviceMemory>
build(VkResult* returnResult =
nullptr);
47 VkMemoryPropertyFlags
_memoryFlags{VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT};
std::vector< API::Image * > _images
bool build(API::DeviceMemory &instance, VkResult *returnResult=nullptr)
const API::Device & _device
static uint32_t findMemoryType(const API::Device &device, uint32_t memoryTypeBits, VkMemoryPropertyFlags requiredFlags)
bool addBuffer(API::Buffer &buffer)
void setMemoryFlags(VkMemoryPropertyFlags flags)
bool addImage(API::Image &image)
VkMemoryPropertyFlags _memoryFlags
std::vector< API::Buffer * > _buffers
DeviceMemory & operator=(const DeviceMemory &)=delete
DeviceMemory(const API::Device &deviceMemory)