HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiGLFramebufferCache Class Referencefinal

#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)
 

Detailed Description

Manages a cache of framebuffers based on graphics cmds descriptors.

Definition at line 44 of file framebufferCache.h.

Constructor & Destructor Documentation

HGIGL_API HgiGLFramebufferCache::HgiGLFramebufferCache ( )
HGIGL_API HgiGLFramebufferCache::~HgiGLFramebufferCache ( )

Member Function Documentation

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.

HGIGL_API void HgiGLFramebufferCache::Clear ( )

Clears all framebuffersfrom cache. This should generally only be called when the device is being destroyed.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const HgiGLFramebufferCache fbc 
)
friend

The documentation for this class was generated from the following file: