cupy.cuda.texture.ChannelFormatDescriptor

class cupy.cuda.texture.ChannelFormatDescriptor(int x, int y, int z, int w, int f)

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.

Attributes

ptr