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

Public Member Functions

 ParticleVolumeBuffersImpl (PxU32 maxVolumes, PxU32 maxTriangles, PxCudaContextManager *cudaContextManager)
 
void release ()
 
virtual PxU32 getMaxVolumes () const
 
virtual PxU32 getNumVolumes () const
 
virtual PxU32 getMaxTriangles () const
 
virtual PxU32 getNumTriangles () const
 
virtual PxParticleVolume * getParticleVolumes ()
 
virtual PxParticleVolumeMesh * getParticleVolumeMeshes ()
 
virtual PxU32 * getTriangles ()
 
virtual void addVolume (const PxParticleVolume &volume, const PxParticleVolumeMesh &volumeMesh, const PxU32 *triangles, const PxU32 numTriangles)
 Adds a PxParticleVolume with a PxParticleVolumeMesh.
 
virtual void addVolume (const PxU32 particleOffset, const PxU32 numParticles, const PxU32 *triangles, const PxU32 numTriangles)
 Adds a volume.
 
 ParticleVolumeBuffersImpl (PxU32 maxVolumes, PxU32 maxTriangles, PxCudaContextManager *cudaContextManager)
 
void release ()
 
virtual PxU32 getMaxVolumes () const
 
virtual PxU32 getNumVolumes () const
 
virtual PxU32 getMaxTriangles () const
 
virtual PxU32 getNumTriangles () const
 
virtual PxParticleVolume * getParticleVolumes ()
 
virtual PxParticleVolumeMesh * getParticleVolumeMeshes ()
 
virtual PxU32 * getTriangles ()
 
virtual void addVolume (const PxParticleVolume &volume, const PxParticleVolumeMesh &volumeMesh, const PxU32 *triangles, const PxU32 numTriangles)
 Adds a PxParticleVolume with a PxParticleVolumeMesh.
 
virtual void addVolume (const PxU32 particleOffset, const PxU32 numParticles, const PxU32 *triangles, const PxU32 numTriangles)
 Adds a volume.
 
- 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 mMaxVolumes
 
PxU32 mNumVolumes
 
PxU32 mMaxTriangles
 
PxU32 mNumTriangles
 
PxParticleVolume * mParticleVolumes
 
PxParticleVolumeMesh * mParticleVolumeMeshes
 
PxU32 * mTriangles
 
PxCudaContextManager * mCudaContextManager
 

Member Function Documentation

◆ addVolume() [1/4]

virtual void physx::ExtGpu::ParticleVolumeBuffersImpl::addVolume ( const PxParticleVolume &  volume,
const PxParticleVolumeMesh &  volumeMesh,
const PxU32 *  triangles,
const PxU32  numTriangles 
)
inlinevirtual

Adds a PxParticleVolume with a PxParticleVolumeMesh.

Parameters
[in]volumeThe PxParticleVolume to be added.
[in]volumeMeshA PxParticleVolumeMesh that describes the volumes to be added. startIndex is the index into the triangle list of the PxParticleVolumeBufferHelper instance.
[in]trianglesA pointer to the triangle indices of the PxParticleVolume to be added.
[in]numTrianglesThe number of triangles of the PxParticleVolume to be added.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ addVolume() [2/4]

virtual void physx::ExtGpu::ParticleVolumeBuffersImpl::addVolume ( const PxParticleVolume &  volume,
const PxParticleVolumeMesh &  volumeMesh,
const PxU32 *  triangles,
const PxU32  numTriangles 
)
inlinevirtual

Adds a PxParticleVolume with a PxParticleVolumeMesh.

Parameters
[in]volumeThe PxParticleVolume to be added.
[in]volumeMeshA PxParticleVolumeMesh that describes the volumes to be added. startIndex is the index into the triangle list of the PxParticleVolumeBufferHelper instance.
[in]trianglesA pointer to the triangle indices of the PxParticleVolume to be added.
[in]numTrianglesThe number of triangles of the PxParticleVolume to be added.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ addVolume() [3/4]

