by flohofwoe · 2mo ago · 0 comments
Ticket: https://github.com/gpuweb/gpuweb/issues/4973
Caniuse: https://caniuse.com/?search=uniform_buffer_standard_layout
The std140-style layout restrictions are basically a leftover when GPUs used vec4 "register tables" for uniform data.
Right now, I'm targeting everything (native / Firefox / Chrome / Safari), so minimizing use of extensions; this also means I get to run head-long into fun cross-platform behavior differences [1][2][3]
[1] https://github.com/gfx-rs/wgpu/issues/8785
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1870699
[3] https://github.com/mkeeter/halfspace/issues/1#issuecomment-3...