WebGPU with C++ ?

This page summarizes the projects mentioned and recommended in the original post on /r/webgpu

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SaaSHub - Software Alternatives and Reviews
  • wgpu

    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.

  • dawn

    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.

  • Onboard AI

    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.

  • learn-wgpu

    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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts