Encapsulates a configuration for sampling an image accessor. More...
#include <CL/sycl/sampler.hpp>
Public Member Functions | |
sampler (coordinate_normalization_mode normalizationMode, addressing_mode addressingMode, filtering_mode filteringMode, const property_list &propList={}) | |
sampler (const sampler &rhs)=default | |
sampler (sampler &&rhs)=default | |
sampler & | operator= (const sampler &rhs)=default |
sampler & | operator= (sampler &&rhs)=default |
bool | operator== (const sampler &rhs) const |
bool | operator!= (const sampler &rhs) const |
template<typename propertyT > | |
bool | has_property () const |
Checks if this sampler has a property of type propertyT. More... | |
template<typename propertyT > | |
propertyT | get_property () const |
Gets the specified property of this sampler. More... | |
addressing_mode | get_addressing_mode () const |
filtering_mode | get_filtering_mode () const |
coordinate_normalization_mode | get_coordinate_normalization_mode () const |
Friends | |
template<typename DataT , int Dimensions, cl::sycl::access::mode AccessMode, cl::sycl::access::target AccessTarget, access::placeholder IsPlaceholder> | |
class | detail::image_accessor |
Encapsulates a configuration for sampling an image accessor.
Definition at line 65 of file sampler.hpp.
cl::sycl::sampler::sampler | ( | coordinate_normalization_mode | normalizationMode, |
addressing_mode | addressingMode, | ||
filtering_mode | filteringMode, | ||
const property_list & | propList = {} |
||
) |
Definition at line 16 of file sampler.cpp.
|
default |
|
default |
addressing_mode cl::sycl::sampler::get_addressing_mode | ( | ) | const |
Definition at line 25 of file sampler.cpp.
Referenced by cl::sycl::detail::imageReadSamplerHostImpl().
coordinate_normalization_mode cl::sycl::sampler::get_coordinate_normalization_mode | ( | ) | const |
Definition at line 34 of file sampler.cpp.
Referenced by cl::sycl::detail::imageReadSamplerHostImpl().
filtering_mode cl::sycl::sampler::get_filtering_mode | ( | ) | const |
Definition at line 29 of file sampler.cpp.
Referenced by cl::sycl::detail::imageReadSamplerHostImpl().
propertyT cl::sycl::sampler::get_property | ( | ) | const |
Gets the specified property of this sampler.
Throws invalid_object_error if this sampler does not have a property of type propertyT.
bool cl::sycl::sampler::has_property | ( | ) | const |
Checks if this sampler has a property of type propertyT.
bool cl::sycl::sampler::operator!= | ( | const sampler & | rhs | ) | const |
Definition at line 42 of file sampler.cpp.
bool cl::sycl::sampler::operator== | ( | const sampler & | rhs | ) | const |
Definition at line 38 of file sampler.cpp.
|
friend |
Definition at line 123 of file sampler.hpp.