From what I can tell there are many many ways wrapped around WebGPU storageBuffers and very few ways to read them.
In the examples they are often instancedArrays but I’m just trying to pass a “control” buffer so its not instanced, so I tried StorageBufferInstancedAttribute which seems to require tsl storage which is a pattern that works, but the semantics are terrible. I dont want instances, and its not an attribute for anything.
Some examples put that as a geometry attribute and pass it on particles. Ok thats fine but I’m trying to pass a vec3 and a few floats.
Theres a StorageBuffer node I think but no way to access it, and no example does it that way..
Then theres the indirectBuffer, and a few others..
I just want a storageBuffer..
Then reading it…
For instancedArrays I think I need .value but you dont need that for storage objects..
Oh and atomics! I have to set that on the buffer before hand?
I know this all new and there is no docs yet, but any guidance would help on the right pattern and when to use which and why extend it with PBO, Atomics, even name.
Also when to use an external array or just set the buffer with a number etc..