CUresult cuParamSetTexRef ( CUfunction  func,
int  texunit,
CUtexref  pTexRef 
)

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

Parameters:
func - Kernel to add texture-reference to
texunit - Texture unit (must be CU_PARAM_TR_DEFAULT)
pTexRef - Texture-reference to add to argument list
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuFuncSetBlockShape, cuFuncSetSharedSize, cuFuncGetAttribute, cuParamSetSize, cuParamSetf, cuParamSeti, cuParamSetv, cuLaunch, cuLaunchGrid, cuLaunchGridAsync


Generated by Doxygen on Mon Mar 30 23:16:12 2009 for NVIDIA CUDA Library  NVIDIA