<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/> <title>android::RSC::Sampler Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <!-- Generated by Doxygen 1.7.5.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Overview</span></a></li> <li class="current"><a href="annotated.html"><span>Structs</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>android</b> </li> <li class="navelem"><b>RSC</b> </li> <li class="navelem"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <div class="title">android::RSC::Sampler Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="android::RSC::Sampler" --><!-- doxytag: inherits="android::RSC::BaseObj" --> <p><code>#include <<a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>></code></p> <div class="dynheader"> Inheritance diagram for android::RSC::Sampler:</div> <div class="dyncontent"> <div class="center"> <img src="classandroid_1_1RSC_1_1Sampler.png" usemap="#android::RSC::Sampler_map" alt=""/> <map id="android::RSC::Sampler_map" name="android::RSC::Sampler_map"> <area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,140,24"/> </map> </div></div> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RsSamplerValue </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a22c6f5b3bf6e430a0295ab99f65f3dca">getMinification</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">RsSamplerValue </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#acaa10a3d84d99cd68d2274cbb427abb9">getMagnification</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">RsSamplerValue </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#aaa21bc15543fcf02bbd688c38e14080f">getWrapS</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">RsSamplerValue </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a9515051eeea23c062d29ca8361114919">getWrapT</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#ac4f94713027d23277a520f27f1522624">getAnisotropy</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a903aec7929fdb94f378b5cecdb834f3b">CLAMP_NEAREST</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#afb48673e5fb2bad4bcc4ddb0a9ccad1e">CLAMP_LINEAR</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a73e3deb304f2026905678a7f34468682">CLAMP_LINEAR_MIP_LINEAR</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a5703046e02361cff7d7e1aef7888fd7e">WRAP_NEAREST</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a19d21b02c0cd1acc88b699a143c1ecf7">WRAP_LINEAR</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#ab3861067ff6e53d576ba176961d27c59">WRAP_LINEAR_MIP_LINEAR</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a8d57f55223051c3efbfdfa74b0e362fe">MIRRORED_REPEAT_NEAREST</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a9f5abd387250e387399833f4932a4822">MIRRORED_REPEAT_LINEAR</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">sp< const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#abee665de756da5272b6da5359ffd69a2">MIRRORED_REPEAT_LINEAR_MIP_LINEAR</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Sampler.html#a579e236fabaca164d0639bcb9c95a169">create</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs, RsSamplerValue min, RsSamplerValue mag, RsSamplerValue wrapS, RsSamplerValue wrapT, float anisotropy)</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> object that defines how Allocations can be read as textures within a kernel. Samplers are used in conjunction with the rsSample runtime function to return values from normalized coordinates.</p> <p>Any <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> used with a <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> must have been created with RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE; using a <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> on an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> that was not created with RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE is undefined. </p> <p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01869">1869</a> of file <a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>.</p> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="afb48673e5fb2bad4bcc4ddb0a9ccad1e"></a><!-- doxytag: member="android::RSC::Sampler::CLAMP_LINEAR" ref="afb48673e5fb2bad4bcc4ddb0a9ccad1e" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::CLAMP_LINEAR </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to linear and wrap modes set to clamp.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="a73e3deb304f2026905678a7f34468682"></a><!-- doxytag: member="android::RSC::Sampler::CLAMP_LINEAR_MIP_LINEAR" ref="a73e3deb304f2026905678a7f34468682" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::CLAMP_LINEAR_MIP_LINEAR </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with mag set to linear, min linear mipmap linear, and wrap modes set to clamp.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="a903aec7929fdb94f378b5cecdb834f3b"></a><!-- doxytag: member="android::RSC::Sampler::CLAMP_NEAREST" ref="a903aec7929fdb94f378b5cecdb834f3b" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::CLAMP_NEAREST </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to nearest and wrap modes set to clamp.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="a579e236fabaca164d0639bcb9c95a169"></a><!-- doxytag: member="android::RSC::Sampler::create" ref="a579e236fabaca164d0639bcb9c95a169" args="(sp< RS > rs, RsSamplerValue min, RsSamplerValue mag, RsSamplerValue wrapS, RsSamplerValue wrapT, float anisotropy)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::create </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">RsSamplerValue </td> <td class="paramname"><em>min</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">RsSamplerValue </td> <td class="paramname"><em>mag</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">RsSamplerValue </td> <td class="paramname"><em>wrapS</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">RsSamplerValue </td> <td class="paramname"><em>wrapT</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>anisotropy</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a non-standard <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>RenderScript context </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">min</td><td>minification </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">mag</td><td>magnification </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">wrapS</td><td>S wrapping mode </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">wrapT</td><td>T wrapping mode </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">anisotropy</td><td>anisotropy setting </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ac4f94713027d23277a520f27f1522624"></a><!-- doxytag: member="android::RSC::Sampler::getAnisotropy" ref="ac4f94713027d23277a520f27f1522624" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float android::RSC::Sampler::getAnisotropy </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>anisotropy setting for the sampler </dd></dl> </div> </div> <a class="anchor" id="acaa10a3d84d99cd68d2274cbb427abb9"></a><!-- doxytag: member="android::RSC::Sampler::getMagnification" ref="acaa10a3d84d99cd68d2274cbb427abb9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RsSamplerValue android::RSC::Sampler::getMagnification </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>magnification setting for the sampler </dd></dl> </div> </div> <a class="anchor" id="a22c6f5b3bf6e430a0295ab99f65f3dca"></a><!-- doxytag: member="android::RSC::Sampler::getMinification" ref="a22c6f5b3bf6e430a0295ab99f65f3dca" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RsSamplerValue android::RSC::Sampler::getMinification </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>minification setting for the sampler </dd></dl> </div> </div> <a class="anchor" id="aaa21bc15543fcf02bbd688c38e14080f"></a><!-- doxytag: member="android::RSC::Sampler::getWrapS" ref="aaa21bc15543fcf02bbd688c38e14080f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RsSamplerValue android::RSC::Sampler::getWrapS </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>S wrapping mode for the sampler </dd></dl> </div> </div> <a class="anchor" id="a9515051eeea23c062d29ca8361114919"></a><!-- doxytag: member="android::RSC::Sampler::getWrapT" ref="a9515051eeea23c062d29ca8361114919" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RsSamplerValue android::RSC::Sampler::getWrapT </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>T wrapping mode for the sampler </dd></dl> </div> </div> <a class="anchor" id="a9f5abd387250e387399833f4932a4822"></a><!-- doxytag: member="android::RSC::Sampler::MIRRORED_REPEAT_LINEAR" ref="a9f5abd387250e387399833f4932a4822" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::MIRRORED_REPEAT_LINEAR </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to linear and wrap modes set to mirrored repeat.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="abee665de756da5272b6da5359ffd69a2"></a><!-- doxytag: member="android::RSC::Sampler::MIRRORED_REPEAT_LINEAR_MIP_LINEAR" ref="abee665de756da5272b6da5359ffd69a2" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::MIRRORED_REPEAT_LINEAR_MIP_LINEAR </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to linear and wrap modes set to mirrored repeat.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="a8d57f55223051c3efbfdfa74b0e362fe"></a><!-- doxytag: member="android::RSC::Sampler::MIRRORED_REPEAT_NEAREST" ref="a8d57f55223051c3efbfdfa74b0e362fe" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::MIRRORED_REPEAT_NEAREST </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to nearest and wrap modes set to mirrored repeat.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="a19d21b02c0cd1acc88b699a143c1ecf7"></a><!-- doxytag: member="android::RSC::Sampler::WRAP_LINEAR" ref="a19d21b02c0cd1acc88b699a143c1ecf7" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::WRAP_LINEAR </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to linear and wrap modes set to wrap.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="ab3861067ff6e53d576ba176961d27c59"></a><!-- doxytag: member="android::RSC::Sampler::WRAP_LINEAR_MIP_LINEAR" ref="ab3861067ff6e53d576ba176961d27c59" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::WRAP_LINEAR_MIP_LINEAR </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with mag set to linear, min linear mipmap linear, and wrap modes set to wrap.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <a class="anchor" id="a5703046e02361cff7d7e1aef7888fd7e"></a><!-- doxytag: member="android::RSC::Sampler::WRAP_NEAREST" ref="a5703046e02361cff7d7e1aef7888fd7e" args="(sp< RS > rs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>> android::RSC::Sampler::WRAP_NEAREST </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve a sampler with min and mag set to nearest and wrap modes set to wrap.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rs</td><td>Context to which the sampler will belong.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a></li> </ul> </div> </body> </html>