NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Learn WebGPU for C++ (eliemichel.github.io)
ChadNauseam 2 hours ago [-]
This resource taught me WebGPU a couple years ago. I can recommend it. It's the best WebGPU tutorial I've found. (The Rust one is quite good as well.) I used what I learned to make this simple game: https://alexpop11.github.io/Spec-Hops/ (space to drop bombs) and I have eliemichel to thank for that!
torlok 4 hours ago [-]
I maybe be a complete moron not familiar with Github, but I wanted to have a look at the code and it took me solid 5 minutes of going through the website searching for a link to the repository, and the only one I eventually found was when I scrolled to the bottom and clicked the Github icon. Removing the path from https://eliemichel.github.io/LearnWebGPU/index.html leads to 404, no idea why that doesn't just lead to https://github.com/eliemichel. Don't know if it's just me, but I get unreasonably frustrated by things like this.
Rohansi 4 hours ago [-]
> no idea why that doesn't just lead to https://github.com/eliemichel

Pretty sure it's because GitHub allows the user to put content at the root of that URL. And it's an entirely separate domain to avoid cookie stealing or whatever.

duped 2 hours ago [-]
github.io is not a forge, it's static site hosting. Completely different product than github.com, but integrates with it nicely.

People use github.io to host sites that are developed on github.com or around projects hosted on github.com.

yu3zhou4 2 hours ago [-]
It's a very useful guide, I used it when working on torch-webgpu some time ago. Elie also published few packages that help with using some WebGPU related things, I don't remember exactly what was that but I recall it saved me lots of time

https://github.com/jmaczan/torch-webgpu

minraws 4 hours ago [-]
Nicely built resource, found a couple of nits but pretty good starting point.

Although I feel like unless you need to specifically target web or extensive cross platform support, a better alternative for a higher level framework/library is nvrhi. Especially for C++ developers.

And I feel like if you are making for cross platform or web you are likely using Rust or writing your own game engine/library maybe I view of the ecosystem is skewed.

ChadNauseam 56 minutes ago [-]
nvrhi looks really cool. However, I think the vast majority of use cases today do target web. The main exception is software which is too big to be quickly downloaded. Almost all other software benefits so much from web distribution that it's crazy not to do it. For example, in another comment I shared the game I made with webgpu. Because it's a website, someone here may play it. If you had to download a binary instead, I don't think anyone here would give it a try.
reactordev 4 hours ago [-]
nvrhi is pretty freaking awesome but it doesn’t work on Mac. WebGPU can using Metal, nvrhi would need MoltenVK layer on Mac. Other than that, yes nvrhi
minraws 3 hours ago [-]
I mean it officially works with MoltenVK on Mac, they have been open to accepting fixes and patches regarding Apple/Mac specific stuff. So I don't think the won't work on Mac argument works.

But it's definitely not very mobile devices ready, you can get it to work though.

antoine-valton 1 hours ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:14:35 GMT+0000 (Coordinated Universal Time) with Vercel.