Function cuParamSetTexRef

Source
pub unsafe extern "C" fn cuParamSetTexRef(
    hfunc: CUfunction,
    texunit: c_int,
    hTexRef: CUtexref,
) -> CUresult
Expand description

\brief Adds a texture-reference to the function’s argument list

\deprecated

Makes the CUDA array or linear memory bound to the texture reference \p hTexRef available to a device program as a texture. In this version of CUDA, the texture-reference must be obtained via ::cuModuleGetTexRef() and the \p texunit parameter must be set to ::CU_PARAM_TR_DEFAULT.

\param hfunc - Kernel to add texture-reference to \param texunit - Texture unit (must be ::CU_PARAM_TR_DEFAULT) \param hTexRef - Texture-reference to add to argument list

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE \notefnerr