   constant buffer array packing
  I have questions about how to pack structs for transfering array elements to a constant buffer. I am wondering whether each index in an array must a new 16 byte value or does it pack 4*4bytes. for example which would be correct for this constant buffer cbuffer buffer{    int n[5];};A: struct buffer{    int n[5][4];//each [x][0] index is the guy};B:struct buffer{    int n[8]; //ignore last 3 elements};   
  ok found my answer myself. All array elements are by default packed into individual 4 component elements to avoid alu issues or something like that.   