aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp
parentInitial commit: (diff)
downloadphysx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz
physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp')
-rw-r--r--PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp b/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp
index 6ecd1aeb..d4cdcf2e 100644
--- a/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp
+++ b/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp
@@ -439,35 +439,6 @@ void ClothImpl<CuCloth>::clearParticleAccelerations()
mCloth.wakeUp();
}
-namespace
-{
-uint32_t calculateNumReplays(const Vector<Vec4u>::Type& triplets, const Vector<uint32_t>::Type setSizes)
-{
- uint32_t result = 0;
-
- Vector<Vec4u>::Type::ConstIterator tIt = triplets.begin();
- Vector<uint32_t>::Type::ConstIterator sIt, sEnd = setSizes.end();
- uint32_t index = 0;
- for(sIt = setSizes.begin(); sIt != sEnd; ++sIt, ++index)
- {
- Vector<Vec4u>::Type::ConstIterator tEnd = tIt + *sIt, tLast = tIt;
- while(tLast != tEnd)
- {
- uint8_t numConflicts[3][32] = {};
- uint8_t numReplays[3] = {};
-
- for(tLast += PxMin(ptrdiff_t(32), tEnd - tLast); tIt != tLast; ++tIt)
- for(int i = 0; i < 3; ++i)
- numReplays[i] = PxMax(numReplays[i], ++numConflicts[i][(*tIt)[i] & 31]);
-
- result += numReplays[0] + numReplays[1] + numReplays[2];
- }
- }
-
- return result;
-}
-}
-
template <>
void ClothImpl<CuCloth>::setVirtualParticles(Range<const uint32_t[4]> indices, Range<const PxVec3> weights)
{