struct

RHIGPUParticleRenderer::EmitterGPUState

Concrete emitter state

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

Properties

TypeNameDescription
Ref<StorageBuffer>particleSSBOGPUParticle[] array
Ref<StorageBuffer>aliveSSBOuint[] alive indices
Ref<StorageBuffer>deadSSBOuint[] dead indices (free list)
Ref<StorageBuffer>counterSSBOuint[3]: alive, dead, emit counts
Ref<StorageBuffer>indirectArgsSSBODrawIndexedIndirectCommand
Ref<UniformBuffer>simParamsUBOGPUParticleSimParams (512B)
Ref<DescriptorSet>computeDSSet 0 for compute
Ref<DescriptorSet>simParamsDSSet 1 for compute (UBO)
Ref<DescriptorSet>renderDSSet 0 for render (SSBO read)
Ref<StorageBuffer>sortSSBOuint2[sortCount] (key, index), created on first sort
Ref<DescriptorSet>sortDSSet 1 for the sort pass
uint32_tsortCountpower of two >= 1024 covering maxParticles Default 0.
uint32_tmaxParticlesDefault 0.
Ref<StorageBuffer>[2]uploadSSBOSpawned particles on their way into the pool, one ring slot per frame in flight; uploadUsed packs every emit of one frame side by side so a second emit into the same emitter cannot overwrite the first before the GPU copies it.
Ref<StorageBuffer>[2]uploadCustomSSBOthe same particles' custom attributes
Ref<DescriptorSet>[2]uploadDS
uint32_t uploadCapacity[2] =
uint32_t uploadUsed[2] =
uint64_t uploadFrame[2] =
Ref<StorageBuffer>customSSBOCustom attributes by particle slot (float4 per particle), set 0 binding 5 of every compute pass: written by emit, read and written by the expression pass.
Ref<StorageBuffer>[2]programSSBOThe update scripts, one ring slot per frame in flight.
Ref<DescriptorSet>[2]programDS
uint32_t programCapacity[2] =
Generated from Particles/RHIGPUParticleRenderer.h via particles.json · Oct 31, 2026Version 1.0.0