PxGpuDynamicsMemoryConfig#

Defined in include/PxSceneDesc.h

struct PxGpuDynamicsMemoryConfig#

Sizes of pre-allocated buffers use for GPU dynamics.

Public Functions

inline PxGpuDynamicsMemoryConfig()#
inline bool isValid() const#

Public Members

PxU64 tempBufferCapacity#

Initial capacity of temp solver buffer allocated in pinned host memory.

This buffer will grow if more memory is needed than specified here.

PxU32 maxRigidContactCount#

Size of contact stream buffer allocated in pinned host memory.

This is double-buffered so total allocation size = 2 * maxRigidContactCount * sizeof(PxContact).

PxU32 maxRigidPatchCount#

Size of the contact patch stream buffer allocated in pinned host memory.

This is double-buffered so total allocation size = 2 * maxRigidPatchCount * sizeof(PxContactPatch).

PxU32 heapCapacity#

Initial capacity of the device and pinned host memory heaps.

Additional memory will be allocated if more memory is required, in increments of heapCapacity. If an allocation is larger than half of heapCapacity, then the heap is bypassed and the memory is allocated directly. The configuration heapCapacity == 0 is valid: In this case no heap is allocated, and all allocations bypass the heap.

PxU32 foundLostPairsCapacity#

Capacity of found and lost buffers allocated in GPU global memory.

This is used for the found/lost pair reports in the BP.

PxU32 foundLostAggregatePairsCapacity#

Capacity of found and lost buffers in aggregate system allocated in GPU global memory.

This is used for the found/lost pair reports in AABB manager.

PxU32 totalAggregatePairsCapacity#

Capacity of aggregate pair buffer allocated in GPU global memory.

PxU32 maxDeformableSurfaceContacts#

Capacity of deformable surface contact buffer allocated in GPU global memory.

PxU32 maxFemClothContacts#

Deprecated, replace with maxDeformableSurfaceContacts.

Deprecated:

PxU32 maxDeformableVolumeContacts#

Capacity of deformable volume contact buffer allocated in GPU global memory.

PxU32 maxSoftBodyContacts#

Deprecated, replace with maxDeformableVolumeContacts.

Deprecated:

PxU32 maxParticleContacts#

Capacity of particle contact buffer allocated in GPU global memory.

PxU32 collisionStackSize#

Capacity of the collision stack buffer.

Used as scratch space during narrowphase collision detection.