wut  v1.7.0
Wii U Toolchain
mem.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "resource.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef void * (*GX2RAllocFunction)(GX2RResourceFlags, uint32_t, uint32_t);
16 typedef void (*GX2RFreeFunction)(GX2RResourceFlags, void *);
17 
18 void
20  void *buffer,
21  uint32_t size);
22 
23 BOOL
25 
26 void
28  GX2RFreeFunction freeFn);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
void GX2RInvalidateMemory(GX2RResourceFlags flags, void *buffer, uint32_t size)
void *(* GX2RAllocFunction)(GX2RResourceFlags, uint32_t, uint32_t)
Definition: mem.h:15
void(* GX2RFreeFunction)(GX2RResourceFlags, void *)
Definition: mem.h:16
BOOL GX2RIsUserMemory(GX2RResourceFlags flags)
void GX2RSetAllocator(GX2RAllocFunction allocFn, GX2RFreeFunction freeFn)
GX2RResourceFlags
Definition: resource.h:15
int32_t BOOL
Definition: wut_types.h:7