This commit is contained in:
Till Wübbers
2025-04-27 12:00:22 +02:00
parent d75e5627f9
commit 4cdd80977c
8 changed files with 148 additions and 34 deletions

View File

@@ -96,16 +96,18 @@ struct SharedDevData
char ShaderLog[2048]{0};
};
struct MemoryArena
{
uint8_t* Ptr = nullptr;
uint64_t Size = 0;
uint64_t LastAllocSize = 0;
};
struct GameData
{
void* PermanentStorage = nullptr;
uint64_t PermanentStorageSize = 0;
void* EntityStorage = nullptr;
uint64_t EntityStorageSize = 0;
void* TransientStorage = nullptr;
uint64_t TransientStorageSize = 0;
MemoryArena PermanentArena;
MemoryArena EntityArena;
MemoryArena TransientArena;
};
struct SharedData