Deleted device attrib at RenderList

This commit is contained in:
hyzboy 2021-06-15 19:03:34 +08:00
parent ef3a8be58c
commit 8b3c90c717
2 changed files with 3 additions and 9 deletions

View File

@ -19,7 +19,6 @@ namespace hgl
*/
class RenderList
{
GPUDevice *device;
RenderCmdBuffer *cmd_buf;
private:
@ -44,19 +43,16 @@ namespace hgl
private:
friend class GPUDevice;
RenderList(GPUDevice *);
friend class SceneTreeToRenderList;
void Set(List<RenderableInstance *> *,GPUBuffer *,const uint32_t);
public:
RenderList();
virtual ~RenderList()=default;
bool Render (RenderCmdBuffer *);
bool Render(RenderCmdBuffer *);
};//class RenderList
}//namespace graph
}//namespace hgl

View File

@ -1,7 +1,6 @@
#include<hgl/graph/RenderList.h>
#include<hgl/graph/Camera.h>
#include<hgl/graph/SceneNode.h>
#include<hgl/graph/VKDevice.h>
#include<hgl/graph/VKBuffer.h>
#include<hgl/graph/VKRenderable.h>
#include<hgl/graph/VKCommandBuffer.h>
@ -13,9 +12,8 @@ namespace hgl
{
namespace graph
{
RenderList::RenderList(GPUDevice *gd)
RenderList::RenderList()
{
device =gd;
cmd_buf =nullptr;
mvp_buffer =nullptr;