v144 · WGSL Struct Layout Calculator
WGSL Struct Layout Calculator
Build a WGSL struct field by field and compare byte layouts side by side: the old default layout (16-byte array alignment) vs the new uniform_buffer_standard_layout extension (std140 rules). See exactly how padding changes and how much memory is saved.
Struct fields
Default layout (old — strict 16-byte alignment)
uniform_buffer_standard_layout (Chrome 144)