pub unsafe extern "C" fn cuTexRefGetArray(
phArray: *mut CUarray,
hTexRef: CUtexref,
) -> CUresult👎Deprecated
Expand description
Gets the array bound to a texture reference.
Returns in *phArray the CUDA array bound to the texture reference hTexRef, or returns cudaError_enum::CUDA_ERROR_INVALID_VALUE if the texture reference is not bound to any CUDA array.
§Parameters
phArray: Returned array.hTexRef: Texture reference.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUE
See also: cuTexRefSetAddress_v2, cuTexRefSetAddress2D, cuTexRefSetAddressMode, cuTexRefSetArray, cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, cuTexRefGetAddress_v2, cuTexRefGetAddressMode, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormat.