Skip to content

SplatAttribute

One attribute's GPU buffer, as a pair of kernel bindings.

Properties

itemSize

  • Type: number
  • Floats per splat. Buffer length is splat.count * itemSize, which is what a kernel's bounds guard and thread count are sized from. Named after three.js BufferAttribute.

read

  • Type: EngineBufferBinding
  • Token tagged as "read into kernel". Returns the contents as the renderer last saw them.

write

  • Type: EngineBufferBinding
  • Token tagged as "write from kernel". The buffer arrives uninitialised, so the kernel has to write every element it is dispatched over. Written values then persist with no further dispatches, so a one-shot effect can stop when it finishes.