Skip to content

Commit

Permalink
modules/SceGxm: Stub some SceGxmInternal functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Macdu authored and Zangetsu38 committed Oct 30, 2024
1 parent d30f4a9 commit 7f7a4b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions vita3k/modules/SceGxm/SceGxm.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@
#include <module/module.h>

struct SceGxmInitializeParams;
struct SceGxmRenderTargetParams;
struct SceGxmRenderTarget;

DECL_EXPORT(int, sceGxmInitialize, const SceGxmInitializeParams *params);
DECL_EXPORT(int, sceGxmCreateRenderTarget, const SceGxmRenderTargetParams *params, Ptr<SceGxmRenderTarget> *renderTarget);
DECL_EXPORT(int, sceGxmGetRenderTargetMemSize, const SceGxmRenderTargetParams *params, uint32_t *hostMemSize);
16 changes: 12 additions & 4 deletions vita3k/modules/SceGxm/SceGxmInternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,28 @@

#include <module/module.h>

#include "SceGxm.h"

#include <util/tracy.h>

TRACY_MODULE_NAME(SceGxmInternal);

EXPORT(int, sceGxmCheckMemoryInternal) {
return UNIMPLEMENTED();
}

EXPORT(int, sceGxmCreateRenderTargetInternal) {
return UNIMPLEMENTED();
EXPORT(int, sceGxmCreateRenderTargetInternal, const SceGxmRenderTargetParams *params, Ptr<SceGxmRenderTarget> *renderTarget) {
TRACY_FUNC(sceGxmCreateRenderTargetInternal, params, renderTarget);
return CALL_EXPORT(sceGxmCreateRenderTarget, params, renderTarget);
}

EXPORT(int, sceGxmGetDisplayQueueThreadIdInternal) {
return UNIMPLEMENTED();
}

EXPORT(int, sceGxmGetRenderTargetMemSizeInternal) {
return UNIMPLEMENTED();
EXPORT(int, sceGxmGetRenderTargetMemSizeInternal, const SceGxmRenderTargetParams *params, uint32_t *hostMemSize) {
TRACY_FUNC(sceGxmGetRenderTargetMemSizeInternal, params, hostMemSize);
return CALL_EXPORT(sceGxmGetRenderTargetMemSize, params, hostMemSize);
}

EXPORT(int, sceGxmGetTopContextInternal) {
Expand Down

0 comments on commit 7f7a4b5

Please sign in to comment.