mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
35 lines
596 B
C
35 lines
596 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
|
|
|
|
/** @} */
|