nw::gfx::ParticleSceneUpdater::UpdateNode Member Function

Syntax

virtual void UpdateNode(
     SceneContext * sceneContext,
     ParticleContext * particleContext,
     bool enableSwapBuffer = true
);

Arguments

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

Return Values

None.

Description

Updates scene contexts based on views.

Updates the emitter and particle model included in the specified scene context.

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