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:
@@ -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 *);
|
||||
|
Reference in New Issue
Block a user