added WorkObject::CreateMaterialInstance

This commit is contained in:
2025-01-29 18:10:37 +08:00
parent 052e2c673a
commit 0d67993326
3 changed files with 13 additions and 2 deletions

View File

@@ -1,11 +1,17 @@
#pragma once
#include<hgl/type/object/TickObject.h>
#include<hgl/graph/RenderFramework.h>
#include<hgl/graph/VKRenderResource.h>
#include<hgl/Time.h>
//#include<iostream>
namespace hgl
{
namespace graph::mtl
{
class MaterialCreateInfo;
}
/**
* 工作对象</p>
*
@@ -61,6 +67,11 @@ namespace hgl
return render_pass->CreatePipeline(args...);
}
graph::MaterialInstance *CreateMaterialInstance(const graph::mtl::MaterialCreateInfo *mci,const graph::VILConfig *vil_cfg=nullptr)
{
return db->CreateMaterialInstance(mci,vil_cfg);
}
graph::Renderable *CreateRenderable( const AnsiString &name,
uint32_t vertices_count,
graph::MaterialInstance *mi,