title: Array length in HLSL?
body: <p>I can't find any docs or examples on how to get the length of an array in HLSL.</p>
  
  <p>I push an array of lights to an hlsl shader and I want to do a <code>for(int i=0; i&lt;foo.length; i++)</code> (- not the correct syntax).</p>
  
  <p>Is it not possible to obtain the length of an array? Must I push an array length integer to the hlsl shader from the c++ side?</p>
  
  <p>Additionally, how can I find out what's the maximum allowed for-loop count I can have in my shader? (Since loops are unrolled, there should be a limit.)</p>