cupy.cuda.texture.TextureDescriptor

class cupy.cuda.texture.TextureDescriptor(addressModes=None, int filterMode=0, int readMode=0, sRGB=None, borderColors=None, normalizedCoords=None, maxAnisotropy=None)

A class that holds the texture description. Equivalent to cudaTextureDesc.

Parameters:
  • addressModes (tuple or list) – an iterable with length up to 3, each element is one of the values in cudaAddressMode*, such as cupy.cuda.runtime.cudaAddressModeWrap.
  • filterMode (int) – the filter mode. Use one of the values in cudaFilterMode*, such as cupy.cuda.runtime.cudaFilterModePoint.
  • readMode (int) – the read mode. Use one of the values in cudaReadMode*, such as cupy.cuda.runtime.cudaReadModeElementType.
  • normalizedCoords (int) – whether coordinates are normalized or not.
  • sRGB (int, optional) –
  • borderColors (tuple or list, optional) – an iterable with length up to 4.
  • maxAnisotropy (int, optional) –

Note

A texture backed by mipmap arrays is currently not supported in CuPy.

Methods

get_texture_desc(self)

Returns a dict containing the input.

Attributes

ptr