OpenCL C++ Bindings
|
Class interface for cl_sampler. More...
#include <opencl.hpp>
Public Member Functions | |
Sampler () | |
Default constructor - initializes to NULL. | |
Sampler (const Context &context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int *err=NULL) | |
Constructs a Sampler in a specified context. | |
Sampler (const cl_sampler &sampler, bool retainObject=false) | |
Constructor from cl_sampler - takes ownership. | |
Sampler & | operator= (const cl_sampler &rhs) |
Assignment operator from cl_sampler - takes ownership. | |
Sampler (const Sampler &sam) | |
Copy constructor to forward copy to the superclass correctly. Required for MSVC. | |
Sampler & | operator= (const Sampler &sam) |
Copy assignment to forward copy to the superclass correctly. Required for MSVC. | |
Sampler (Sampler &&sam) CL_HPP_NOEXCEPT_ | |
Move constructor to forward move to the superclass correctly. Required for MSVC. | |
Sampler & | operator= (Sampler &&sam) |
Move assignment to forward move to the superclass correctly. Required for MSVC. | |
template<typename T > | |
cl_int | getInfo (cl_sampler_info name, T *param) const |
Wrapper for clGetSamplerInfo(). | |
template<cl_sampler_info name> | |
detail::param_traits< detail::cl_sampler_info, name >::param_type | getInfo (cl_int *err=NULL) const |
Wrapper for clGetSamplerInfo() that returns by value. | |
![]() | |
Wrapper (const cl_type &obj, bool retainObject) | |
Wrapper (const Wrapper< cl_type > &rhs) | |
Wrapper (Wrapper< cl_type > &&rhs) CL_HPP_NOEXCEPT_ | |
Wrapper< cl_type > & | operator= (const Wrapper< cl_type > &rhs) |
Wrapper< cl_type > & | operator= (Wrapper< cl_type > &&rhs) |
Wrapper< cl_type > & | operator= (const cl_type &rhs) |
const cl_type & | operator() () const |
cl_type & | operator() () |
cl_type | get () const |
Additional Inherited Members | |
![]() | |
typedef cl_sampler | cl_type |
![]() | |
cl_int | retain () const |
cl_int | release () const |
![]() | |
cl_type | object_ |
Class interface for cl_sampler.
Definition at line 5629 of file opencl.hpp.
|
inline |
Default constructor - initializes to NULL.
Definition at line 5633 of file opencl.hpp.
|
inline |
Constructs a Sampler in a specified context.
Wraps clCreateSampler().
Definition at line 5639 of file opencl.hpp.
|
inlineexplicit |
Constructor from cl_sampler - takes ownership.
retainObject | will cause the constructor to retain its cl object. Defaults to false to maintain compatibility with earlier versions. This effectively transfers ownership of a refcount on the cl_sampler into the new Sampler object. |
Definition at line 5686 of file opencl.hpp.
|
inline |
Copy constructor to forward copy to the superclass correctly. Required for MSVC.
Definition at line 5703 of file opencl.hpp.
|
inline |
Move constructor to forward move to the superclass correctly. Required for MSVC.
Definition at line 5717 of file opencl.hpp.
|
inline |
Wrapper for clGetSamplerInfo() that returns by value.
Definition at line 5740 of file opencl.hpp.
|
inline |
Wrapper for clGetSamplerInfo().
Definition at line 5730 of file opencl.hpp.
|
inline |
Assignment operator from cl_sampler - takes ownership.
This effectively transfers ownership of a refcount on the rhs and calls clReleaseSampler() on the value previously held by this instance.
Definition at line 5694 of file opencl.hpp.
Copy assignment to forward copy to the superclass correctly. Required for MSVC.
Definition at line 5708 of file opencl.hpp.
Move assignment to forward move to the superclass correctly. Required for MSVC.
Definition at line 5722 of file opencl.hpp.