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

Public Member Functions

virtual PxU8 * allocateCacheData (const PxU32 byteSize)
 Allocates cache data for contact generation. This data is stored inside PxCache objects. The application can retain and provide this information for future contact generation passes for a given pair to improve contact generation performance. It is the application's responsibility to release this memory appropriately. If the memory is released, the application must ensure that this memory is no longer referenced by any PxCache objects passed to PxGenerateContacts.
 
void release ()
 
void reset ()
 

Member Function Documentation

◆ allocateCacheData()

virtual PxU8 * physx::SnippetImmUtils::TestCacheAllocator::allocateCacheData ( const PxU32  byteSize)
inlinevirtual

Allocates cache data for contact generation. This data is stored inside PxCache objects. The application can retain and provide this information for future contact generation passes for a given pair to improve contact generation performance. It is the application's responsibility to release this memory appropriately. If the memory is released, the application must ensure that this memory is no longer referenced by any PxCache objects passed to PxGenerateContacts.

Parameters
byteSize[in] size of the allocation in bytes
Returns
the newly-allocated memory. The returned address must be 16-byte aligned.
See also
PxCache, PxGenerateContacts

Implements physx::PxCacheAllocator.


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