mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
35 lines
597 B
C
35 lines
597 B
C
#pragma once
|
|
#include <wut.h>
|
|
#include "resource.h"
|
|
|
|
/**
|
|
* \defgroup gx2r_mem Memory
|
|
* \ingroup gx2r
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void * (*GX2RAllocFunction)(GX2RResourceFlags, uint32_t, uint32_t);
|
|
typedef void (*GX2RFreeFunction)(GX2RResourceFlags, void *);
|
|
|
|
void
|
|
GX2RInvalidateMemory(GX2RResourceFlags flags,
|
|
void *buffer,
|
|
uint32_t size);
|
|
|
|
BOOL
|
|
GX2RIsUserMemory(GX2RResourceFlags flags);
|
|
|
|
void
|
|
GX2RSetAllocator(GX2RAllocFunction allocFn,
|
|
GX2RFreeFunction freeFn);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|