Monado OpenXR Runtime
comp_gl_eglimage_swapchain.h File Reference

OpenGL client side glue using EGLImageKHR - header. More...

#include "comp_gl_client.h"
Include dependency graph for comp_gl_eglimage_swapchain.h:

Go to the source code of this file.

Data Structures

class  client_gl_eglimage_swapchain
 Wraps the real compositor swapchain providing a OpenGL based interface. More...
 

Typedefs

typedef void * EGLImage
 
typedef void * EGLDisplay
 

Functions

struct xrt_swapchainclient_gl_eglimage_swapchain_create (struct xrt_compositor *xc, const struct xrt_swapchain_create_info *info, struct xrt_swapchain_native *xscn, struct client_gl_swapchain **out_sc)
 Create a swapchain, belonging to a client_gl_compositor, that uses some way of producing an EGLImageKHR from the native buffer. More...
 

Detailed Description

OpenGL client side glue using EGLImageKHR - header.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ client_gl_eglimage_swapchain_create()

struct xrt_swapchain * client_gl_eglimage_swapchain_create ( struct xrt_compositor xc,
const struct xrt_swapchain_create_info info,
struct xrt_swapchain_native xscn,
struct client_gl_swapchain **  out_sc 
)

Create a swapchain, belonging to a client_gl_compositor, that uses some way of producing an EGLImageKHR from the native buffer.

This is used on Android and on desktop when the EGL extension is used.

Todo:
this matches the behavior of the Google test, but is not itself tested or fully rationalized.

Also, glEGLImageTargetTexStorageEXT was added in Android platform 28, so fairly recently.

References client_egl_compositor::client_egl_compositor().