60 void (*
onAlloc)(
void *ptr, uint32_t size, uint32_t align);
80 uint64_t *outSubmitTimestamp);
GX2DebugCaptureInterfaceVersion
void(* setAllocator)()
Called from GX2DebugSetCaptureInterface with the default gx2 allocators.
BOOL _GX2DebugSetCaptureInterface(GX2DebugCaptureInterface *interface)
void(* onUnknownMemory)(void *ptr, uint32_t size)
UNKNOWN: Called when something happens with some memory.
void(* onSwapScanBuffers)(GX2Surface *surface)
Called from GX2SwapScanBuffers with the TV scan buffer.
void(* onAlloc)(void *ptr, uint32_t size, uint32_t align)
Called when GX2 memory is allocated.
When set GX2DebugCaptureEnd will NOT call GX2Flush.
void GX2DebugCaptureFrame(const char *filename)
Will capture the next frame.
void(* onShutdown)()
Called from GX2Shutdown.
void(* onCaptureStart)(const char *filename)
Called from GX2DebugCaptureStart, the filename is first argument passed in to GX2DebugCaptureStart.
GX2DebugCaptureStartFlags
void(* submitToRing)(void *unk1, uint32_t unk2, uint32_t *unk3, uint64_t *outSubmitTimestamp)
Called when a command buffer is ready to be submitted to ring buffer.
void(* setOutputSurface)(GX2Surface *surface)
Called from GX2DebugCaptureStart with the TV scan buffer.
void(* onCaptureEnd)()
Called from GX2DebugCaptureEnd.
BOOL(* isCaptureEnabled)()
Check if capture is enabled.
void GX2DebugCaptureStart(const char *filename, GX2DebugCaptureStartFlags flags)
Starts a debug capture.
void GX2DebugCaptureFrames(const char *filename, uint32_t count)
Will capture count frames.
When set GX2DebugCaptureEnd will NOT call GX2DrawDone.
uint32_t version
Must be set to GX2_DEBUG_CAPTURE_INTERFACE_VERSION.
void(* onFree)(void *ptr)
Called when GX2 memory is freed.
void GX2DebugCaptureEnd(GX2DebugCaptureEndFlags flags)
Ends a debug capture.