wut  v1.5.0
Wii U Toolchain
Data Fields
GX2DebugCaptureInterface Struct Reference

#include <debug.h>

Data Fields

uint32_t version
 Must be set to GX2_DEBUG_CAPTURE_INTERFACE_VERSION. More...
 
void(* onShutdown )()
 Called from GX2Shutdown. More...
 
void(* setAllocator )()
 Called from GX2DebugSetCaptureInterface with the default gx2 allocators. More...
 
void(* onCaptureStart )(const char *filename)
 Called from GX2DebugCaptureStart, the filename is first argument passed in to GX2DebugCaptureStart. More...
 
void(* onCaptureEnd )()
 Called from GX2DebugCaptureEnd. More...
 
BOOL(* isCaptureEnabled )()
 Check if capture is enabled. More...
 
void(* onAlloc )(void *ptr, uint32_t size, uint32_t align)
 Called when GX2 memory is allocated. More...
 
void(* onFree )(void *ptr)
 Called when GX2 memory is freed. More...
 
void(* onUnknownMemory )(void *ptr, uint32_t size)
 UNKNOWN: Called when something happens with some memory. More...
 
void(* setOutputSurface )(GX2Surface *surface)
 Called from GX2DebugCaptureStart with the TV scan buffer. More...
 
void(* onSwapScanBuffers )(GX2Surface *surface)
 Called from GX2SwapScanBuffers with the TV scan buffer. More...
 
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. More...
 

Detailed Description

Definition at line 42 of file debug.h.

Field Documentation

◆ version

uint32_t version

Must be set to GX2_DEBUG_CAPTURE_INTERFACE_VERSION.

Definition at line 45 of file debug.h.

◆ onShutdown

void(* onShutdown) ()

Called from GX2Shutdown.

Definition at line 48 of file debug.h.

◆ setAllocator

void(* setAllocator) ()

Called from GX2DebugSetCaptureInterface with the default gx2 allocators.

Definition at line 51 of file debug.h.

◆ onCaptureStart

void(* onCaptureStart) (const char *filename)

Called from GX2DebugCaptureStart, the filename is first argument passed in to GX2DebugCaptureStart.

Definition at line 55 of file debug.h.

◆ onCaptureEnd

void(* onCaptureEnd) ()

Called from GX2DebugCaptureEnd.

Definition at line 58 of file debug.h.

◆ isCaptureEnabled

BOOL(* isCaptureEnabled) ()

Check if capture is enabled.

Definition at line 61 of file debug.h.

◆ onAlloc

void(* onAlloc) (void *ptr, uint32_t size, uint32_t align)

Called when GX2 memory is allocated.

Definition at line 64 of file debug.h.

◆ onFree

void(* onFree) (void *ptr)

Called when GX2 memory is freed.

Definition at line 67 of file debug.h.

◆ onUnknownMemory

void(* onUnknownMemory) (void *ptr, uint32_t size)

UNKNOWN: Called when something happens with some memory.

Definition at line 70 of file debug.h.

◆ setOutputSurface

void(* setOutputSurface) (GX2Surface *surface)

Called from GX2DebugCaptureStart with the TV scan buffer.

Definition at line 73 of file debug.h.

◆ onSwapScanBuffers

void(* onSwapScanBuffers) (GX2Surface *surface)

Called from GX2SwapScanBuffers with the TV scan buffer.

Definition at line 76 of file debug.h.

◆ submitToRing

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.

Note that it seems we must call TCLSubmitToRing from this callback because gx2 will not do it when capturing.

Definition at line 81 of file debug.h.


The documentation for this struct was generated from the following file: