Our gfx.rs file has grown quite large (around 4900 LOC) and started to get hard to grasp. Because of this, I thought splitting it in submodules would be a good idea. I think the module names are speaking for themselves, so I don't bother with the explanation of which struct goes where.
In the process I found that we still use Vecs in places where we could just have an iterator`Option` and fixed them.
Our gfx.rs file has grown quite large (around 4900 LOC) and started to get hard to grasp. Because of this, I thought splitting it in submodules would be a good idea. I think the module names are speaking for themselves, so I don't bother with the explanation of which struct goes where. In the process I found that we still use
Vec
s in places where we could just have an iterator`Option` and fixed them.