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

225 lines
16 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: Resource</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>
</div><!-- top -->
<!-- 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 class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> </div>
<div class="headertitle">
<div class="title">Resource<div class="ingroups"><a class="el" href="group__gx2r.html">gx2r</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga9b606d1d4ebe221019994b9e9d8e3bce"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__gx2r__resource.html#ga5038cc0d0ddfb9c5997bc24c25374985">GX2RResourceFlags</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gx2r__resource.html#ga9b606d1d4ebe221019994b9e9d8e3bce">GX2RResourceFlags</a></td></tr>
<tr class="separator:ga9b606d1d4ebe221019994b9e9d8e3bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga5038cc0d0ddfb9c5997bc24c25374985"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gx2r__resource.html#ga5038cc0d0ddfb9c5997bc24c25374985">GX2RResourceFlags</a> { <br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ab1c4d39d3554314a28c9fec867f104d9">GX2R_RESOURCE_BIND_TEXTURE</a> = 1 &lt;&lt; 0,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985aaa855e9318ee54787401f8f8438e542c">GX2R_RESOURCE_BIND_COLOR_BUFFER</a> = 1 &lt;&lt; 1,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a944fd4e1f045eafb22835b4800cb5731">GX2R_RESOURCE_BIND_DEPTH_BUFFER</a> = 1 &lt;&lt; 2,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985abfa0b10bbcf11af39dd2e761883969be">GX2R_RESOURCE_BIND_SCAN_BUFFER</a> = 1 &lt;&lt; 3,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a3b5fb410e9dd9ddfc866766234b8da27">GX2R_RESOURCE_BIND_VERTEX_BUFFER</a> = 1 &lt;&lt; 4,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a5c525ba66b4edcc9ef3a583ed071fbd9">GX2R_RESOURCE_BIND_INDEX_BUFFER</a> = 1 &lt;&lt; 5,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985af2e8feddd1e7a5c8d109c5d1f2b5e91e">GX2R_RESOURCE_BIND_UNIFORM_BLOCK</a> = 1 &lt;&lt; 6,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a6cab3a15c09fb2f54b53f5eb9686b385">GX2R_RESOURCE_BIND_SHADER_PROGRAM</a> = 1 &lt;&lt; 7,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a3c470f710a3f43c51c3e9f27d2c0e1fe">GX2R_RESOURCE_BIND_STREAM_OUTPUT</a> = 1 &lt;&lt; 8,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ac411e8f8c26fee1cdaca543af7bc43ac">GX2R_RESOURCE_BIND_DISPLAY_LIST</a> = 1 &lt;&lt; 9,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a957bccdd1d993b7594775bbeef2c5eab">GX2R_RESOURCE_BIND_GS_RING_BUFFER</a> = 1 &lt;&lt; 10,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ab321f3b76018d6bdd5cacd491303b9f1">GX2R_RESOURCE_USAGE_CPU_READ</a> = 1 &lt;&lt; 11,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985acbcfb2994771c0e39ff67a5d93b4a087">GX2R_RESOURCE_USAGE_CPU_WRITE</a> = 1 &lt;&lt; 12,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ac6817ead455f72a73fa265f1973cbdb9">GX2R_RESOURCE_USAGE_GPU_READ</a> = 1 &lt;&lt; 13,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a56797a44601898ebec8ac0b768f9fe5e">GX2R_RESOURCE_USAGE_GPU_WRITE</a> = 1 &lt;&lt; 14,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ace76be4eed21ade1e8a75586658b3220">GX2R_RESOURCE_USAGE_DMA_READ</a> = 1 &lt;&lt; 15,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985aa0e12d4112e4d1c835e1612242705c77">GX2R_RESOURCE_USAGE_DMA_WRITE</a> = 1 &lt;&lt; 16,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a6d8e4c3f8f6ea799bdecd2f21fbd453c">GX2R_RESOURCE_USAGE_FORCE_MEM1</a> = 1 &lt;&lt; 17,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ac8729cf9a29281dc2e3011f88e8aa3d3">GX2R_RESOURCE_USAGE_FORCE_MEM2</a> = 1 &lt;&lt; 18,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a1ed473d85d90d923b468dcddd068c5f7">GX2R_RESOURCE_DISABLE_CPU_INVALIDATE</a> = 1 &lt;&lt; 20,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a9e1dcc07290acf69676fef015cbe3318">GX2R_RESOURCE_DISABLE_GPU_INVALIDATE</a> = 1 &lt;&lt; 21,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a619897f1f4fc62b5d9d949adf7f227f1">GX2R_RESOURCE_LOCKED_READ_ONLY</a> = 1 &lt;&lt; 22,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985a65f2cc32f96c14a98c3e90203b672560">GX2R_RESOURCE_GX2R_ALLOCATED</a> = 1 &lt;&lt; 29,
<br />
&#160;&#160;<a class="el" href="group__gx2r__resource.html#gga5038cc0d0ddfb9c5997bc24c25374985ae8602a68b2031d79d89db924272c4779">GX2R_RESOURCE_LOCKED</a> = 1 &lt;&lt; 30
<br />
}</td></tr>
<tr class="separator:ga5038cc0d0ddfb9c5997bc24c25374985"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga9b606d1d4ebe221019994b9e9d8e3bce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9b606d1d4ebe221019994b9e9d8e3bce">&#9670;&nbsp;</a></span>GX2RResourceFlags</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef enum <a class="el" href="group__gx2r__resource.html#ga5038cc0d0ddfb9c5997bc24c25374985">GX2RResourceFlags</a> <a class="el" href="group__gx2r__resource.html#ga5038cc0d0ddfb9c5997bc24c25374985">GX2RResourceFlags</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga5038cc0d0ddfb9c5997bc24c25374985"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5038cc0d0ddfb9c5997bc24c25374985">&#9670;&nbsp;</a></span>GX2RResourceFlags</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__gx2r__resource.html#ga5038cc0d0ddfb9c5997bc24c25374985">GX2RResourceFlags</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ab1c4d39d3554314a28c9fec867f104d9"></a>GX2R_RESOURCE_BIND_TEXTURE&#160;</td><td class="fielddoc"><p>This resource is to be used as a texture. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985aaa855e9318ee54787401f8f8438e542c"></a>GX2R_RESOURCE_BIND_COLOR_BUFFER&#160;</td><td class="fielddoc"><p>This resource is to be used as a colour buffer. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a944fd4e1f045eafb22835b4800cb5731"></a>GX2R_RESOURCE_BIND_DEPTH_BUFFER&#160;</td><td class="fielddoc"><p>This resource is to be used as a depth buffer. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985abfa0b10bbcf11af39dd2e761883969be"></a>GX2R_RESOURCE_BIND_SCAN_BUFFER&#160;</td><td class="fielddoc"><p>This resource is to be used as a scan buffer. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a3b5fb410e9dd9ddfc866766234b8da27"></a>GX2R_RESOURCE_BIND_VERTEX_BUFFER&#160;</td><td class="fielddoc"><p>This resource is to be used as a vertex buffer. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a5c525ba66b4edcc9ef3a583ed071fbd9"></a>GX2R_RESOURCE_BIND_INDEX_BUFFER&#160;</td><td class="fielddoc"><p>This resource is to be used as a index buffer. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985af2e8feddd1e7a5c8d109c5d1f2b5e91e"></a>GX2R_RESOURCE_BIND_UNIFORM_BLOCK&#160;</td><td class="fielddoc"><p>This resource is to be used as a uniform block. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a6cab3a15c09fb2f54b53f5eb9686b385"></a>GX2R_RESOURCE_BIND_SHADER_PROGRAM&#160;</td><td class="fielddoc"><p>This resource is to be used as a shader program. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a3c470f710a3f43c51c3e9f27d2c0e1fe"></a>GX2R_RESOURCE_BIND_STREAM_OUTPUT&#160;</td><td class="fielddoc"><p>This resource is to be used as a stream output. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ac411e8f8c26fee1cdaca543af7bc43ac"></a>GX2R_RESOURCE_BIND_DISPLAY_LIST&#160;</td><td class="fielddoc"><p>This resource is to be used as a display list. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a957bccdd1d993b7594775bbeef2c5eab"></a>GX2R_RESOURCE_BIND_GS_RING_BUFFER&#160;</td><td class="fielddoc"><p>This resource is to be used as a geometry shader ring buffer. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ab321f3b76018d6bdd5cacd491303b9f1"></a>GX2R_RESOURCE_USAGE_CPU_READ&#160;</td><td class="fielddoc"><p>Invalidate resource for a CPU read. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985acbcfb2994771c0e39ff67a5d93b4a087"></a>GX2R_RESOURCE_USAGE_CPU_WRITE&#160;</td><td class="fielddoc"><p>Invalidate resource for a CPU write. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ac6817ead455f72a73fa265f1973cbdb9"></a>GX2R_RESOURCE_USAGE_GPU_READ&#160;</td><td class="fielddoc"><p>Invalidate resource for a GPU read. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a56797a44601898ebec8ac0b768f9fe5e"></a>GX2R_RESOURCE_USAGE_GPU_WRITE&#160;</td><td class="fielddoc"><p>Invalidate resource for a GPU write. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ace76be4eed21ade1e8a75586658b3220"></a>GX2R_RESOURCE_USAGE_DMA_READ&#160;</td><td class="fielddoc"><p>Invalidate resource for a DMA read. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985aa0e12d4112e4d1c835e1612242705c77"></a>GX2R_RESOURCE_USAGE_DMA_WRITE&#160;</td><td class="fielddoc"><p>Invalidate resource for a DMA write. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a6d8e4c3f8f6ea799bdecd2f21fbd453c"></a>GX2R_RESOURCE_USAGE_FORCE_MEM1&#160;</td><td class="fielddoc"><p>Force resource allocation to be in MEM1. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ac8729cf9a29281dc2e3011f88e8aa3d3"></a>GX2R_RESOURCE_USAGE_FORCE_MEM2&#160;</td><td class="fielddoc"><p>Force resource allocation to be in MEM2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a1ed473d85d90d923b468dcddd068c5f7"></a>GX2R_RESOURCE_DISABLE_CPU_INVALIDATE&#160;</td><td class="fielddoc"><p>Disable CPU invalidation. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a9e1dcc07290acf69676fef015cbe3318"></a>GX2R_RESOURCE_DISABLE_GPU_INVALIDATE&#160;</td><td class="fielddoc"><p>Disable GPU invalidation. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a619897f1f4fc62b5d9d949adf7f227f1"></a>GX2R_RESOURCE_LOCKED_READ_ONLY&#160;</td><td class="fielddoc"><p>Resource is locked for read-only access. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985a65f2cc32f96c14a98c3e90203b672560"></a>GX2R_RESOURCE_GX2R_ALLOCATED&#160;</td><td class="fielddoc"><p>Resource was allocated by GX2R. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5038cc0d0ddfb9c5997bc24c25374985ae8602a68b2031d79d89db924272c4779"></a>GX2R_RESOURCE_LOCKED&#160;</td><td class="fielddoc"><p>Resource is locked for all access. </p>
</td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="resource_8h_source.html#l00014">14</a> of file <a class="el" href="resource_8h_source.html">resource.h</a>.</p>
</div>
</div>
</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>