cuda.bindings._v2.driver.param_set_tex_ref#

cuda.bindings._v2.driver.param_set_tex_ref(intptr_t hfunc, int texunit, intptr_t h_tex_ref)#

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

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

Parameters:
  • hfunc (intptr_t) – Kernel to add texture-reference to.

  • texunit (int) – Texture unit (must be CU_PARAM_TR_DEFAULT).

  • h_tex_ref (intptr_t) – Texture-reference to add to argument list.

See also

cuParamSetTexRef