cudaError_t cudaD3D10MapResources ( int  count,
ID3D10Resource **  ppResources 

This function is deprecated as of Cuda 3.0.
Maps the count Direct3D resources in ppResources for access by CUDA.

The resources in ppResources 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.

This function provides the synchronization guarantee that any Direct3D calls issued before cudaD3D10MapResources() will complete before any CUDA kernels issued after cudaD3D10MapResources() begin.

If any of ppResources have not been registered for use with CUDA or if ppResources contains any duplicate entries then cudaErrorInvalidResourceHandle is returned. If any of ppResources are presently mapped for access by CUDA then cudaErrorUnknown is returned.

count - Number of resources to map for CUDA
ppResources - Resources to map for CUDA
cudaSuccess, cudaErrorInvalidResourceHandle, cudaErrorUnknown
Note that this function may also return error codes from previous, asynchronous launches.
See also:

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA