‹ BackHN Continuity

Thread

Testing WebGPU data layouts with Facet

90 points · 7 comments · luu

  1. flohofwoe · · focus · HN ↗
    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: <a href="https:&#x2F;&#x2F;github.com&#x2F;gpuweb&#x2F;gpuweb&#x2F;issues&#x2F;4973" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gpuweb&#x2F;gpuweb&#x2F;issues&#x2F;4973

    Caniuse: <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;?search=uniform_buffer_standard_layout" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;?search=uniform_buffer_standard_layout

    The std140-style layout restrictions are basically a leftover when GPUs used vec4 &quot;register tables&quot; for uniform data.

    1. mkeeter · · focus · HN ↗
      Nice, I&#x27;ll keep an eye on that!

      Right now, I&#x27;m targeting everything (native &#x2F; Firefox &#x2F; Chrome &#x2F; 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] <a href="https:&#x2F;&#x2F;github.com&#x2F;gfx-rs&#x2F;wgpu&#x2F;issues&#x2F;8785" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gfx-rs&#x2F;wgpu&#x2F;issues&#x2F;8785

      [2] <a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1870699" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1870699

      [3] <a href="https:&#x2F;&#x2F;github.com&#x2F;mkeeter&#x2F;halfspace&#x2F;issues&#x2F;1#issuecomment-3593059692" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mkeeter&#x2F;halfspace&#x2F;issues&#x2F;1#issuecomment-3...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.