eliemichel / glfw3webgpu Goto Github PK
View Code? Open in Web Editor NEWAn extension for the GLFW library for using WebGPU native.
License: MIT License
An extension for the GLFW library for using WebGPU native.
License: MIT License
Following the excellent tutorial series, in particular the Emscripten build walk-through:
It appears the branch for this specific step has its own version of glfw3webgpu
which has logic (here) for getting a WGPUSurface when compiling with Emscripten. This extra code appears to be missing from this repository's glfw3webgpu.c
.
When following the steps, with a setup that pulls the dependency from this repository, I naturally get an error at build time:
[ 8%] Building C object _deps/glfw3webgpu-build/CMakeFiles/glfw3webgpu.dir/glfw3webgpu.c.o
/Users/.../build-web/_deps/glfw3webgpu-src/glfw3webgpu.c:65:10: fatal error: 'GLFW/glfw3native.h' file not found
65 | #include <GLFW/glfw3native.h>
| ^~~~~~~~~~~~~~~~~~~~
1 error generated.
This issue is essentially just an ask to get this newer code merged into here for consistency!
Many thanks.
Since 3.4, GLFW has runtime platform selection support.
It would be great if your library (and later, upstream change) took care of this to allow runtime choice between xorg or wayland.
This whole repo is meant to eventually be merged into GLFW imho, through this PR. When pushing there, I realized that calling the function glfwCreateWindowWGPUSurface
instead of glfwGetWGPUSurface
is more in sync with its Vulkan counterpart.
This repo will eventually undergo this renaming, but I want to make sure whenever I do this that the guide gets undated accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.