61 typedef PxU32 RefCountType;
71 void initEntry(PxU32 index)
73 PxU32 oldCapacity = mTransformCache.capacity();
74 if (index >= oldCapacity)
76 PxU32 newCapacity = PxNextPowerOfTwo(index);
77 mTransformCache.reserve(newCapacity);
78 mTransformCache.forceSize_Unsafe(newCapacity);
80 mUsedSize =
PxMax(mUsedSize, index + 1u);
85 mTransformCache[index].transform = transform;
86 mTransformCache[index].flags = flags;
87 mHasAnythingChanged =
true;
90 PX_FORCE_INLINE const PxsCachedTransform& getTransformCache(
const PxU32 index)
const
92 return mTransformCache[index];
95 PX_FORCE_INLINE PxsCachedTransform& getTransformCache(
const PxU32 index)
97 return mTransformCache[index];
102 for (PxU32 i = 0; i < mTransformCache.capacity(); i++)
104 mTransformCache[i].transform.p += shift;
106 mHasAnythingChanged =
true;
116 return mTransformCache.begin();
121 return mTransformCache.begin();
126 return &mTransformCache;
129 PX_FORCE_INLINE void resetChangedState() { mHasAnythingChanged =
false; }
131 PX_FORCE_INLINE bool hasChanged()
const {
return mHasAnythingChanged; }
136 bool mHasAnythingChanged;
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxMax(T a, T b)
The return value is the greater of the two specified values.
Definition PxMath.h:72