RavEngine
Loading...
Searching...
No Matches
physx::Dy::BlockAllocator Class Reference
Inheritance diagram for physx::Dy::BlockAllocator:
[legend]
Collaboration diagram for physx::Dy::BlockAllocator:
[legend]

Public Member Functions

 BlockAllocator (PxsConstraintBlockManager &constraintBlockManager, PxcConstraintBlockStream &constraintBlockStream, FrictionPatchStreamPair &frictionPatchStreamPair, PxU32 &totalConstraintByteSize)
 
virtual PxU8 * reserveConstraintData (const PxU32 size)
 Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed.
 
virtual PxU8 * reserveFrictionData (const PxU32 size)
 Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc.
 
virtual PxU8 * findInputPatches (PxU8 *frictionCookie)
 

Member Function Documentation

◆ reserveConstraintData()

PxU8 * physx::Dy::BlockAllocator::reserveConstraintData ( const PxU32  byteSize)
virtual

Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed.

Parameters
[in]byteSizeAllocation size in bytes
Returns
The allocated memory. This address must be 16-byte aligned.

Implements physx::PxConstraintAllocator.

◆ reserveFrictionData()

PxU8 * physx::Dy::BlockAllocator::reserveFrictionData ( const PxU32  byteSize)
virtual

Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc.

Parameters
[in]byteSizeAllocation size in bytes
Returns
The allocated memory. This address must be 4-byte aligned.

Implements physx::PxConstraintAllocator.


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