30 #ifndef HIPCUB_ROCPRIM_ITERATOR_TEX_OBJ_INPUT_ITERATOR_HPP_
31 #define HIPCUB_ROCPRIM_ITERATOR_TEX_OBJ_INPUT_ITERATOR_HPP_
36 #include "../../../config.hpp"
38 #if (THRUST_VERSION >= 100700)
40 #include <thrust/iterator/iterator_facade.h>
41 #include <thrust/iterator/iterator_traits.h>
45 #include <rocprim/iterator/texture_cache_iterator.hpp>
47 BEGIN_HIPCUB_NAMESPACE
51 typename OffsetT = std::ptrdiff_t
56 template<
class Qualified>
58 hipError_t BindTexture(Qualified* ptr,
59 size_t bytes =
size_t(-1),
60 size_t texture_offset = 0)
62 return ::rocprim::texture_cache_iterator<T, OffsetT>::bind_texture(ptr, bytes, texture_offset);
65 inline hipError_t UnbindTexture()
67 return ::rocprim::texture_cache_iterator<T, OffsetT>::unbind_texture();
70 HIPCUB_HOST_DEVICE
inline
73 HIPCUB_HOST_DEVICE
inline
78 HIPCUB_HOST_DEVICE
inline
80 : ::rocprim::texture_cache_iterator<T, OffsetT>(other)