google / tour-of-wgsl

https://google.github.io/tour-of-wgsl/
BSD 3-Clause "New" or "Revised" License
102 stars 19 forks source link

Highlight that WGSL has a single memory layout for host-visible buffers #61

Open ben-clayton opened 1 year ago

ben-clayton commented 1 year ago

Unlike some other shading languages, WGSL has a single way to lay out memory, and allows @size and @align to change struct field defaults.

Buffer layouts are validated differently between uniform and storage.