Hello,
I am wondering can I declaring a multi-dimension array in hlsl? It is constant and I don’t need to send data from c# to it. Just like:const uint test[5][20] = {...}
Or does hlsl only support one dimension array?
Hello,
I am wondering can I declaring a multi-dimension array in hlsl? It is constant and I don’t need to send data from c# to it. Just like:const uint test[5][20] = {...}
Or does hlsl only support one dimension array?
I haven’t tried this, but have it bookmarked to experiment on, you can do an array of arrays, just as you’re suggesting, like so:
I’m not sure what kinds of GPUs and OS you need for this to work. It might be, I suspect, only DirectX.