40 ChildResource(device), memoryInfo(requirements), memoryProperties(properties) {
64 ChildResource(device), memoryInfo(std::move(requirements)), memoryProperties(properties) {
86 vk::MemoryAllocateInfo allocInfo(
memoryInfo.size, memoryType);
virtual void freeResources(bool remove=true)
virtual void init(Parent &parent)
vk::UniqueDevice logicalDevice
uint32_t findMemoryType(uint32_t typeFilter, vk::MemoryPropertyFlags properties) const
vk::MemoryPropertyFlags memoryProperties
void init(Device &device, const vk::MemoryRequirements &requirements, vk::MemoryPropertyFlags properties)
vk::MemoryRequirements memoryInfo
vk::UniqueDeviceMemory deviceMemory
void freeResources(bool remove=true) override