optimized MaterialRenderList, removed last_vil(pipeline already include vil), don't create assign_buffer if material don't include assign

This commit is contained in:
2023-10-12 02:24:58 +08:00
parent 255c7859f1
commit 317635877b
8 changed files with 46 additions and 70 deletions

View File

@@ -13,7 +13,7 @@ class MaterialRenderList
GPUDevice *device;
RenderCmdBuffer *cmd_buf;
Material *mtl;
Material *material;
RenderNodeList rn_list;
@@ -46,12 +46,10 @@ protected:
VBOList * vbo_list;
const VIL * last_vil;
Pipeline * last_pipeline;
const VertexInputData * last_vid;
uint last_index;
void Bind(MaterialInstance *);
bool Bind(const VertexInputData *,const uint);
void Render(RenderItem *);