HDK
|
#include <framebufferCache.h>
Public Member Functions | |
HGIGL_API | HgiGLFramebufferCache () |
HGIGL_API | ~HgiGLFramebufferCache () |
HGIGL_API uint32_t | AcquireFramebuffer (HgiGraphicsCmdsDesc const &desc) |
HGIGL_API void | Clear () |
Friends | |
std::ostream & | operator<< (std::ostream &out, const HgiGLFramebufferCache &fbc) |
Manages a cache of framebuffers based on graphics cmds descriptors.
Definition at line 44 of file framebufferCache.h.
HGIGL_API HgiGLFramebufferCache::HgiGLFramebufferCache | ( | ) |
HGIGL_API HgiGLFramebufferCache::~HgiGLFramebufferCache | ( | ) |
HGIGL_API uint32_t HgiGLFramebufferCache::AcquireFramebuffer | ( | HgiGraphicsCmdsDesc const & | desc | ) |
Get a framebuffer that matches the descriptor. If the framebuffer exists in the cache, it will be returned. If none exist that match the descriptor, it will be created. Do not hold onto the returned id. Re-acquire it every frame.
Clears all framebuffersfrom cache. This should generally only be called when the device is being destroyed.
|
friend |