Home | History | Annotate | Download | only in renderscript
      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      5 
      6 <title>/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_allocation.rsh File Reference</title>
      7 <link href="tabs.css" rel="stylesheet" type="text/css"/>
      8 <link href="doxygen.css" rel="stylesheet" type="text/css" />
      9 
     10 
     11 
     12 </head>
     13 <body>
     14 <div id="top"><!-- do not remove this div! -->
     15 
     16 
     17 <!-- Generated by Doxygen 1.7.5.1 -->
     18   <div id="navrow1" class="tabs">
     19     <ul class="tablist">
     20       <li><a href="index.html"><span>Overview</span></a></li>
     21       <li class="current"><a href="globals.html"><span>Globals</span></a></li>
     22       <li><a href="annotated.html"><span>Structs</span></a></li>
     23     </ul>
     24   </div>
     25 </div>
     26 <div class="header">
     27   <div class="summary">
     28 <a href="#func-members">Functions</a>  </div>
     29   <div class="headertitle">
     30 <div class="title">/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_allocation.rsh File Reference</div>  </div>
     31 </div>
     32 <div class="contents">
     33 <table class="memberdecls">
     34 <tr><td colspan="2"><h2><a name="func-members"></a>
     35 Functions</h2></td></tr>
     36 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#aadad7654929c451be299df125061c9ba">rsGetAllocation</a> (const void *)</td></tr>
     37 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a3ca7f505a97d5b7f477bc65b9e77dafb">rsAllocationGetDimX</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>)</td></tr>
     38 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#ac889b866b465580eb313e5d2a9fcac3d">rsAllocationGetDimY</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>)</td></tr>
     39 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#acd6f1a2b2443e6ea39e6154577645d2c">rsAllocationGetDimZ</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>)</td></tr>
     40 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#ac42a07c079d6b3c6bb21975170d4e11c">rsAllocationGetDimLOD</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>)</td></tr>
     41 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#ac85f7ed88f38b35482c6d63b56d470fe">rsAllocationGetDimFaces</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>)</td></tr>
     42 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a3a1098a3ea3a5106955dd4398b8904e1">rsAllocationCopy1DRange</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> dstAlloc, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstOff, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstMip, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> count, <a class="el" href="structrs__allocation.html">rs_allocation</a> srcAlloc, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcOff, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcMip)</td></tr>
     43 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a7f7e2369b3ed7d7db31729b6db7ba07e">rsAllocationCopy2DRange</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> dstAlloc, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstXoff, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstYoff, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstMip, <a class="el" href="rs__types_8rsh.html#acc6f9a94176656c73fd74f789cfa2229">rs_allocation_cubemap_face</a> dstFace, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> width, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> height, <a class="el" href="structrs__allocation.html">rs_allocation</a> srcAlloc, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcXoff, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcYoff, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcMip, <a class="el" href="rs__types_8rsh.html#acc6f9a94176656c73fd74f789cfa2229">rs_allocation_cubemap_face</a> srcFace)</td></tr>
     44 <tr><td class="memItemLeft" align="right" valign="top">const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a56157b6ddef754b36833ca1f8e66aec2">rsGetElementAt</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x)</td></tr>
     45 <tr><td class="memItemLeft" align="right" valign="top">const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#aea4f2338fb36faf73021ff7179fa5930">rsGetElementAt</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y)</td></tr>
     46 <tr><td class="memItemLeft" align="right" valign="top">const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a4256e51301797517cafd5474d7d4b26f">rsGetElementAt</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> z)</td></tr>
     47 <tr><td class="memItemLeft" align="right" valign="top">const void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#afe9ebb2f89c6366c59f5e05ee4849c0a">rsAllocationIoSend</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a)</td></tr>
     48 <tr><td class="memItemLeft" align="right" valign="top">const void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a05f7391230a92d239fdb619d791162b5">rsAllocationIoReceive</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a)</td></tr>
     49 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrs__element.html">rs_element</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a6a3b6512bc269f6b369bdc54d12a45ff">rsAllocationGetElement</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a)</td></tr>
     50 <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a1ed04c0bfab4044b875bb31577b53407">rsSample</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="structrs__sampler.html">rs_sampler</a> s, float location)</td></tr>
     51 <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#aa9574fd5f1655f6e74b4872aace618bf">rsSample</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="structrs__sampler.html">rs_sampler</a> s, float location, float lod)</td></tr>
     52 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a36ef1e609e360a9a5a5ff5dce13b5100">rsSetElementAt</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, void *ptr, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x)</td></tr>
     53 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a351627f335b9a091a5152db7ac9134dc">rsSetElementAt</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, void *ptr, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y)</td></tr>
     54 <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#ad7ffa1aa16511a75b4bc2c05bd0e0a75">rsGetElementAtYuv_uchar_Y</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y)</td></tr>
     55 <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#a41f61be02113ee22c039ea51fdedb20e">rsGetElementAtYuv_uchar_U</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y)</td></tr>
     56 <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__allocation_8rsh.html#af03cadb582fa80bbf7f39177d96df17e">rsGetElementAtYuv_uchar_V</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> a, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y)</td></tr>
     57 </table>
     58 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
     59 <div class="textblock"><p>Allocation routines. </p>
     60 
     61 <p>Definition in file <a class="el" href="rs__allocation_8rsh_source.html">rs_allocation.rsh</a>.</p>
     62 </div><hr/><h2>Function Documentation</h2>
     63 <a class="anchor" id="a3a1098a3ea3a5106955dd4398b8904e1"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationCopy1DRange" ref="a3a1098a3ea3a5106955dd4398b8904e1" args="(rs_allocation dstAlloc, uint32_t dstOff, uint32_t dstMip, uint32_t count, rs_allocation srcAlloc, uint32_t srcOff, uint32_t srcMip)" -->
     64 <div class="memitem">
     65 <div class="memproto">
     66       <table class="memname">
     67         <tr>
     68           <td class="memname">void rsAllocationCopy1DRange </td>
     69           <td>(</td>
     70           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
     71           <td class="paramname"><em>dstAlloc</em>, </td>
     72         </tr>
     73         <tr>
     74           <td class="paramkey"></td>
     75           <td></td>
     76           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
     77           <td class="paramname"><em>dstOff</em>, </td>
     78         </tr>
     79         <tr>
     80           <td class="paramkey"></td>
     81           <td></td>
     82           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
     83           <td class="paramname"><em>dstMip</em>, </td>
     84         </tr>
     85         <tr>
     86           <td class="paramkey"></td>
     87           <td></td>
     88           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
     89           <td class="paramname"><em>count</em>, </td>
     90         </tr>
     91         <tr>
     92           <td class="paramkey"></td>
     93           <td></td>
     94           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
     95           <td class="paramname"><em>srcAlloc</em>, </td>
     96         </tr>
     97         <tr>
     98           <td class="paramkey"></td>
     99           <td></td>
    100           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    101           <td class="paramname"><em>srcOff</em>, </td>
    102         </tr>
    103         <tr>
    104           <td class="paramkey"></td>
    105           <td></td>
    106           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    107           <td class="paramname"><em>srcMip</em>&#160;</td>
    108         </tr>
    109         <tr>
    110           <td></td>
    111           <td>)</td>
    112           <td></td><td></td>
    113         </tr>
    114       </table>
    115 </div>
    116 <div class="memdoc">
    117 <p>Copy part of an allocation from another allocation.</p>
    118 <dl><dt><b>Parameters:</b></dt><dd>
    119   <table class="params">
    120     <tr><td class="paramname">dstAlloc</td><td>Allocation to copy data into. </td></tr>
    121     <tr><td class="paramname">dstOff</td><td>The offset of the first element to be copied in the destination allocation. </td></tr>
    122     <tr><td class="paramname">dstMip</td><td>Mip level in the destination allocation. </td></tr>
    123     <tr><td class="paramname">count</td><td>The number of elements to be copied. </td></tr>
    124     <tr><td class="paramname">srcAlloc</td><td>The source data allocation. </td></tr>
    125     <tr><td class="paramname">srcOff</td><td>The offset of the first element in data to be copied in the source allocation. </td></tr>
    126     <tr><td class="paramname">srcMip</td><td>Mip level in the source allocation. </td></tr>
    127   </table>
    128   </dd>
    129 </dl>
    130 
    131 </div>
    132 </div>
    133 <a class="anchor" id="a7f7e2369b3ed7d7db31729b6db7ba07e"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationCopy2DRange" ref="a7f7e2369b3ed7d7db31729b6db7ba07e" args="(rs_allocation dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstMip, rs_allocation_cubemap_face dstFace, uint32_t width, uint32_t height, rs_allocation srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcMip, rs_allocation_cubemap_face srcFace)" -->
    134 <div class="memitem">
    135 <div class="memproto">
    136       <table class="memname">
    137         <tr>
    138           <td class="memname">void rsAllocationCopy2DRange </td>
    139           <td>(</td>
    140           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    141           <td class="paramname"><em>dstAlloc</em>, </td>
    142         </tr>
    143         <tr>
    144           <td class="paramkey"></td>
    145           <td></td>
    146           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    147           <td class="paramname"><em>dstXoff</em>, </td>
    148         </tr>
    149         <tr>
    150           <td class="paramkey"></td>
    151           <td></td>
    152           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    153           <td class="paramname"><em>dstYoff</em>, </td>
    154         </tr>
    155         <tr>
    156           <td class="paramkey"></td>
    157           <td></td>
    158           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    159           <td class="paramname"><em>dstMip</em>, </td>
    160         </tr>
    161         <tr>
    162           <td class="paramkey"></td>
    163           <td></td>
    164           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#acc6f9a94176656c73fd74f789cfa2229">rs_allocation_cubemap_face</a>&#160;</td>
    165           <td class="paramname"><em>dstFace</em>, </td>
    166         </tr>
    167         <tr>
    168           <td class="paramkey"></td>
    169           <td></td>
    170           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    171           <td class="paramname"><em>width</em>, </td>
    172         </tr>
    173         <tr>
    174           <td class="paramkey"></td>
    175           <td></td>
    176           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    177           <td class="paramname"><em>height</em>, </td>
    178         </tr>
    179         <tr>
    180           <td class="paramkey"></td>
    181           <td></td>
    182           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    183           <td class="paramname"><em>srcAlloc</em>, </td>
    184         </tr>
    185         <tr>
    186           <td class="paramkey"></td>
    187           <td></td>
    188           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    189           <td class="paramname"><em>srcXoff</em>, </td>
    190         </tr>
    191         <tr>
    192           <td class="paramkey"></td>
    193           <td></td>
    194           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    195           <td class="paramname"><em>srcYoff</em>, </td>
    196         </tr>
    197         <tr>
    198           <td class="paramkey"></td>
    199           <td></td>
    200           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    201           <td class="paramname"><em>srcMip</em>, </td>
    202         </tr>
    203         <tr>
    204           <td class="paramkey"></td>
    205           <td></td>
    206           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#acc6f9a94176656c73fd74f789cfa2229">rs_allocation_cubemap_face</a>&#160;</td>
    207           <td class="paramname"><em>srcFace</em>&#160;</td>
    208         </tr>
    209         <tr>
    210           <td></td>
    211           <td>)</td>
    212           <td></td><td></td>
    213         </tr>
    214       </table>
    215 </div>
    216 <div class="memdoc">
    217 <p>Copy a rectangular region into the allocation from another allocation.</p>
    218 <dl><dt><b>Parameters:</b></dt><dd>
    219   <table class="params">
    220     <tr><td class="paramname">dstAlloc</td><td>allocation to copy data into. </td></tr>
    221     <tr><td class="paramname">dstXoff</td><td>X offset of the region to update in the destination allocation. </td></tr>
    222     <tr><td class="paramname">dstYoff</td><td>Y offset of the region to update in the destination allocation. </td></tr>
    223     <tr><td class="paramname">dstMip</td><td>Mip level in the destination allocation. </td></tr>
    224     <tr><td class="paramname">dstFace</td><td>Cubemap face of the destination allocation, ignored for allocations that aren't cubemaps. </td></tr>
    225     <tr><td class="paramname">width</td><td>Width of the incoming region to update. </td></tr>
    226     <tr><td class="paramname">height</td><td>Height of the incoming region to update. </td></tr>
    227     <tr><td class="paramname">srcAlloc</td><td>The source data allocation. </td></tr>
    228     <tr><td class="paramname">srcXoff</td><td>X offset in data of the source allocation. </td></tr>
    229     <tr><td class="paramname">srcYoff</td><td>Y offset in data of the source allocation. </td></tr>
    230     <tr><td class="paramname">srcMip</td><td>Mip level in the source allocation. </td></tr>
    231     <tr><td class="paramname">srcFace</td><td>Cubemap face of the source allocation, ignored for allocations that aren't cubemaps. </td></tr>
    232   </table>
    233   </dd>
    234 </dl>
    235 
    236 </div>
    237 </div>
    238 <a class="anchor" id="ac85f7ed88f38b35482c6d63b56d470fe"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationGetDimFaces" ref="ac85f7ed88f38b35482c6d63b56d470fe" args="(rs_allocation)" -->
    239 <div class="memitem">
    240 <div class="memproto">
    241       <table class="memname">
    242         <tr>
    243           <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsAllocationGetDimFaces </td>
    244           <td>(</td>
    245           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    246           <td class="paramname"></td><td>)</td>
    247           <td></td>
    248         </tr>
    249       </table>
    250 </div>
    251 <div class="memdoc">
    252 <p>Query an allocation for the presence of more than one face.</p>
    253 <dl class="return"><dt><b>Returns:</b></dt><dd>uint32_t Returns 1 if more than one face is present, 0 otherwise. </dd></dl>
    254 
    255 </div>
    256 </div>
    257 <a class="anchor" id="ac42a07c079d6b3c6bb21975170d4e11c"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationGetDimLOD" ref="ac42a07c079d6b3c6bb21975170d4e11c" args="(rs_allocation)" -->
    258 <div class="memitem">
    259 <div class="memproto">
    260       <table class="memname">
    261         <tr>
    262           <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsAllocationGetDimLOD </td>
    263           <td>(</td>
    264           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    265           <td class="paramname"></td><td>)</td>
    266           <td></td>
    267         </tr>
    268       </table>
    269 </div>
    270 <div class="memdoc">
    271 <p>Query an allocation for the presence of more than one LOD.</p>
    272 <dl class="return"><dt><b>Returns:</b></dt><dd>uint32_t Returns 1 if more than one LOD is present, 0 otherwise. </dd></dl>
    273 
    274 </div>
    275 </div>
    276 <a class="anchor" id="a3ca7f505a97d5b7f477bc65b9e77dafb"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationGetDimX" ref="a3ca7f505a97d5b7f477bc65b9e77dafb" args="(rs_allocation)" -->
    277 <div class="memitem">
    278 <div class="memproto">
    279       <table class="memname">
    280         <tr>
    281           <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsAllocationGetDimX </td>
    282           <td>(</td>
    283           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    284           <td class="paramname"></td><td>)</td>
    285           <td></td>
    286         </tr>
    287       </table>
    288 </div>
    289 <div class="memdoc">
    290 <p>Query the dimension of an allocation.</p>
    291 <dl class="return"><dt><b>Returns:</b></dt><dd>uint32_t The X dimension of the allocation. </dd></dl>
    292 
    293 </div>
    294 </div>
    295 <a class="anchor" id="ac889b866b465580eb313e5d2a9fcac3d"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationGetDimY" ref="ac889b866b465580eb313e5d2a9fcac3d" args="(rs_allocation)" -->
    296 <div class="memitem">
    297 <div class="memproto">
    298       <table class="memname">
    299         <tr>
    300           <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsAllocationGetDimY </td>
    301           <td>(</td>
    302           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    303           <td class="paramname"></td><td>)</td>
    304           <td></td>
    305         </tr>
    306       </table>
    307 </div>
    308 <div class="memdoc">
    309 <p>Query the dimension of an allocation.</p>
    310 <dl class="return"><dt><b>Returns:</b></dt><dd>uint32_t The Y dimension of the allocation. </dd></dl>
    311 
    312 </div>
    313 </div>
    314 <a class="anchor" id="acd6f1a2b2443e6ea39e6154577645d2c"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationGetDimZ" ref="acd6f1a2b2443e6ea39e6154577645d2c" args="(rs_allocation)" -->
    315 <div class="memitem">
    316 <div class="memproto">
    317       <table class="memname">
    318         <tr>
    319           <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsAllocationGetDimZ </td>
    320           <td>(</td>
    321           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    322           <td class="paramname"></td><td>)</td>
    323           <td></td>
    324         </tr>
    325       </table>
    326 </div>
    327 <div class="memdoc">
    328 <p>Query the dimension of an allocation.</p>
    329 <dl class="return"><dt><b>Returns:</b></dt><dd>uint32_t The Z dimension of the allocation. </dd></dl>
    330 
    331 </div>
    332 </div>
    333 <a class="anchor" id="a6a3b6512bc269f6b369bdc54d12a45ff"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationGetElement" ref="a6a3b6512bc269f6b369bdc54d12a45ff" args="(rs_allocation a)" -->
    334 <div class="memitem">
    335 <div class="memproto">
    336       <table class="memname">
    337         <tr>
    338           <td class="memname"><a class="el" href="structrs__element.html">rs_element</a> rsAllocationGetElement </td>
    339           <td>(</td>
    340           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    341           <td class="paramname"><em>a</em></td><td>)</td>
    342           <td></td>
    343         </tr>
    344       </table>
    345 </div>
    346 <div class="memdoc">
    347 <p>Get the element object describing the allocation's layout </p>
    348 <dl><dt><b>Parameters:</b></dt><dd>
    349   <table class="params">
    350     <tr><td class="paramname">a</td><td>allocation to get data from </td></tr>
    351   </table>
    352   </dd>
    353 </dl>
    354 <dl class="return"><dt><b>Returns:</b></dt><dd>element describing allocation layout </dd></dl>
    355 
    356 </div>
    357 </div>
    358 <a class="anchor" id="a05f7391230a92d239fdb619d791162b5"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationIoReceive" ref="a05f7391230a92d239fdb619d791162b5" args="(rs_allocation a)" -->
    359 <div class="memitem">
    360 <div class="memproto">
    361       <table class="memname">
    362         <tr>
    363           <td class="memname">const void rsAllocationIoReceive </td>
    364           <td>(</td>
    365           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    366           <td class="paramname"><em>a</em></td><td>)</td>
    367           <td></td>
    368         </tr>
    369       </table>
    370 </div>
    371 <div class="memdoc">
    372 <p>Receive a new set of contents from the queue. </p>
    373 <dl><dt><b>Parameters:</b></dt><dd>
    374   <table class="params">
    375     <tr><td class="paramname">a</td><td>allocation to work on </td></tr>
    376   </table>
    377   </dd>
    378 </dl>
    379 
    380 </div>
    381 </div>
    382 <a class="anchor" id="afe9ebb2f89c6366c59f5e05ee4849c0a"></a><!-- doxytag: member="rs_allocation.rsh::rsAllocationIoSend" ref="afe9ebb2f89c6366c59f5e05ee4849c0a" args="(rs_allocation a)" -->
    383 <div class="memitem">
    384 <div class="memproto">
    385       <table class="memname">
    386         <tr>
    387           <td class="memname">const void rsAllocationIoSend </td>
    388           <td>(</td>
    389           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    390           <td class="paramname"><em>a</em></td><td>)</td>
    391           <td></td>
    392         </tr>
    393       </table>
    394 </div>
    395 <div class="memdoc">
    396 <p>Send the contents of the Allocation to the queue. </p>
    397 <dl><dt><b>Parameters:</b></dt><dd>
    398   <table class="params">
    399     <tr><td class="paramname">a</td><td>allocation to work on </td></tr>
    400   </table>
    401   </dd>
    402 </dl>
    403 
    404 </div>
    405 </div>
    406 <a class="anchor" id="aadad7654929c451be299df125061c9ba"></a><!-- doxytag: member="rs_allocation.rsh::rsGetAllocation" ref="aadad7654929c451be299df125061c9ba" args="(const void *)" -->
    407 <div class="memitem">
    408 <div class="memproto">
    409       <table class="memname">
    410         <tr>
    411           <td class="memname"><a class="el" href="structrs__allocation.html">rs_allocation</a> rsGetAllocation </td>
    412           <td>(</td>
    413           <td class="paramtype">const void *&#160;</td>
    414           <td class="paramname"></td><td>)</td>
    415           <td></td>
    416         </tr>
    417       </table>
    418 </div>
    419 <div class="memdoc">
    420 <p>Returns the Allocation for a given pointer. The pointer should point within a valid allocation. The results are undefined if the pointer is not from a valid allocation.</p>
    421 <p>This function is deprecated and will be removed in the SDK from a future release. </p>
    422 
    423 </div>
    424 </div>
    425 <a class="anchor" id="a56157b6ddef754b36833ca1f8e66aec2"></a><!-- doxytag: member="rs_allocation.rsh::rsGetElementAt" ref="a56157b6ddef754b36833ca1f8e66aec2" args="(rs_allocation a, uint32_t x)" -->
    426 <div class="memitem">
    427 <div class="memproto">
    428       <table class="memname">
    429         <tr>
    430           <td class="memname">const void* rsGetElementAt </td>
    431           <td>(</td>
    432           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    433           <td class="paramname"><em>a</em>, </td>
    434         </tr>
    435         <tr>
    436           <td class="paramkey"></td>
    437           <td></td>
    438           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    439           <td class="paramname"><em>x</em>&#160;</td>
    440         </tr>
    441         <tr>
    442           <td></td>
    443           <td>)</td>
    444           <td></td><td></td>
    445         </tr>
    446       </table>
    447 </div>
    448 <div class="memdoc">
    449 <p>Extract a single element from an allocation. </p>
    450 
    451 </div>
    452 </div>
    453 <a class="anchor" id="aea4f2338fb36faf73021ff7179fa5930"></a><!-- doxytag: member="rs_allocation.rsh::rsGetElementAt" ref="aea4f2338fb36faf73021ff7179fa5930" args="(rs_allocation a, uint32_t x, uint32_t y)" -->
    454 <div class="memitem">
    455 <div class="memproto">
    456       <table class="memname">
    457         <tr>
    458           <td class="memname">const void* rsGetElementAt </td>
    459           <td>(</td>
    460           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    461           <td class="paramname"><em>a</em>, </td>
    462         </tr>
    463         <tr>
    464           <td class="paramkey"></td>
    465           <td></td>
    466           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    467           <td class="paramname"><em>x</em>, </td>
    468         </tr>
    469         <tr>
    470           <td class="paramkey"></td>
    471           <td></td>
    472           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    473           <td class="paramname"><em>y</em>&#160;</td>
    474         </tr>
    475         <tr>
    476           <td></td>
    477           <td>)</td>
    478           <td></td><td></td>
    479         </tr>
    480       </table>
    481 </div>
    482 <div class="memdoc">
    483 <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
    484 
    485 </div>
    486 </div>
    487 <a class="anchor" id="a4256e51301797517cafd5474d7d4b26f"></a><!-- doxytag: member="rs_allocation.rsh::rsGetElementAt" ref="a4256e51301797517cafd5474d7d4b26f" args="(rs_allocation a, uint32_t x, uint32_t y, uint32_t z)" -->
    488 <div class="memitem">
    489 <div class="memproto">
    490       <table class="memname">
    491         <tr>
    492           <td class="memname">const void* rsGetElementAt </td>
    493           <td>(</td>
    494           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    495           <td class="paramname"><em>a</em>, </td>
    496         </tr>
    497         <tr>
    498           <td class="paramkey"></td>
    499           <td></td>
    500           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    501           <td class="paramname"><em>x</em>, </td>
    502         </tr>
    503         <tr>
    504           <td class="paramkey"></td>
    505           <td></td>
    506           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    507           <td class="paramname"><em>y</em>, </td>
    508         </tr>
    509         <tr>
    510           <td class="paramkey"></td>
    511           <td></td>
    512           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    513           <td class="paramname"><em>z</em>&#160;</td>
    514         </tr>
    515         <tr>
    516           <td></td>
    517           <td>)</td>
    518           <td></td><td></td>
    519         </tr>
    520       </table>
    521 </div>
    522 <div class="memdoc">
    523 <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
    524 
    525 </div>
    526 </div>
    527 <a class="anchor" id="a41f61be02113ee22c039ea51fdedb20e"></a><!-- doxytag: member="rs_allocation.rsh::rsGetElementAtYuv_uchar_U" ref="a41f61be02113ee22c039ea51fdedb20e" args="(rs_allocation a, uint32_t x, uint32_t y)" -->
    528 <div class="memitem">
    529 <div class="memproto">
    530       <table class="memname">
    531         <tr>
    532           <td class="memname">const <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> rsGetElementAtYuv_uchar_U </td>
    533           <td>(</td>
    534           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    535           <td class="paramname"><em>a</em>, </td>
    536         </tr>
    537         <tr>
    538           <td class="paramkey"></td>
    539           <td></td>
    540           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    541           <td class="paramname"><em>x</em>, </td>
    542         </tr>
    543         <tr>
    544           <td class="paramkey"></td>
    545           <td></td>
    546           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    547           <td class="paramname"><em>y</em>&#160;</td>
    548         </tr>
    549         <tr>
    550           <td></td>
    551           <td>)</td>
    552           <td></td><td></td>
    553         </tr>
    554       </table>
    555 </div>
    556 <div class="memdoc">
    557 <p>Extract a single element from an allocation.</p>
    558 <p>Coordinates are in the dimensions of the Y plane </p>
    559 
    560 </div>
    561 </div>
    562 <a class="anchor" id="af03cadb582fa80bbf7f39177d96df17e"></a><!-- doxytag: member="rs_allocation.rsh::rsGetElementAtYuv_uchar_V" ref="af03cadb582fa80bbf7f39177d96df17e" args="(rs_allocation a, uint32_t x, uint32_t y)" -->
    563 <div class="memitem">
    564 <div class="memproto">
    565       <table class="memname">
    566         <tr>
    567           <td class="memname">const <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> rsGetElementAtYuv_uchar_V </td>
    568           <td>(</td>
    569           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    570           <td class="paramname"><em>a</em>, </td>
    571         </tr>
    572         <tr>
    573           <td class="paramkey"></td>
    574           <td></td>
    575           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    576           <td class="paramname"><em>x</em>, </td>
    577         </tr>
    578         <tr>
    579           <td class="paramkey"></td>
    580           <td></td>
    581           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    582           <td class="paramname"><em>y</em>&#160;</td>
    583         </tr>
    584         <tr>
    585           <td></td>
    586           <td>)</td>
    587           <td></td><td></td>
    588         </tr>
    589       </table>
    590 </div>
    591 <div class="memdoc">
    592 <p>Extract a single element from an allocation.</p>
    593 <p>Coordinates are in the dimensions of the Y plane </p>
    594 
    595 </div>
    596 </div>
    597 <a class="anchor" id="ad7ffa1aa16511a75b4bc2c05bd0e0a75"></a><!-- doxytag: member="rs_allocation.rsh::rsGetElementAtYuv_uchar_Y" ref="ad7ffa1aa16511a75b4bc2c05bd0e0a75" args="(rs_allocation a, uint32_t x, uint32_t y)" -->
    598 <div class="memitem">
    599 <div class="memproto">
    600       <table class="memname">
    601         <tr>
    602           <td class="memname">const <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> rsGetElementAtYuv_uchar_Y </td>
    603           <td>(</td>
    604           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    605           <td class="paramname"><em>a</em>, </td>
    606         </tr>
    607         <tr>
    608           <td class="paramkey"></td>
    609           <td></td>
    610           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    611           <td class="paramname"><em>x</em>, </td>
    612         </tr>
    613         <tr>
    614           <td class="paramkey"></td>
    615           <td></td>
    616           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    617           <td class="paramname"><em>y</em>&#160;</td>
    618         </tr>
    619         <tr>
    620           <td></td>
    621           <td>)</td>
    622           <td></td><td></td>
    623         </tr>
    624       </table>
    625 </div>
    626 <div class="memdoc">
    627 <p>Extract a single element from an allocation. </p>
    628 
    629 </div>
    630 </div>
    631 <a class="anchor" id="a1ed04c0bfab4044b875bb31577b53407"></a><!-- doxytag: member="rs_allocation.rsh::rsSample" ref="a1ed04c0bfab4044b875bb31577b53407" args="(rs_allocation a, rs_sampler s, float location)" -->
    632 <div class="memitem">
    633 <div class="memproto">
    634       <table class="memname">
    635         <tr>
    636           <td class="memname">const <a class="el" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> rsSample </td>
    637           <td>(</td>
    638           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    639           <td class="paramname"><em>a</em>, </td>
    640         </tr>
    641         <tr>
    642           <td class="paramkey"></td>
    643           <td></td>
    644           <td class="paramtype"><a class="el" href="structrs__sampler.html">rs_sampler</a>&#160;</td>
    645           <td class="paramname"><em>s</em>, </td>
    646         </tr>
    647         <tr>
    648           <td class="paramkey"></td>
    649           <td></td>
    650           <td class="paramtype">float&#160;</td>
    651           <td class="paramname"><em>location</em>&#160;</td>
    652         </tr>
    653         <tr>
    654           <td></td>
    655           <td>)</td>
    656           <td></td><td></td>
    657         </tr>
    658       </table>
    659 </div>
    660 <div class="memdoc">
    661 <p>Fetch allocation in a way described by the sampler </p>
    662 <dl><dt><b>Parameters:</b></dt><dd>
    663   <table class="params">
    664     <tr><td class="paramname">a</td><td>1D allocation to sample from </td></tr>
    665     <tr><td class="paramname">s</td><td>sampler state </td></tr>
    666     <tr><td class="paramname">location</td><td>to sample from</td></tr>
    667   </table>
    668   </dd>
    669 </dl>
    670 <p>Fetch allocation in a way described by the sampler </p>
    671 <dl><dt><b>Parameters:</b></dt><dd>
    672   <table class="params">
    673     <tr><td class="paramname">a</td><td>2D allocation to sample from </td></tr>
    674     <tr><td class="paramname">s</td><td>sampler state </td></tr>
    675     <tr><td class="paramname">location</td><td>to sample from </td></tr>
    676   </table>
    677   </dd>
    678 </dl>
    679 
    680 </div>
    681 </div>
    682 <a class="anchor" id="aa9574fd5f1655f6e74b4872aace618bf"></a><!-- doxytag: member="rs_allocation.rsh::rsSample" ref="aa9574fd5f1655f6e74b4872aace618bf" args="(rs_allocation a, rs_sampler s, float location, float lod)" -->
    683 <div class="memitem">
    684 <div class="memproto">
    685       <table class="memname">
    686         <tr>
    687           <td class="memname">const <a class="el" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> rsSample </td>
    688           <td>(</td>
    689           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    690           <td class="paramname"><em>a</em>, </td>
    691         </tr>
    692         <tr>
    693           <td class="paramkey"></td>
    694           <td></td>
    695           <td class="paramtype"><a class="el" href="structrs__sampler.html">rs_sampler</a>&#160;</td>
    696           <td class="paramname"><em>s</em>, </td>
    697         </tr>
    698         <tr>
    699           <td class="paramkey"></td>
    700           <td></td>
    701           <td class="paramtype">float&#160;</td>
    702           <td class="paramname"><em>location</em>, </td>
    703         </tr>
    704         <tr>
    705           <td class="paramkey"></td>
    706           <td></td>
    707           <td class="paramtype">float&#160;</td>
    708           <td class="paramname"><em>lod</em>&#160;</td>
    709         </tr>
    710         <tr>
    711           <td></td>
    712           <td>)</td>
    713           <td></td><td></td>
    714         </tr>
    715       </table>
    716 </div>
    717 <div class="memdoc">
    718 <p>Fetch allocation in a way described by the sampler </p>
    719 <dl><dt><b>Parameters:</b></dt><dd>
    720   <table class="params">
    721     <tr><td class="paramname">a</td><td>1D allocation to sample from </td></tr>
    722     <tr><td class="paramname">s</td><td>sampler state </td></tr>
    723     <tr><td class="paramname">location</td><td>to sample from </td></tr>
    724     <tr><td class="paramname">lod</td><td>mip level to sample from, for fractional values mip levels will be interpolated if RS_SAMPLER_LINEAR_MIP_LINEAR is used</td></tr>
    725   </table>
    726   </dd>
    727 </dl>
    728 <p>Fetch allocation in a way described by the sampler </p>
    729 <dl><dt><b>Parameters:</b></dt><dd>
    730   <table class="params">
    731     <tr><td class="paramname">a</td><td>2D allocation to sample from </td></tr>
    732     <tr><td class="paramname">s</td><td>sampler state </td></tr>
    733     <tr><td class="paramname">location</td><td>to sample from </td></tr>
    734     <tr><td class="paramname">lod</td><td>mip level to sample from, for fractional values mip levels will be interpolated if RS_SAMPLER_LINEAR_MIP_LINEAR is used </td></tr>
    735   </table>
    736   </dd>
    737 </dl>
    738 
    739 </div>
    740 </div>
    741 <a class="anchor" id="a36ef1e609e360a9a5a5ff5dce13b5100"></a><!-- doxytag: member="rs_allocation.rsh::rsSetElementAt" ref="a36ef1e609e360a9a5a5ff5dce13b5100" args="(rs_allocation a, void *ptr, uint32_t x)" -->
    742 <div class="memitem">
    743 <div class="memproto">
    744       <table class="memname">
    745         <tr>
    746           <td class="memname">void rsSetElementAt </td>
    747           <td>(</td>
    748           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    749           <td class="paramname"><em>a</em>, </td>
    750         </tr>
    751         <tr>
    752           <td class="paramkey"></td>
    753           <td></td>
    754           <td class="paramtype">void *&#160;</td>
    755           <td class="paramname"><em>ptr</em>, </td>
    756         </tr>
    757         <tr>
    758           <td class="paramkey"></td>
    759           <td></td>
    760           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    761           <td class="paramname"><em>x</em>&#160;</td>
    762         </tr>
    763         <tr>
    764           <td></td>
    765           <td>)</td>
    766           <td></td><td></td>
    767         </tr>
    768       </table>
    769 </div>
    770 <div class="memdoc">
    771 <p>Set single element of an allocation. </p>
    772 
    773 </div>
    774 </div>
    775 <a class="anchor" id="a351627f335b9a091a5152db7ac9134dc"></a><!-- doxytag: member="rs_allocation.rsh::rsSetElementAt" ref="a351627f335b9a091a5152db7ac9134dc" args="(rs_allocation a, void *ptr, uint32_t x, uint32_t y)" -->
    776 <div class="memitem">
    777 <div class="memproto">
    778       <table class="memname">
    779         <tr>
    780           <td class="memname">void rsSetElementAt </td>
    781           <td>(</td>
    782           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    783           <td class="paramname"><em>a</em>, </td>
    784         </tr>
    785         <tr>
    786           <td class="paramkey"></td>
    787           <td></td>
    788           <td class="paramtype">void *&#160;</td>
    789           <td class="paramname"><em>ptr</em>, </td>
    790         </tr>
    791         <tr>
    792           <td class="paramkey"></td>
    793           <td></td>
    794           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    795           <td class="paramname"><em>x</em>, </td>
    796         </tr>
    797         <tr>
    798           <td class="paramkey"></td>
    799           <td></td>
    800           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
    801           <td class="paramname"><em>y</em>&#160;</td>
    802         </tr>
    803         <tr>
    804           <td></td>
    805           <td>)</td>
    806           <td></td><td></td>
    807         </tr>
    808       </table>
    809 </div>
    810 <div class="memdoc">
    811 <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
    812 
    813 </div>
    814 </div>
    815 </div>
    816 
    817 </body>
    818 </html>
    819