Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW, there's a WebGPU extension which 'harmonizes' uniform buffer struct layout with other address spaces, but currently it's only implemented in Chromium-based browsers:

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.



Nice, I'll keep an eye on that!

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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: