| 39 | using namespace Cm; |
| 40 | |
| 41 | PX_FORCE_INLINE bool applyFilterEquation(const Scb::Shape& scbShape, const PxFilterData& queryFd) |
| 42 | { |
| 43 | // if the filterData field is non-zero, and the bitwise-AND value of filterData AND the shape's |
| 44 | // queryFilterData is zero, the shape is skipped. |
| 45 | if(queryFd.word0 | queryFd.word1 | queryFd.word2 | queryFd.word3) |
| 46 | { |
| 47 | const PxFilterData& objFd = scbShape.getScShape().getQueryFilterData(); |
| 48 | const PxU32 keep = (queryFd.word0 & objFd.word0) | (queryFd.word1 & objFd.word1) | (queryFd.word2 & objFd.word2) | (queryFd.word3 & objFd.word3); |
| 49 | if(!keep) |
| 50 | return false; |
| 51 | } |
| 52 | return true; |
| 53 | } |
| 54 | |
| 55 | //======================================================================================================================== |
| 56 | // these partial template specializations are used to generalize the query code to be reused for all permutations of |
no test coverage detected