prepare support VDM for PrimitiveCreater

This commit is contained in:
2024-04-17 01:38:35 +08:00
parent f00cb0b815
commit 4fc74d38ba
4 changed files with 25 additions and 7 deletions

View File

@@ -8,6 +8,8 @@ namespace hgl
{
namespace graph
{
class VertexDataManager;
/**
* 可绘制图元创建器
*/
@@ -23,6 +25,7 @@ namespace hgl
protected:
VertexDataManager *vdm;
RenderResource *db;
const VIL *vil;
@@ -43,6 +46,7 @@ namespace hgl
public:
PrimitiveCreater(RenderResource *sdb,const VIL *);
PrimitiveCreater(VertexDataManager *);
virtual ~PrimitiveCreater()=default;
virtual bool Init(const uint32 vertices_count); ///<初始化,参数为顶点数量

View File

@@ -14,6 +14,7 @@ namespace hgl
protected:
VIL * vil; ///<顶点输入格式列表
uint vi_count; ///<顶点输入流数量
const VIF * vif_list; ///<顶点输入格式列表
@@ -34,6 +35,8 @@ namespace hgl
VertexDataManager(GPUDevice *dev,const VIL *_vil);
~VertexDataManager();
const VIL * GetVIL ()const{return vil;} ///<取得顶点输入格式列表
const VkDeviceSize GetVBOMaxCount ()const{return vbo_max_size;} ///<取得顶点缓冲区分配的空间最大数量
const VkDeviceSize GetVBOCurCount ()const{return vbo_cur_size;} ///<取得顶点缓冲区当前数量