I had some trouble with glfwCreateWindowWGPUSurface() returning nullptr, and after debugging found that the internal switch was falling through to L178 in glfw3webgpu.c because none of the platform macros had been defined. Manually adding the appropriate one for my platformed allowed the function to perform correctly.
What is supposed to define those? I do not see them anywhere in the glfw3 header or anything about them in the instructions. I'm on OSX Sequoia 15.6.1; glfw3 was installed with homebrew; I am using Dawn as a backend, and my project sets pkg-config --cflags --libs --static glfw3. I am not using CMake.
If there is a necessary extra build step, could this be added to the documentation?
I had some trouble with
glfwCreateWindowWGPUSurface()returningnullptr, and after debugging found that the internal switch was falling through to L178 in glfw3webgpu.c because none of the platform macros had been defined. Manually adding the appropriate one for my platformed allowed the function to perform correctly.What is supposed to define those? I do not see them anywhere in the glfw3 header or anything about them in the instructions. I'm on OSX Sequoia 15.6.1; glfw3 was installed with homebrew; I am using Dawn as a backend, and my project sets
pkg-config --cflags --libs --static glfw3. I am not using CMake.If there is a necessary extra build step, could this be added to the documentation?