-
Notifications
You must be signed in to change notification settings - Fork 9
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
Web support #13
Comments
I've opened an issue on the immersive-web proposal regarding its current status: immersive-web/WebXR-WebGPU-Binding#5 |
Oh, fascinating, nice work! |
Hi, I'm also interested in creating WebXR (Specifically AR) using WebGPU, but still a rookie to this domain. Can you briefly give an overview on how did you use WebGPU with WebXR API in the demo source? What are the roles of WebGPU and WebGL? I see that both have been used in the demo. In any case I also have my own observation on the concept here. Correct me if I'm wrong, Basically, the rendering is done by WebGPU after getting the pose information from WebGL. Doesn't that mean GPU computation with respect to XR operations is done by WebGL? Also a humble suggestion, if possible, please add comments to the source. It would be really helpful in understanding the approach you have employed. Thanks! |
WebGL is used strictly to forward rendered frames from WebGPU to WebXR, that's all. The core mechanism making this possible is API support for importing an
WebGL isn't involved in anything besides textures, the rest of WebXR is CPU-side. Start at the documentation for
I would recommend MDN's guides as a starting point for learning how WebXR works and the roles of each API. |
Oh wow, thanks for the quick reply! I understand now. I'm currently learning WebGPU using the dawn implementation since I love C++.
So you are referring to what is mentioned in the spec? If so, my bad. I should've read it more clearly. I wanted to clarify the abstraction between WebXR and the rendering APIs despite WebXR having some WebGL based interfaces (Ex: XRWebGLBinding and XRWebGLLayer). Now I think they are cleared. Also, thanks for the guidance. Much appreciated. |
This is strictly not possible right now, as the official linkage between WebGPU and WebXR has not landed. However, it may still be possible by copying the output from WebGPU to WebGL, and then from WebGL to WebXR. Requires more investigation.
The text was updated successfully, but these errors were encountered: