Original Post
I'm stuggling with arrays in HLSL. Even a simple code like this:
int Array[2],
Array[1] = 2,
Array[2] = 1;
gives me the following error: "Cannot convert from int to int[ ]..." This means I can't write any value in the array, but I have no idea why this happens. Somehow an integer or float can't be converted to be put into the array. Anyone knows why it gives this error, and how to solve this ? I've been trying to solve this for the past 3 days, but without any luck (even google let me down for the first time). Any help is highly appreciated ! Thanks.