cudaError_t cudaD3D10ResourceGetMappedArray ( cudaArray **  ppArray,
ID3D10Resource *  pResource,
unsigned int  subResource 

This function is deprecated as of Cuda 3.0.
Returns in *ppArray an array through which the subresource of the mapped Direct3D resource pResource which corresponds to subResource may be accessed. The value set in ppArray may change every time that pResource is mapped.

If pResource is not registered, then cudaErrorInvalidResourceHandle is returned. If pResource was not registered with usage flags cudaD3D10RegisterFlagsArray, then cudaErrorInvalidResourceHandle is returned. If pResource is not mapped then cudaErrorUnknown is returned.

For usage requirements of the subResource parameter, see cudaD3D10ResourceGetMappedPointer().

ppArray - Returned array corresponding to subresource
pResource - Mapped resource to access
subResource - Subresource of pResource to access
cudaSuccess, cudaErrorInvalidValue, 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