Go to the documentation of this file.
33 #define AK_VM_PAGE_SIZE (64*1024)
34 #define AK_VM_HUGE_PAGE_SIZE (2*1024*1024)
35 #define AK_VM_DEVICE_PAGE_SIZE (64*1024)
42 XALLOC_MEMTYPE_HEAP_CACHEABLE,
51 XALLOC_MEMTYPE_HEAP_CACHEABLE,
57 static void*
AllocVM(
size_t size,
size_t* extra)
61 *extra = (size_t)attrib;
62 return XMemAlloc(size, attrib);
65 static void FreeVM(
void* address,
size_t size,
size_t extra,
size_t release)
69 XMemFree(address, extra);
75 void * pReturn =
nullptr;
80 static void FreeDevice(
void* address,
size_t size,
size_t ,
size_t release)
static const ULONGLONG XMemAllocLargePage
Platform-dependent helpers.
AkForceInline void * AllocVM(size_t size, size_t *extra)
#define AKASSERT(Condition)
static const ULONGLONG XMemAllocHugePage
AkForceInline void * AllocDevice(size_t size, size_t *extra)
AkForceInline void FreeDevice(void *address, size_t size, size_t extra, size_t release)
AkForceInline void FreeVM(void *address, size_t size, size_t extra, size_t release)
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise