I have noticed that you cannot access bindings from your parms or @Time, for example, inside a function you write outside for an OpenCL kernel. Does anyone know why? Is there a way to pass binding to functions in OpenCL
While I'm not that familiar with OpenCL snippets, I'd assume it's the same as in VEX, where you need to pass those values as function arguments from the main body of the shader
since the snippet syntax is not part of the language
Thank you both very much. I think my example was a bit misleading. I guess what I am referring to is that in Openl CL, global and parameter bindings are only accessible within the scope of the Kernal. And functions have to be defined outside of the kernel, so you cannot access binding in the scope of the function. For example, I cannot pass @Time to a function I write, not as a function argument. It does make sense in the end.