HDK
|
#include <device.h>
Public Member Functions | |
HGIGL_API | HgiGLDevice () |
HGIGL_API | ~HgiGLDevice () |
HGIGL_API void | SubmitOps (HgiGLOpsVector const &ops) |
Execute the provided functions / ops. This will emit the GL calls. More... | |
HGIGL_API void | SetCurrentArena (HgiGLContextArenaHandle const &arenaHandle) |
HGIGL_API uint32_t | AcquireFramebuffer (HgiGraphicsCmdsDesc const &desc, bool resolved=false) |
Returns a framebuffer object id that is managed by the active arena. More... | |
HGIGL_API void | GarbageCollect () |
Garbage collect resources in the active arena. More... | |
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 HgiGLDevice::HgiGLDevice | ( | ) |
HGIGL_API HgiGLDevice::~HgiGLDevice | ( | ) |
HGIGL_API uint32_t HgiGLDevice::AcquireFramebuffer | ( | HgiGraphicsCmdsDesc const & | desc, |
bool | resolved = false |
||
) |
Returns a framebuffer object id that is managed by the active arena.
HGIGL_API void HgiGLDevice::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 HgiGLDevice::SubmitOps | ( | HgiGLOpsVector const & | ops | ) |
Execute the provided functions / ops. This will emit the GL calls.
|
friend |