added VDM in Primitive/Renderable/PrimitiveDataBuffer

This commit is contained in:
2024-05-28 23:33:15 +08:00
parent ca8e36687f
commit 8cdf88e2fd
6 changed files with 21 additions and 3 deletions

View File

@@ -42,6 +42,8 @@ public:
IndexBuffer * GetIBO ();
const uint32_t GetFirstIndex ()const; ///<取得第一个索引
VertexDataManager * GetVDM (); ///<取得顶点数据管理器
const AABB & GetBoundingBox ()const{return BoundingBox;}
};//class Primitive
VK_NAMESPACE_END

View File

@@ -29,9 +29,11 @@ struct PrimitiveDataBuffer
IndexBuffer * ibo;
VertexDataManager *vdm; //只是用来区分和比较的,不实际使用
public:
PrimitiveDataBuffer(const uint32_t,IndexBuffer *);
PrimitiveDataBuffer(const uint32_t,IndexBuffer *,VertexDataManager *_v=nullptr);
~PrimitiveDataBuffer();
const bool Comp(const PrimitiveDataBuffer *pdb)const;