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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.