Our great sponsors
-
dawn
Fork of dawn.googlesource.com/dawn with generated code and third-party dependencies committed (by hexops)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
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.
Or you rather use WebGPU outside of the browser, in which case you can make use of Dawn.
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.