FCT
载入中...
搜索中...
未找到
Pipeline.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/3/24.
3//
6#include "../Context/Vertex.h"
7#ifndef FCT_PIPELINE_H
8#define FCT_PIPELINE_H
9namespace FCT
10{
17 namespace RHI
18 {
19 class Pipeline : public RefCount
20 {
21 public:
22 virtual PipelineType getType() const = 0;
23 void vertexLayout(VertexLayout layout,uint32_t slot = 0) { m_vertexLayouts[slot] = layout; }
24 void pixelLayout(const PixelLayout& layout) { m_pixelLayout = layout; }
25 void resourceLayout(const ResourceLayout& layout) { m_resourceLayout = layout; }
26 virtual void create() = 0;
27 protected:
28 std::map<uint32_t,VertexLayout> m_vertexLayouts;
31 };
32 }
33}
34#endif //FCT_PIPELINE_H
void resourceLayout(const ResourceLayout &layout)
virtual PipelineType getType() const =0
PixelLayout m_pixelLayout
void pixelLayout(const PixelLayout &layout)
virtual void create()=0
ResourceLayout m_resourceLayout
std::map< uint32_t, VertexLayout > m_vertexLayouts
void vertexLayout(VertexLayout layout, uint32_t slot=0)
@ RayTracing
@ Traditional
@ MeshShader