virtual void physx::ExtGpu::ParticleVolumeBuffersImpl::addVolume ( const PxU32  particleOffset,
const PxU32  numParticles,
const PxU32 *  triangles,
const PxU32  numTriangles 
)
inlinevirtual

Adds a volume.

Parameters
[in]particleOffsetThe index of the first particle of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
[in]numParticlesThe number of particles of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
[in]trianglesA pointer to the triangle indices of this volume.
[in]numTrianglesThe number of triangles in this volume.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ addVolume() [4/4]

virtual void physx::ExtGpu::ParticleVolumeBuffersImpl::addVolume ( const PxU32  particleOffset,
const PxU32  numParticles,
const PxU32 *  triangles,
const PxU32  numTriangles 
)
inlinevirtual

Adds a volume.

Parameters
[in]particleOffsetThe index of the first particle of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
[in]numParticlesThe number of particles of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
[in]trianglesA pointer to the triangle indices of this volume.
[in]numTrianglesThe number of triangles in this volume.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getMaxTriangles() [1/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getMaxTriangles ( ) const
inlinevirtual
Returns
The maximum number of triangles this PxParticleVolumeBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getMaxTriangles() [2/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getMaxTriangles ( ) const
inlinevirtual
Returns
The maximum number of triangles this PxParticleVolumeBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getMaxVolumes() [1/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getMaxVolumes ( ) const
inlinevirtual
Returns
The maximum number of PxParticleVolume this PxParticleVolumeBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getMaxVolumes() [2/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getMaxVolumes ( ) const
inlinevirtual
Returns
The maximum number of PxParticleVolume this PxParticleVolumeBufferHelper instance can hold.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getNumTriangles() [1/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getNumTriangles ( ) const
inlinevirtual
Returns
The current number of triangles in this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getNumTriangles() [2/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getNumTriangles ( ) const
inlinevirtual
Returns
The current number of triangles in this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getNumVolumes() [1/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getNumVolumes ( ) const
inlinevirtual
Returns
The current number of PxParticleVolume in this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getNumVolumes() [2/2]

virtual PxU32 physx::ExtGpu::ParticleVolumeBuffersImpl::getNumVolumes ( ) const
inlinevirtual
Returns
The current number of PxParticleVolume in this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getParticleVolumeMeshes() [1/2]

virtual PxParticleVolumeMesh * physx::ExtGpu::ParticleVolumeBuffersImpl::getParticleVolumeMeshes ( )
inlinevirtual
Returns
A pointer to the PxParticleVolumeMesh structs describing the PxParticleVolumes of this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getParticleVolumeMeshes() [2/2]

virtual PxParticleVolumeMesh * physx::ExtGpu::ParticleVolumeBuffersImpl::getParticleVolumeMeshes ( )
inlinevirtual
Returns
A pointer to the PxParticleVolumeMesh structs describing the PxParticleVolumes of this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getParticleVolumes() [1/2]

virtual PxParticleVolume * physx::ExtGpu::ParticleVolumeBuffersImpl::getParticleVolumes ( )
inlinevirtual
Returns
A pointer to the PxParticleVolume s of this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getParticleVolumes() [2/2]

virtual PxParticleVolume * physx::ExtGpu::ParticleVolumeBuffersImpl::getParticleVolumes ( )
inlinevirtual
Returns
A pointer to the PxParticleVolume s of this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getTriangles() [1/2]

virtual PxU32 * physx::ExtGpu::ParticleVolumeBuffersImpl::getTriangles ( )
inlinevirtual
Returns
A pointer to the triangle indices in this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ getTriangles() [2/2]

virtual PxU32 * physx::ExtGpu::ParticleVolumeBuffersImpl::getTriangles ( )
inlinevirtual
Returns
A pointer to the triangle indices in this PxParticleVolumeBufferHelper instance.

Implements physx::ExtGpu::PxParticleVolumeBufferHelper.

◆ release() [1/2]

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

◆ release() [2/2]

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

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