Class ComputeEmitterSimulator
A class that manages a single particle emitter simulator with a compute shader.
Inherited Members
Namespace: Evergine.Framework.Particles
Assembly: Evergine.Framework.dll
Syntax
public class ComputeEmitterSimulator : EmitterSimulator
Constructors
ComputeEmitterSimulator(ParticlesComponent, ParticlesEmitter)
Initializes a new instance of the ComputeEmitterSimulator class.
Declaration
public ComputeEmitterSimulator(ParticlesComponent component, ParticlesEmitter emitter)
Parameters
Type | Name | Description |
---|---|---|
ParticlesComponent | component | The particle system component. |
ParticlesEmitter | emitter | The asset emitter. |
Properties
ComputeResolved
Gets a value indicating whether the emitter is using a compute shader.
Declaration
public override bool ComputeResolved { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
ClearResources()
Clears the emitter's resources.
Declaration
protected override void ClearResources()
Overrides
CreateResources()
Creates the emitter's resources.
Declaration
protected override void CreateResources()
Overrides
RefreshCounters()
Refreshes all the counters that the emitter may have.
Declaration
protected override void RefreshCounters()
Overrides
RefreshParticles()
Refreshes the particles.
Declaration
protected override void RefreshParticles()
Overrides
RefreshProperties()
Refreshes the parameters of the compute shader.
Declaration
protected override void RefreshProperties()
Overrides
ResetData(CommandBuffer)
Resets the emitter data.
Declaration
protected override void ResetData(CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
Overrides
Unitialize()
Uninitializes the emitter.
Declaration
protected override void Unitialize()
Overrides
UpdateParticlesMethod(CommandBuffer, TimeSpan)
The method that updates the particle system.
Declaration
protected override void UpdateParticlesMethod(CommandBuffer commandBuffer, TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
TimeSpan | gameTime |