cupy.cuda.texture.TextureObject#
- class cupy.cuda.texture.TextureObject(ResourceDescriptor ResDesc, TextureDescriptor TexDesc)[source]#
A class that holds a texture object. Equivalent to
cudaTextureObject_t
. The returnedTextureObject
instance can be passed as a argument when launchingRawKernel
orElementwiseKernel
.- Parameters:
ResDesc (ResourceDescriptor) – an intance of the resource descriptor.
TexDesc (TextureDescriptor) – an instance of the texture descriptor.
See also
Methods
- __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
- ResDesc#
- TexDesc#
- ptr#