use MemoryAllocationInfo
This commit is contained in:
parent
ce727cbb1a
commit
3e3b232af1
@ -1 +1 @@
|
||||
Subproject commit 0f2586f9c3a4477849febb70e59bbd195bf931fb
|
||||
Subproject commit aaf998351f639a3854b0d99340ccf68337d6f767
|
@ -9,12 +9,7 @@ GPUMemory *GPUDevice::CreateMemory(const VkMemoryRequirements &req,uint32_t prop
|
||||
if(!attr->physical_device->CheckMemoryType(req.memoryTypeBits,properties,&index))
|
||||
return(nullptr);
|
||||
|
||||
VkMemoryAllocateInfo alloc_info;
|
||||
|
||||
alloc_info.sType =VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
|
||||
alloc_info.pNext =nullptr;
|
||||
alloc_info.memoryTypeIndex =index;
|
||||
alloc_info.allocationSize =req.size;
|
||||
MemoryAllocateInfo alloc_info(index,req.size);
|
||||
|
||||
VkDeviceMemory memory;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user