splited to GraphModuleManager.cpp

This commit is contained in:
2024-10-25 23:17:14 +08:00
parent 1183e44221
commit 983281f6ad
6 changed files with 122 additions and 105 deletions

View File

@@ -13,7 +13,7 @@ namespace hgl
struct RenderNode
{
uint index; ///<在MaterialRenderList中的索引
uint index; ///<在MaterialRenderList中的索引
SceneNode * scene_node;

View File

@@ -6,6 +6,10 @@
#include<hgl/graph/VKInlinePipeline.h>
#include<hgl/io/DataOutputStream.h>
VK_NAMESPACE_BEGIN
/**
* 管线<br>
* 管线管理了一批次渲染的所有基础条件,包括顶点输入、着色器、混合、深度测试等等
*/
class Pipeline
{
VkDevice device;

View File

@@ -65,7 +65,8 @@ public:
virtual const bool IsRender(){return false;} ///<是否为渲染模块
GraphModuleManager *GetManager(){return module_manager;} ///<取得模块管理器
GPUDevice *GetDevice(){return module_manager->GetDevice();} ///<取得GPU设备
GPUDevice * GetDevice(){return module_manager->GetDevice();} ///<取得GPU设备
GPUDeviceAttribute *GetDeviceAttribute();
static const AnsiIDName *GetModuleName(){return nullptr;} ///<取得模块名称(标准通用的名称比如Upscale供通用模块使用)
virtual const AnsiIDName *GetName()const{return &module_name;} ///<取得名称(完整的私有名称比如FSR3Upscale,DLSS3Upscale)