PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.1k stars 1.21k forks source link

EGL support for Wayland and headless rendering #2011

Open brechtvl opened 2 years ago

brechtvl commented 2 years ago

In Blender we plan to support Wayland and headless rendering. We want a single executable and USD library to work on systems that have X11, Wayland, both or neither installed.

For this USD is missing two things:

We're willing to contribute improvements to USD and OpenSubdiv for this, but would like some feedback on the best approach.

From what I understand, USD links to X11 libraries only to support debug windows for tests. Possible solutions:

For loading GL, GLX and EGL systems dynamically, possible solutions:

My preference would be to use libepoxy since we already use it in Blender, it meets the requirements and implementing all this in glApi would be rather complicated. However it would of course add a new (optional) dependency.

sunyab commented 2 years ago

Filed as internal issue #USD-7586

brechtvl commented 2 years ago

I realized glApi is part of the public USD API, which makes using a library like libepoxy difficult. There may be some way to forward the symbols but it's looking messy.