code: public static int cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, int Flags)
      {
          return checkResult(cuTexRefSetArrayNative(hTexRef, hArray, Flags));
      }
docs: Binds an array as a texture reference.
  
  <pre>
  CUresult cuTexRefSetArray (
  CUtexref hTexRef,
  CUarray hArray,
  unsigned int  Flags )
  </pre>
  <div>
  <p>Binds an array as a texture reference.
  Binds the CUDA array <tt>hArray</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 hArray 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