struct
alignas
Simulation constants (padded to 512 bytes for root CBV alignment)
- Module
- Particles
- Header
#include "Particles/GPUParticle.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
float gravityX, gravityY, gravityZ, | drag | Force (16 bytes) |
float noiseStrength, noiseFreq, noiseScroll, | noiseTime | Noise (16 bytes) |
float deltaTime, | currentTime | Frame (16 bytes) |
uint32_t maxParticles, | aliveCount | |
float[32] | colorGradient | Color gradient - 8 RGBA samples baked from ColorModule (128 bytes) |
uint32_t | colorSamples | |
float[3] | pad0 | |
float[16] | sizeCurve | Size curve - 8 XY samples baked from SizeModule (64 bytes) |
uint32_t | sizeSamples | |
float[3] | pad1 | |
float emitterPosX, emitterPosY, | emitterPosZ | Velocity 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. |
float | orbitalVelocity | |
float | radialVelocity | radial (16 bytes with the speed sample count and padding). |
uint32_t | speedSamples | |
float[2] | pad3 | |
float[16] | speedCurve | Speed-over-lifetime multiplier curve - 8 samples (X = multiplier) baked from VelocityModule::speedOverLifetime (64 bytes). |
float camRightX, camRightY, camRightZ, | camPosX | Billboard camera data (48 bytes) |
float camUpX, camUpY, camUpZ, | camPosY | |
float camFwdX, camFwdY, camFwdZ, | camPosZ | |
float[16] | viewProj | ViewProjection matrix (64 bytes) |
uint32_t | collisionEnabled | Collision, 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_t | collisionMode | |
float | collisionRadius | |
float | collisionBounce | |
float | collisionFriction | (16 bytes) |
float | collisionRestThreshold | |
float | collisionLifetimeLoss | |
uint32_t | collisionKillOnCollide | |
float sdfOriginX, sdfOriginY, | sdfOriginZ | SDF clipmap window: grid origin + cell size (16 bytes). |
float | sdfCellSize | |
uint32_t | sdfDim | SDF dim + tier readiness + depth-buffer dimensions (16 bytes). |
uint32_t | sdfReady | |
uint32_t | depthReady | |
uint32_t | depthWidth | |
uint32_t | depthHeight | (16 bytes) |
float[3] | collPad0 | |
float[16] | invViewProj | Inverse viewProjection for depth unprojection + camera position for the depth-surface normal orientation (64 bytes). |
float toLightX, toLightY, | toLightZ | Lit 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_t | lit | |
float lightColorR, lightColorG, | lightColorB | |
float | lightPad0 | |
float ambientR, ambientG, | ambientB | |
float | lightPad1 | |
float[24] | pad2 | Padding to 768 bytes |
Generated from Particles/GPUParticle.h via particles.json · Oct 31, 2026Version 1.0.0