title: Does opencl support Function Pointers?
body: <p>Is there a way to use C style function pointers in OpenCL?</p>
  
  <p>In other words, I'd like to fill out a OpenCL struct with several values, as well as pointers to a OpenCL function. I'm not talking about going from a CPU function to a GPU function, I'm talking about going from a GPU function to a GPU function. </p>
  
  <p>Is this possible?</p>
  
  <p>--- EDIT ---</p>
  
  <p>If not, it there a way around this? In CUDA we have object inheritance, and in 4.0 we even have virtual functions. About the only way I can find to implement a runtime dispatch like this is to resort to if statements, and that will get ugly really fast.</p>