You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 33m 18s logged

Mostly just refactoring.
I still have almost no idea how wgpu works, but at least everything is organized!
One of the benefits of Factorio is knowing when something should be it’s own module that other parts of the program can interact with.
Instead of having a massive main.rs, i split it up into like 4 different modules, the biggest ones being GpuContext, which handles setting up the wgpu backend stuff, Renderer, which renders stuff through wgpu, and Application, which handles the window management stuff.

0
3

Comments 0

No comments yet. Be the first!