30 #ifndef _CCL_KERNEL_ARG_H_
31 #define _CCL_KERNEL_ARG_H_
52 void ccl_arg_destroy(
CCLArg* arg);
56 size_t ccl_arg_size(
CCLArg* arg);
60 void* ccl_arg_value(
CCLArg* arg);
141 #define ccl_arg_priv(value, type) \
142 ccl_arg_new(&value, sizeof(type))
156 #define ccl_arg_local(count, type) \
157 ccl_arg_new(NULL, count * sizeof(type))
170 #define ccl_arg_full(value, size) \
171 ccl_arg_new(value, size)
CCLArg * ccl_arg_new(void *value, size_t size)
Create a new kernel argument.
const CCLArg * ccl_arg_skip
Use this constant to skip kernel arguments in the ccl_kernel_set_args(), ccl_kernel_set_args_v(), ccl_kernel_set_args_and_enqueue_ndrange() and ccl_kernel_set_args_and_enqueue_ndrange_v() functions.
CCLWrapper CCLArg
The CCLArg type is an alias for CCLWrapper type.
Base class for all OpenCL wrappers.
Definition of an abstract wrapper class and its methods for OpenCL objects.
Common cf4ocl definitions.