22 inline namespace _V1 {
48 #ifdef __SYCL_DEVICE_ONLY__
49 class __SYCL_EXPORT sampler_impl {
51 sampler_impl() =
default;
55 ~sampler_impl() =
default;
73 const property_list &propList = {});
75 #ifdef __SYCL_INTERNAL_API
76 sampler(cl_sampler clSampler,
const context &syclContext);
79 sampler(
const sampler &rhs) =
default;
81 sampler(sampler &&rhs) =
default;
83 sampler &
operator=(
const sampler &rhs) =
default;
85 sampler &
operator=(sampler &&rhs) =
default;
102 template <typename propertyT> propertyT
get_property() const;
111 #ifdef __SYCL_DEVICE_ONLY__
112 detail::sampler_impl impl;
114 char padding[
sizeof(std::shared_ptr<detail::sampler_impl>) -
sizeof(impl)];
121 std::shared_ptr<detail::sampler_impl> impl;
128 friend class detail::image_accessor;
142 template <>
struct hash<
sycl::sampler> {
144 #ifdef __SYCL_DEVICE_ONLY__
148 return hash<std::shared_ptr<sycl::detail::sampler_impl>>()(
#define __SYCL_SPECIAL_CLASS
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor< DataT
Image accessors.
decltype(Obj::impl) getSyclObjImpl(const Obj &SyclObject)
bool operator==(const cache_config &lhs, const cache_config &rhs)
bool operator!=(const cache_config &lhs, const cache_config &rhs)
static constexpr bool has_property()
static constexpr auto get_property()
coordinate_normalization_mode
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS Dimensions
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS IsPlaceholder
PropertyListT int access::address_space multi_ptr & operator=(multi_ptr &&)=default
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS AccessMode
@ PI_SAMPLER_FILTER_MODE_NEAREST
@ PI_SAMPLER_FILTER_MODE_LINEAR
@ PI_SAMPLER_ADDRESSING_MODE_MIRRORED_REPEAT
@ PI_SAMPLER_ADDRESSING_MODE_CLAMP
@ PI_SAMPLER_ADDRESSING_MODE_NONE
@ PI_SAMPLER_ADDRESSING_MODE_REPEAT
@ PI_SAMPLER_ADDRESSING_MODE_CLAMP_TO_EDGE
_Abi const simd< _Tp, _Abi > & noexcept
size_t operator()(const sycl::sampler &s) const
addressing_mode addressing
coordinate_normalization_mode coordinate