nxt.container.soa

Structure of arrays (SoA).

SoAs are common in game engines.

Initially a builtin feature in the Jai programming language that later was made into a library solution.

TODO: merge with soa_petar_kirov.d by 1. allocate all arrays in a single chunk 2. calculating _capacity based on _length

TODO: merge with variant_arrays.d? TODO: Maybe growth logic can be hidden inside a wrapper Allocator

Members

Aliases

StructArrays
alias StructArrays = SoA
Undocumented in source.

Structs

SoA
struct SoA(S, Capacity = size_t, Allocator = Mallocator)

Structure of Arrays similar to members of S.

See Also

Meta