SDL3ParticleRenderer.AppendInstances(ReadOnlySpan) Method
Definition
Namespace: Brine2D.Rendering
Appends instances to the CPU staging buffer and returns the
firstInstance index to pass to
DrawGPUIndexedPrimitives(6, count, 0, 0, firstInstance).
Returns -1 when the per-frame instance budget is exhausted; the caller
should skip recording the draw call.
C#
public int AppendInstances(System.ReadOnlySpan<Brine2D.Rendering.SDL3ParticleRenderer.ParticleInstance> instances);
Parameters
instances System.ReadOnlySpan<ParticleInstance>