Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > nonfree-updates > by-pkgid > fd8445e7e4d58b8cfe6e0150bd441ee1 > files > 1147

nvidia-cuda-toolkit-devel-6.5.14-6.1.mga5.nonfree.x86_64.rpm

<!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" lang="en-us" xml:lang="en-us">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
      <meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
      <meta name="copyright" content="(C) Copyright 2005"></meta>
      <meta name="DC.rights.owner" content="(C) Copyright 2005"></meta>
      <meta name="DC.Type" content="cppModule"></meta>
      <meta name="DC.Title" content="Direct3D 10 Interoperability [DEPRECATED]"></meta>
      <meta name="abstract" content=""></meta>
      <meta name="description" content=""></meta>
      <meta name="DC.Format" content="XHTML"></meta>
      <meta name="DC.Identifier" content="group__CUDART__D3D10__DEPRECATED"></meta>
      <link rel="stylesheet" type="text/css" href="../common/formatting/commonltr.css"></link>
      <link rel="stylesheet" type="text/css" href="../common/formatting/site.css"></link>
      <title>CUDA Runtime API :: CUDA Toolkit Documentation</title>
      <!--[if lt IE 9]>
      <script src="../common/formatting/html5shiv-printshiv.min.js"></script>
      <![endif]-->
      <script type="text/javascript" charset="utf-8" src="../common/scripts/tynt/tynt.js"></script>
      <script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.min.js"></script>
      <script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.ba-hashchange.min.js"></script>
      <script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.scrollintoview.min.js"></script>
      <script type="text/javascript" src="../search/htmlFileList.js"></script>
      <script type="text/javascript" src="../search/htmlFileInfoList.js"></script>
      <script type="text/javascript" src="../search/nwSearchFnt.min.js"></script>
      <script type="text/javascript" src="../search/stemmers/en_stemmer.min.js"></script>
      <script type="text/javascript" src="../search/index-1.js"></script>
      <script type="text/javascript" src="../search/index-2.js"></script>
      <script type="text/javascript" src="../search/index-3.js"></script>
      <link rel="canonical" href="http://docs.nvidia.com/cuda/cuda-runtime-api/index.html"></link>
      <link rel="stylesheet" type="text/css" href="../common/formatting/qwcode.highlight.css"></link>
   </head>
   <body>
      
      <header id="header"><span id="company">NVIDIA</span><span id="site-title">CUDA Toolkit Documentation</span><form id="search" method="get" action="search">
            <input type="text" name="search-text"></input><fieldset id="search-location">
               <legend>Search In:</legend>
               <label><input type="radio" name="search-type" value="site"></input>Entire Site</label>
               <label><input type="radio" name="search-type" value="document"></input>Just This Document</label></fieldset>
            <button type="reset">clear search</button>
            <button id="submit" type="submit">search</button></form>
      </header>
      <div id="site-content">
         <nav id="site-nav">
            <div class="category closed"><a href="../index.html" title="The root of the site.">CUDA Toolkit
                  v6.5</a></div>
            <div class="category"><a href="index.html" title="CUDA Runtime API">CUDA Runtime API</a></div>
            <ul>
               <li>
                  <div class="section-link"><a href="api-sync-behavior.html#api-sync-behavior">1.&nbsp;API synchronization behavior </a></div>
               </li>
               <li>
                  <div class="section-link"><a href="stream-sync-behavior.html#stream-sync-behavior">2.&nbsp;Stream synchronization behavior</a></div>
               </li>
               <li>
                  <div class="section-link"><a href="modules.html#modules">3.&nbsp;Modules</a></div>
                  <ul>
                     <li>
                        <div class="section-link"><a href="group__CUDART__DEVICE.html#group__CUDART__DEVICE">3.1.&nbsp;Device Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__THREAD__DEPRECATED.html#group__CUDART__THREAD__DEPRECATED">3.2.&nbsp;Thread Management [DEPRECATED]</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__ERROR.html#group__CUDART__ERROR">3.3.&nbsp;Error Handling</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__STREAM.html#group__CUDART__STREAM">3.4.&nbsp;Stream Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__EVENT.html#group__CUDART__EVENT">3.5.&nbsp;Event Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__EXECUTION.html#group__CUDART__EXECUTION">3.6.&nbsp;Execution Control</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__OCCUPANCY.html#group__CUDART__OCCUPANCY">3.7.&nbsp;Occupancy</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__MEMORY.html#group__CUDART__MEMORY">3.8.&nbsp;Memory Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__UNIFIED.html#group__CUDART__UNIFIED">3.9.&nbsp;Unified Addressing</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__PEER.html#group__CUDART__PEER">3.10.&nbsp;Peer Device Memory Access</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__OPENGL.html#group__CUDART__OPENGL">3.11.&nbsp;OpenGL Interoperability</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__OPENGL__DEPRECATED.html#group__CUDART__OPENGL__DEPRECATED">3.12.&nbsp;OpenGL Interoperability [DEPRECATED]</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__D3D9.html#group__CUDART__D3D9">3.13.&nbsp;Direct3D 9 Interoperability</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__D3D9__DEPRECATED.html#group__CUDART__D3D9__DEPRECATED">3.14.&nbsp;Direct3D 9 Interoperability [DEPRECATED]</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__D3D10.html#group__CUDART__D3D10">3.15.&nbsp;Direct3D 10 Interoperability</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED">3.16.&nbsp;Direct3D 10 Interoperability [DEPRECATED]</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__D3D11.html#group__CUDART__D3D11">3.17.&nbsp;Direct3D 11 Interoperability</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__D3D11__DEPRECATED.html#group__CUDART__D3D11__DEPRECATED">3.18.&nbsp;Direct3D 11 Interoperability [DEPRECATED]</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__VDPAU.html#group__CUDART__VDPAU">3.19.&nbsp;VDPAU Interoperability</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__INTEROP.html#group__CUDART__INTEROP">3.20.&nbsp;Graphics Interoperability</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__TEXTURE.html#group__CUDART__TEXTURE">3.21.&nbsp;Texture Reference Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__SURFACE.html#group__CUDART__SURFACE">3.22.&nbsp;Surface Reference Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__TEXTURE__OBJECT.html#group__CUDART__TEXTURE__OBJECT">3.23.&nbsp;Texture Object Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__SURFACE__OBJECT.html#group__CUDART__SURFACE__OBJECT">3.24.&nbsp;Surface Object Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART____VERSION.html#group__CUDART____VERSION">3.25.&nbsp;Version Management</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__HIGHLEVEL.html#group__CUDART__HIGHLEVEL">3.26.&nbsp;C++ API Routines</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__DRIVER.html#group__CUDART__DRIVER">3.27.&nbsp;Interactions with the CUDA Driver API</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__PROFILER.html#group__CUDART__PROFILER">3.28.&nbsp;Profiler Control</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES">3.29.&nbsp;Data types used by CUDA Runtime</a></div>
                     </li>
                  </ul>
               </li>
               <li>
                  <div class="section-link"><a href="annotated.html#annotated">4.&nbsp;Data Structures</a></div>
                  <ul>
                     <li>
                        <div class="section-link"><a href="class____cudaOccupancyB2DHelper.html#class____cudaOccupancyB2DHelper">4.1.&nbsp;__cudaOccupancyB2DHelper</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaChannelFormatDesc.html#structcudaChannelFormatDesc">4.2.&nbsp;cudaChannelFormatDesc</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaDeviceProp.html#structcudaDeviceProp">4.3.&nbsp;cudaDeviceProp</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaExtent.html#structcudaExtent">4.4.&nbsp;cudaExtent</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaFuncAttributes.html#structcudaFuncAttributes">4.5.&nbsp;cudaFuncAttributes</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaIpcEventHandle__t.html#structcudaIpcEventHandle__t">4.6.&nbsp;cudaIpcEventHandle_t</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaIpcMemHandle__t.html#structcudaIpcMemHandle__t">4.7.&nbsp;cudaIpcMemHandle_t</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaMemcpy3DParms.html#structcudaMemcpy3DParms">4.8.&nbsp;cudaMemcpy3DParms</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaMemcpy3DPeerParms.html#structcudaMemcpy3DPeerParms">4.9.&nbsp;cudaMemcpy3DPeerParms</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaPitchedPtr.html#structcudaPitchedPtr">4.10.&nbsp;cudaPitchedPtr</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaPointerAttributes.html#structcudaPointerAttributes">4.11.&nbsp;cudaPointerAttributes</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaPos.html#structcudaPos">4.12.&nbsp;cudaPos</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaResourceDesc.html#structcudaResourceDesc">4.13.&nbsp;cudaResourceDesc</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaResourceViewDesc.html#structcudaResourceViewDesc">4.14.&nbsp;cudaResourceViewDesc</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structcudaTextureDesc.html#structcudaTextureDesc">4.15.&nbsp;cudaTextureDesc</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structsurfaceReference.html#structsurfaceReference">4.16.&nbsp;surfaceReference</a></div>
                     </li>
                     <li>
                        <div class="section-link"><a href="structtextureReference.html#structtextureReference">4.17.&nbsp;textureReference</a></div>
                     </li>
                  </ul>
               </li>
               <li>
                  <div class="section-link"><a href="functions.html#functions">5.&nbsp;Data Fields</a></div>
               </li>
               <li>
                  <div class="section-link"><a href="deprecated.html#deprecated">6.&nbsp;Deprecated List</a></div>
               </li>
               <li>
                  <div class="section-link"><a href="notices-header.html#notices-header">Notices</a></div>
                  <ul></ul>
               </li>
            </ul>
         </nav>
         <div id="resize-nav"></div>
         <nav id="search-results">
            <h2>Search Results</h2>
            <ol></ol>
         </nav>
         
         <div id="contents-container">
            <div id="breadcrumbs-container">
               <div id="breadcrumbs"><a href="group__CUDART__D3D10.html" shape="rect">&lt; Previous</a> | <a href="group__CUDART__D3D11.html" shape="rect">Next &gt;</a></div>
               <div id="release-info">CUDA Runtime API
                  (<a href="../../pdf/CUDA_Runtime_API.pdf">PDF</a>)
                  -
                  
                  v6.5
                  (<a href="https://developer.nvidia.com/cuda-toolkit-archive">older</a>)
                  -
                  Last updated August 1, 2014
                  -
                  <a href="mailto:cudatools@nvidia.com?subject=CUDA Toolkit Documentation Feedback: CUDA Runtime API">Send Feedback</a>
                  -
                  <span class="st_facebook"></span><span class="st_twitter"></span><span class="st_linkedin"></span><span class="st_reddit"></span><span class="st_slashdot"></span><span class="st_tumblr"></span><span class="st_sharethis"></span></div>
            </div>
            <article id="contents">
               <div class="topic reference apiRef apiPackage cppModule" id="group__CUDART__D3D10__DEPRECATED"><a name="group__CUDART__D3D10__DEPRECATED" shape="rect">
                     <!-- --></a><h2 class="topictitle2 cppModule">3.16.&nbsp;Direct3D 10 Interoperability [DEPRECATED]</h2>
                  <div class="section">
                     <p>This section describes deprecated Direct3D 10 interoperability functions. </p>
                  </div>
                  <h3 class="fake_sectiontitle member_header">Enumerations</h3>
                  <dl class="members">
                     <dt><span class="member_type">enum&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1ga4a3d2d5f22faaaa86eba15ecff30d98" shape="rect">cudaD3D10MapFlags</a></span></dt>
                     <dd class="shortdesc"><span></span><span class="desc"></span></dd>
                     <dt><span class="member_type">enum&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g76be8c7eba1b3e3c54c6c9b6b65510de" shape="rect">cudaD3D10RegisterFlags</a></span></dt>
                     <dd class="shortdesc"><span></span><span class="desc"></span></dd>
                  </dl>
                  <h3 class="fake_sectiontitle member_header">Functions</h3>
                  <dl class="members">
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1gade51543178508e9dbb5a28a46810442" shape="rect">cudaD3D10GetDirect3DDevice</a> (  ID3D10Device**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppD3D10Device</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Gets the Direct3D device against which the current CUDA context was created. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g07bb5ad7c6a8b8417f95f6210dcb2863" shape="rect">cudaD3D10MapResources</a> (  int <span>&nbsp;</span><span class="keyword keyword apiItemName">count</span>, ID3D10Resource**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppResources</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Maps Direct3D Resources for access by CUDA. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g3e2c5c1e4a3717ef62f04849698e29e0" shape="rect">cudaD3D10RegisterResource</a> (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">flags</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Registers a Direct3D 10 resource for access by CUDA. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g280bd994b759651c2b970271d43707a5" shape="rect">cudaD3D10ResourceGetMappedArray</a> (  cudaArray**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppArray</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Gets an array through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g7facb0cd2235701f25b45c8d6091d2f6" shape="rect">cudaD3D10ResourceGetMappedPitch</a> (  size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pPitch</span>, size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pPitchSlice</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Gets the pitch of a subresource of a Direct3D resource which has been mapped for access by CUDA. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" shape="rect">cudaD3D10ResourceGetMappedPointer</a> (  void**<span>&nbsp;</span><span class="keyword keyword apiItemName">pPointer</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g43af14b40baf79e6913cb150d7ee8f3c" shape="rect">cudaD3D10ResourceGetMappedSize</a> (  size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pSize</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Gets the size of a subresource of a Direct3D resource which has been mapped for access by CUDA. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g8f9aa2ce6edfb4807fc4e41ef79cbadb" shape="rect">cudaD3D10ResourceGetSurfaceDimensions</a> (  size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pWidth</span>, size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pHeight</span>, size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pDepth</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Gets the dimensions of a registered Direct3D surface. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g0633413776593eb44c89962782e27852" shape="rect">cudaD3D10ResourceSetMapFlags</a> (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">flags</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Set usage flags for mapping a Direct3D resource. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1geec2934147774dd7a611df971a548675" shape="rect">cudaD3D10SetDirect3DDevice</a> (  ID3D10Device*<span>&nbsp;</span><span class="keyword keyword apiItemName">pD3D10Device</span>, int <span>&nbsp;</span><span class="keyword keyword apiItemName">device</span> = <span class="ph ph apiData">-1</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Sets the Direct3D 10 device to use for interoperability with a CUDA device. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1gf5f768abab8b34458d0911e7092f8afb" shape="rect">cudaD3D10UnmapResources</a> (  int <span>&nbsp;</span><span class="keyword keyword apiItemName">count</span>, ID3D10Resource**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppResources</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Unmaps Direct3D resources. </span></dd>
                     <dt><span class="member_type"><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a>&nbsp;</span><span class="member_name"><a href="#group__CUDART__D3D10__DEPRECATED_1g30f187acd639f05de8a2d9c4bc9b9221" shape="rect">cudaD3D10UnregisterResource</a> (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span> ) </span></dt>
                     <dd class="shortdesc"><span></span><span class="desc">Unregisters a Direct3D resource. </span></dd>
                  </dl>
                  <div class="description">
                     <h3 class="sectiontitle">Enumerations</h3>
                     <dl class="description">
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1ga4a3d2d5f22faaaa86eba15ecff30d98" id="group__CUDART__D3D10__DEPRECATED_1ga4a3d2d5f22faaaa86eba15ecff30d98" shape="rect">
                              <!-- --></a><span>enum cudaD3D10MapFlags</span></dt>
                        <dd class="description">
                           <div class="section">
                              <p>CUDA D3D10 Map Flags </p>
                           </div>
                           <div class="enum-members">
                              <h6 class="enumerator_header">
                                 Values
                                 
                              </h6>
                              <dl class="enumerator">
                                 <dt><span class="enum-member-name-def">cudaD3D10MapFlagsNone = <span class="ph ph apiData">0</span></span></dt>
                                 <dd>Default; Assume resource can be read/written </dd>
                                 <dt><span class="enum-member-name-def">cudaD3D10MapFlagsReadOnly = <span class="ph ph apiData">1</span></span></dt>
                                 <dd>CUDA kernels will not write to this resource </dd>
                                 <dt><span class="enum-member-name-def">cudaD3D10MapFlagsWriteDiscard = <span class="ph ph apiData">2</span></span></dt>
                                 <dd>CUDA kernels will only write to and will not read from this resource </dd>
                              </dl>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g76be8c7eba1b3e3c54c6c9b6b65510de" id="group__CUDART__D3D10__DEPRECATED_1g76be8c7eba1b3e3c54c6c9b6b65510de" shape="rect">
                              <!-- --></a><span>enum cudaD3D10RegisterFlags</span></dt>
                        <dd class="description">
                           <div class="section">
                              <p>CUDA D3D10 Register Flags </p>
                           </div>
                           <div class="enum-members">
                              <h6 class="enumerator_header">
                                 Values
                                 
                              </h6>
                              <dl class="enumerator">
                                 <dt><span class="enum-member-name-def">cudaD3D10RegisterFlagsNone = <span class="ph ph apiData">0</span></span></dt>
                                 <dd>Default; Resource can be accessed through a void* </dd>
                                 <dt><span class="enum-member-name-def">cudaD3D10RegisterFlagsArray = <span class="ph ph apiData">1</span></span></dt>
                                 <dd>Resource can be accessed through a CUarray* </dd>
                              </dl>
                           </div>
                        </dd>
                     </dl>
                  </div>
                  <div class="description">
                     <h3 class="sectiontitle">Functions</h3>
                     <dl class="description">
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1gade51543178508e9dbb5a28a46810442" id="group__CUDART__D3D10__DEPRECATED_1gade51543178508e9dbb5a28a46810442" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10GetDirect3DDevice (  ID3D10Device**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppD3D10Device</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Gets the Direct3D device against which the current CUDA context was created. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">ppD3D10Device</span></tt></dt>
                                 <dd>- Returns the Direct3D device for this thread</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000017" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 5.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>This function is deprecated and should no longer be used. It is no longer necessary to associate a CUDA device with a D3D10
                                 device in order to achieve maximum interoperability performance.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1geec2934147774dd7a611df971a548675" title="Sets the Direct3D 10 device to use for interoperability with a CUDA device." shape="rect">cudaD3D10SetDirect3DDevice</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g07bb5ad7c6a8b8417f95f6210dcb2863" id="group__CUDART__D3D10__DEPRECATED_1g07bb5ad7c6a8b8417f95f6210dcb2863" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10MapResources (  int <span>&nbsp;</span><span class="keyword keyword apiItemName">count</span>, ID3D10Resource**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppResources</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Maps Direct3D Resources for access by CUDA. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">count</span></tt></dt>
                                 <dd>- Number of resources to map for CUDA </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">ppResources</span></tt></dt>
                                 <dd>- Resources to map for CUDA</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000021" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Maps the <tt class="ph tt code">count</tt> Direct3D resources in <tt class="ph tt code">ppResources</tt> for access by CUDA.
                              </p>
                              <p class="p">The resources in <tt class="ph tt code">ppResources</tt> may be accessed in CUDA kernels until they are unmapped. Direct3D should not access any resources while they are mapped by
                                 CUDA. If an application does so, the results are undefined.
                              </p>
                              <p class="p">This function provides the synchronization guarantee that any Direct3D calls issued before <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g07bb5ad7c6a8b8417f95f6210dcb2863" title="Maps Direct3D Resources for access by CUDA." shape="rect">cudaD3D10MapResources()</a> will complete before any CUDA kernels issued after <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g07bb5ad7c6a8b8417f95f6210dcb2863" title="Maps Direct3D Resources for access by CUDA." shape="rect">cudaD3D10MapResources()</a> begin.
                              </p>
                              <p class="p">If any of <tt class="ph tt code">ppResources</tt> have not been registered for use with CUDA or if <tt class="ph tt code">ppResources</tt> contains any duplicate entries then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If any of <tt class="ph tt code">ppResources</tt> are presently mapped for access by CUDA then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1gb7064fb72e54d89d0666e192b45d35cc" title="Map graphics resources for access by CUDA." shape="rect">cudaGraphicsMapResources</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g3e2c5c1e4a3717ef62f04849698e29e0" id="group__CUDART__D3D10__DEPRECATED_1g3e2c5c1e4a3717ef62f04849698e29e0" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10RegisterResource (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">flags</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Registers a Direct3D 10 resource for access by CUDA. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Resource to register </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">flags</span></tt></dt>
                                 <dd>- Parameters for resource registration</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038938c6e8b96ecde62e3ab5137156f739a" shape="rect">cudaErrorInvalidDevice</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000019" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Registers the Direct3D resource <tt class="ph tt code">pResource</tt> for access by CUDA.
                              </p>
                              <p class="p">If this call is successful, then the application will be able to map and unmap this resource until it is unregistered through
                                 <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g30f187acd639f05de8a2d9c4bc9b9221" title="Unregisters a Direct3D resource." shape="rect">cudaD3D10UnregisterResource()</a>. Also on success, this call will increase the internal reference count on <tt class="ph tt code">pResource</tt>. This reference count will be decremented when this resource is unregistered through <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g30f187acd639f05de8a2d9c4bc9b9221" title="Unregisters a Direct3D resource." shape="rect">cudaD3D10UnregisterResource()</a>.
                              </p>
                              <p class="p">This call potentially has a high-overhead and should not be called every frame in interactive applications.</p>
                              <p class="p">The type of <tt class="ph tt code">pResource</tt> must be one of the following:
                              </p>
                              <p class="p">
                                 <ul class="ul">
                                    <li class="li">
                                       <p class="p">ID3D10Buffer: Cannot be used with <tt class="ph tt code">flags</tt> set to <tt class="ph tt code">cudaD3D10RegisterFlagsArray</tt>.
                                       </p>
                                    </li>
                                    <li class="li">
                                       <p class="p">ID3D10Texture1D: No restrictions.</p>
                                    </li>
                                    <li class="li">
                                       <p class="p">ID3D10Texture2D: No restrictions.</p>
                                    </li>
                                    <li class="li">
                                       <p class="p">ID3D10Texture3D: No restrictions.</p>
                                    </li>
                                 </ul>
                              </p>
                              <p class="p">The <tt class="ph tt code">flags</tt> argument specifies the mechanism through which CUDA will access the Direct3D resource. The following values are allowed.
                              </p>
                              <p class="p">
                                 <ul class="ul">
                                    <li class="li">
                                       <p class="p"><a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gg76be8c7eba1b3e3c54c6c9b6b65510de95fc2f4b886104a90e755c421cef6e89" shape="rect">cudaD3D10RegisterFlagsNone</a>: Specifies that CUDA will access this resource through a <tt class="ph tt code">void*</tt>. The pointer, size, and pitch for each subresource of this resource may be queried through <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" title="Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedPointer()</a>, <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g43af14b40baf79e6913cb150d7ee8f3c" title="Gets the size of a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedSize()</a>, and <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g7facb0cd2235701f25b45c8d6091d2f6" title="Gets the pitch of a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedPitch()</a> respectively. This option is valid for all resource types.
                                       </p>
                                    </li>
                                    <li class="li">
                                       <p class="p"><a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gg76be8c7eba1b3e3c54c6c9b6b65510dea94840c0f64372c6a5c426e527210ff8" shape="rect">cudaD3D10RegisterFlagsArray</a>: Specifies that CUDA will access this resource through a <tt class="ph tt code">CUarray</tt> queried on a sub-resource basis through <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1g280bd994b759651c2b970271d43707a5" title="Gets an array through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedArray()</a>. This option is only valid for resources of type ID3D10Texture1D, ID3D10Texture2D, and ID3D10Texture3D.
                                       </p>
                                    </li>
                                 </ul>
                              </p>
                              <p class="p">Not all Direct3D resources of the above types may be used for interoperability with CUDA. The following are some limitations.</p>
                              <p class="p">
                                 <ul class="ul">
                                    <li class="li">
                                       <p class="p">The primary rendertarget may not be registered with CUDA.</p>
                                    </li>
                                    <li class="li">
                                       <p class="p">Resources allocated as shared may not be registered with CUDA.</p>
                                    </li>
                                    <li class="li">
                                       <p class="p">Textures which are not of a format which is 1, 2, or 4 channels of 8, 16, or 32-bit integer or floating-point data cannot
                                          be shared.
                                       </p>
                                    </li>
                                    <li class="li">
                                       <p class="p">Surfaces of depth or stencil formats cannot be shared.</p>
                                    </li>
                                 </ul>
                              </p>
                              <p class="p">If Direct3D interoperability is not initialized on this context then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038938c6e8b96ecde62e3ab5137156f739a" shape="rect">cudaErrorInvalidDevice</a> is returned. If <tt class="ph tt code">pResource</tt> is of incorrect type or is already registered then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> cannot be registered then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__D3D10.html#group__CUDART__D3D10_1g6b09dce4d78b948477dd5c451a2725fa" title="Registers a Direct3D 10 resource for access by CUDA." shape="rect">cudaGraphicsD3D10RegisterResource</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g280bd994b759651c2b970271d43707a5" id="group__CUDART__D3D10__DEPRECATED_1g280bd994b759651c2b970271d43707a5" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10ResourceGetMappedArray (  cudaArray**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppArray</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Gets an array through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">ppArray</span></tt></dt>
                                 <dd>- Returned array corresponding to subresource </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Mapped resource to access </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">subResource</span></tt></dt>
                                 <dd>- Subresource of pResource to access</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000023" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Returns in <tt class="ph tt code">*ppArray</tt> an array through which the subresource of the mapped Direct3D resource <tt class="ph tt code">pResource</tt> which corresponds to <tt class="ph tt code">subResource</tt> may be accessed. The value set in <tt class="ph tt code">ppArray</tt> may change every time that <tt class="ph tt code">pResource</tt> is mapped.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> is not registered, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gg76be8c7eba1b3e3c54c6c9b6b65510dea94840c0f64372c6a5c426e527210ff8" shape="rect">cudaD3D10RegisterFlagsArray</a>, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p">For usage requirements of the <tt class="ph tt code">subResource</tt> parameter, see <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" title="Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedPointer()</a>.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1gfc796cc80e7a054b13d90afde659546e" title="Get an array through which to access a subresource of a mapped graphics resource." shape="rect">cudaGraphicsSubResourceGetMappedArray</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g7facb0cd2235701f25b45c8d6091d2f6" id="group__CUDART__D3D10__DEPRECATED_1g7facb0cd2235701f25b45c8d6091d2f6" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10ResourceGetMappedPitch (  size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pPitch</span>, size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pPitchSlice</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Gets the pitch of a subresource of a Direct3D resource which has been mapped for access by CUDA. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pPitch</span></tt></dt>
                                 <dd>- Returned pitch of subresource </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pPitchSlice</span></tt></dt>
                                 <dd>- Returned Z-slice pitch of subresource </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Mapped resource to access </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">subResource</span></tt></dt>
                                 <dd>- Subresource of pResource to access</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000028" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Returns in <tt class="ph tt code">*pPitch</tt> and <tt class="ph tt code">*pPitchSlice</tt> the pitch and Z-slice pitch of the subresource of the mapped Direct3D resource <tt class="ph tt code">pResource</tt>, which corresponds to <tt class="ph tt code">subResource</tt>. The values set in <tt class="ph tt code">pPitch</tt> and <tt class="ph tt code">pPitchSlice</tt> may change every time that <tt class="ph tt code">pResource</tt> is mapped.
                              </p>
                              <p class="p">The pitch and Z-slice pitch values may be used to compute the location of a sample on a surface as follows.</p>
                              <p class="p">For a 2D surface, the byte offset of the sample at position <strong class="ph b">x</strong>, <strong class="ph b">y</strong> from the base pointer of the surface is:
                              </p>
                              <p class="p"><strong class="ph b">y</strong> * <strong class="ph b">pitch</strong> + (<strong class="ph b">bytes per pixel</strong>) * <strong class="ph b">x</strong></p>
                              <p class="p">For a 3D surface, the byte offset of the sample at position <strong class="ph b">x</strong>, <strong class="ph b">y</strong>, <strong class="ph b">z</strong> from the base pointer of the surface is:
                              </p>
                              <p class="p"><strong class="ph b">z*</strong><strong class="ph b">slicePitch</strong> + <strong class="ph b">y</strong> * <strong class="ph b">pitch</strong> + (<strong class="ph b">bytes per pixel</strong>) * <strong class="ph b">x</strong></p>
                              <p class="p">Both parameters <tt class="ph tt code">pPitch</tt> and <tt class="ph tt code">pPitchSlice</tt> are optional and may be set to NULL.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> is not of type ID3D10Texture1D, ID3D10Texture2D, or ID3D10Texture3D, or if <tt class="ph tt code">pResource</tt> has not been registered for use with CUDA, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gg76be8c7eba1b3e3c54c6c9b6b65510de95fc2f4b886104a90e755c421cef6e89" shape="rect">cudaD3D10RegisterFlagsNone</a>, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped for access by CUDA then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p">For usage requirements of the <tt class="ph tt code">subResource</tt> parameter see <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" title="Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedPointer()</a>.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1gfc796cc80e7a054b13d90afde659546e" title="Get an array through which to access a subresource of a mapped graphics resource." shape="rect">cudaGraphicsSubResourceGetMappedArray</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" id="group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10ResourceGetMappedPointer (  void**<span>&nbsp;</span><span class="keyword keyword apiItemName">pPointer</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pPointer</span></tt></dt>
                                 <dd>- Returned pointer corresponding to subresource </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Mapped resource to access </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">subResource</span></tt></dt>
                                 <dd>- Subresource of pResource to access</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000026" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Returns in <tt class="ph tt code">*pPointer</tt> the base pointer of the subresource of the mapped Direct3D resource <tt class="ph tt code">pResource</tt> which corresponds to <tt class="ph tt code">subResource</tt>. The value set in <tt class="ph tt code">pPointer</tt> may change every time that <tt class="ph tt code">pResource</tt> is mapped.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> is not registered, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags <a class="xref" href="group__CUDART__D3D9__DEPRECATED.html#group__CUDART__D3D9__DEPRECATED_1ggcdebbc14eb83032da31bd75503cddfea10cd58f205c593368626b4ec54a54744" shape="rect">cudaD3D9RegisterFlagsNone</a>, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> is of type ID3D10Buffer then <tt class="ph tt code">subResource</tt> must be 0. If <tt class="ph tt code">pResource</tt> is of any other type, then the value of <tt class="ph tt code">subResource</tt> must come from the subresource calculation in D3D10CalcSubResource().
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1ge7f893864a3d38a630e71a99f5a4e17f" title="Get an device pointer through which to access a mapped graphics resource." shape="rect">cudaGraphicsResourceGetMappedPointer</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g43af14b40baf79e6913cb150d7ee8f3c" id="group__CUDART__D3D10__DEPRECATED_1g43af14b40baf79e6913cb150d7ee8f3c" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10ResourceGetMappedSize (  size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pSize</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Gets the size of a subresource of a Direct3D resource which has been mapped for access by CUDA. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pSize</span></tt></dt>
                                 <dd>- Returned size of subresource </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Mapped resource to access </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">subResource</span></tt></dt>
                                 <dd>- Subresource of pResource to access</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000027" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Returns in <tt class="ph tt code">*pSize</tt> the size of the subresource of the mapped Direct3D resource <tt class="ph tt code">pResource</tt> which corresponds to <tt class="ph tt code">subResource</tt>. The value set in <tt class="ph tt code">pSize</tt> may change every time that <tt class="ph tt code">pResource</tt> is mapped.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> has not been registered for use with CUDA then cudaErrorInvalidHandle is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gg76be8c7eba1b3e3c54c6c9b6b65510de95fc2f4b886104a90e755c421cef6e89" shape="rect">cudaD3D10RegisterFlagsNone</a>, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped for access by CUDA then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p">For usage requirements of the <tt class="ph tt code">subResource</tt> parameter see <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" title="Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedPointer()</a>.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1ge7f893864a3d38a630e71a99f5a4e17f" title="Get an device pointer through which to access a mapped graphics resource." shape="rect">cudaGraphicsResourceGetMappedPointer</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g8f9aa2ce6edfb4807fc4e41ef79cbadb" id="group__CUDART__D3D10__DEPRECATED_1g8f9aa2ce6edfb4807fc4e41ef79cbadb" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10ResourceGetSurfaceDimensions (  size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pWidth</span>, size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pHeight</span>, size_t*<span>&nbsp;</span><span class="keyword keyword apiItemName">pDepth</span>, ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">subResource</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Gets the dimensions of a registered Direct3D surface. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pWidth</span></tt></dt>
                                 <dd>- Returned width of surface </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pHeight</span></tt></dt>
                                 <dd>- Returned height of surface </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pDepth</span></tt></dt>
                                 <dd>- Returned depth of surface </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Registered resource to access </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">subResource</span></tt></dt>
                                 <dd>- Subresource of pResource to access</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, 
                              </p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000025" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Returns in <tt class="ph tt code">*pWidth</tt>, <tt class="ph tt code">*pHeight</tt>, and <tt class="ph tt code">*pDepth</tt> the dimensions of the subresource of the mapped Direct3D resource <tt class="ph tt code">pResource</tt> which corresponds to <tt class="ph tt code">subResource</tt>.
                              </p>
                              <p class="p">Since anti-aliased surfaces may have multiple samples per pixel, it is possible that the dimensions of a resource will be
                                 an integer factor larger than the dimensions reported by the Direct3D runtime.
                              </p>
                              <p class="p">The parameters <tt class="ph tt code">pWidth</tt>, <tt class="ph tt code">pHeight</tt>, and <tt class="ph tt code">pDepth</tt> are optional. For 2D surfaces, the value returned in <tt class="ph tt code">*pDepth</tt> will be 0.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> is not of type ID3D10Texture1D, ID3D10Texture2D, or ID3D10Texture3D, or if <tt class="ph tt code">pResource</tt> has not been registered for use with CUDA, then cudaErrorInvalidHandle is returned.
                              </p>
                              <p class="p">For usage requirements of <tt class="ph tt code">subResource</tt> parameters see <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1ge4f47fb18bb8489188afdef81959aae3" title="Gets a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cudaD3D10ResourceGetMappedPointer()</a>.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1gfc796cc80e7a054b13d90afde659546e" title="Get an array through which to access a subresource of a mapped graphics resource." shape="rect">cudaGraphicsSubResourceGetMappedArray</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g0633413776593eb44c89962782e27852" id="group__CUDART__D3D10__DEPRECATED_1g0633413776593eb44c89962782e27852" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10ResourceSetMapFlags (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">flags</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Set usage flags for mapping a Direct3D resource. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Registered resource to set flags for </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">flags</span></tt></dt>
                                 <dd>- Parameters for resource mapping</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a>, 
                              </p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000024" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Set usage flags for mapping the Direct3D resource <tt class="ph tt code">pResource</tt>.
                              </p>
                              <p class="p">Changes to flags will take effect the next time <tt class="ph tt code">pResource</tt> is mapped. The <tt class="ph tt code">flags</tt> argument may be any of the following:
                              </p>
                              <p class="p">
                                 <ul class="ul">
                                    <li class="li">
                                       <p class="p"><a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gga4a3d2d5f22faaaa86eba15ecff30d984b3d6c7f0423a367ee96ea6b99d9bf23" shape="rect">cudaD3D10MapFlagsNone</a>: Specifies no hints about how this resource will be used. It is therefore assumed that this resource will be read from and
                                          written to by CUDA kernels. This is the default value.
                                       </p>
                                    </li>
                                    <li class="li">
                                       <p class="p"><a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gga4a3d2d5f22faaaa86eba15ecff30d98047c62be6ba2b54245191ed1f3d43416" shape="rect">cudaD3D10MapFlagsReadOnly</a>: Specifies that CUDA kernels which access this resource will not write to this resource.
                                       </p>
                                    </li>
                                    <li class="li">
                                       <p class="p"><a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gga4a3d2d5f22faaaa86eba15ecff30d98a3d0f7902945d7f13014be950b93577a" shape="rect">cudaD3D10MapFlagsWriteDiscard</a>: Specifies that CUDA kernels which access this resource will not read from this resource and will write over the entire contents
                                          of the resource, so none of the data previously stored in the resource will be preserved.
                                       </p>
                                    </li>
                                 </ul>
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> has not been registered for use with CUDA then cudaErrorInvalidHandle is returned. If <tt class="ph tt code">pResource</tt> is presently mapped for access by CUDA then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1g4b7e5e82663df019a4bcf03d50835465" title="Set usage flags for mapping a graphics resource." shape="rect">cudaGraphicsResourceSetMapFlags</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1geec2934147774dd7a611df971a548675" id="group__CUDART__D3D10__DEPRECATED_1geec2934147774dd7a611df971a548675" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10SetDirect3DDevice (  ID3D10Device*<span>&nbsp;</span><span class="keyword keyword apiItemName">pD3D10Device</span>, int <span>&nbsp;</span><span class="keyword keyword apiItemName">device</span> = <span class="ph ph apiData">-1</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Sets the Direct3D 10 device to use for interoperability with a CUDA device. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pD3D10Device</span></tt></dt>
                                 <dd>- Direct3D device to use for interoperability </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">device</span></tt></dt>
                                 <dd>- The CUDA device to use. This device must be among the devices returned when querying <a class="xref" href="group__CUDART__D3D10.html#group__CUDART__D3D10_1gg1e9ffdd1c631cab046c7d7b64e187f78e91df6bb0bf994be807d0acec5694f30" shape="rect">cudaD3D10DeviceListAll</a> from <a class="xref" href="group__CUDART__D3D10.html#group__CUDART__D3D10_1g8071f1bbd62b11e28466d5905d65205a" title="Gets the CUDA devices corresponding to a Direct3D 10 device." shape="rect">cudaD3D10GetDevices</a>, may be set to -1 to automatically select an appropriate CUDA device.
                                 </dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038ce7993a88ecf2c57b8102d55d997a18c" shape="rect">cudaErrorInitializationError</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00383e8aef5398ee38e28ed41e357b48917c" shape="rect">cudaErrorInvalidValue</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038a906ddf08d574274bf7334adb1497550" shape="rect">cudaErrorSetOnActiveProcess</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000018" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 5.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>This function is deprecated and should no longer be used. It is no longer necessary to associate a CUDA device with a D3D10
                                 device in order to achieve maximum interoperability performance.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__D3D10.html#group__CUDART__D3D10_1gce1b0ffcd12555fcf4abcb6b897014bd" title="Gets the device number for an adapter." shape="rect">cudaD3D10GetDevice</a>, <a class="xref" href="group__CUDART__D3D10.html#group__CUDART__D3D10_1g6b09dce4d78b948477dd5c451a2725fa" title="Registers a Direct3D 10 resource for access by CUDA." shape="rect">cudaGraphicsD3D10RegisterResource</a>, <a class="xref" href="group__CUDART__DEVICE.html#group__CUDART__DEVICE_1gdcc2c6f914eb9461565b12648faa5e28" title="Destroy all allocations and reset all state on the current device in the current process." shape="rect">cudaDeviceReset</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1gf5f768abab8b34458d0911e7092f8afb" id="group__CUDART__D3D10__DEPRECATED_1gf5f768abab8b34458d0911e7092f8afb" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10UnmapResources (  int <span>&nbsp;</span><span class="keyword keyword apiItemName">count</span>, ID3D10Resource**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppResources</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Unmaps Direct3D resources. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">count</span></tt></dt>
                                 <dd>- Number of resources to unmap for CUDA </dd>
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">ppResources</span></tt></dt>
                                 <dd>- Resources to unmap for CUDA</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000022" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Unmaps the <tt class="ph tt code">count</tt> Direct3D resource in <tt class="ph tt code">ppResources</tt>.
                              </p>
                              <p class="p">This function provides the synchronization guarantee that any CUDA kernels issued before <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gf5f768abab8b34458d0911e7092f8afb" title="Unmaps Direct3D resources." shape="rect">cudaD3D10UnmapResources()</a> will complete before any Direct3D calls issued after <a class="xref" href="group__CUDART__D3D10__DEPRECATED.html#group__CUDART__D3D10__DEPRECATED_1gf5f768abab8b34458d0911e7092f8afb" title="Unmaps Direct3D resources." shape="rect">cudaD3D10UnmapResources()</a> begin.
                              </p>
                              <p class="p">If any of <tt class="ph tt code">ppResources</tt> have not been registered for use with CUDA or if <tt class="ph tt code">ppResources</tt> contains any duplicate entries, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned. If any of <tt class="ph tt code">ppResources</tt> are not presently mapped for access by CUDA then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a> is returned.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1gc4dcf300df27f8cf51a89f0287b07861" title="Unmap graphics resources." shape="rect">cudaGraphicsUnmapResources</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                        <dt class="description"><a name="group__CUDART__D3D10__DEPRECATED_1g30f187acd639f05de8a2d9c4bc9b9221" id="group__CUDART__D3D10__DEPRECATED_1g30f187acd639f05de8a2d9c4bc9b9221" shape="rect">
                              <!-- --></a><span><a href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gf599e5b8b829ce7db0f5216928f6ecb6" title="" shape="rect">cudaError_t</a> cudaD3D10UnregisterResource (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span> ) </span></dt>
                        <dd class="description">
                           <div class="section">Unregisters a Direct3D resource. </div>
                           <div class="section">
                              <h6 class="parameter_header">
                                 Parameters
                                 
                              </h6>
                              <dl class="table-display-params">
                                 <dt><tt class="code"><span class="keyword keyword apiItemName">pResource</span></tt></dt>
                                 <dd>- Resource to unregister</dd>
                              </dl>
                           </div>
                           <div class="section">
                              <h6 class="return_header">Returns</h6>
                              <p class="return"><a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038e355f04607d824883b4a50662830d591" shape="rect">cudaSuccess</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a>, <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e00382e491daacef266c7b3e3c1e140a6133c" shape="rect">cudaErrorUnknown</a></p>
                           </div>
                           <div class="section">
                              <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000020" shape="rect">Deprecated</a></h6>
                              <p><span class="ph xrefsect-description">This function is deprecated as of CUDA 3.0.</span></p>
                              <h6 class="description_header">Description</h6>
                              <p>Unregisters the Direct3D resource <tt class="ph tt code">resource</tt> so it is not accessible by CUDA unless registered again.
                              </p>
                              <p class="p">If <tt class="ph tt code">pResource</tt> is not registered, then <a class="xref" href="group__CUDART__TYPES.html#group__CUDART__TYPES_1gg3f51e3575c2178246db0a94a430e0038c4673247aee4d1ab8d07871f376e0273" shape="rect">cudaErrorInvalidResourceHandle</a> is returned.
                              </p>
                              <p class="p"></p>
                              <p class="p"></p>
                              <p class="p">
                                 <div class="note note"><span class="notetitle">Note:</span><p class="p">Note that this function may also return error codes from previous, asynchronous launches.</p>
                                 </div>
                              </p>
                              <p class="p"></p>
                              <p class="p apiDesc_subtitle"><strong class="ph b">See also:</strong></p>
                              <p class="p see_subsection"><a class="xref" href="group__CUDART__INTEROP.html#group__CUDART__INTEROP_1g1d45ac44d1affe17fb356e0b7a0b0560" title="Unregisters a graphics resource for access by CUDA." shape="rect">cudaGraphicsUnregisterResource</a></p>
                              <p class="p"></p>
                           </div>
                        </dd>
                     </dl>
                  </div>
               </div>
               
               <hr id="contents-end"></hr>
               
            </article>
         </div>
      </div>
      <script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/formatting/common.min.js"></script>
      <script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/scripts/google-analytics/google-analytics-write.js"></script>
      <script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/scripts/google-analytics/google-analytics-tracker.js"></script>
      <script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher: "998dc202-a267-4d8e-bce9-14debadb8d92", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script></body>
</html>