code: public static int cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, int Flags)
      {
          return checkResult(cuTexRefSetMipmappedArrayNative(hTexRef, hMipmappedArray, Flags));
      }
docs: Binds a mipmapped array to a texture reference.
  
  <pre>
  CUresult cuTexRefSetMipmappedArray (
  CUtexref hTexRef,
  CUmipmappedArray hMipmappedArray,
  unsigned int  Flags )
  </pre>
  <div>
  <p>Binds a mipmapped array to a texture
  reference.  Binds the CUDA mipmapped array <tt>hMipmappedArray</tt>
  to the texture reference <tt>hTexRef</tt>. Any previous address or
  CUDA array state associated with the texture reference is superseded
  by this function. <tt>Flags</tt> must be set to CU_TRSA_OVERRIDE_FORMAT.
  Any CUDA array previously bound to <tt>hTexRef</tt> is unbound.
  </p>
  </div>
  
  @param hTexRef Texture reference to bind
  @param hMipmappedArray Mipmapped array to bind
  @param Flags Options (must be CU_TRSA_OVERRIDE_FORMAT)
  
  @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#cuTexRefSetFilterMode
  @see JCudaDriver#cuTexRefSetFlags
  @see JCudaDriver#cuTexRefSetFormat
  @see JCudaDriver#cuTexRefGetAddress
  @see JCudaDriver#cuTexRefGetAddressMode
  @see JCudaDriver#cuTexRefGetArray
  @see JCudaDriver#cuTexRefGetFilterMode
  @see JCudaDriver#cuTexRefGetFlags
  @see JCudaDriver#cuTexRefGetFormat