42#define NUM_EDGES_IN_CACHE 64
46 PxMemZero(cacheLines, NUM_EDGES_IN_CACHE*
sizeof(CacheLine));
49 PxU32 hash(PxU32 key)
const
51 return (NUM_EDGES_IN_CACHE - 1) & PxComputeHash(key);
54 bool isInCache(PxU8 vertex0, PxU8 vertex1)
56 PX_ASSERT(vertex1 >= vertex0);
57 PxU16 key = PxU16((vertex0 << 8) | vertex1);
59 CacheLine& cl = cacheLines[h];
60 if (cl.fullKey == key)
76 CacheLine cacheLines[NUM_EDGES_IN_CACHE];
77#undef NUM_EDGES_IN_CACHE
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39