code: public static int cudaGraphicsResourceGetMappedPointer(Pointer devPtr, long size[], cudaGraphicsResource resource)
      {
          return checkResult(cudaGraphicsResourceGetMappedPointerNative(devPtr, size, resource));
      }
docs: Get an device pointer through which to access a mapped graphics resource.
  
  <pre>
  cudaError_t cudaGraphicsResourceGetMappedPointer (
  void** devPtr,
  size_t* size,
  cudaGraphicsResource_t resource )
  </pre>
  <div>
  <p>Get an device pointer through which to
  access a mapped graphics resource.  Returns in <tt>*devPtr</tt> a
  pointer through which the mapped graphics resource <tt>resource</tt>
  may be accessed. Returns in <tt>*size</tt> the size of the memory in
  bytes which may be accessed from that pointer. The value set in <tt>devPtr</tt> may change every time that <tt>resource</tt> is mapped.
  </p>
  <p>If <tt>resource</tt> is not a buffer
  then it cannot be accessed via a pointer and cudaErrorUnknown is
  returned. If <tt>resource</tt> is not mapped then cudaErrorUnknown 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 devPtr Returned pointer through which resource may be accessed
  @param size Returned size of the buffer accessible starting at *devPtr
  @param resource Mapped resource to access
  
  @return cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle,
  cudaErrorUnknown
  
  @see JCuda#cudaGraphicsMapResources
  @see JCuda#cudaGraphicsSubResourceGetMappedArray