Renderer · const

DEVICE_PARTICLE_FLOATS

Floats one particle takes in a buffer a caller's own compute writes (DeviceParticles), in this order: position 3, half-width 1, roll 1, colour 3, opacity 1, age 1, seed 1, velocity 3, a sprite's frame 1 and its half-height 1 — ParticleInstances' streams, interleaved as the pool's own upload interleaves them. 64 bytes a particle.

Explained in Hello world.

const DEVICE_PARTICLE_FLOATS = 16
import { DEVICE_PARTICLE_FLOATS } from '@driftengine/core';