4 ms·
Learn Wgpu
- dexwiz 5y agoI went through this about a year ago, and while it’s pretty good to start, it pretty quickly ends up as “copy this magic boilerplate” without much more info. It definitely assumes some knowledge of existing graphics APIs and patterns, and doesn’t do a good job explaining some of its code. Graphics programming is full of historical nuances due to different apis on different hardware. Also don’t expect a simple draw api just because it’s cross platform, it still wants you to manage textures and shaders.
- Shadonototra 5y ago> Wgpu actually has C bindings to allow you to write C/C++ code with it, as well as use other languages that interface with C. That being said, wgpu is written in Rust, and it has some convenient Rust bindings that don't have to jump through any hoops. On top of that, I've been enjoying writing in Rust. Why the bloat when this exist? https://github.com/webgpu-native/webgpu-headers https://github.com/webgpu-native/webgpu-headers EDIT: nvm i got confused by the name.. who thought it was a good idea to have almost similar names?
- YmiYugy 5y agoWGPU is the underlying implementation for WebGPU in Firefox and it has C bindings: https://github.com/gfx-rs/wgpu-native.git https://github.com/gfx-rs/wgpu-native.git.
- Shadonototra 5y agoYep, this is so much confusing that i don't even know what is what anymore, this is why naming is important kids!