30 #ifndef HIPCUB_ROCPRIM_ITERATOR_TEX_REF_INPUT_ITERATOR_HPP_
31 #define HIPCUB_ROCPRIM_ITERATOR_TEX_REF_INPUT_ITERATOR_HPP_
36 #include "../../../config.hpp"
38 #if (THRUST_VERSION >= 100700)
39 #include <thrust/iterator/iterator_facade.h>
40 #include <thrust/iterator/iterator_traits.h>
43 #include <rocprim/iterator/texture_cache_iterator.hpp>
45 BEGIN_HIPCUB_NAMESPACE
50 typename OffsetT = std::ptrdiff_t
55 template<
class Qualified>
57 hipError_t BindTexture(Qualified* ptr,
58 size_t bytes =
size_t(-1),
59 size_t texture_offset = 0)
61 return ::rocprim::texture_cache_iterator<T, OffsetT>::bind_texture(ptr, bytes, texture_offset);
64 inline hipError_t UnbindTexture()
66 return ::rocprim::texture_cache_iterator<T, OffsetT>::unbind_texture();
69 HIPCUB_HOST_DEVICE
inline
72 HIPCUB_HOST_DEVICE
inline
77 HIPCUB_HOST_DEVICE
inline
79 : ::rocprim::texture_cache_iterator<T, OffsetT>(other)