Added memory arena

Fixed frames in flight validation error in vulkan
Added some utility macros
Added function decorator macros
Added some consolidation headers/code include files
This commit is contained in:
2025-10-04 00:46:26 +01:00
parent 9f2ef576b9
commit 5f07239374
13 changed files with 429 additions and 12 deletions

14
code/os/core.h Normal file
View File

@@ -0,0 +1,14 @@
#if !defined(LD_OS_CORE_H_)
#define LD_OS_CORE_H_
// Virtual memory
function U64 VM_PageSize();
function U64 VM_AllocationGranularity();
function void *VM_Reserve(U64 size);
function B32 VM_Commit(void *base, U64 size);
function void VM_Decommit(void *base, U64 size);
function void VM_Release(void *base, U64 size);
#endif // LD_OS_CORE_H_