code: public static int cuTexRefGetFormat(int pFormat[], int pNumChannels[], CUtexref hTexRef)
      {
          return checkResult(cuTexRefGetFormatNative(pFormat, pNumChannels, hTexRef));
      }
docs: Gets the format used by a texture reference.
  
  <pre>
  CUresult cuTexRefGetFormat (
  CUarray_format* pFormat,
  int* pNumChannels,
  CUtexref hTexRef )
  </pre>
  <div>
  <p>Gets the format used by a texture
  reference.  Returns in <tt>*pFormat</tt> and <tt>*pNumChannels</tt>
  the format and number of components of the CUDA array bound to the
  texture reference <tt>hTexRef</tt>. If <tt>pFormat</tt> or <tt>pNumChannels</tt> is NULL, it will be ignored.
  </p>
  </div>
  
  @param pFormat Returned format
  @param pNumChannels Returned number of components
  @param hTexRef Texture reference
  
  @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#cuTexRefGetAddressMode
  @see JCudaDriver#cuTexRefGetArray
  @see JCudaDriver#cuTexRefGetFilterMode
  @see JCudaDriver#cuTexRefGetFlags