RavEngine
Loading...
Searching...
No Matches
physx::ExtGpu::ParticleRigidBuffersImpl Struct Reference
Inheritance diagram for physx::ExtGpu::ParticleRigidBuffersImpl:
[legend]
Collaboration diagram for physx::ExtGpu::ParticleRigidBuffersImpl:
[legend]

Public Member Functions

 ParticleRigidBuffersImpl (PxU32 maxRigids, PxU32 maxParticles, PxCudaContextManager *cudaContextManager)
 
void release ()
 
virtual PxU32 getMaxRigids () const
 
virtual PxU32 getNumRigids () const
 
virtual PxU32 getMaxParticles () const
 
virtual PxU32 getNumParticles () const
 
void addRigid (const PxVec3 &translation, const PxQuat &rotation, const PxReal coefficient, const PxVec4 *localPositions, const PxVec4 *localNormals, PxU32 numParticles)
 Adds a rigid.
 
PxParticleRigidDesc & getParticleRigidDesc ()
 Get the PxParticleRigidDesc for this buffer.
 
 ParticleRigidBuffersImpl (PxU32 maxRigids, PxU32 maxParticles, PxCudaContextManager *cudaContextManager)
 
void release ()
 
virtual PxU32 getMaxRigids () const
 
virtual PxU32 getNumRigids () const
 
virtual PxU32 getMaxParticles () const
 
virtual PxU32 getNumParticles () const
 
void addRigid (const PxVec3 &translation, const PxQuat &rotation, const PxReal coefficient, const PxVec4 *localPositions, const PxVec4 *localNormals, PxU32 numParticles)
 Adds a rigid.
 
PxParticleRigidDesc & getParticleRigidDesc ()
 Get the PxParticleRigidDesc for this buffer.
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Public Attributes

PxU32 mMaxParticles
 
PxU32 mNumParticles
 
PxParticleRigidDesc mRigidDesc
 
PxCudaContextManager * mCudaContextManager
 

Member Function Documentation

◆ addRigid() [1/2]

void physx::ExtGpu::ParticleRigidBuffersImpl::addRigid ( const PxVec3 &  translation,
const PxQuat &  rotation,
const PxReal  coefficient,
const PxVec4 *  localPositions,
const PxVec4 *  localNormals,
PxU32  numParticles 
)
inlinevirtual

Adds a rigid.

Parameters
[in]translationThe world-space location of the rigid.
[in]rotationThe world-space rotation of the rigid.
[in]coefficientThe stiffness of the rigid.
[in]localPositionsThe particle positions in local space.
[in]localNormalsThe surface normal for all the particles in local space. Each PxVec4 has the normal in the first 3 components and the SDF in the last component.
[in]numParticlesThe number of particles in this rigid.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ addRigid() [2/2]

void physx::ExtGpu::ParticleRigidBuffersImpl::addRigid ( const PxVec3 &  translation,
const PxQuat &  rotation,
const PxReal  coefficient,
const PxVec4 *  localPositions,
const PxVec4 *  localNormals,
PxU32  numParticles 
)
inlinevirtual

Adds a rigid.

Parameters
[in]translationThe world-space location of the rigid.
[in]rotationThe world-space rotation of the rigid.
[in]coefficientThe stiffness of the rigid.
[in]localPositionsThe particle positions in local space.
[in]localNormalsThe surface normal for all the particles in local space. Each PxVec4 has the normal in the first 3 components and the SDF in the last component.
[in]numParticlesThe number of particles in this rigid.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getMaxParticles() [1/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getMaxParticles ( ) const
inlinevirtual
Returns
The maximum number of particles this PxParticleRigidBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getMaxParticles() [2/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getMaxParticles ( ) const
inlinevirtual
Returns
The maximum number of particles this PxParticleRigidBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getMaxRigids() [1/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getMaxRigids ( ) const
inlinevirtual
Returns
The maximum number of rigids this PxParticleRigidBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getMaxRigids() [2/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getMaxRigids ( ) const
inlinevirtual
Returns
The maximum number of rigids this PxParticleRigidBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getNumParticles() [1/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getNumParticles ( ) const
inlinevirtual
Returns
The current number of particles in this PxParticleRigidBufferHelper instance.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getNumParticles() [2/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getNumParticles ( ) const
inlinevirtual
Returns
The current number of particles in this PxParticleRigidBufferHelper instance.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getNumRigids() [1/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getNumRigids ( ) const
inlinevirtual
Returns
The current number of rigids in this PxParticleRigidBufferHelper instance.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getNumRigids() [2/2]

virtual PxU32 physx::ExtGpu::ParticleRigidBuffersImpl::getNumRigids ( ) const
inlinevirtual
Returns
The current number of rigids in this PxParticleRigidBufferHelper instance.

Implements physx::ExtGpu::PxParticleRigidBufferHelper.

◆ getParticleRigidDesc() [1/2]

PxParticleRigidDesc & physx::ExtGpu::ParticleRigidBuffersImpl::getParticleRigidDesc ( )
inlinevirtual

◆ getParticleRigidDesc() [2/2]

PxParticleRigidDesc & physx::ExtGpu::ParticleRigidBuffersImpl::getParticleRigidDesc ( )
inlinevirtual

◆ release() [1/2]

void physx::ExtGpu::ParticleRigidBuffersImpl::release ( )
inlinevirtual

◆ release() [2/2]

void physx::ExtGpu::ParticleRigidBuffersImpl::release ( )
inlinevirtual

The documentation for this struct was generated from the following files: