PxAlignedAllocator
Defined in include/foundation/PxAlignedMalloc.h
-
template<uint32_t N, typename BaseAllocator = PxAllocator>
class PxAlignedAllocator : public PxAllocator Allocator, which is used to access the global PxAllocatorCallback instance (used for dynamic data types template instantiation), which can align memory.
Allocate aligned memory. Alignment must be a power of 2! — should be templated by a base allocator
Public Functions
-
inline PxAlignedAllocator(const BaseAllocator &base = BaseAllocator())
-
inline void *allocate(size_t size, const char *file, int line, uint32_t *cookie = NULL)
-
inline void deallocate(void *ptr, uint32_t *cookie = NULL)
-
inline PxAlignedAllocator(const BaseAllocator &base = BaseAllocator())