I’m trying to set a constant buffer which contains an array of floats (the buffer is intended for holding weights of filter).
In the hlsl file I defined the constant buffer as follows:
When doing this, the array will never hold the values I inserted in the C++. why ?
In order to check it, I changed it as follows:
In this case, the variables holds exactly the values I set through the c++ program, and everithing is ok.
Why the “array” form doesn’t work??