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.fmtandnum_packed_componentsare exactly analogous to theFormatandNumChannelsmembers of theCUDA_ARRAY_DESCRIPTORstructure: 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