cuda.bindings._v2.driver.tex_ref_get_format#

cuda.bindings._v2.driver.tex_ref_get_format(intptr_t h_tex_ref) → tuple#

Gets the format used by a texture reference.

[Deprecated]. Returns in *p_format and *p_num_channels the format and number of components of the CUDA array bound to the texture reference h_tex_ref. If p_format or p_num_channels is NULL, it will be ignored.

Parameters:

h_tex_ref (intptr_t) – Texture reference.

Returns:

  • int: Returned format.

  • int: Returned number of components.

Return type:

A 2-tuple containing

See also

cuTexRefGetFormat