grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.2k stars 130 forks source link

Add a `bind_external_framebuffer` function to the web sys context #218

Closed expenses closed 2 years ago

expenses commented 2 years ago

This is necessary in order to bind the external framebuffer that you get from WebXR: https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebuffer

I'm using this for my branch of wgpu that can render to WebXR framebuffers: https://github.com/gfx-rs/wgpu/compare/master...expenses:webxr

expenses commented 2 years ago

bind_external_framebuffer is probably a better term, actually.

bors[bot] commented 2 years ago

Build failed (retrying...):

bors[bot] commented 2 years ago

Build failed:

grovesNL commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: