Hi,
I am trying to move some of my C# code for a noise implementation onto a Unity HLSL compute shader. Unfortunately some of the functions returns arrays. I have looked at several resources in an attempt to find out how to do this but I still don't have a working solution. I did find a similar question on here (see the bottom of this post). In this case using `out' was suggested. Is this the correct way to handle this? If so what would the correct syntax be for a function which also has three parameters, such as:
int[] CornerPoints(float x, float y, float z)
In this case the returned array will be a multidimensional array.
int[8,3]
.Any pointers in the right direction would be much appreciated.