mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-22 04:19:15 +01:00
Added some GX2 functions
This commit is contained in:
parent
7c45571eec
commit
87d9e05888
@ -93,6 +93,13 @@ EXPORT_DECL(s32, GX2GetSystemDRCScanMode, void);
|
||||
EXPORT_DECL(void, GX2RSetAllocator, void * (* allocFunc)(u32, u32, u32), void (* freeFunc)(u32, void*));
|
||||
EXPORT_DECL(void, GX2CopySurface, GX2Surface * srcSurface,u32 srcMip,u32 srcSlice,GX2Surface * dstSurface,u32 dstMip,u32 dstSlice );
|
||||
|
||||
EXPORT_DECL(s32, GX2GetLastFrame, s32 target, GX2Texture * texture);
|
||||
EXPORT_DECL(void, GX2BeginDisplayListEx,void * displayList,u32 size,s32 unkwn);
|
||||
EXPORT_DECL(u32, GX2EndDisplayList, void * list);
|
||||
EXPORT_DECL(void, GX2CallDisplayList, void * list, u32 size);
|
||||
EXPORT_DECL(void, GX2ExpandAAColorBuffer,GX2ColorBuffer * buffer);
|
||||
EXPORT_DECL(void, GX2ResolveAAColorBuffer, const GX2ColorBuffer * srcBuffer, GX2Surface * dstSurface,u32 dstMip,u32 dstSlice);
|
||||
|
||||
EXPORT_DECL(void, GX2ClearBuffersEx, GX2ColorBuffer * colorBuffer,GX2DepthBuffer * depthBuffer,f32 r, f32 g, f32 b, f32 a,f32 depthValue,u8 stencilValue,s32 clearFlags);
|
||||
|
||||
void InitAcquireGX2(void){
|
||||
@ -167,6 +174,12 @@ void InitGX2FunctionPointers(void){
|
||||
OS_FIND_EXPORT(gx2_handle, GX2GetSystemDRCScanMode);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2RSetAllocator);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2CopySurface);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2GetLastFrame);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2ClearBuffersEx);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2BeginDisplayListEx);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2EndDisplayList);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2CallDisplayList);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2ExpandAAColorBuffer);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2ResolveAAColorBuffer);
|
||||
OS_FIND_EXPORT(gx2_handle, GX2SetClearDepthStencil);
|
||||
}
|
||||
|
@ -103,6 +103,12 @@ extern s32 (* GX2GetSystemDRCScanMode)(void);
|
||||
extern void (* GX2RSetAllocator)(void * (*allocFunc)(u32, u32, u32), void (*freeFunc)(u32, void*));
|
||||
extern void (* GX2CopySurface)(GX2Surface * srcSurface,u32 srcMip,u32 srcSlice,GX2Surface * dstSurface,u32 dstMip,u32 dstSlice );
|
||||
extern void (* GX2ClearBuffersEx)(GX2ColorBuffer * colorBuffer,GX2DepthBuffer * depthBuffer,f32 r, f32 g, f32 b, f32 a,f32 depthValue,u8 stencilValue,s32 clearFlags);
|
||||
extern s32 (* GX2GetLastFrame)(s32 target, GX2Texture * texture);
|
||||
extern void (* GX2BeginDisplayListEx)(void * displayList,u32 size,s32 unkwn);
|
||||
extern u32 (*GX2EndDisplayList)(void * list);
|
||||
extern void (*GX2CallDisplayList)(void * list, u32 size);
|
||||
extern void (*GX2ExpandAAColorBuffer)(GX2ColorBuffer * buffer);
|
||||
extern void (*GX2ResolveAAColorBuffer)(const GX2ColorBuffer * srcBuffer, GX2Surface * dstSurface,u32 dstMip,u32 dstSlice);
|
||||
|
||||
static inline void GX2InitDepthBuffer(GX2DepthBuffer *depthBuffer, s32 dimension, u32 width, u32 height, u32 depth, s32 format, s32 aa)
|
||||
{
|
||||
|
@ -125,6 +125,8 @@ EXPORT_VAR(u32 *, pMEMAllocFromDefaultHeapEx);
|
||||
EXPORT_VAR(u32 *, pMEMAllocFromDefaultHeap);
|
||||
EXPORT_VAR(u32 *, pMEMFreeToDefaultHeap);
|
||||
|
||||
EXPORT_DECL(void *, MEMAllocFromAllocator, void * allocator, u32 size);
|
||||
EXPORT_DECL(void, MEMFreeToAllocator, void * allocator, void* address);
|
||||
EXPORT_DECL(s32, MEMGetBaseHeapHandle, s32 mem_arena);
|
||||
EXPORT_DECL(u32, MEMGetAllocatableSizeForFrmHeapEx, s32 heap, s32 align);
|
||||
EXPORT_DECL(void *, MEMAllocFromFrmHeapEx, s32 heap, u32 size, s32 align);
|
||||
@ -165,6 +167,8 @@ EXPORT_DECL(void, addr_PrepareTitle_hook, void);
|
||||
EXPORT_DECL(void, DCInvalidateRange, void *buffer, u32 length);
|
||||
EXPORT_DECL(s32, OSDynLoad_GetModuleName, s32 handle, char *name_buffer, s32 *name_buffer_size);
|
||||
EXPORT_DECL(s32, OSIsHomeButtonMenuEnabled, void);
|
||||
EXPORT_DECL(s32, OSSetScreenCapturePermissionEx, s32 tvEnabled, s32 drcEnabled);
|
||||
|
||||
|
||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
//! Energy Saver functions
|
||||
@ -336,6 +340,8 @@ void InitOSFunctionPointers(void){
|
||||
OSDynLoad_FindExport(coreinit_handle, 1, "MEMAllocFromDefaultHeap", &pMEMAllocFromDefaultHeap);
|
||||
OSDynLoad_FindExport(coreinit_handle, 1, "MEMFreeToDefaultHeap", &pMEMFreeToDefaultHeap);
|
||||
|
||||
OS_FIND_EXPORT(coreinit_handle, MEMAllocFromAllocator);
|
||||
OS_FIND_EXPORT(coreinit_handle, MEMFreeToAllocator);
|
||||
OS_FIND_EXPORT(coreinit_handle, MEMGetBaseHeapHandle);
|
||||
OS_FIND_EXPORT(coreinit_handle, MEMGetAllocatableSizeForFrmHeapEx);
|
||||
OS_FIND_EXPORT(coreinit_handle, MEMAllocFromFrmHeapEx);
|
||||
@ -354,6 +360,7 @@ void InitOSFunctionPointers(void){
|
||||
OS_FIND_EXPORT(coreinit_handle, DCInvalidateRange);
|
||||
OS_FIND_EXPORT(coreinit_handle, OSDynLoad_GetModuleName);
|
||||
OS_FIND_EXPORT(coreinit_handle, OSIsHomeButtonMenuEnabled);
|
||||
OS_FIND_EXPORT(coreinit_handle, OSSetScreenCapturePermissionEx);
|
||||
|
||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
//! Energy Saver functions
|
||||
|
@ -208,6 +208,8 @@ extern u32 *pMEMAllocFromDefaultHeapEx;
|
||||
extern u32 *pMEMAllocFromDefaultHeap;
|
||||
extern u32 *pMEMFreeToDefaultHeap;
|
||||
|
||||
extern void* (* MEMAllocFromAllocator) (void * allocator, u32 size);
|
||||
extern void (* MEMFreeToAllocator) (void * allocator, void* address);
|
||||
extern s32 (* MEMGetBaseHeapHandle)(s32 mem_arena);
|
||||
extern u32 (* MEMGetAllocatableSizeForFrmHeapEx)(s32 heap, s32 align);
|
||||
extern void* (* MEMAllocFromFrmHeapEx)(s32 heap, u32 size, s32 align);
|
||||
@ -248,6 +250,7 @@ extern void (* addr_PrepareTitle_hook)(void);
|
||||
extern void (*DCInvalidateRange)(void *buffer, u32 length);
|
||||
extern s32 (*OSDynLoad_GetModuleName)(s32 handle, char *name_buffer, s32 *name_buffer_size);
|
||||
extern s32 (*OSIsHomeButtonMenuEnabled) (void);
|
||||
extern s32 (*OSSetScreenCapturePermissionEx) (s32 tvEnabled, s32 drcEnabled);
|
||||
|
||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
//! Energy Saver functions
|
||||
|
Loading…
Reference in New Issue
Block a user