cuda.bindings._v2.driver.tex_ref_set_format#

cuda.bindings._v2.driver.tex_ref_set_format(
intptr_t h_tex_ref,
int fmt,
int num_packed_components,
)#

Sets the format for a texture reference.

[Deprecated]. Specifies the format of the data to be read by the texture reference h_tex_ref. fmt and num_packed_components are exactly analogous to the Format and NumChannels members of the CUDA_ARRAY_DESCRIPTOR structure: They specify the format of each component and the number of components per array element.

Parameters:
  • h_tex_ref (intptr_t) – Texture reference.

  • fmt (ArrayFormat) – Format to set.

  • num_packed_components (int) – Number of components per array element.

See also

cuTexRefSetFormat