函数改名使得代码更容易理解

This commit is contained in:
hyzboy 2019-06-28 10:17:34 +08:00
parent 36156b0172
commit 60d31a4886
3 changed files with 4 additions and 4 deletions

View File

@ -224,7 +224,7 @@ public:
VkCommandBuffer cb=*cmd_buf[index];
device->SubmitDraw(&cb);
device->QueuePresent();
device->PresentBackbuffer();
}
virtual void Draw()

View File

@ -180,10 +180,10 @@ public: //Command Buffer 相关
public: //提交相关
bool Wait (bool wait_all=VK_TRUE,uint64_t time_out=HGL_NANO_SEC_PER_SEC*0.1); ///<等待队列完成
bool AcquireNextImage (); ///<请求切换到下一帧(注意此函数调用并不代表画面会出现)
bool AcquireNextImage (); ///<请求获得下一帧的索引
bool SubmitDraw (const VkCommandBuffer *,const uint32_t count=1); ///<提交绘制指令
bool SubmitTexture (const VkCommandBuffer *cmd_bufs,const uint32_t count=1); ///<提交纹理处理到队列
bool QueuePresent (); ///<等待队列完成,并将画面呈现出来
bool PresentBackbuffer (); ///<等待绘制队列完成,并将后台缓冲区呈现到前台
};//class Device
VK_NAMESPACE_END
#endif//HGL_GRAPH_RENDER_SURFACE_INCLUDE

View File

@ -197,7 +197,7 @@ bool Device::SubmitDraw(const VkCommandBuffer *cmd_bufs,const uint32_t count)
return(result==VK_SUCCESS);
}
bool Device::QueuePresent()
bool Device::PresentBackbuffer()
{
present_info.pImageIndices=&current_frame;