supported new Comparator<> and ItemComparator<>

This commit is contained in:
2024-12-12 13:30:11 +08:00
parent dd5a78cbaa
commit 6c160f5c53
8 changed files with 41 additions and 40 deletions

View File

@@ -8,14 +8,14 @@ class RenderAssignBuffer;
class SceneNode;
struct CameraInfo;
struct RenderPipelineIndex
struct RenderPipelineIndex:public Comparator<RenderPipelineIndex>
{
Material *material;
Pipeline *pipeline;
public:
const int Comp(const RenderPipelineIndex &rli)const
const int compare(const RenderPipelineIndex &rli)const override
{
if(material<rli.material)return(-1);
if(material>rli.material)return(1);
@@ -26,8 +26,6 @@ public:
return(0);
}
CompOperator(const RenderPipelineIndex &,Comp)
public:
RenderPipelineIndex()