pub unsafe extern "C" fn cuModuleGetTexRef(
pTexRef: *mut CUtexref,
hmod: CUmodule,
name: *const c_char,
) -> CUresult๐Deprecated
Expand description
Returns a handle to a texture reference.
Returns in *pTexRef the handle of the texture reference of name name in the module hmod. If no texture reference of that name exists, cuModuleGetTexRef returns cudaError_enum::CUDA_ERROR_NOT_FOUND. This texture reference handle should not be destroyed, since it will be destroyed when the module is unloaded.
ยงParameters
pTexRef: Returned texture reference.hmod: Module to retrieve texture reference from.name: Name of texture reference to retrieve.