When opening a buffer for view, it can display both fixed non-repeating “struct-of-arrays” (SoA) data, repeated “array-of-structs” (AoS) data, or where supported by the API it can display both - with the fixed data coming as a prefix to repeated data.
“struct-of-arrays” (SoA) is used only in comparison to “array-of-structs” (AoS). The simple case of only fixed values with no arrays would also be considered SoA data, just with no arrays.
The format is defined initially by whatever reflection data is available. The format can be customised, as detailed in How do I specify a buffer format?.
Constant buffers are assumed to be AoS data in all cases. Other views of buffers via non-constant bindings such as UAVs and storage buffers, or views opened directly from a buffer from the resource inspector, will default towards SoA data unless the layout explicitly declares a fixed set of SoA data.
Exporting and display¶
When displaying fixed SoA data as above, the padding can be visualised by enabling the option.
Buffer data can be exported either as CSV values, or where the buffer is backed by byte memory as raw bytes.