title: 2D array in constant buffer
body: <p>Im trying to pass a 2D float array to a constant buffer:</p>
  
  <pre><code>//In the shader:
      cbuffer myBuffer
      {
          other buffer elements
          .
          .
          float myArray[16][16];
      };
  
  //In the CPU:
      struct  myBuffer_struct
      {
          other buffer elements
          .
          .
          float myArray[16][16];
      };
  </code></pre>
  
  <p>But im having a lot of problems dealing with the padding. I tried using </p>
  
  <blockquote>
    <p>float4[size/4][size]</p>
  </blockquote>
  
  <p>in my cbuffer and a lot of other type combinations but I cant access to my array by indexation in any way. What is the proper way to do this?</p>
  
  <p>Thank you.</p>