64 void (*
onAlloc)(
void *ptr, uint32_t size, uint32_t align);
84 uint64_t *outSubmitTimestamp);
GX2DebugCaptureInterfaceVersion
void GX2DebugCaptureStart(const char *filename, GX2DebugCaptureStartFlags flags)
Starts a debug capture.
BOOL _GX2DebugSetCaptureInterface(GX2DebugCaptureInterface *interface)
GX2DebugCaptureStartFlags
Options for GX2DebugCaptureStart.
void GX2DebugCaptureEnd(GX2DebugCaptureEndFlags flags)
Ends a debug capture.
void GX2DebugCaptureFrames(const char *filename, uint32_t count)
Will capture count frames.
GX2DebugCaptureEndFlags
Options for GX2DebugCaptureEnd.
void GX2DebugCaptureFrame(const char *filename)
Will capture the next frame.
@ GX2_DEBUG_CAPTURE_INTERFACE_VERSION
@ GX2_DEBUG_CAPTURE_START_FLAGS_NONE
When set GX2DebugCaptureStart will call GX2DrawDone before the capture is started.
@ GX2_DEBUG_CAPTURE_START_FLAGS_DISABLE_GX2DRAWDONE
When set GX2DebugCaptureStart will NOT call GX2DrawDone.
@ GX2_DEBUG_CAPTURE_END_FLAGS_NONE
When set GX2DebugCaptureEnd will call GX2Flush before the capture is completed.
@ GX2_DEBUG_CAPTURE_END_FLAGS_DISABLE_GX2FLUSH
When set GX2DebugCaptureEnd will NOT call GX2Flush.
BOOL(* isCaptureEnabled)()
Check if capture is enabled.
void(* onCaptureEnd)()
Called from GX2DebugCaptureEnd.
void(* onFree)(void *ptr)
Called when GX2 memory is freed.
void(* onCaptureStart)(const char *filename)
Called from GX2DebugCaptureStart, the filename is first argument passed in to GX2DebugCaptureStart.
void(* onAlloc)(void *ptr, uint32_t size, uint32_t align)
Called when GX2 memory is allocated.
void(* onUnknownMemory)(void *ptr, uint32_t size)
UNKNOWN: Called when something happens with some memory.
void(* setOutputSurface)(GX2Surface *surface)
Called from GX2DebugCaptureStart with the TV scan buffer.
void(* setAllocator)()
Called from GX2DebugSetCaptureInterface with the default gx2 allocators.
uint32_t version
Must be set to GX2_DEBUG_CAPTURE_INTERFACE_VERSION.
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(* onSwapScanBuffers)(GX2Surface *surface)
Called from GX2SwapScanBuffers with the TV scan buffer.
void(* onShutdown)()
Called from GX2Shutdown.