benediktpeter / webgpu-particle-system

BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Overlapping buffers #1

Open jatentaki opened 1 year ago

jatentaki commented 1 year ago

Hello, running your code in chrome 113 I get the following error:

Writable storage buffer binding aliasing found between [BindGroup] set at bind group index 0, binding index 0, and [BindGroup] set at bind group index 0, binding index 1, with overlapping ranges (offset: 0, size: 4) and (offset: 0, size: 4) in [Buffer].
 - While encoding [ComputePassEncoder].DispatchWorkgroups(3907, 1, 1).

Does it still work on your system?

m-schuetz commented 1 year ago

Unfortunately Chrome now forbidds aliasing between buffers which was meant to be a substantial performance improvement.

You can try to fix it by removing "spawnCounterNonAtomic" and everything related to it.

jatentaki commented 1 year ago

Great, thanks a lot. This answers my question so feel free to close the issue if you wish.