fixed RenderList2D and third_triangle example.

This commit is contained in:
2023-05-06 19:30:08 +08:00
parent 12e64d7ce0
commit abfc84feff
8 changed files with 79 additions and 270 deletions

View File

@@ -26,6 +26,8 @@ public:
const bool Comp(const VertexInputData *vid)const
{
if(!vid)return(false);
if(binding_count!=vid->binding_count)return(false);
for(uint32_t i=0;i<binding_count;i++)
@@ -75,10 +77,6 @@ public:
const VertexInputData * GetVertexInputData ()const{return vertex_input;}
MaterialParameters *GetMP (const DescriptorSetType &type){return mat_inst->GetMP(type);}
public: //instance support
virtual const uint32_t GetInstanceCount ()const{return 1;}
};//class Renderable
Renderable *CreateRenderable(Primitive *,MaterialInstance *,Pipeline *);