Loading...
Searching...
No Matches
HgiGLDevice Class Referencefinal

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)
 

Detailed Description

OpenGL implementation of GPU device.

Note: HgiGL does not concern itself with GL context management. See notes in hgiGL/hgi.h

Definition at line 46 of file device.h.

Member Function Documentation

◆ AcquireFramebuffer()

HGIGL_API uint32_t AcquireFramebuffer ( HgiGraphicsCmdsDesc const &  desc,
bool  resolved = false 
)

Returns a framebuffer object id that is managed by the active arena.

◆ GarbageCollect()

HGIGL_API void GarbageCollect ( )

Garbage collect resources in the active arena.

◆ SetCurrentArena()

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.

◆ SubmitOps()

HGIGL_API void SubmitOps ( HgiGLOpsVector const &  ops)

Execute the provided functions / ops. This will emit the GL calls.


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