added WorkObject::CreateMaterialInstance
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user