12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.11 Direct3D 10 Interoperability 733.11.3.10 cudaError_t cudaD3D10SetDirect3DDevice (ID3D10Device ∗ pDxDevice)Records pDxDevice as the Direct3D device to use for Direct3D interoperability on this host thread. In order touse Direct3D interoperability, this call must be made before any non-device management <strong>CUDA</strong> runtime calls on thisthread. In that case, this call will return cudaErrorSetOnActiveProcess.Successful context creation on pDxDevice will increase the internal reference count on pDxDevice. This referencecount will be decremented upon destruction of this context through cudaThreadExit().Parameters:pDxDevice - Direct3D device to use for interoperabilityReturns:Note:See also:cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidValue, cudaErrorSetOnActiveProcessNote that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource, cudaD3D10MapResources,cudaD3D10UnmapResources, cudaD3D10ResourceGetSurfaceDimensions,cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPointer,cudaD3D10ResourceGetMappedSize, cudaD3D10ResourceGetMappedPitch3.11.3.11 cudaError_t cudaD3D10UnmapResources (int count, ID3D10Resource ∗∗ ppResources)Unmaps the count Direct3D resource in ppResources.This function provides the synchronization guarantee that any <strong>CUDA</strong> kernels issued before cudaD3D10UnmapResources()will complete before any Direct3D calls issued after cudaD3D10UnmapResources()begin.If any of ppResources have not been registered for use with <strong>CUDA</strong> or if ppResources contains any duplicateentries, then cudaErrorInvalidResourceHandle is returned. If any of ppResources are not presently mapped foraccess by <strong>CUDA</strong> then cudaErrorUnknown is returned.Parameters:count - Number of resources to unmap for <strong>CUDA</strong>ppResources - Resources to unmap for <strong>CUDA</strong>Returns:Note:See also:cudaSuccess, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource,cudaD3D10MapResources, cudaD3D10ResourceGetSurfaceDimensions,Generated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!