Refactor PD::Li Pools system, Upgrade PD::Pool and add better logging

- Add ResetFast to Pool using c++20 concept
- Add Put function to Pool
- Use Pool Index instead of pointers in Command
- Add accessor to Li Pools to prevent wrong command usage
- Add Command Formatter
- Use ResetFast for all Pools
- Add Reset func to Li::Vertex (for ResetFast)
- Add Pool Expandor and Put funcs to Lithium pools
- Add getters for GfxDriverBase to PD::Li Pools
This commit is contained in:
2026-03-21 13:35:16 +01:00
parent 3b0b103eb3
commit a86c13b9a3
16 changed files with 247 additions and 55 deletions
+6
View File
@@ -11,6 +11,12 @@ class Vertex {
: pos(pos), uv(uv), color(color) {}
~Vertex() {}
void Reset() {
pos = fvec2(0.f);
uv = fvec2(0.f);
color = 0x00000000;
}
fvec2 pos;
fvec2 uv;
u32 color = 0x00000000;