create DrawData that it split from VertexInputData

This commit is contained in:
2024-05-25 22:08:01 +08:00
parent a5e76988c7
commit 6740764f07
20 changed files with 225 additions and 140 deletions

View File

@@ -3,9 +3,9 @@
#include<hgl/graph/VKVBOList.h>
VK_NAMESPACE_BEGIN
class RenderL2WBuffer;
class RenderAssignBuffer;
/**
* 同一材质的对象渲染列表
*/
@@ -30,6 +30,7 @@ private:
Pipeline * pipeline;
MaterialInstance * mi;
const VertexInputData * vid;
const DrawData * dd;
public:
@@ -47,9 +48,10 @@ protected:
Pipeline * last_pipeline;
const VertexInputData * last_vid;
const DrawData * last_dd;
uint last_index;
bool Bind(const VertexInputData *,const uint);
bool BindVAB(const VertexInputData *,const DrawData *,const uint);
void Render(RenderItem *);