Struct anira_gl_desc#

struct anira_gl_desc#

The OpenGL block of a context config; GL is always borrowed. CALLER_THREAD: anira touches GL only inside allocate_*, submit and bind_output, on the calling thread where the user’s context is current. SHARED_CONTEXT (additive): a second context of the same share group that anira’s worker makes current.

Public Members

uint32_t struct_size#

sizeof(anira_gl_desc) of the caller’s header.

uint32_t threads#

anira_gl_threads.

void *display#

EGLDisplay (or the GLX equivalent).

void *context#

EGLContext (or the GLX equivalent).

void *gbm#

gbm_device*: lets allocate_* back GL storage with a dma-buf; NULL otherwise.