5 ms·
wgpu, the Rust WebGPU implementation is the bee's knees. https://wgpu.rs/ https://wgpu.rs/ You can use it beyond the web.
by adamnemecek 3y ago
wgpu, the Rust WebGPU implementation is the bee's knees. https://wgpu.rs/ https://wgpu.rs/ You can use it beyond the web.
- CyberDildonics 3y agoYou think the first thing for someone who wants to learn graphics programming is to compile rust's webgpu implementation?
- jholman 3y agoObviously not. Obviously the first thing for someone who wants to learn graphics programming is to learn Rust. I'm surprised you asked.
- adamnemecek 3y agoIt’s actually relatively small.
- CyberDildonics 3y agoSo what? You don't think they might need to learn math or a graphics API or fundamentals first? You think they need to compile a rust webgpu implementation first because it's small? How does this make any sense?
- TheRoque 3y agoYou can learn along the way. If you learned with the famous learnopengl website, you learn about compiling glad, glfw and putting up a C++, along with maths, all at the same time, incrementally... The tutorials for Rust's wgpu isn't any different.
- adamnemecek 3y agoWhat do you think wgpu is if not a graphics API?
- CyberDildonics 3y agoYou can use it in a browser without compiling anything. Have you ever taught someone from scratch? You don't invent nonsense rabbit holes and barriers to entry to make things harder.
- adamnemecek 3y agoDid your try using it? Why? Some people prefer typed languages.
- CyberDildonics 3y agoGo teach an inexperienced person rust, graphics, rust compilation and webgpu all at the same time and let me know how that goes. It's pretty obvious you haven't actually done what you are saying here.
- adamnemecek 3y agoI will.
- TheRoque 3y agoWebGPU is a pretty good starting point, that's what I did myself (with C++, not Rust though, which should be even more straightforward). You can even use it in the browser and skip all the native hassle. Just learn the basic concepts like buffers, drawing, texture, light, perspective etc. from https://learnopengl.com/ https://learnopengl.com/ then you can jump into WebGPU. Even though there's not that many WebGPU tutorial, applying the OpenGL tutorials to it is pretty straightforward once you understand the fundamentals.
- CyberDildonics 3y agoUsing webgpu makes sense, but that isn't what they said. They said compiling a rust webgpu implementation.
- TheRoque 3y agoSince this is very straightforward to do, I took it as equivalent statements
- CyberDildonics 3y agoYou think writing javascript fragments in a browser that is already installed is exactly the same as learning to compile rust then compiling a third party webgpu project in it? That's not even graphics programming and everyone already has something that works, how are they at all the same thing?