Gets the varying stream descriptors. Do not modify the returned array.
Adds varying streams. For each stream, a set function (set<Name>) is generated and made
available to the gsplatModifyVS shader chunk, where it runs once per splat, and a
matching get function (get<Name>) is made available to the gsplatModifyPS shader
chunk, where the per-splat value can be read for each rendered fragment.
Supported types are TYPE_FLOAT32, TYPE_INT32 and TYPE_UINT32, with 1 to 4 components. Adding or removing streams rebuilds the gsplat shaders.
Note: on some platforms each component is stored in per-splat video memory, so its size scales with the number of rendered splats. Keep the data as compact as possible - prefer fewer components, and consider bit-packing multiple small values into a single uint component instead of using separate streams.
The streams to add.
Removes varying streams previously added by GSplatVaryings#add.
The names of the streams to remove.
Manages custom varying streams for the gsplat render customization. Streams added here generate set functions available to the
gsplatModifyVSshader chunk, where they run once per splat, and matching get functions available to thegsplatModifyPSshader chunk, where the per-splat value can be read for each rendered fragment.Access the instance via GSplatParams#varyings.