pub unsafe extern "C" fn cuTexRefGetFormat(
pFormat: *mut CUarray_format,
pNumChannels: *mut c_int,
hTexRef: CUtexref,
) -> CUresult
Expand description
\brief Gets the format used by a texture reference
\deprecated
Returns in \p *pFormat and \p *pNumChannels the format and number of components of the CUDA array bound to the texture reference \p hTexRef. If \p pFormat or \p pNumChannels is NULL, it will be ignored.
\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
\sa ::cuTexRefSetAddress, ::cuTexRefSetAddress2D, ::cuTexRefSetAddressMode, ::cuTexRefSetArray, ::cuTexRefSetFilterMode, ::cuTexRefSetFlags, ::cuTexRefSetFormat, ::cuTexRefGetAddress, ::cuTexRefGetAddressMode, ::cuTexRefGetArray, ::cuTexRefGetFilterMode, ::cuTexRefGetFlags