Parameters index inside a kernel

Hello, my question is if it is possible to know the index number of a kernel parameter inside this kernel. For example:

__kernel void Func( a, b,c, )

Here I would want to know the index of a b or c, which is 0, 1 and 2 respectively



There is no builtin function or macro that will do what you are asking for. You have to do it by hand.