|
OpenGL implementation of GPU device. More...
#include <device.h>
Public Member Functions | |
HGIGL_API void | SubmitOps (HgiGLOpsVector const &ops) |
Execute the provided functions / ops. This will emit the GL calls. | |
HGIGL_API void | SetCurrentArena (HgiGLContextArenaHandle const &arenaHandle) |
Sets the active arena to use when submitting commands. | |
HGIGL_API uint32_t | AcquireFramebuffer (HgiGraphicsCmdsDesc const &desc, bool resolved=false) |
Returns a framebuffer object id that is managed by the active arena. | |
HGIGL_API void | GarbageCollect () |
Garbage collect resources in the active arena. | |
Friends | |
std::ofstream & | operator<< (std::ofstream &out, const HgiGLDevice &dev) |
OpenGL implementation of GPU device.
Note: HgiGL does not concern itself with GL context management. See notes in hgiGL/hgi.h
HGIGL_API uint32_t AcquireFramebuffer | ( | HgiGraphicsCmdsDesc const & | desc, |
bool | resolved = false |
||
) |
Returns a framebuffer object id that is managed by the active arena.
HGIGL_API void GarbageCollect | ( | ) |
Garbage collect resources in the active arena.
HGIGL_API void SetCurrentArena | ( | HgiGLContextArenaHandle const & | arenaHandle | ) |
Sets the active arena to use when submitting commands.
This is used for management of resources tied to a GL context such as FBOs. The default arena is used if a valid handle isn't provided.
HGIGL_API void SubmitOps | ( | HgiGLOpsVector const & | ops | ) |
Execute the provided functions / ops. This will emit the GL calls.