FCT
载入中...
搜索中...
未找到
VK_Pass.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/3/28.
3//
4
5#ifndef VK_PASS_H
6#define VK_PASS_H
7#include "./Pass.h"
8#include "CommandBuffer.h"
9
10namespace FCT
11{
12 class VK_Context;
13 namespace RHI
14 {
15 class VK_Pass : public Pass{
16 public:
17 VK_Pass(VK_Context* ctx);
18 void create(PassGroup* group) override;
19 vk::SubpassDescription getDescription() { return m_desc; }
20 std::map<uint32_t,uint32_t>& targetAttachmentIndices() { return m_targetAttachmentIndices; }
22 void beginSubmit(CommandBuffer* cmdBuf) override;
23 void endSubmit() override;
24 void executeClear(CommandBuffer* cmdBuf) override;
25 protected:
27 vk::SubpassDescription m_desc;
28 std::vector<vk::AttachmentReference> m_renderTargetRefs;
29 vk::AttachmentReference m_depthStencilRef;
31 std::map<uint32_t,uint32_t> m_targetAttachmentIndices;//key is slot,value is attachment index
32 };
33 }
34}
35
36
37#endif //VK_PASS_H
uint32_t index() const
定义 Pass.h:71
PassGroup * group() const
定义 Pass.h:79
void executeClear(CommandBuffer *cmdBuf) override
uint32_t m_depthStencilAttachmentIndex
void setDepthStencilAttachmentIndex(uint32_t index)
VK_Pass(VK_Context *ctx)
std::map< uint32_t, uint32_t > m_targetAttachmentIndices
vk::AttachmentReference m_depthStencilRef
vk::SubpassDescription m_desc
std::map< uint32_t, uint32_t > & targetAttachmentIndices()
std::vector< vk::AttachmentReference > m_renderTargetRefs
vk::SubpassDescription getDescription()
VK_Context * m_ctx
void create(PassGroup *group) override
void beginSubmit(CommandBuffer *cmdBuf) override
void endSubmit() override