2 Feb 2023 |
sOkam!#9578 | whats creating the infrastructure like. is it as low level as vulkan, where you need to tell it to do every single step or it doesnt? | 03:53:50 |
Gumbercules | https://alain.xyz/blog/raw-webgpu | 03:53:58 |
Gumbercules | mmm it's still involved - you have to create the instance, the adapter, the device and queues | 03:54:12 |
Gumbercules | but it's nowhere near as much boilerplate | 03:54:17 |
sOkam!#9578 | i see | 03:54:21 |
Gumbercules | there is a pretty good guide | 03:54:21 |
sOkam!#9578 | does it also always run on js/ts files, or can it be run native without web things? | 03:55:32 |
Gumbercules | https://sotrh.github.io/learn-wgpu/ is also good but rust | 03:55:40 |
Gumbercules | no, you can target native | 03:55:48 |
Gumbercules | in fact I am using features that will NOT work in the web currently (like bindless resources) | 03:56:02 |
Gumbercules | WebGPU dispatches to the native rendering API | 03:56:26 |
Gumbercules | see webgpu is the spec, wgpu is Mozilla's (so Rust's) implementation. Google has their own as well (Dawn) | 03:57:10 |
Gumbercules | wgpu-native is a C API over wgpu | 03:57:26 |
Gumbercules | and Dawn also has a C API, although it's shittier IMO than Mozilla's currently | 03:58:07 |
Gumbercules | it's tightly coupled with GLFW and lacks some extensions that Mozilla's already supports (like push constants and bindless resources) | 03:58:24 |
Gumbercules | https://github.com/Ruddle/oxidator - is a pretty neat little wgpu project | 03:59:24 |
Gumbercules | anywho, I gotta crash but I'll be around tomorrow if you have anymore questions / to share more about my progress | 04:00:43 |
Elegantbeef | It's funny how many these 'web' centric libraries/apis are fantastic for desktop | 04:01:08 |
Elegantbeef | webgpu and wasm both are great targets for just general cross platform tools 😄 | 04:01:42 |
| African Hunter joined the room. | 16:06:40 |
Gumbercules | I admittedly don't know much about wasm, but I also don't see much of a reason to care about it unless I'm interested in targeting the web | 16:55:51 |
Gumbercules | Seems like it'd be just as much of a pain working around the complexities of wasm vs just targeting the platform you want to target directly | 17:10:41 |
Gumbercules | with gfx programming you're already in a world of pain - platform specific game code isn't THAT bad | 17:11:08 |
| @royills:matrix.org joined the room. | 18:04:54 |
Elegantbeef | In reply to @_discord_204328759715692544:t2bot.io I admittedly don't know much about wasm, but I also don't see much of a reason to care about it unless I'm interested in targeting the web Language agnostic scripting target that is sandboxed | 21:21:10 |
Elegantbeef | Atleast that's my sole reason for caring | 21:21:19 |
Gumbercules | makes sense | 21:30:56 |
| Koldran changed their profile picture. | 21:44:13 |
| Koldran changed their display name from Koldran#7765 to Koldran. | 21:44:33 |
| nimbot banned @royills:matrix.org (spam). | 22:58:12 |