VKMemoryAllocator::Alloc() use new name AllocMemory().

This commit is contained in:
2021-05-08 17:55:16 +08:00
parent 666bedbf85
commit 1dc5dd09a7
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ VKMemoryAllocator::VKMemoryAllocator(GPUDevice *d,const uint32_t flags)
const GPUPhysicalDevice *pd=device->GetPhysicalDevice();
SetAllocUnitSize(pd->GetConstantSize()); //<2F><>˵push constant<6E><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>GPU<50><55><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD>ʵ<EFBFBD>λ
SetAllocUnitSize(pd->GetUBOAlign());
}
VKMemoryAllocator::~VKMemoryAllocator()
@@ -24,7 +24,7 @@ VKMemoryAllocator::~VKMemoryAllocator()
}
}
bool VKMemoryAllocator::Alloc()
bool VKMemoryAllocator::AllocMemory()
{
if(gpu_buffer)
delete gpu_buffer;