wut  1.0.0-beta8
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Debug

Data Structures

struct  GX2DebugCaptureInterface
 

Typedefs

typedef struct GX2DebugCaptureInterface GX2DebugCaptureInterface
 
typedef enum GX2DebugCaptureInterfaceVersion GX2DebugCaptureInterfaceVersion
 
typedef enum GX2DebugCaptureStartFlags GX2DebugCaptureStartFlags
 
typedef enum GX2DebugCaptureEndFlags GX2DebugCaptureEndFlags
 

Enumerations

enum  GX2DebugCaptureInterfaceVersion { GX2_DEBUG_CAPTURE_INTERFACE_VERSION = 1 }
 
enum  GX2DebugCaptureStartFlags {
  GX2_DEBUG_CAPTURE_START_FLAGS_NONE = 0,
  GX2_DEBUG_CAPTURE_START_FLAGS_DISABLE_GX2DRAWDONE = 1
}
 
enum  GX2DebugCaptureEndFlags {
  GX2_DEBUG_CAPTURE_END_FLAGS_NONE = 0,
  GX2_DEBUG_CAPTURE_END_FLAGS_DISABLE_GX2FLUSH = 1
}
 

Functions

BOOL _GX2DebugSetCaptureInterface (GX2DebugCaptureInterface *interface)
 
void GX2DebugCaptureStart (const char *filename, GX2DebugCaptureStartFlags flags)
 Starts a debug capture. More...
 
void GX2DebugCaptureEnd (GX2DebugCaptureEndFlags flags)
 Ends a debug capture. More...
 
void GX2DebugCaptureFrame (const char *filename)
 Will capture the next frame. More...
 
void GX2DebugCaptureFrames (const char *filename, uint32_t count)
 Will capture count frames. More...
 

Detailed Description

Typedef Documentation

◆ GX2DebugCaptureInterface

Definition at line 15 of file debug.h.

◆ GX2DebugCaptureInterfaceVersion

◆ GX2DebugCaptureStartFlags

◆ GX2DebugCaptureEndFlags

Enumeration Type Documentation

◆ GX2DebugCaptureInterfaceVersion

Enumerator
GX2_DEBUG_CAPTURE_INTERFACE_VERSION 

Definition at line 17 of file debug.h.

◆ GX2DebugCaptureStartFlags

Enumerator
GX2_DEBUG_CAPTURE_START_FLAGS_NONE 
GX2_DEBUG_CAPTURE_START_FLAGS_DISABLE_GX2DRAWDONE 

When set GX2DebugCaptureEnd will NOT call GX2DrawDone.

Definition at line 22 of file debug.h.

◆ GX2DebugCaptureEndFlags

Enumerator
GX2_DEBUG_CAPTURE_END_FLAGS_NONE 
GX2_DEBUG_CAPTURE_END_FLAGS_DISABLE_GX2FLUSH 

When set GX2DebugCaptureEnd will NOT call GX2Flush.

Definition at line 30 of file debug.h.

Function Documentation

◆ _GX2DebugSetCaptureInterface()

BOOL _GX2DebugSetCaptureInterface ( GX2DebugCaptureInterface interface)

◆ GX2DebugCaptureStart()

void GX2DebugCaptureStart ( const char *  filename,
GX2DebugCaptureStartFlags  flags 
)

Starts a debug capture.

User must have set interface first via _GX2DebugSetCaptureInterface.

Note this doesn't write to filename, that is up to the implementor of the GX2DebugCaptureInterface. This argument might not even be filename but I at least know it is a string because GX2DebugCaptureFrame does a strncpy on it.

Parameters
filenameThis is passed as first argument to GX2DebugCaptureInterface.onCaptureStart

◆ GX2DebugCaptureEnd()

void GX2DebugCaptureEnd ( GX2DebugCaptureEndFlags  flags)

Ends a debug capture.

◆ GX2DebugCaptureFrame()

void GX2DebugCaptureFrame ( const char *  filename)

Will capture the next frame.

Capture begins during the next call to GX2SwapScanBuffers, and will end at the next GX2SwapScanBuffers.

Equivalent to calling GX2DebugCaptureFrames(filename, 1)

◆ GX2DebugCaptureFrames()

void GX2DebugCaptureFrames ( const char *  filename,
uint32_t  count 
)

Will capture count frames.

Capture begins during the next call to GX2SwapScanBuffers, and will end after count frames have been swapped in GX2SwapScanBuffers.

Capture begins and ends during GX2SwapScanBuffers.