Sampler interface for cl_sampler. More...
#include <cl.hpp>
Public Member Functions | |
| Sampler () | |
| Sampler (const Context &context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int *err=NULL) | |
| Sampler (const Sampler &sampler) | |
| Sampler (const cl_sampler &sampler) | |
| Sampler & | operator= (const Sampler &rhs) |
| Sampler & | operator= (const cl_sampler &rhs) |
| template<typename T > | |
| cl_int | getInfo (cl_sampler_info name, T *param) const |
| template<cl_int name> | |
| detail::param_traits < detail::cl_sampler_info, name >::param_type | getInfo (cl_int *err=NULL) const |
| cl::Sampler::Sampler | ( | ) | [inline] |
| cl::Sampler::Sampler | ( | const Context & | context, |
| cl_bool | normalized_coords, | ||
| cl_addressing_mode | addressing_mode, | ||
| cl_filter_mode | filter_mode, | ||
| cl_int * | err = NULL |
||
| ) | [inline] |
Definition at line 2553 of file cl.hpp.
{
cl_int error;
object_ = ::clCreateSampler(
context(),
normalized_coords,
addressing_mode,
filter_mode,
&error);
detail::errHandler(error, __CREATE_SAMPLER_ERR);
if (err != NULL) {
*err = error;
}
}
| cl::Sampler::Sampler | ( | const Sampler & | sampler | ) | [inline] |
| cl::Sampler::Sampler | ( | const cl_sampler & | sampler | ) | [inline] |
| cl_int cl::Sampler::getInfo | ( | cl_sampler_info | name, |
| T * | param | ||
| ) | const [inline] |
Definition at line 2593 of file cl.hpp.
{
return detail::errHandler(
detail::getInfo(&::clGetSamplerInfo, object_, name, param),
__GET_SAMPLER_INFO_ERR);
}
| detail::param_traits<detail::cl_sampler_info, name>::param_type cl::Sampler::getInfo | ( | cl_int * | err = NULL | ) | const [inline] |
Definition at line 2578 of file cl.hpp.
{
if (this != &rhs) {
detail::Wrapper<cl_type>::operator=(rhs);
}
return *this;
}
| Sampler& cl::Sampler::operator= | ( | const cl_sampler & | rhs | ) | [inline] |
Reimplemented from cl::detail::Wrapper< cl_sampler >.
Definition at line 2586 of file cl.hpp.
{
detail::Wrapper<cl_type>::operator=(rhs);
return *this;
}
1.7.6.1