| ▲ | Testing WebGPU data layouts with Facet(mattkeeter.com) | |
| 52 points by luu 2 days ago | 3 comments | ||
| ▲ | flohofwoe an hour ago | parent | next [-] | |
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. | ||
| ▲ | brinepot 2 hours ago | parent | prev | next [-] | |
Spent too much time debugging alignment issues with Vulkan buffers. WebGPU having good tools like Facet from the start is a huge win. | ||
| ▲ | jauntywundrkind 2 hours ago | parent | prev [-] | |
This is so good. And it's so absurd how programming languages so frequently treat types as a compile time check. Still. After so so long. It's great having tools like Facet around to add runtime type information in. I wish TypeScript was seeing progress but there's seemingly no progress or traction in 5 years+, just some early experiments which died out. | ||