4 ms·
What WebGPU API is this using? If I try on Chrome Canary after enabling WebGPU under `chrome://flags`, I get an exception on the `device.createBindGroupLayout`
by sxp 6y ago
What WebGPU API is this using? If I try on Chrome Canary after enabling WebGPU under `chrome://flags`, I get an exception on the `device.createBindGroupLayout` call because "required member entries is undefined". The API call on the demo page doesn't seem to match the spec at https://gpuweb.github.io/gpuweb/#GPUDevice-createBindGroupLayout https://gpuweb.github.io/gpuweb/#GPUDevice-createBindGroupLa...
If I change to code to refer to `entries: ...` instead of `bindings: ...`, I get further, but it fails on a missing `createBufferMapped` function. Firefox nightly just crashes at this stage.
- brrrrrm 6y agoit's Safari's WSL API, which doesn't work on the other browsers. There's a bit of a debate about the API (Spir-V vs WSL/WHSL), you can find some context here: https://news.ycombinator.com/item?id=22022962 https://news.ycombinator.com/item?id=22022962
- jdashg 6y agoThe debate was settled long ago. The resolution was WGSL: https://gpuweb.github.io/gpuweb/wgsl.html https://gpuweb.github.io/gpuweb/wgsl.html
- cpeterso 6y agoI got the same createBindGroupLayout error in Firefox and filed a Firefox bug before I saw brrrrrm's sibling comment about Safari's WSL API. https://bugzilla.mozilla.org/show_bug.cgi?id=1696336 https://bugzilla.mozilla.org/show_bug.cgi?id=1696336 If your Firefox actually crashed, do you see any crash report IDs in "about:crashes"?