News for hackers. Stuff that matters.
Re:I learned Vulkan and wrote a small game engine with it by raincole on Saturday November 22, 2025 @01:40AM (#46012670)
How easy is it to integrate wgpu if the rest of your game is developed with a language that isn't rust? (e.g. C# or C++)
Re:I learned Vulkan and wrote a small game engine with it by merksoftworks on Saturday November 22, 2025 @02:48AM (#46012973)
Very! there are unified headers and a C library that the maintainers have written as a wrapper around the library.

https://github.com/gfx-rs/wgpu-native

https://github.com/eliemichel/WebGPU-Cpp

Re:I learned Vulkan and wrote a small game engine with it by pdpi on Saturday November 22, 2025 @08:04AM (#46014473)
Webgpu.h is, AIUI, part of the webgpu spec. Both Dawn (Google’s C++ implementation used in Chrome) and wgpu (Mozilla’s implementation used in Firefox) can be used as concrete implementation of those headers.
Re:I learned Vulkan and wrote a small game engine with it by ChadNauseam on Saturday November 22, 2025 @04:47PM (#46018541)
wgpu is the name of the Rust library, but it pretty closely follows the WebGPU spec, which you can easily use from C or C++ via Google's `dawn` library. It provides C bindings as well as a templatized C++ API.