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

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

View File

@ -15,7 +15,7 @@ class VKMemoryAllocator:public AbstractMemoryAllocator
protected:
bool Alloc() override;
bool AllocMemory() override;
public:

View File

@ -12,7 +12,7 @@ VKMemoryAllocator::VKMemoryAllocator(GPUDevice *d,const uint32_t flags)
const GPUPhysicalDevice *pd=device->GetPhysicalDevice();
SetAllocUnitSize(pd->GetConstantSize()); //据说push constant容量就是GPU的最小访问单位
SetAllocUnitSize(pd->GetUBOAlign());
}
VKMemoryAllocator::~VKMemoryAllocator()
@ -24,7 +24,7 @@ VKMemoryAllocator::~VKMemoryAllocator()
}
}
bool VKMemoryAllocator::Alloc()
bool VKMemoryAllocator::AllocMemory()
{
if(gpu_buffer)
delete gpu_buffer;