cuda.bindings._v2.driver.tex_ref_set_flags#

cuda.bindings._v2.driver.tex_ref_set_flags(intptr_t h_tex_ref, unsigned int flags)#

Sets the flags for a texture reference.

[Deprecated]. Specifies optional flags via flags to specify the behavior of data returned through the texture reference h_tex_ref. The valid flags are:.

  • CU_TRSF_READ_AS_INTEGER, which suppresses the default behavior of having the texture promote integer data to floating point data in the range [0, 1]. Note that texture with 32-bit integer format would not be promoted, regardless of whether or not this flag is specified;.

  • CU_TRSF_NORMALIZED_COORDINATES, which suppresses the default behavior of having the texture coordinates range from [0, Dim) where Dim is the width or height of the CUDA array. Instead, the texture coordinates [0, 1.0) reference the entire breadth of the array dimension;.

  • CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION, which disables any trilinear filtering optimizations. Trilinear optimizations improve texture filtering performance by allowing bilinear filtering on textures in scenarios where it can closely approximate the expected results.

Parameters:
  • h_tex_ref (intptr_t) – Texture reference.

  • flags (unsigned int) – Optional flags to set.

See also

cuTexRefSetFlags