Hello,
I’m evaluating porting a WebGPU prototype project to Three.js’s WebGPURenderer.
My shader (currently fragment, but might be compute in the future) requires binding a couple of SSBOs. These SSBOs mostly contain arrays of structures for acceleration structures.
It appears that the correct way to bind such a buffer to a node would be the storage() function from three/tsl, however right now if the type passed to storage() is a struct, the SSBO will seemingly be bound as a single struct instead of an array of structs (unlike when the type is vec3f), even if the count parameter passed to storage() is greater than one.
Is there a way to bind an array of structures I am missing or is this not yet possible?
Thanks in advance!