mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
28 lines
521 B
C++
28 lines
521 B
C++
#ifndef CC_GFXVULKAN_CCVK_FRAMEBUFFER_H_
|
|
#define CC_GFXVULKAN_CCVK_FRAMEBUFFER_H_
|
|
|
|
namespace cc {
|
|
namespace gfx {
|
|
|
|
class CCVKGPUFramebuffer;
|
|
|
|
class CC_VULKAN_API CCVKFramebuffer : public Framebuffer {
|
|
public:
|
|
CCVKFramebuffer(Device *device);
|
|
~CCVKFramebuffer();
|
|
|
|
public:
|
|
bool initialize(const FramebufferInfo &info);
|
|
void destroy();
|
|
|
|
CC_INLINE CCVKGPUFramebuffer *gpuFBO() const { return _gpuFBO; }
|
|
|
|
private:
|
|
CCVKGPUFramebuffer *_gpuFBO = nullptr;
|
|
};
|
|
|
|
} // namespace gfx
|
|
} // namespace cc
|
|
|
|
#endif
|