class GPUParticleRenderModule

The GPUParticlesRenderModule is responsible for spawning and simulating all entities with ParticleSpawnerComponents.

File location: framework/rendermodules/gpuparticle/gpuparticlerendermodule.h

Construction

Return type

Description

Construction.

Methods

Return type

Description

void

Init (const json& initData)
Initialization function. Sets up resource pointers, pipeline objects, root signatures, and parameter sets.

void

Execute (double deltaTime, cauldron::CommandList * pCmdList)
Performs GPUParticle simulation if enabled.

void

PreTransCallback (double deltaTime, cauldron::CommandList * pCmdList)
Pre-translucent pass callback to sort particles before rendering in the translucency pass if needed.

Detailed description

The GPUParticlesRenderModule is responsible for spawning and simulating all entities with ParticleSpawnerComponents. Actual rendering will be handled by the translucency render module (on which GPUParticles is dependent) so they can be sorted with other translucent instances.

Construction

GPUParticleRenderModule

Copied!

GPUParticleRenderModule ()

Construction.


Methods

Init

Copied!

virtual void Init (const json& initData)

Initialization function. Sets up resource pointers, pipeline objects, root signatures, and parameter sets.


Execute

Copied!

virtual void Execute (double deltaTime, cauldron::CommandList * pCmdList)

Performs GPUParticle simulation if enabled.


PreTransCallback

Copied!

void PreTransCallback (double deltaTime, cauldron::CommandList * pCmdList)

Pre-translucent pass callback to sort particles before rendering in the translucency pass if needed.