24 #ifndef PXR_IMAGING_HGI_GL_FRAMEBUFFER_CACHE_H
25 #define PXR_IMAGING_HGI_GL_FRAMEBUFFER_CACHE_H
32 #include "pxr/imaging/hgi/graphicsCmdsDesc.h"
33 #include "pxr/imaging/hgiGL/api.h"
35 PXR_NAMESPACE_OPEN_SCOPE
37 using HgiGLDescriptorCacheVec = std::vector<struct HgiGLDescriptorCacheItem*>;
51 ~HgiGLFramebufferCache();
63 bool resolved =
false);
71 friend std::ostream& operator<<(
73 const HgiGLFramebufferCache& fbc);
75 HgiGLDescriptorCacheVec _descriptorCache;
79 PXR_NAMESPACE_CLOSE_SCOPE
HGIGL_API void Clear()
Clears all framebuffersfrom cache.
Manages a cache of framebuffers based on graphics cmds descriptors.
Describes the properties to begin a HgiGraphicsCmds.
HGIGL_API uint32_t AcquireFramebuffer(HgiGraphicsCmdsDesc const &desc, bool resolved=false)
Get a framebuffer that matches the descriptor.