code: public static int cuTexRefGetAddressMode(int pam[], CUtexref hTexRef, int dim)
      {
          return checkResult(cuTexRefGetAddressModeNative(pam, hTexRef, dim));
      }
docs: Gets the addressing mode used by a texture reference.
  
  <pre>
  CUresult cuTexRefGetAddressMode (
  CUaddress_mode* pam,
  CUtexref hTexRef,
  int  dim )
  </pre>
  <div>
  <p>Gets the addressing mode used by a
  texture reference.  Returns in <tt>*pam</tt> the addressing mode
  corresponding to the dimension <tt>dim</tt> of the texture reference
  <tt>hTexRef</tt>. Currently, the only valid value for <tt>dim</tt>
  are 0 and 1.
  </p>
  </div>
  
  @param pam Returned addressing mode
  @param hTexRef Texture reference
  @param dim Dimension
  
  @return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED,
  CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
  
  @see JCudaDriver#cuTexRefSetAddress
  @see JCudaDriver#cuTexRefSetAddress2D
  @see JCudaDriver#cuTexRefSetAddressMode
  @see JCudaDriver#cuTexRefSetArray
  @see JCudaDriver#cuTexRefSetFilterMode
  @see JCudaDriver#cuTexRefSetFlags
  @see JCudaDriver#cuTexRefSetFormat
  @see JCudaDriver#cuTexRefGetAddress
  @see JCudaDriver#cuTexRefGetArray
  @see JCudaDriver#cuTexRefGetFilterMode
  @see JCudaDriver#cuTexRefGetFlags
  @see JCudaDriver#cuTexRefGetFormat