Cross-platform, safe, pure-rust graphics api.
I recommend C++ if you're building desktop applications and you wanna write a performant game since most of the game industry uses C++. https://eliemichel.github.io/LearnWebGPU/ is a good guide, and there's a discord group too https://discord.gg/2Tar4Kt564. Alternatively, you can you Rust (https://github.com/gfx-rs/wgpu). But do note that you can compile both C++ and Rust to WASM, but just takes more work.
Fork of dawn.googlesource.com/dawn with generated code and third-party dependencies committed (by hexops)
Or you rather use WebGPU outside of the browser, in which case you can make use of Dawn.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Guide for using gfx-rs's wgpu library.
I suggest looking into Rust for developing WASM applications with WebGPU, since Rust has in my experience way better support for WASM than c++. wgpu is the implementation of the WebGPU standard in rust and is very well documented. It also isn't just a backend for WebGPU but also for OpenGL, WebGL, Vulkan, Metal and DirectX, so you application can run on every device. There is a great tutorial series here.
There is anything like wgpu.rs for Zig?
2 projects | /r/Zig | 18 Nov 2023
Show HN: Ambient, a multiplayer game engine and platform using WASM/WebGPU/Rust
4 projects | news.ycombinator.com | 4 Oct 2023
Wgpu: Portable Graphics Library for Rust
1 project | news.ycombinator.com | 13 Sep 2023
WGPU: How to use map_async with WASM?
1 project | /r/rust | 23 Jun 2023
Handles Are the Better Pointers
1 project | news.ycombinator.com | 21 Jun 2023