I would like to know if it is possible to a method to structs ? Like for a class ?
Or if there are some 'mechanism/tips/tricks' that can help to acheive this ?
AFAIK you cannot use methods in C structures without a function pointer.
As OpenCL is based on C99 and function pointers are not supported
in OpenCL,I think its impossible to have methods in opencl Structures.
Refer OpenCL spec for details