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)[source]#
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 ascupy.cuda.runtime.cudaAddressModeWrap
.filterMode (int) – the filter mode. Use one of the values in
cudaFilterMode*
, such ascupy.cuda.runtime.cudaFilterModePoint
.readMode (int) – the read mode. Use one of the values in
cudaReadMode*
, such ascupy.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.
See also
Methods
- get_texture_desc(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#