java.lang.Object
physx.NativeObject
physx.particles.PxParticleSystemCallback
- Direct Known Subclasses:
PxParticleSystemCallbackImpl
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxParticleSystemCallbackarrayGet(long baseAddress, int index) voiddestroy()voidonAdvance(PxGpuMirroredGpuParticleSystemPointer gpuParticleSystem, CUstream stream) Method gets called when the simulation step of the particle system is performedvoidonBegin(PxGpuMirroredGpuParticleSystemPointer gpuParticleSystem, CUstream stream) Method gets called when dirty data from the particle system is uploated to the gpuvoidonPostSolve(PxGpuMirroredGpuParticleSystemPointer gpuParticleSystem, CUstream stream) Method gets called after the particle system simulation step completedstatic PxParticleSystemCallbackwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxParticleSystemCallback
protected PxParticleSystemCallback() -
PxParticleSystemCallback
protected PxParticleSystemCallback(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
onBegin
Method gets called when dirty data from the particle system is uploated to the gpu- Parameters:
gpuParticleSystem- Pointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointerstream- The 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.
-
onAdvance
Method gets called when the simulation step of the particle system is performed- Parameters:
gpuParticleSystem- Pointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointerstream- The 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
Method gets called after the particle system simulation step completed- Parameters:
gpuParticleSystem- Pointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointerstream- The 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.
-