*pSize
pResource
face
level
pSize
If pResource has not been registered for use with CUDA then cudaErrorInvalidResourceHandle is returned. If pResource was not registered with usage flags cudaD3D9RegisterFlagsNone, then cudaErrorInvalidResourceHandle is returned. If pResource is not mapped for access by CUDA then cudaErrorUnknown is returned.
For usage requirements of face and level parameters, see cudaD3D9ResourceGetMappedPointer().