struct

alignas

Simulation constants (padded to 512 bytes for root CBV alignment)

Module
Particles
Header
#include "Particles/GPUParticle.h"
Namespace
Mowo

Properties

TypeNameDescription
float gravityX, gravityY, gravityZ,dragForce (16 bytes)
float noiseStrength, noiseFreq, noiseScroll,noiseTimeNoise (16 bytes)
float deltaTime,currentTimeFrame (16 bytes)
uint32_t maxParticles,aliveCount
float[32]colorGradientColor gradient - 8 RGBA samples baked from ColorModule (128 bytes)
uint32_tcolorSamples
float[3]pad0
float[16]sizeCurveSize curve - 8 XY samples baked from SizeModule (64 bytes)
uint32_tsizeSamples
float[3]pad1
float emitterPosX, emitterPosY,emitterPosZVelocity module: emitter position for orbital/radial + the two scalars (16 bytes). Matches VelocityModule so a GPU emitter orbits and pushes radially exactly like its CPU twin.
floatorbitalVelocity
floatradialVelocityradial (16 bytes with the speed sample count and padding).
uint32_tspeedSamples
float[2]pad3
float[16]speedCurveSpeed-over-lifetime multiplier curve - 8 samples (X = multiplier) baked from VelocityModule::speedOverLifetime (64 bytes).
float camRightX, camRightY, camRightZ,camPosXBillboard camera data (48 bytes)
float camUpX, camUpY, camUpZ,camPosY
float camFwdX, camFwdY, camFwdZ,camPosZ
float[16]viewProjViewProjection matrix (64 bytes)
uint32_tcollisionEnabledCollision, baked from the emitter's CollisionModule (per emitter) and the renderer's SDF/depth field (per view). collisionMode: 0 auto, 1 sdf, 2 depth — matching ParticleCollisionMode. Gated by collisionEnabled so an emitter without a CollisionModule pays nothing. (16 bytes)
uint32_tcollisionMode
floatcollisionRadius
floatcollisionBounce
floatcollisionFriction(16 bytes)
floatcollisionRestThreshold
floatcollisionLifetimeLoss
uint32_tcollisionKillOnCollide
float sdfOriginX, sdfOriginY,sdfOriginZSDF clipmap window: grid origin + cell size (16 bytes).
floatsdfCellSize
uint32_tsdfDimSDF dim + tier readiness + depth-buffer dimensions (16 bytes).
uint32_tsdfReady
uint32_tdepthReady
uint32_tdepthWidth
uint32_tdepthHeight(16 bytes)
float[3]collPad0
float[16]invViewProjInverse viewProjection for depth unprojection + camera position for the depth-surface normal orientation (64 bytes).
float toLightX, toLightY,toLightZLit billboards, read by the render pass rather than the simulation: the CPU path's sun N·L + ambient against an outward puff normal from the emitter, so a Lit emitter shades the same whichever simulationMode it selects. lightColor is pre-multiplied by intensity; lit gates it. (48 bytes)
uint32_tlit
float lightColorR, lightColorG,lightColorB
floatlightPad0
float ambientR, ambientG,ambientB
floatlightPad1
float[24]pad2Padding to 768 bytes
Generated from Particles/GPUParticle.h via particles.json · Oct 31, 2026Version 1.0.0