将CreateRenderDevice转移到Window类中,并记录device,以方便在RESIZE等时重建SwapChain

This commit is contained in:
2019-05-07 12:46:25 +08:00
parent 1ee9eef78c
commit d2cad7bf2f
31 changed files with 305 additions and 229 deletions

View File

@@ -36,7 +36,6 @@ public:
virtual ~VulkanApplicationFramework()
{
SAFE_CLEAR(shader_manage);
SAFE_CLEAR(device);
SAFE_CLEAR(inst);
SAFE_CLEAR(win);
}
@@ -62,7 +61,7 @@ public:
if(!inst)
return(false);
device=inst->CreateRenderDevice(win);
device=win->CreateRenderDevice(inst);
if(!device)
return(false);