FCT
载入中...
搜索中...
未找到
PipeHub.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/8/21.
3//
4
5#ifndef PIPEHUB_H
6#define PIPEHUB_H
9
10namespace FCT
11{
12 class Image;
13 class Window;
14
15 namespace RHI
16 {
17 class Pass;
18 }
19
21 {
24 uint32_t width;
25 uint32_t height;
26
27 OutputInfo() : isWindow(false), window(nullptr), width(0), height(0) {}
28 OutputInfo(bool isWnd, Window* wnd = nullptr, uint32_t w = 0, uint32_t h = 0)
29 : isWindow(isWnd), window(wnd), width(w), height(h) {}
30 };
31
32 struct PassInfo
33 {
35 std::map<std::string, Image*> textures;
36 std::map<std::string, ShaderStage> textureSlot;
37 std::map<std::string, Image*> targets;
38 std::map<std::string, Image*> depthStencils;
40 };
45}
46#endif //PIPEHUB_H
OutputInfo(bool isWnd, Window *wnd=nullptr, uint32_t w=0, uint32_t h=0)
OutputInfo outputInfo
std::map< std::string, Image * > textures
RHI::Pass & pass
std::map< std::string, Image * > targets
std::map< std::string, Image * > depthStencils
std::map< std::string, ShaderStage > textureSlot
ObjectPipe< std::string > passPipe