<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>NVIDIA CUDA Library: cudaGetSurfaceReference</title> <link href="customdoxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> </div> <div class="contents"> <div class="navpath"><a class="el" href="group__CUDART__SURFACE__DEPRECATED.html">Surface Reference Management [DEPRECATED]</a> </div> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td valign="top"> <div class="navtab"> <table> <tr><td class="navtab"><a class="qindexHL" href="group__CUDART__SURFACE__DEPRECATED_gb819f6ced4ccd9e3efed7834cb052a86.html#gb819f6ced4ccd9e3efed7834cb052a86">cudaGetSurfaceReference</a></td></tr> </table> </div> </td> <td valign="top"> <a class="anchor" name="gb819f6ced4ccd9e3efed7834cb052a86"></a><!-- doxytag: member="cuda_runtime_api.h::cudaGetSurfaceReference" ref="gb819f6ced4ccd9e3efed7834cb052a86" args="(const struct surfaceReference **surfref, const char *symbol)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__CUDART__TYPES_gf599e5b8b829ce7db0f5216928f6ecb6.html#gf599e5b8b829ce7db0f5216928f6ecb6">cudaError_t</a> cudaGetSurfaceReference </td> <td>(</td> <td class="paramtype">const struct <a class="el" href="structsurfaceReference.html">surfaceReference</a> ** </td> <td class="paramname"> <em>surfref</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>symbol</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>as of CUDA 4.1</dd></dl> Returns in <code>*surfref</code> the structure associated to the surface reference defined by symbol <code>symbol</code>.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>surfref</em> </td><td>- Surface associated with symbol </td></tr> <tr><td valign="top"></td><td valign="top"><em>symbol</em> </td><td>- Symbol to find surface reference for</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__CUDART__TYPES_g3f51e3575c2178246db0a94a430e0038.html#gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591">cudaSuccess</a>, <a class="el" href="group__CUDART__TYPES_g3f51e3575c2178246db0a94a430e0038.html#gg3f51e3575c2178246db0a94a430e0038aa711d1e9175231dc80eecb7b51936a3">cudaErrorInvalidSurface</a> </dd></dl> <dl class="note" compact><dt><b>Note:</b></dt><dd>Note that this function may also return error codes from previous, asynchronous launches.</dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__CUDART__SURFACE_g753092859c81512128807efe136bac31.html#g753092859c81512128807efe136bac31">cudaBindSurfaceToArray (C API)</a> </dd></dl> </div> </div><p> </td> </tr> </table> </div> <hr size="1"><address style="text-align: right;"><small> Generated by Doxygen for NVIDIA CUDA Library <a href="http://www.nvidia.com/cuda"><img src="nvidia_logo.jpg" alt="NVIDIA" align="middle" border="0" height="80"></a></small></address> </body> </html>