code: public static int cuGraphicsMapResources(int count, CUgraphicsResource resources[], CUstream hStream)
      {
          return checkResult(cuGraphicsMapResourcesNative(count, resources, hStream));
      }
docs: Map graphics resources for access by CUDA.
  
  <pre>
  CUresult cuGraphicsMapResources (
  unsigned int  count,
  CUgraphicsResource* resources,
  CUstream hStream )
  </pre>
  <div>
  <p>Map graphics resources for access by
  CUDA.  Maps the <tt>count</tt> graphics resources in <tt>resources</tt>
  for access by CUDA.
  </p>
  <p>The resources in <tt>resources</tt>
  may be accessed by CUDA until they are unmapped. The graphics API from
  which <tt>resources</tt> were registered should not access any
  resources while they are mapped by CUDA. If an application does so,
  the results are
  undefined.
  </p>
  <p>This function provides the synchronization
  guarantee that any graphics calls issued before cuGraphicsMapResources()
  will complete before any subsequent CUDA work issued in <tt>stream</tt>
  begins.
  </p>
  <p>If <tt>resources</tt> includes any
  duplicate entries then CUDA_ERROR_INVALID_HANDLE is returned. If any
  of <tt>resources</tt> are presently mapped for access by CUDA then
  CUDA_ERROR_ALREADY_MAPPED is returned.
  </p>
  <div>
  <span>Note:</span>
  <p>Note that this
  function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param count Number of resources to map
  @param resources Resources to map for CUDA usage
  @param hStream Stream with which to synchronize
  
  @return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED,
  CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_HANDLE,
  CUDA_ERROR_ALREADY_MAPPED, CUDA_ERROR_UNKNOWN
  
  @see JCudaDriver#cuGraphicsResourceGetMappedPointer
  @see JCudaDriver#cuGraphicsSubResourceGetMappedArray
  @see JCudaDriver#cuGraphicsUnmapResources