Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bind_external_framebuffer function to the web sys context #218

Merged
merged 2 commits into from
Jun 26, 2022

Conversation

expenses
Copy link
Contributor

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: gfx-rs/wgpu@master...expenses:webxr

@expenses
Copy link
Contributor Author

bind_external_framebuffer is probably a better term, actually.

@expenses expenses changed the title Add a bind_raw_framebuffer function to the web sys context Add a bind_external_framebuffer function to the web sys context Apr 16, 2022
Copy link
Owner

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!
bors r+

bors bot added a commit that referenced this pull request Jun 26, 2022
217: add parallel shader compile extensions r=grovesNL a=xyning

used to compile shaders asynchronously to prevent stalls.

* webgl: https://www.khronos.org/registry/webgl/extensions/KHR_parallel_shader_compile/
* gl: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_parallel_shader_compile.txt
* gl & gles: https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_parallel_shader_compile.txt

its still not widely supported however. most real gles devices dont support it, neither does webgl on firefox

218: Add a `bind_external_framebuffer` function to the web sys context r=grovesNL a=expenses

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: gfx-rs/wgpu@master...expenses:webxr

Co-authored-by: Lictex Steaven <lictex_steaven@outlook.com>
Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jun 26, 2022

Build failed (retrying...):

bors bot added a commit that referenced this pull request Jun 26, 2022
218: Add a `bind_external_framebuffer` function to the web sys context r=grovesNL a=expenses

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: gfx-rs/wgpu@master...expenses:webxr

Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jun 26, 2022

Build failed:

@grovesNL
Copy link
Owner

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 26, 2022

@bors bors bot merged commit f004530 into grovesNL:main Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants