wut/structGX2DebugCaptureInterface.html
2020-03-26 16:49:18 +11:00

347 lines
20 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: GX2DebugCaptureInterface Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">wut
&#160;<span id="projectnumber">1.0.0-beta9</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-attribs">Data Fields</a> </div>
<div class="headertitle">
<div class="title">GX2DebugCaptureInterface Struct Reference<div class="ingroups"><a class="el" href="group__gx2.html">gx2</a> &raquo; <a class="el" href="group__gx2__debug.html">Debug</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="gx2_2debug_8h_source.html">debug.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:acd99bb05ca015e7d74448acb1deba7ca"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#acd99bb05ca015e7d74448acb1deba7ca">version</a></td></tr>
<tr class="memdesc:acd99bb05ca015e7d74448acb1deba7ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Must be set to GX2_DEBUG_CAPTURE_INTERFACE_VERSION. <a href="structGX2DebugCaptureInterface.html#acd99bb05ca015e7d74448acb1deba7ca">More...</a><br /></td></tr>
<tr class="separator:acd99bb05ca015e7d74448acb1deba7ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a566d47632d4b6c5afc14aa3a808fa4e7"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a566d47632d4b6c5afc14aa3a808fa4e7">onShutdown</a> )()</td></tr>
<tr class="memdesc:a566d47632d4b6c5afc14aa3a808fa4e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called from GX2Shutdown. <a href="structGX2DebugCaptureInterface.html#a566d47632d4b6c5afc14aa3a808fa4e7">More...</a><br /></td></tr>
<tr class="separator:a566d47632d4b6c5afc14aa3a808fa4e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae124b86b82e6a202644dcf31473fad2f"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#ae124b86b82e6a202644dcf31473fad2f">setAllocator</a> )()</td></tr>
<tr class="memdesc:ae124b86b82e6a202644dcf31473fad2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called from GX2DebugSetCaptureInterface with the default gx2 allocators. <a href="structGX2DebugCaptureInterface.html#ae124b86b82e6a202644dcf31473fad2f">More...</a><br /></td></tr>
<tr class="separator:ae124b86b82e6a202644dcf31473fad2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0019dc38a3390a6b7ad73c894c505b2a"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a0019dc38a3390a6b7ad73c894c505b2a">onCaptureStart</a> )(const char *filename)</td></tr>
<tr class="memdesc:a0019dc38a3390a6b7ad73c894c505b2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called from GX2DebugCaptureStart, the filename is first argument passed in to GX2DebugCaptureStart. <a href="structGX2DebugCaptureInterface.html#a0019dc38a3390a6b7ad73c894c505b2a">More...</a><br /></td></tr>
<tr class="separator:a0019dc38a3390a6b7ad73c894c505b2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d199108cdb937ea1c44df947966c6f"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a53d199108cdb937ea1c44df947966c6f">onCaptureEnd</a> )()</td></tr>
<tr class="memdesc:a53d199108cdb937ea1c44df947966c6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called from GX2DebugCaptureEnd. <a href="structGX2DebugCaptureInterface.html#a53d199108cdb937ea1c44df947966c6f">More...</a><br /></td></tr>
<tr class="separator:a53d199108cdb937ea1c44df947966c6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6047a061ec3de35a3cf09bda2967922a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a6047a061ec3de35a3cf09bda2967922a">isCaptureEnabled</a> )()</td></tr>
<tr class="memdesc:a6047a061ec3de35a3cf09bda2967922a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if capture is enabled. <a href="structGX2DebugCaptureInterface.html#a6047a061ec3de35a3cf09bda2967922a">More...</a><br /></td></tr>
<tr class="separator:a6047a061ec3de35a3cf09bda2967922a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dc2179ade100adfc0ad1decee9be879"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a7dc2179ade100adfc0ad1decee9be879">onAlloc</a> )(void *ptr, uint32_t size, uint32_t align)</td></tr>
<tr class="memdesc:a7dc2179ade100adfc0ad1decee9be879"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when GX2 memory is allocated. <a href="structGX2DebugCaptureInterface.html#a7dc2179ade100adfc0ad1decee9be879">More...</a><br /></td></tr>
<tr class="separator:a7dc2179ade100adfc0ad1decee9be879"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39c39e83b418d298c413a9ad793de365"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a39c39e83b418d298c413a9ad793de365">onFree</a> )(void *ptr)</td></tr>
<tr class="memdesc:a39c39e83b418d298c413a9ad793de365"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when GX2 memory is freed. <a href="structGX2DebugCaptureInterface.html#a39c39e83b418d298c413a9ad793de365">More...</a><br /></td></tr>
<tr class="separator:a39c39e83b418d298c413a9ad793de365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a466c04ded5493950d5c7a732a28c0748"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a466c04ded5493950d5c7a732a28c0748">onUnknownMemory</a> )(void *ptr, uint32_t size)</td></tr>
<tr class="memdesc:a466c04ded5493950d5c7a732a28c0748"><td class="mdescLeft">&#160;</td><td class="mdescRight">UNKNOWN: Called when something happens with some memory. <a href="structGX2DebugCaptureInterface.html#a466c04ded5493950d5c7a732a28c0748">More...</a><br /></td></tr>
<tr class="separator:a466c04ded5493950d5c7a732a28c0748"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f499b477ae31baccdee55a5783e5720"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a5f499b477ae31baccdee55a5783e5720">setOutputSurface</a> )(<a class="el" href="group__gx2__surface.html#structGX2Surface">GX2Surface</a> *surface)</td></tr>
<tr class="memdesc:a5f499b477ae31baccdee55a5783e5720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called from GX2DebugCaptureStart with the TV scan buffer. <a href="structGX2DebugCaptureInterface.html#a5f499b477ae31baccdee55a5783e5720">More...</a><br /></td></tr>
<tr class="separator:a5f499b477ae31baccdee55a5783e5720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a349333c77ad90b57cfa3504f5cff6018"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#a349333c77ad90b57cfa3504f5cff6018">onSwapScanBuffers</a> )(<a class="el" href="group__gx2__surface.html#structGX2Surface">GX2Surface</a> *surface)</td></tr>
<tr class="memdesc:a349333c77ad90b57cfa3504f5cff6018"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called from GX2SwapScanBuffers with the TV scan buffer. <a href="structGX2DebugCaptureInterface.html#a349333c77ad90b57cfa3504f5cff6018">More...</a><br /></td></tr>
<tr class="separator:a349333c77ad90b57cfa3504f5cff6018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9cc9091bd972755fd6b4bbef1d7c7e7"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGX2DebugCaptureInterface.html#ae9cc9091bd972755fd6b4bbef1d7c7e7">submitToRing</a> )(void *unk1, uint32_t unk2, uint32_t *unk3, uint64_t *outSubmitTimestamp)</td></tr>
<tr class="memdesc:ae9cc9091bd972755fd6b4bbef1d7c7e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when a command buffer is ready to be submitted to ring buffer. <a href="structGX2DebugCaptureInterface.html#ae9cc9091bd972755fd6b4bbef1d7c7e7">More...</a><br /></td></tr>
<tr class="separator:ae9cc9091bd972755fd6b4bbef1d7c7e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00038">38</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="acd99bb05ca015e7d74448acb1deba7ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd99bb05ca015e7d74448acb1deba7ca">&#9670;&nbsp;</a></span>version</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t version</td>
</tr>
</table>
</div><div class="memdoc">
<p>Must be set to GX2_DEBUG_CAPTURE_INTERFACE_VERSION. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00041">41</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a566d47632d4b6c5afc14aa3a808fa4e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a566d47632d4b6c5afc14aa3a808fa4e7">&#9670;&nbsp;</a></span>onShutdown</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onShutdown()</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called from GX2Shutdown. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00044">44</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="ae124b86b82e6a202644dcf31473fad2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae124b86b82e6a202644dcf31473fad2f">&#9670;&nbsp;</a></span>setAllocator</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* setAllocator()</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called from GX2DebugSetCaptureInterface with the default gx2 allocators. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00047">47</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a0019dc38a3390a6b7ad73c894c505b2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0019dc38a3390a6b7ad73c894c505b2a">&#9670;&nbsp;</a></span>onCaptureStart</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onCaptureStart(const char *filename)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called from GX2DebugCaptureStart, the filename is first argument passed in to GX2DebugCaptureStart. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00051">51</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a53d199108cdb937ea1c44df947966c6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d199108cdb937ea1c44df947966c6f">&#9670;&nbsp;</a></span>onCaptureEnd</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onCaptureEnd()</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called from GX2DebugCaptureEnd. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00054">54</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a6047a061ec3de35a3cf09bda2967922a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6047a061ec3de35a3cf09bda2967922a">&#9670;&nbsp;</a></span>isCaptureEnabled</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a>(* isCaptureEnabled()</td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if capture is enabled. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00057">57</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a7dc2179ade100adfc0ad1decee9be879"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7dc2179ade100adfc0ad1decee9be879">&#9670;&nbsp;</a></span>onAlloc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onAlloc(void *ptr, uint32_t size, uint32_t align)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when GX2 memory is allocated. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00060">60</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a39c39e83b418d298c413a9ad793de365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39c39e83b418d298c413a9ad793de365">&#9670;&nbsp;</a></span>onFree</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onFree(void *ptr)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when GX2 memory is freed. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00063">63</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a466c04ded5493950d5c7a732a28c0748"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a466c04ded5493950d5c7a732a28c0748">&#9670;&nbsp;</a></span>onUnknownMemory</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onUnknownMemory(void *ptr, uint32_t size)</td>
</tr>
</table>
</div><div class="memdoc">
<p>UNKNOWN: Called when something happens with some memory. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00066">66</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a5f499b477ae31baccdee55a5783e5720"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f499b477ae31baccdee55a5783e5720">&#9670;&nbsp;</a></span>setOutputSurface</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* setOutputSurface(<a class="el" href="group__gx2__surface.html#structGX2Surface">GX2Surface</a> *surface)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called from GX2DebugCaptureStart with the TV scan buffer. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00069">69</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="a349333c77ad90b57cfa3504f5cff6018"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a349333c77ad90b57cfa3504f5cff6018">&#9670;&nbsp;</a></span>onSwapScanBuffers</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* onSwapScanBuffers(<a class="el" href="group__gx2__surface.html#structGX2Surface">GX2Surface</a> *surface)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called from GX2SwapScanBuffers with the TV scan buffer. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00072">72</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<a id="ae9cc9091bd972755fd6b4bbef1d7c7e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9cc9091bd972755fd6b4bbef1d7c7e7">&#9670;&nbsp;</a></span>submitToRing</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* submitToRing(void *unk1, uint32_t unk2, uint32_t *unk3, uint64_t *outSubmitTimestamp)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when a command buffer is ready to be submitted to ring buffer. </p>
<p>Note that it seems we must call TCLSubmitToRing from this callback because gx2 will not do it when capturing. </p>
<p class="definition">Definition at line <a class="el" href="gx2_2debug_8h_source.html#l00077">77</a> of file <a class="el" href="gx2_2debug_8h_source.html">debug.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>/home/ash/Code/wut2/include/gx2/<a class="el" href="gx2_2debug_8h_source.html">debug.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>