函数改名

This commit is contained in:
hyzboy 2019-06-26 16:50:00 +08:00
parent d675911ed9
commit 4a7ff689fb

View File

@ -246,7 +246,7 @@ namespace
return cache;
}
bool CreateSwapchinAndImageView(DeviceAttribute *attr)
bool CreateSwapchinAndDepthBuffer(DeviceAttribute *attr)
{
attr->swap_chain=CreateSwapChain(attr);
@ -518,7 +518,7 @@ Device *CreateRenderDevice(VkInstance inst,const PhysicalDevice *physical_device
if(!attr->cmd_pool)
return(nullptr);
if(!CreateSwapchinAndImageView(attr))
if(!CreateSwapchinAndDepthBuffer(attr))
return(nullptr);
attr->desc_pool=CreateDescriptorPool(attr->device,1024);
@ -548,6 +548,6 @@ bool ResizeRenderDevice(DeviceAttribute *attr,uint width,uint height)
attr->swapchain_extent=GetSwapchainExtent(attr->surface_caps,width,height);
return CreateSwapchinAndImageView(attr);
return CreateSwapchinAndDepthBuffer(attr);
}
VK_NAMESPACE_END