15 inline namespace _V1 {
18 const property_list &propList)
19 : impl(
std::make_shared<detail::sampler_impl>(
20 normalizationMode, addressingMode, filteringMode, propList)) {}
22 sampler::sampler(cl_sampler clSampler,
const context &syclContext)
23 : impl(
std::make_shared<detail::sampler_impl>(clSampler, syclContext)) {}
26 return impl->get_addressing_mode();
30 return impl->get_filtering_mode();
34 sampler::get_coordinate_normalization_mode()
const {
35 return impl->get_coordinate_normalization_mode();
39 return (impl == rhs.impl);
43 return !(impl == rhs.impl);
46 #define __SYCL_PARAM_TRAITS_SPEC(param_type) \
48 __SYCL_EXPORT bool sampler::has_property<param_type>() const noexcept { \
49 return impl->has_property<param_type>(); \
51 #include <sycl/detail/properties_traits.def>
53 #undef __SYCL_PARAM_TRAITS_SPEC
55 #define __SYCL_PARAM_TRAITS_SPEC(param_type) \
57 __SYCL_EXPORT param_type sampler::get_property<param_type>() const { \
58 return impl->get_property<param_type>(); \
60 #include <sycl/detail/properties_traits.def>
62 #undef __SYCL_PARAM_TRAITS_SPEC
bool operator==(const cache_config &lhs, const cache_config &rhs)
bool operator!=(const cache_config &lhs, const cache_config &rhs)
coordinate_normalization_mode