cuda.bindings._v2.driver.tex_ref_set_address_mode#

cuda.bindings._v2.driver.tex_ref_set_address_mode(intptr_t h_tex_ref, int dim, int am)#

Sets the addressing mode for a texture reference.

[Deprecated]. Specifies the addressing mode am for the given dimension dim of the texture reference h_tex_ref. If dim is zero, the addressing mode is applied to the first parameter of the functions used to fetch from the texture; if dim is 1, the second, and so on. CUaddress_mode is defined as:. **View CUDA Toolkit Documentation for a C++ code example**. Note that this call has no effect if h_tex_ref is bound to linear memory. Also, if the flag, CU_TRSF_NORMALIZED_COORDINATES, is not set, the only supported address mode is CU_TR_ADDRESS_MODE_CLAMP.

Parameters:
  • h_tex_ref (intptr_t) – Texture reference.

  • dim (int) – Dimension.

  • am (AddressMode) – Addressing mode to set.

See also

cuTexRefSetAddressMode