How to pass parameters to compute shader?

Hi,
I am trying to pass parameters from C++ to my .usf file shader. Can anyone provide me with a code example on how to pass parameters and retrieve them in the shader?

Found what I was looking for here:

Explicitly in lines 24-31 and lines 60-68

Hope this helps someone else

1 Like