cf4ocl (C Framework for OpenCL)  v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ccl_sampler Struct Reference

Sampler wrapper class. More...

Inheritance diagram for ccl_sampler:
Inheritance graph
Collaboration diagram for ccl_sampler:
Collaboration graph

Public Member Functions

void ccl_sampler_destroy (CCLSampler *smplr)
 Decrements the reference count of the wrapper object. More...
 
CCLSamplerccl_sampler_new (CCLContext *ctx, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, CCLErr **err)
 Create a new sampler wrapper object by specifying a basic set of sampler properties. More...
 
CCLSamplerccl_sampler_new_full (CCLContext *ctx, const cl_sampler_properties *sampler_properties, CCLErr **err)
 Create a new sampler wrapper object using a list of properties. More...
 
- Public Member Functions inherited from ccl_wrapper
CCLWrapperInfoccl_wrapper_get_info (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get information about any wrapped OpenCL object. More...
 
size_t ccl_wrapper_get_info_size (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get information size. More...
 
void * ccl_wrapper_get_info_value (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get pointer to information value. More...
 
cl_bool ccl_wrapper_memcheck ()
 Debug function which checks if memory allocated by wrappers has been properly freed. More...
 
void ccl_wrapper_ref (CCLWrapper *wrapper)
 Increase the reference count of the wrapper object. More...
 
int ccl_wrapper_ref_count (CCLWrapper *wrapper)
 Returns the wrapper object reference count. More...
 
void * ccl_wrapper_unwrap (CCLWrapper *wrapper)
 Get the wrapped OpenCL object. More...
 

Protected Member Functions

CCLSamplerccl_sampler_new_wrap (cl_sampler sampler)
 Get the sampler wrapper for the given OpenCL sampler. More...
 

Detailed Description

Sampler wrapper class.

Examples:
image_filter.c.

Definition at line 38 of file ccl_sampler_wrapper.c.