WebGPU with C++ ?

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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.

  • 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.

    InfluxDB logo
  • 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