nw::gfx::ParticleSet::UpdateParticles Member Function

Syntax

void UpdateParticles(
     ParticleContext * particleContext,
     bool enableSwapBuffer = true
);

Arguments

Name Description
in particleContext Particle context.
in enableSwapBuffer Specifies whether to swap the buffer.

Return Values

None.

Description

Updates particles.

Buffers are not swapped internally if enableSwapBuffer is set to false. This is normally set to true. If the command buffer is doubled on the application side and UpdateNode is called multiple times while rendering the same frame (if ther eis a frame drop process), set this value to false for second and later calls within the same frame.

For details, see ParticleDropFrameDemo.


CONFIDENTIAL