Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b0aa6cd23b567cd0e312b072b2e3b0bf > files > 1045

nvidia-cuda-toolkit-devel-5.5.22-2.mga4.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__CUDA__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 Driver 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/formatting/jquery.min.js"></script>
      <script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.ba-hashchange.min.js"></script>
      <link rel="canonical" href="http://docs.nvidia.com/cuda/cuda-driver-api/index.html"></link>
      <link rel="stylesheet" type="text/css" href="../common/formatting/qwcode.highlight.css"></link>
   </head>
   <body>
      
      <article id="contents">
         <div id="breadcrumbs"><a href="group__CUDA__D3D10.html" shape="rect">&lt; Previous</a> | <a href="group__CUDA__D3D11.html" shape="rect">Next &gt;</a></div>
         <div id="release-info">CUDA Driver API
            (<a href="../../pdf/CUDA_Driver_API.pdf">PDF</a>)
            -
            CUDA Toolkit v5.5
            (<a href="https://developer.nvidia.com/cuda-toolkit-archive">older</a>)
            -
            Last updated 
            July 19, 2013
            -
            <a href="mailto:cudatools@nvidia.com?subject=CUDA Tools Documentation Feedback: cuda-driver-api">Send Feedback</a></div>
         <div class="topic reference apiRef apiPackage cppModule" id="group__CUDA__D3D10__DEPRECATED"><a name="group__CUDA__D3D10__DEPRECATED" shape="rect">
               <!-- --></a><h2 class="topictitle2 cppModule">2.25.1.&nbsp;Direct3D 10 Interoperability [DEPRECATED]</h2>
            <h2 class="module_header">[<a class="xref xref apiRelation cppModuleModule" href="group__CUDA__D3D10.html#group__CUDA__D3D10" shape="rect">Direct3D 10 Interoperability</a>]
            </h2>
            <div class="section">
               <p>This section describes deprecated Direct3D 10 interoperability functionality. </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__CUDA__D3D10__DEPRECATED_1g74452bd2ef8d2515e627a4b54ca44394" shape="rect">CUD3D10map_flags</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__CUDA__D3D10__DEPRECATED_1gbad99be7f2d194fda482bae2c34286ad" shape="rect">CUD3D10register_flags</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__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g82e98ad151a9190cea9627a67d44c1c7" shape="rect">cuD3D10CtxCreate</a> (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gf9f5bd81658f866613785b3a0bb7d7d9" title="" shape="rect">CUcontext</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pCtx</span>, <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gcd81b70eb9968392bb5cdf582af8eab4" title="" shape="rect">CUdevice</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pCudaDevice</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">Flags</span>, ID3D10Device*<span>&nbsp;</span><span class="keyword keyword apiItemName">pD3DDevice</span> ) </span></dt>
               <dd class="shortdesc"><span></span><span class="desc">Create a CUDA context for interoperability with Direct3D 10. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1gbe14aa89a02ab377de1c0b611aeb2c1e" shape="rect">cuD3D10CtxCreateOnDevice</a> (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gf9f5bd81658f866613785b3a0bb7d7d9" title="" shape="rect">CUcontext</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pCtx</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">flags</span>, ID3D10Device*<span>&nbsp;</span><span class="keyword keyword apiItemName">pD3DDevice</span>, <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gcd81b70eb9968392bb5cdf582af8eab4" title="" shape="rect">CUdevice</a><span>&nbsp;</span><span class="keyword keyword apiItemName">cudaDevice</span> ) </span></dt>
               <dd class="shortdesc"><span></span><span class="desc">Create a CUDA context for interoperability with Direct3D 10. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g5c8842f9517e493e130ec67d1035ba8a" shape="rect">cuD3D10GetDirect3DDevice</a> (  ID3D10Device**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppD3DDevice</span> ) </span></dt>
               <dd class="shortdesc"><span></span><span class="desc">Get the Direct3D 10 device against which the current CUDA context was created. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g3f1c5c5c1e8c0b02af277075d260fa72" shape="rect">cuD3D10MapResources</a> (  unsigned 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">Map Direct3D resources for access by CUDA. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g7a46ea2fdda68d85e09499c750c872d0" shape="rect">cuD3D10RegisterResource</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">Register a Direct3D resource for access by CUDA. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1gd9c2f1803809bfa616127ee88df54478" shape="rect">cuD3D10ResourceGetMappedArray</a> (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gd550651524a56766b60f10f0e7628042" title="" shape="rect">CUarray</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pArray</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">Get 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__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1gc760eb925462d7ed911a804ac801d437" shape="rect">cuD3D10ResourceGetMappedPitch</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">Get 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__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" shape="rect">cuD3D10ResourceGetMappedPointer</a> (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1g5e264ce2ad6a38761e7e04921ef771de" title="" shape="rect">CUdeviceptr</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pDevPtr</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">Get 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__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g37f0928f531e12f642084c0ff6ed15f5" shape="rect">cuD3D10ResourceGetMappedSize</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">Get 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__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1gca78cef7510dc3375215878b185eb30f" shape="rect">cuD3D10ResourceGetSurfaceDimensions</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">Get the dimensions of a registered surface. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g21ee183ac71b99048ff8e9ce9bfc1f4b" shape="rect">cuD3D10ResourceSetMapFlags</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__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1ga3b5e7426130a24a8aa2900a766d3a45" shape="rect">cuD3D10UnmapResources</a> (  unsigned 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">Unmap Direct3D resources. </span></dd>
               <dt><span class="member_type"><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a>&nbsp;</span><span class="member_name"><a href="#group__CUDA__D3D10__DEPRECATED_1g820664c48e2dbac37979a21c21d6561d" shape="rect">cuD3D10UnregisterResource</a> (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span> ) </span></dt>
               <dd class="shortdesc"><span></span><span class="desc">Unregister a Direct3D resource. </span></dd>
            </dl>
            <div class="description">
               <h3 class="sectiontitle">Enumerations</h3>
               <dl class="description">
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g74452bd2ef8d2515e627a4b54ca44394" id="group__CUDA__D3D10__DEPRECATED_1g74452bd2ef8d2515e627a4b54ca44394" shape="rect">
                        <!-- --></a><span>enum CUD3D10map_flags</span></dt>
                  <dd class="description">
                     <div class="section">
                        <p>Flags to map or unmap a resource </p>
                     </div>
                     <div class="enum-members">
                        <h6 class="enumerator_header">
                           Values
                           
                        </h6>
                        <dl class="enumerator">
                           <dt><span class="enum-member-name-def">CU_D3D10_MAPRESOURCE_FLAGS_NONE = <span class="ph ph apiData">0x00</span></span></dt>
                           <dd></dd>
                           <dt><span class="enum-member-name-def">CU_D3D10_MAPRESOURCE_FLAGS_READONLY = <span class="ph ph apiData">0x01</span></span></dt>
                           <dd></dd>
                           <dt><span class="enum-member-name-def">CU_D3D10_MAPRESOURCE_FLAGS_WRITEDISCARD = <span class="ph ph apiData">0x02</span></span></dt>
                           <dd></dd>
                        </dl>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1gbad99be7f2d194fda482bae2c34286ad" id="group__CUDA__D3D10__DEPRECATED_1gbad99be7f2d194fda482bae2c34286ad" shape="rect">
                        <!-- --></a><span>enum CUD3D10register_flags</span></dt>
                  <dd class="description">
                     <div class="section">
                        <p>Flags to register a resource </p>
                     </div>
                     <div class="enum-members">
                        <h6 class="enumerator_header">
                           Values
                           
                        </h6>
                        <dl class="enumerator">
                           <dt><span class="enum-member-name-def">CU_D3D10_REGISTER_FLAGS_NONE = <span class="ph ph apiData">0x00</span></span></dt>
                           <dd></dd>
                           <dt><span class="enum-member-name-def">CU_D3D10_REGISTER_FLAGS_ARRAY = <span class="ph ph apiData">0x01</span></span></dt>
                           <dd></dd>
                        </dl>
                     </div>
                  </dd>
               </dl>
            </div>
            <div class="description">
               <h3 class="sectiontitle">Functions</h3>
               <dl class="description">
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g82e98ad151a9190cea9627a67d44c1c7" id="group__CUDA__D3D10__DEPRECATED_1g82e98ad151a9190cea9627a67d44c1c7" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10CtxCreate (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gf9f5bd81658f866613785b3a0bb7d7d9" title="" shape="rect">CUcontext</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pCtx</span>, <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gcd81b70eb9968392bb5cdf582af8eab4" title="" shape="rect">CUdevice</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pCudaDevice</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">Flags</span>, ID3D10Device*<span>&nbsp;</span><span class="keyword keyword apiItemName">pD3DDevice</span> ) </span></dt>
                  <dd class="description">
                     <div class="section">Create a CUDA context for interoperability with Direct3D 10. </div>
                     <div class="section">
                        <h6 class="parameter_header">
                           Parameters
                           
                        </h6>
                        <dl class="table-display-params">
                           <dt><tt class="code"><span class="keyword keyword apiItemName">pCtx</span></tt></dt>
                           <dd>- Returned newly created CUDA context </dd>
                           <dt><tt class="code"><span class="keyword keyword apiItemName">pCudaDevice</span></tt></dt>
                           <dd>- Returned pointer to the device on which the context was created </dd>
                           <dt><tt class="code"><span class="keyword keyword apiItemName">Flags</span></tt></dt>
                           <dd>- Context creation flags (see <a class="xref" href="group__CUDA__CTX.html#group__CUDA__CTX_1g65dc0012348bc84810e2103a40d8e2cf" title="Create a CUDA context." shape="rect">cuCtxCreate()</a> for details) 
                           </dd>
                           <dt><tt class="code"><span class="keyword keyword apiItemName">pD3DDevice</span></tt></dt>
                           <dd>- Direct3D device to create interoperability context with</dd>
                        </dl>
                     </div>
                     <div class="section">
                        <h6 class="return_header">Returns</h6>
                        <p class="return"><a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9264c50688ed110e8476b591befe60c02" shape="rect">CUDA_ERROR_OUT_OF_MEMORY</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000041" 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 context 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__CUDA__D3D10.html#group__CUDA__D3D10_1g98e0c9dcac9771d45112053045e0c34f" title="Gets the CUDA device corresponding to a display adapter." shape="rect">cuD3D10GetDevice</a>, <a class="xref" href="group__CUDA__D3D10.html#group__CUDA__D3D10_1g87fb2a189c27c4b63538d23f53b2c8e6" title="Register a Direct3D 10 resource for access by CUDA." shape="rect">cuGraphicsD3D10RegisterResource</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1gbe14aa89a02ab377de1c0b611aeb2c1e" id="group__CUDA__D3D10__DEPRECATED_1gbe14aa89a02ab377de1c0b611aeb2c1e" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10CtxCreateOnDevice (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gf9f5bd81658f866613785b3a0bb7d7d9" title="" shape="rect">CUcontext</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pCtx</span>, unsigned int <span>&nbsp;</span><span class="keyword keyword apiItemName">flags</span>, ID3D10Device*<span>&nbsp;</span><span class="keyword keyword apiItemName">pD3DDevice</span>, <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gcd81b70eb9968392bb5cdf582af8eab4" title="" shape="rect">CUdevice</a><span>&nbsp;</span><span class="keyword keyword apiItemName">cudaDevice</span> ) </span></dt>
                  <dd class="description">
                     <div class="section">Create a CUDA context for interoperability with Direct3D 10. </div>
                     <div class="section">
                        <h6 class="parameter_header">
                           Parameters
                           
                        </h6>
                        <dl class="table-display-params">
                           <dt><tt class="code"><span class="keyword keyword apiItemName">pCtx</span></tt></dt>
                           <dd>- Returned newly created CUDA context </dd>
                           <dt><tt class="code"><span class="keyword keyword apiItemName">flags</span></tt></dt>
                           <dd>- Context creation flags (see <a class="xref" href="group__CUDA__CTX.html#group__CUDA__CTX_1g65dc0012348bc84810e2103a40d8e2cf" title="Create a CUDA context." shape="rect">cuCtxCreate()</a> for details) 
                           </dd>
                           <dt><tt class="code"><span class="keyword keyword apiItemName">pD3DDevice</span></tt></dt>
                           <dd>- Direct3D device to create interoperability context with </dd>
                           <dt><tt class="code"><span class="keyword keyword apiItemName">cudaDevice</span></tt></dt>
                           <dd>- The CUDA device on which to create the context. This device must be among the devices returned when querying CU_D3D10_DEVICES_ALL
                              from <a class="xref" href="group__CUDA__D3D10.html#group__CUDA__D3D10_1gdcc33dea972d5b834f45a0acefe5fe77" title="Gets the CUDA devices corresponding to a Direct3D 10 device." shape="rect">cuD3D10GetDevices</a>.
                           </dd>
                        </dl>
                     </div>
                     <div class="section">
                        <h6 class="return_header">Returns</h6>
                        <p class="return"><a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9264c50688ed110e8476b591befe60c02" shape="rect">CUDA_ERROR_OUT_OF_MEMORY</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000042" 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 context 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__CUDA__D3D10.html#group__CUDA__D3D10_1gdcc33dea972d5b834f45a0acefe5fe77" title="Gets the CUDA devices corresponding to a Direct3D 10 device." shape="rect">cuD3D10GetDevices</a>, <a class="xref" href="group__CUDA__D3D10.html#group__CUDA__D3D10_1g87fb2a189c27c4b63538d23f53b2c8e6" title="Register a Direct3D 10 resource for access by CUDA." shape="rect">cuGraphicsD3D10RegisterResource</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g5c8842f9517e493e130ec67d1035ba8a" id="group__CUDA__D3D10__DEPRECATED_1g5c8842f9517e493e130ec67d1035ba8a" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10GetDirect3DDevice (  ID3D10Device**<span>&nbsp;</span><span class="keyword keyword apiItemName">ppD3DDevice</span> ) </span></dt>
                  <dd class="description">
                     <div class="section">Get the Direct3D 10 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">ppD3DDevice</span></tt></dt>
                           <dd>- Returned Direct3D device corresponding to CUDA context</dd>
                        </dl>
                     </div>
                     <div class="section">
                        <h6 class="return_header">Returns</h6>
                        <p class="return"><a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000043" 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 context 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__CUDA__D3D10.html#group__CUDA__D3D10_1g98e0c9dcac9771d45112053045e0c34f" title="Gets the CUDA device corresponding to a display adapter." shape="rect">cuD3D10GetDevice</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g3f1c5c5c1e8c0b02af277075d260fa72" id="group__CUDA__D3D10__DEPRECATED_1g3f1c5c5c1e8c0b02af277075d260fa72" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10MapResources (  unsigned 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">Map 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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9240bb253a699176d9f49ee2f2c91b61b" shape="rect">CUDA_ERROR_ALREADY_MAPPED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000046" 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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g3f1c5c5c1e8c0b02af277075d260fa72" title="Map Direct3D resources for access by CUDA." shape="rect">cuD3D10MapResources()</a> will complete before any CUDA kernels issued after <a class="xref" href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g3f1c5c5c1e8c0b02af277075d260fa72" title="Map Direct3D resources for access by CUDA." shape="rect">cuD3D10MapResources()</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9240bb253a699176d9f49ee2f2c91b61b" shape="rect">CUDA_ERROR_ALREADY_MAPPED</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1gffcfd8e78d82cc4f6dd987e8bce4edb0" title="Map graphics resources for access by CUDA." shape="rect">cuGraphicsMapResources</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g7a46ea2fdda68d85e09499c750c872d0" id="group__CUDA__D3D10__DEPRECATED_1g7a46ea2fdda68d85e09499c750c872d0" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10RegisterResource (  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">Register a Direct3D 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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9264c50688ed110e8476b591befe60c02" shape="rect">CUDA_ERROR_OUT_OF_MEMORY</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000044" 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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g820664c48e2dbac37979a21c21d6561d" title="Unregister a Direct3D resource." shape="rect">cuD3D10UnregisterResource()</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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g820664c48e2dbac37979a21c21d6561d" title="Unregister a Direct3D resource." shape="rect">cuD3D10UnregisterResource()</a>.
                        </p>
                        <p class="p">This call is potentially 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 CU_D3D10_REGISTER_FLAGS_ARRAY.
                                 </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">CU_D3D10_REGISTER_FLAGS_NONE: Specifies that CUDA will access this resource through a <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1g5e264ce2ad6a38761e7e04921ef771de" shape="rect">CUdeviceptr</a>. The pointer, size, and (for textures), pitch for each subresource of this allocation may be queried through <a class="xref" href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" title="Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedPointer()</a>, <a class="xref" href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g37f0928f531e12f642084c0ff6ed15f5" title="Get the size of a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedSize()</a>, and <a class="xref" href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1gc760eb925462d7ed911a804ac801d437" title="Get the pitch of a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedPitch()</a> respectively. This option is valid for all resource types.
                                 </p>
                              </li>
                              <li class="li">
                                 <p class="p">CU_D3D10_REGISTER_FLAGS_ARRAY: Specifies that CUDA will access this resource through a <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gd550651524a56766b60f10f0e7628042" shape="rect">CUarray</a> queried on a sub-resource basis through <a class="xref" href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1gd9c2f1803809bfa616127ee88df54478" title="Get an array through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedArray()</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> cannot be registered, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</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__CUDA__D3D10.html#group__CUDA__D3D10_1g87fb2a189c27c4b63538d23f53b2c8e6" title="Register a Direct3D 10 resource for access by CUDA." shape="rect">cuGraphicsD3D10RegisterResource</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1gd9c2f1803809bfa616127ee88df54478" id="group__CUDA__D3D10__DEPRECATED_1gd9c2f1803809bfa616127ee88df54478" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10ResourceGetMappedArray (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gd550651524a56766b60f10f0e7628042" title="" shape="rect">CUarray</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pArray</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">Get 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">pArray</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000049" 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">*pArray</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">pArray</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags CU_D3D10_REGISTER_FLAGS_ARRAY, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" title="Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedPointer()</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1g61c55e987e54558cce547240d6123078" title="Get an array through which to access a subresource of a mapped graphics resource." shape="rect">cuGraphicsSubResourceGetMappedArray</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1gc760eb925462d7ed911a804ac801d437" id="group__CUDA__D3D10__DEPRECATED_1gc760eb925462d7ed911a804ac801d437" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10ResourceGetMappedPitch (  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">Get 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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000052" 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 IDirect3DBaseTexture10 or one of its sub-types or if <tt class="ph tt code">pResource</tt> has not been registered for use with CUDA, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped for access by CUDA, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" title="Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedPointer()</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1g61c55e987e54558cce547240d6123078" title="Get an array through which to access a subresource of a mapped graphics resource." shape="rect">cuGraphicsSubResourceGetMappedArray</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" id="group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10ResourceGetMappedPointer (  <a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1g5e264ce2ad6a38761e7e04921ef771de" title="" shape="rect">CUdeviceptr</a>*<span>&nbsp;</span><span class="keyword keyword apiItemName">pDevPtr</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">Get 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">pDevPtr</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000050" 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">*pDevPtr</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">pDevPtr</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1g8a634cf4150d399f0018061580592457" title="Get a device pointer through which to access a mapped graphics resource." shape="rect">cuGraphicsResourceGetMappedPointer</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g37f0928f531e12f642084c0ff6ed15f5" id="group__CUDA__D3D10__DEPRECATED_1g37f0928f531e12f642084c0ff6ed15f5" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10ResourceGetMappedSize (  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">Get 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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000051" 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 <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> was not registered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> is not mapped for access by CUDA, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" title="Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedPointer()</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1g8a634cf4150d399f0018061580592457" title="Get a device pointer through which to access a mapped graphics resource." shape="rect">cuGraphicsResourceGetMappedPointer</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1gca78cef7510dc3375215878b185eb30f" id="group__CUDA__D3D10__DEPRECATED_1gca78cef7510dc3375215878b185eb30f" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10ResourceGetSurfaceDimensions (  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">Get the dimensions of a registered 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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000053" 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">Because 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 IDirect3DBaseTexture10 or IDirect3DSurface10 or if <tt class="ph tt code">pResource</tt> has not been registered for use with CUDA, then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1g8b6ea4e4b561d6497f0210d9bbc1a7fc" title="Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA." shape="rect">cuD3D10ResourceGetMappedPointer()</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1g61c55e987e54558cce547240d6123078" title="Get an array through which to access a subresource of a mapped graphics resource." shape="rect">cuGraphicsSubResourceGetMappedArray</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g21ee183ac71b99048ff8e9ce9bfc1f4b" id="group__CUDA__D3D10__DEPRECATED_1g21ee183ac71b99048ff8e9ce9bfc1f4b" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10ResourceSetMapFlags (  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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9240bb253a699176d9f49ee2f2c91b61b" shape="rect">CUDA_ERROR_ALREADY_MAPPED</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000048" 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 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">CU_D3D10_MAPRESOURCE_FLAGS_NONE: 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">CU_D3D10_MAPRESOURCE_FLAGS_READONLY: Specifies that CUDA kernels which access this resource will not write to this resource.</p>
                              </li>
                              <li class="li">
                                 <p class="p">CU_D3D10_MAPRESOURCE_FLAGS_WRITEDISCARD: 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 <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a> is returned. If <tt class="ph tt code">pResource</tt> is presently mapped for access by CUDA then <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9240bb253a699176d9f49ee2f2c91b61b" shape="rect">CUDA_ERROR_ALREADY_MAPPED</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1gfe96aa7747f8b11d44a6fa6a851e1b39" title="Set usage flags for mapping a graphics resource." shape="rect">cuGraphicsResourceSetMapFlags</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1ga3b5e7426130a24a8aa2900a766d3a45" id="group__CUDA__D3D10__DEPRECATED_1ga3b5e7426130a24a8aa2900a766d3a45" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10UnmapResources (  unsigned 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">Unmap 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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e990696c86fcee1f536a1ec7d25867feeb" shape="rect">CUDA_ERROR_INVALID_VALUE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000047" 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 resources 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__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1ga3b5e7426130a24a8aa2900a766d3a45" title="Unmap Direct3D resources." shape="rect">cuD3D10UnmapResources()</a> will complete before any Direct3D calls issued after <a class="xref" href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED_1ga3b5e7426130a24a8aa2900a766d3a45" title="Unmap Direct3D resources." shape="rect">cuD3D10UnmapResources()</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9e098433b926c9afdb6b6bdf191629447" shape="rect">CUDA_ERROR_NOT_MAPPED</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1g8e9ff25d071375a0df1cb5aee924af32" title="Unmap graphics resources." shape="rect">cuGraphicsUnmapResources</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
                  <dt class="description"><a name="group__CUDA__D3D10__DEPRECATED_1g820664c48e2dbac37979a21c21d6561d" id="group__CUDA__D3D10__DEPRECATED_1g820664c48e2dbac37979a21c21d6561d" shape="rect">
                        <!-- --></a><span><a href="group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9" title="" shape="rect">CUresult</a> cuD3D10UnregisterResource (  ID3D10Resource*<span>&nbsp;</span><span class="keyword keyword apiItemName">pResource</span> ) </span></dt>
                  <dd class="description">
                     <div class="section">Unregister 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>- Resources to unregister</dd>
                        </dl>
                     </div>
                     <div class="section">
                        <h6 class="return_header">Returns</h6>
                        <p class="return"><a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a0eed720f8a87cd1c5fd1c453bc7a03d" shape="rect">CUDA_SUCCESS</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9acf52f132faf29b473cdda6061f0f44a" shape="rect">CUDA_ERROR_DEINITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e98feb999f0af99b4a25ab26b3866f4df8" shape="rect">CUDA_ERROR_NOT_INITIALIZED</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9a484e9af32c1e9893ff21f0e0191a12d" shape="rect">CUDA_ERROR_INVALID_CONTEXT</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</a>, <a class="xref" href="group__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e9c5a6ab0245179d297f1fa56ed0097183" shape="rect">CUDA_ERROR_UNKNOWN</a></p>
                     </div>
                     <div class="section">
                        <h6 class="deprecated_header"><a class="xref xrefsect-title" href="deprecated.html#deprecated__deprecated_1_deprecated000045" 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">pResource</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__CUDA__TYPES.html#group__CUDA__TYPES_1ggc6c391505e117393cc2558fff6bfc2e90fd2e63260c6317ba943af0f7e4b8d21" shape="rect">CUDA_ERROR_INVALID_HANDLE</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__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS_1ga7e5e97b74eaa13dfa6582e853e4c96d" title="Unregisters a graphics resource for access by CUDA." shape="rect">cuGraphicsUnregisterResource</a></p>
                        <p class="p"></p>
                     </div>
                  </dd>
               </dl>
            </div>
         </div>
         
         <hr id="contents-end"></hr>
         <div id="breadcrumbs"><a href="group__CUDA__D3D10.html" shape="rect">&lt; Previous</a> | <a href="group__CUDA__D3D11.html" shape="rect">Next &gt;</a></div>
         <div id="release-info">CUDA Driver API
            (<a href="../../pdf/CUDA_Driver_API.pdf">PDF</a>)
            -
            CUDA Toolkit v5.5
            (<a href="https://developer.nvidia.com/cuda-toolkit-archive">older</a>)
            -
            Last updated 
            July 19, 2013
            -
            <a href="mailto:cudatools@nvidia.com?subject=CUDA Tools Documentation Feedback: cuda-driver-api">Send Feedback</a></div>
         
      </article>
      
      <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>
      <nav id="site-nav">
         <div class="category closed"><span class="twiddle">▷</span><a href="../index.html" title="The root of the site.">CUDA Toolkit</a></div>
         <ul class="closed">
            <li><a href="../cuda-toolkit-release-notes/index.html" title="The Release Notes for the CUDA Toolkit from v4.0 to today.">Release Notes</a></li>
            <li><a href="../eula/index.html" title="The End User License Agreements for the NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA Display Driver, and NVIDIA NSight (Visual Studio Edition).">EULA</a></li>
            <li><a href="../cuda-getting-started-guide-for-linux/index.html" title="This guide discusses how to install and check for correct operation of the CUDA Development Tools on GNU/Linux systems.">Getting Started Linux</a></li>
            <li><a href="../cuda-getting-started-guide-for-mac-os-x/index.html" title="This guide discusses how to install and check for correct operation of the CUDA Development Tools on Mac OS X systems.">Getting Started Mac OS X</a></li>
            <li><a href="../cuda-getting-started-guide-for-microsoft-windows/index.html" title="This guide discusses how to install and check for correct operation of the CUDA Development Tools on Microsoft Windows systems.">Getting Started Windows</a></li>
            <li><a href="../cuda-c-programming-guide/index.html" title="This guide provides a detailed discussion of the CUDA programming model and programming interface. It then describes the hardware implementation, and provides guidance on how to achieve maximum performance. The Appendixes include a list of all CUDA-enabled devices, detailed description of all extensions to the C language, listings of supported mathematical functions, C++ features supported in host and device code, details on texture fetching, technical specifications of various devices, and concludes by introducing the low-level driver API.">Programming Guide</a></li>
            <li><a href="../cuda-c-best-practices-guide/index.html" title="This guide presents established parallelization and optimization techniques and explains coding metaphors and idioms that can greatly simplify programming for CUDA-capable GPU architectures. The intent is to provide guidelines for obtaining the best performance from NVIDIA GPUs using the CUDA Toolkit.">Best Practices Guide</a></li>
            <li><a href="../kepler-compatibility-guide/index.html" title="This application note is intended to help developers ensure that their NVIDIA CUDA applications will run effectively on GPUs based on the NVIDIA Kepler Architecture. This document provides guidance to ensure that your software applications are compatible with Kepler.">Kepler Compatibility Guide</a></li>
            <li><a href="../kepler-tuning-guide/index.html" title="Kepler is NVIDIA's next-generation architecture for CUDA compute applications. Applications that follow the best practices for the Fermi architecture should typically see speedups on the Kepler architecture without any code changes. This guide summarizes the ways that an application can be fine-tuned to gain additional speedups by leveraging Kepler architectural features.">Kepler Tuning Guide</a></li>
            <li><a href="../parallel-thread-execution/index.html" title="This guide provides detailed instructions on the use of PTX, a low-level parallel thread execution virtual machine and instruction set architecture (ISA). PTX exposes the GPU as a data-parallel computing device.">PTX ISA</a></li>
            <li><a href="../optimus-developer-guide/index.html" title="This document explains how CUDA APIs can be used to query for GPU capabilities in NVIDIA Optimus systems.">Developer Guide for Optimus</a></li>
            <li><a href="../video-decoder/index.html" title="This document provides the video decoder API specification and the format conversion and display using DirectX or OpenGL following decode.">Video Decoder</a></li>
            <li><a href="../video-encoder/index.html" title="This document provides the CUDA video encoder specifications, including the C-library API functions and encoder query parameters.">Video Encoder</a></li>
            <li><a href="../inline-ptx-assembly/index.html" title="This document shows how to inline PTX (parallel thread execution) assembly language statements into CUDA code. It describes available assembler statement parameters and constraints, and the document also provides a list of some pitfalls that you may encounter.">Inline PTX Assembly</a></li>
            <li><a href="../cuda-runtime-api/index.html" title="The CUDA runtime API.">CUDA Runtime API</a></li>
            <li><a href="../cuda-driver-api/index.html" title="The CUDA driver API.">CUDA Driver API</a></li>
            <li><a href="../cuda-math-api/index.html" title="The CUDA math API.">CUDA Math API</a></li>
            <li><a href="../cublas/index.html" title="The CUBLAS library is an implementation of BLAS (Basic Linear Algebra Subprograms) on top of the NVIDIA CUDA runtime. It allows the user to access the computational resources of NVIDIA Graphical Processing Unit (GPU), but does not auto-parallelize across multiple GPUs.">CUBLAS</a></li>
            <li><a href="../cufft/index.html" title="The CUFFT library user guide.">CUFFT</a></li>
            <li><a href="../curand/index.html" title="The CURAND library user guide.">CURAND</a></li>
            <li><a href="../cusparse/index.html" title="The CUSPARSE library user guide.">CUSPARSE</a></li>
            <li><a href="../npp/index.html" title="NVIDIA NPP is a library of functions for performing CUDA accelerated processing. The initial set of functionality in the library focuses on imaging and video processing and is widely applicable for developers in these areas. NPP will evolve over time to encompass more of the compute heavy tasks in a variety of problem domains. The NPP library is written to maximize flexibility, while maintaining high performance.">NPP</a></li>
            <li><a href="../thrust/index.html" title="The Thrust getting started guide.">Thrust</a></li>
            <li><a href="../cuda-samples/index.html" title="This document contains a complete listing of the code samples that are included with the NVIDIA CUDA Toolkit. It describes each code sample, lists the minimum GPU specification, and provides links to the source code and white papers if available.">CUDA Samples</a></li>
            <li><a href="../cuda-compiler-driver-nvcc/index.html" title="This document is a reference guide on the use of the CUDA compiler driver nvcc. Instead of being a specific CUDA compilation driver, nvcc mimics the behavior of the GNU compiler gcc, accepting a range of conventional compiler options, such as for defining macros and include/library paths, and for steering the compilation process.">NVCC</a></li>
            <li><a href="../cuda-gdb/index.html" title="The NVIDIA tool for debugging CUDA applications running on Linux and Mac, providing developers with a mechanism for debugging CUDA applications running on actual hardware. CUDA-GDB is an extension to the x86-64 port of GDB, the GNU Project debugger.">CUDA-GDB</a></li>
            <li><a href="../cuda-memcheck/index.html" title="CUDA-MEMCHECK is a suite of run time tools capable of precisely detecting out of bounds and misaligned memory access errors, checking device allocation leaks, reporting hardware errors and identifying shared memory data access hazards.">CUDA-MEMCHECK</a></li>
            <li><a href="../nsight-eclipse-edition-getting-started-guide/index.html" title="Nsight Eclipse Edition getting started guide">Nsight Eclipse Edition</a></li>
            <li><a href="../profiler-users-guide/index.html" title="This is the guide to the Profiler.">Profiler</a></li>
            <li><a href="../cuda-binary-utilities/index.html" title="The application notes for cuobjdump and nvdisasm.">CUDA Binary Utilities</a></li>
            <li><a href="../floating-point/index.html" title="A number of issues related to floating point accuracy and compliance are a frequent source of confusion on both CPUs and GPUs. The purpose of this white paper is to discuss the most common issues related to NVIDIA GPUs and to supplement the documentation in the CUDA C Programming Guide.">Floating Point and IEEE 754</a></li>
            <li><a href="../incomplete-lu-cholesky/index.html" title="In this white paper we show how to use the CUSPARSE and CUBLAS libraries to achieve a 2x speedup over CPU in the incomplete-LU and Cholesky preconditioned iterative methods. We focus on the Bi-Conjugate Gradient Stabilized and Conjugate Gradient iterative methods, that can be used to solve large sparse nonsymmetric and symmetric positive definite linear systems, respectively. Also, we comment on the parallel sparse triangular solve, which is an essential building block in these algorithms.">Incomplete-LU and Cholesky Preconditioned Iterative Methods</a></li>
            <li><a href="../libnvvm-api/index.html" title="The libNVVM API.">libNVVM API</a></li>
            <li><a href="../libdevice-users-guide/index.html" title="The libdevice library is an LLVM bitcode library that implements common functions for GPU kernels.">libdevice User's Guide</a></li>
            <li><a href="../nvvm-ir-spec/index.html" title="NVVM IR is a compiler IR (internal representation) based on the LLVM IR. The NVVM IR is designed to represent GPU compute kernels (for example, CUDA kernels). High-level language front-ends, like the CUDA C compiler front-end, can generate NVVM IR.">NVVM IR</a></li>
            <li><a href="../cupti/index.html" title="The CUPTI API.">CUPTI</a></li>
            <li><a href="../debugger-api/index.html" title="The CUDA debugger API.">Debugger API</a></li>
            <li><a href="../gpudirect-rdma/index.html" title="A tool for Kepler-class GPUs and CUDA 5.0 enabling a direct path for communication between the GPU and a peer device on the PCI Express bus when the devices share the same upstream root complex using standard features of PCI Express. This document introduces the technology and describes the steps necessary to enable a RDMA for GPUDirect connection to NVIDIA GPUs within the Linux device driver model.">RDMA for GPUDirect</a></li>
         </ul>
         <div class="category"><span class="twiddle">▼</span><a href="index.html" title="CUDA Driver API">CUDA Driver API</a></div>
         <ul>
            <li><a href="api-sync-behavior.html#api-sync-behavior">1.&nbsp;API synchronization behavior </a></li>
            <li><a href="modules.html#modules">2.&nbsp;Modules</a><ul>
                  <li><a href="group__CUDA__TYPES.html#group__CUDA__TYPES">2.1.&nbsp;Data types used by CUDA driver</a></li>
                  <li><a href="group__CUDA__INITIALIZE.html#group__CUDA__INITIALIZE">2.2.&nbsp;Initialization</a></li>
                  <li><a href="group__CUDA__VERSION.html#group__CUDA__VERSION">2.3.&nbsp;Version Management</a></li>
                  <li><a href="group__CUDA__DEVICE.html#group__CUDA__DEVICE">2.4.&nbsp;Device Management</a></li>
                  <li><a href="group__CUDA__DEVICE__DEPRECATED.html#group__CUDA__DEVICE__DEPRECATED">2.5.&nbsp;Device Management [DEPRECATED]</a></li>
                  <li><a href="group__CUDA__CTX.html#group__CUDA__CTX">2.6.&nbsp;Context Management</a></li>
                  <li><a href="group__CUDA__CTX__DEPRECATED.html#group__CUDA__CTX__DEPRECATED">2.7.&nbsp;Context Management [DEPRECATED]</a></li>
                  <li><a href="group__CUDA__MODULE.html#group__CUDA__MODULE">2.8.&nbsp;Module Management</a></li>
                  <li><a href="group__CUDA__MEM.html#group__CUDA__MEM">2.9.&nbsp;Memory Management</a></li>
                  <li><a href="group__CUDA__UNIFIED.html#group__CUDA__UNIFIED">2.10.&nbsp;Unified Addressing</a></li>
                  <li><a href="group__CUDA__STREAM.html#group__CUDA__STREAM">2.11.&nbsp;Stream Management</a></li>
                  <li><a href="group__CUDA__EVENT.html#group__CUDA__EVENT">2.12.&nbsp;Event Management</a></li>
                  <li><a href="group__CUDA__EXEC.html#group__CUDA__EXEC">2.13.&nbsp;Execution Control</a></li>
                  <li><a href="group__CUDA__EXEC__DEPRECATED.html#group__CUDA__EXEC__DEPRECATED">2.14.&nbsp;Execution Control [DEPRECATED]</a></li>
                  <li><a href="group__CUDA__TEXREF.html#group__CUDA__TEXREF">2.15.&nbsp;Texture Reference Management</a></li>
                  <li><a href="group__CUDA__TEXREF__DEPRECATED.html#group__CUDA__TEXREF__DEPRECATED">2.16.&nbsp;Texture Reference Management [DEPRECATED]</a></li>
                  <li><a href="group__CUDA__SURFREF.html#group__CUDA__SURFREF">2.17.&nbsp;Surface Reference Management</a></li>
                  <li><a href="group__CUDA__TEXOBJECT.html#group__CUDA__TEXOBJECT">2.18.&nbsp;Texture Object Management</a></li>
                  <li><a href="group__CUDA__SURFOBJECT.html#group__CUDA__SURFOBJECT">2.19.&nbsp;Surface Object Management</a></li>
                  <li><a href="group__CUDA__PEER__ACCESS.html#group__CUDA__PEER__ACCESS">2.20.&nbsp;Peer Context Memory Access</a></li>
                  <li><a href="group__CUDA__GRAPHICS.html#group__CUDA__GRAPHICS">2.21.&nbsp;Graphics Interoperability</a></li>
                  <li><a href="group__CUDA__PROFILER.html#group__CUDA__PROFILER">2.22.&nbsp;Profiler Control</a></li>
                  <li><a href="group__CUDA__GL.html#group__CUDA__GL">2.23.&nbsp;OpenGL Interoperability</a><ul>
                        <li><a href="group__CUDA__GL__DEPRECATED.html#group__CUDA__GL__DEPRECATED">2.23.1.&nbsp;OpenGL Interoperability [DEPRECATED]</a></li>
                     </ul>
                  </li>
                  <li><a href="group__CUDA__D3D9.html#group__CUDA__D3D9">2.24.&nbsp;Direct3D 9 Interoperability</a><ul>
                        <li><a href="group__CUDA__D3D9__DEPRECATED.html#group__CUDA__D3D9__DEPRECATED">2.24.1.&nbsp;Direct3D 9 Interoperability [DEPRECATED]</a></li>
                     </ul>
                  </li>
                  <li><a href="group__CUDA__D3D10.html#group__CUDA__D3D10">2.25.&nbsp;Direct3D 10 Interoperability</a><ul>
                        <li><a href="group__CUDA__D3D10__DEPRECATED.html#group__CUDA__D3D10__DEPRECATED">2.25.1.&nbsp;Direct3D 10 Interoperability [DEPRECATED]</a></li>
                     </ul>
                  </li>
                  <li><a href="group__CUDA__D3D11.html#group__CUDA__D3D11">2.26.&nbsp;Direct3D 11 Interoperability</a><ul>
                        <li><a href="group__CUDA__D3D11__DEPRECATED.html#group__CUDA__D3D11__DEPRECATED">2.26.1.&nbsp;Direct3D 11 Interoperability [DEPRECATED]</a></li>
                     </ul>
                  </li>
                  <li><a href="group__CUDA__VDPAU.html#group__CUDA__VDPAU">2.27.&nbsp;VDPAU Interoperability</a></li>
               </ul>
            </li>
            <li><a href="annotated.html#annotated">3.&nbsp;Data Structures</a><ul>
                  <li><a href="structCUDA__ARRAY3D__DESCRIPTOR.html#structCUDA__ARRAY3D__DESCRIPTOR">3.1.&nbsp;CUDA_ARRAY3D_DESCRIPTOR</a></li>
                  <li><a href="structCUDA__ARRAY__DESCRIPTOR.html#structCUDA__ARRAY__DESCRIPTOR">3.2.&nbsp;CUDA_ARRAY_DESCRIPTOR</a></li>
                  <li><a href="structCUDA__MEMCPY2D.html#structCUDA__MEMCPY2D">3.3.&nbsp;CUDA_MEMCPY2D</a></li>
                  <li><a href="structCUDA__MEMCPY3D.html#structCUDA__MEMCPY3D">3.4.&nbsp;CUDA_MEMCPY3D</a></li>
                  <li><a href="structCUDA__MEMCPY3D__PEER.html#structCUDA__MEMCPY3D__PEER">3.5.&nbsp;CUDA_MEMCPY3D_PEER</a></li>
                  <li><a href="structCUDA__POINTER__ATTRIBUTE__P2P__TOKENS.html#structCUDA__POINTER__ATTRIBUTE__P2P__TOKENS">3.6.&nbsp;CUDA_POINTER_ATTRIBUTE_P2P_TOKENS</a></li>
                  <li><a href="structCUDA__RESOURCE__DESC.html#structCUDA__RESOURCE__DESC">3.7.&nbsp;CUDA_RESOURCE_DESC</a></li>
                  <li><a href="structCUDA__RESOURCE__VIEW__DESC.html#structCUDA__RESOURCE__VIEW__DESC">3.8.&nbsp;CUDA_RESOURCE_VIEW_DESC</a></li>
                  <li><a href="structCUDA__TEXTURE__DESC.html#structCUDA__TEXTURE__DESC">3.9.&nbsp;CUDA_TEXTURE_DESC</a></li>
                  <li><a href="structCUdevprop.html#structCUdevprop">3.10.&nbsp;CUdevprop</a></li>
                  <li><a href="structCUipcEventHandle.html#structCUipcEventHandle">3.11.&nbsp;CUipcEventHandle</a></li>
                  <li><a href="structCUipcMemHandle.html#structCUipcMemHandle">3.12.&nbsp;CUipcMemHandle</a></li>
               </ul>
            </li>
            <li><a href="functions.html#functions">4.&nbsp;Data Fields</a></li>
            <li><a href="deprecated.html#deprecated">5.&nbsp;Deprecated List</a></li>
            <li><a href="notices-header.html#notices-header">Notices</a><ul></ul>
            </li>
         </ul>
      </nav>
      <nav id="search-results">
         <h2>Search Results</h2>
         <ol></ol>
      </nav>
      <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/omniture/s_code_us_dev_aut1-nolinktrackin.js"></script>
      <script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/scripts/omniture/omniture.js"></script>
      <noscript><a href="http://www.omniture.com" title="Web Analytics"><img src="http://omniture.nvidia.com/b/ss/nvidiacudadocs/1/H.17--NS/0" height="1" width="1" border="0" alt=""></img></a></noscript>
      <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>
      </body>
</html>