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 glfwCreateWindowWGPUSurface for native WebGPU #2333
base: master
Are you sure you want to change the base?
Conversation
Use of the WebGPU header LGTM FWIW and I think |
It does. It shouldn't change meaningfully, the API already done completely through extension structs. |
Hey @elmindreda I see you've added this to your "Needs Investigation" list, is there any way I can help? FWIW I've been actively using this for the past year, and it is a part of the LearnWebGPU guide without trouble, so it's not just me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
WIP support for the new runtime platform switch (X11/Wayland): eliemichel/glfw3webgpu#8 Will be ported to this PR once tested enough. |
As noticed in #2243 it seems logical that GLFW provides a
glfwCreateWindowWGPUSurface
for WebGPU similar to theglfwCreateWindowSurface
it has for Vulkan, as this is the only part of the process of creating a "hello triangle" in native WebGPU that requires OS-specific code (more details).I am not sure about all the details of this PR, I know the original
glfw3webgpu
repo works well but maybe I did not integrate it as well as I could in this project's CMakeLists!