cupy.cuda.texture.ChannelFormatDescriptor#

class cupy.cuda.texture.ChannelFormatDescriptor(int x, int y, int z, int w, int f)[source]#

A class that holds the channel format description. Equivalent to cudaChannelFormatDesc.

Parameters:
  • x (int) – the number of bits for the x channel.

  • y (int) – the number of bits for the y channel.

  • z (int) – the number of bits for the z channel.

  • w (int) – the number of bits for the w channel.

  • f (int) – the channel format. Use one of the values in cudaChannelFormat*, such as cupy.cuda.runtime.cudaChannelFormatKindFloat.

Methods

get_channel_format(self)#

Returns a dict containing the input.

__eq__(value, /)#

Return self==value.

__ne__(value, /)#

Return self!=value.

__lt__(value, /)#

Return self<value.

__le__(value, /)#

Return self<=value.

__gt__(value, /)#

Return self>value.

__ge__(value, /)#

Return self>=value.

Attributes

ptr#