RavEngine
Loading...
Searching...
No Matches
physx::PxParticleSystemCallback Class Referenceabstract

Particle system callback base class to schedule work that should be done before, while or after the particle system updates. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that all tasks of this callback completed. More...

#include <PxParticleSystem.h>

Public Member Functions

virtual void onBegin (const PxGpuMirroredPointer< PxGpuParticleSystem > &gpuParticleSystem, CUstream stream)=0
 Method gets called when dirty data from the particle system is uploated to the gpu.
 
virtual void onAdvance (const PxGpuMirroredPointer< PxGpuParticleSystem > &gpuParticleSystem, CUstream stream)=0
 Method gets called when the simulation step of the particle system is performed.
 
virtual void onPostSolve (const PxGpuMirroredPointer< PxGpuParticleSystem > &gpuParticleSystem, CUstream stream)=0
 Method gets called after the particle system simulation step completed.
 
virtual ~PxParticleSystemCallback ()
 Destructor.
 

Detailed Description

Particle system callback base class to schedule work that should be done before, while or after the particle system updates. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that all tasks of this callback completed.

Member Function Documentation

◆ onAdvance()

virtual void physx::PxParticleSystemCallback::onAdvance ( const PxGpuMirroredPointer< PxGpuParticleSystem > &  gpuParticleSystem,
CUstream  stream 
)
pure virtual

Method gets called when the simulation step of the particle system is performed.

Parameters
[in]gpuParticleSystemPointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointer
[in]streamThe stream on which all cuda kernel calls get scheduled for execution. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the task completed.

◆ onBegin()

virtual void physx::PxParticleSystemCallback::onBegin ( const PxGpuMirroredPointer< PxGpuParticleSystem > &  gpuParticleSystem,
CUstream  stream 
)
pure virtual

Method gets called when dirty data from the particle system is uploated to the gpu.

Parameters
[in]gpuParticleSystemPointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointer
[in]streamThe stream on which all cuda kernel calls get scheduled for execution. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the task completed.

◆ onPostSolve()

virtual void physx::PxParticleSystemCallback::onPostSolve ( const PxGpuMirroredPointer< PxGpuParticleSystem > &  gpuParticleSystem,
CUstream  stream 
)
pure virtual

Method gets called after the particle system simulation step completed.

Parameters
[in]gpuParticleSystemPointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointer
[in]streamThe stream on which all cuda kernel calls get scheduled for execution. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the task completed.

The documentation for this class was generated from the following file: