TextureReference(intptr_t texref, ResourceDescriptor ResDesc, TextureDescriptor TexDesc)¶
A class that holds a texture reference. Equivalent to
CUtexref(the driver API is used under the hood).
As of CUDA Toolkit v10.1, the Texture Reference API (in both driver and runtime) is marked as deprecated. To help transition to the new Texture Object API, this class mimics the usage of
TextureObject. Users who have legacy CUDA codes that use texture references should consider migration to the new API.
This CuPy interface is subject to removal once the offcial NVIDIA support is dropped in the future.