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
amfor the given dimensiondimof the texture referenceh_tex_ref. Ifdimis zero, the addressing mode is applied to the first parameter of the functions used to fetch from the texture; ifdimis 1, the second, and so on.CUaddress_modeis defined as:. **View CUDA Toolkit Documentation for a C++ code example**. Note that this call has no effect ifh_tex_refis bound to linear memory. Also, if the flag,CU_TRSF_NORMALIZED_COORDINATES, is not set, the only supported address mode isCU_TR_ADDRESS_MODE_CLAMP.- Parameters:
h_tex_ref (intptr_t) – Texture reference.
dim (int) – Dimension.
am (AddressMode) – Addressing mode to set.
See also
cuTexRefSetAddressMode