struct
RHIGPUParticleRenderer::EmitterGPUState
Concrete emitter state
- Module
- Particles
- Header
#include "Particles/RHIGPUParticleRenderer.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
Ref<StorageBuffer> | particleSSBO | GPUParticle[] array |
Ref<StorageBuffer> | aliveSSBO | uint[] alive indices |
Ref<StorageBuffer> | deadSSBO | uint[] dead indices (free list) |
Ref<StorageBuffer> | counterSSBO | uint[3]: alive, dead, emit counts |
Ref<StorageBuffer> | indirectArgsSSBO | DrawIndexedIndirectCommand |
Ref<UniformBuffer> | simParamsUBO | GPUParticleSimParams (512B) |
Ref<DescriptorSet> | computeDS | Set 0 for compute |
Ref<DescriptorSet> | simParamsDS | Set 1 for compute (UBO) |
Ref<DescriptorSet> | renderDS | Set 0 for render (SSBO read) |
Ref<StorageBuffer> | sortSSBO | uint2[sortCount] (key, index), created on first sort |
Ref<DescriptorSet> | sortDS | Set 1 for the sort pass |
uint32_t | sortCount | power of two >= 1024 covering maxParticles Default 0. |
uint32_t | maxParticles | Default 0. |
Ref<StorageBuffer>[2] | uploadSSBO | Spawned 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] | uploadCustomSSBO | the same particles' custom attributes |
Ref<DescriptorSet>[2] | uploadDS | |
uint32_t uploadCapacity[2] = | ||
uint32_t uploadUsed[2] = | ||
uint64_t uploadFrame[2] = | ||
Ref<StorageBuffer> | customSSBO | Custom 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] | programSSBO | The 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