E:/p4/sw/physx/PxShared/1.0/trunk/src/foundation/include/PsAlloca.h File Reference
#include "PsTempAllocator.h"
Go to the source code of this file.
Classes | |
class | physx::shdfnd::ScopedPointer< T, Alloc > |
Namespaces | |
namespace | physx |
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:. | |
namespace | physx::shdfnd |
Defines | |
#define | PX_ALLOCA(var, type, count) |
Define Documentation
#define PX_ALLOCA | ( | var, | |||
type, | |||||
count | ) |
Value:
physx::shdfnd::ScopedPointer<type> var; \ { \ uint32_t size = sizeof(type) * (count); \ var.mOwned = size > 1024; \ if(var.mOwned) \ var.mPointer = reinterpret_cast<type*>(physx::shdfnd::TempAllocator().allocate(size, __FILE__, __LINE__));\ else \ var.mPointer = reinterpret_cast<type*>(PxAlloca(size)); \ }
count
instances of type
. Falling back to temp allocator if using more than 1kB.
Generated on Tue Jul 28 14:21:55 2015 for NVIDIA(R) PsFoundation Reference by 1.5.8