3 ms·
If you are looking to use a more modern API (and language) I can recommend this wgpu/Rust tutorial https://sotrh.github.io/learn-wgpu/ https://sotrh.github.io/l
by adamnemecek 5y ago
If you are looking to use a more modern API (and language) I can recommend this wgpu/Rust tutorial https://sotrh.github.io/learn-wgpu/ https://sotrh.github.io/learn-wgpu/.
- pjmlp 5y agoThe WebGL tutorial has the advantage of running everywhere, while WebGPU will take years to be available, assuming it does indeed get released this year across all major browsers, then it requires a Vulkan/DX 12 card anyway.
- skocznymroczny 5y agowgpu has a wgpu-native component which is a native library that exposes a C API. I use it in D for my 3D projects and it's quite nice.
- pjmlp 5y agoI don't see any reason for WebGPU outside of the browser, we already have middleware engines that can take advantage of latest Vulkan/DirectX 12/Metal/LibGNM/NVN features, without being castrated in capabilities.
- skocznymroczny 5y agoCompile to WASM is a popular thing nowadays. It's enticing to be able to write your app in native WebGPU and then with almost no changes in code be able to compile your app to the web browser.
- pjmlp 5y agoFashion driven development more likely.
- kvark 5y agoIt’s true that WebGPU native could be seen as just another middleware. However, what differentiates it is: 1. Well-thought API with an actual standard 2. Large conformance test suite 3. Trivial deploy on the Web
- adamnemecek 5y agoWhich engines are you referring to?
- elxr 5y agoSaved for later. Also looks like I should get on the Rust train. This and Tauri are things I could definitely see myself using a lot in the future.
- Shadonototra 5y agoto slow to compile, OP's example doesn't require anything other than a browser, refresh the page and your changes appear instantly