aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/src/SwSolverKernel.h
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
committerMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
commitb350eb5f4d44e8448115796144375d79438d74ae (patch)
tree8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/src/SwSolverKernel.h
parentAdd visual samples. (diff)
downloadnvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz
nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/src/SwSolverKernel.h')
-rw-r--r--NvCloth/src/SwSolverKernel.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/NvCloth/src/SwSolverKernel.h b/NvCloth/src/SwSolverKernel.h
index f71514d..a199691 100644
--- a/NvCloth/src/SwSolverKernel.h
+++ b/NvCloth/src/SwSolverKernel.h
@@ -41,7 +41,7 @@ namespace cloth
class SwCloth;
struct SwClothData;
-template <typename Simd4f>
+template <typename T4f>
class SwSolverKernel
{
public:
@@ -71,14 +71,23 @@ class SwSolverKernel
SwClothData& mClothData;
SwKernelAllocator& mAllocator;
- SwCollision<Simd4f> mCollision;
- SwSelfCollision<Simd4f> mSelfCollision;
- IterationState<Simd4f> mState;
+ SwCollision<T4f> mCollision;
+ SwSelfCollision<T4f> mSelfCollision;
+ IterationState<T4f> mState;
private:
- SwSolverKernel<Simd4f>& operator = (const SwSolverKernel<Simd4f>&);
+ SwSolverKernel<T4f>& operator = (const SwSolverKernel<T4f>&);
template <typename AccelerationIterator>
- void integrateParticles(AccelerationIterator& accelIt, const Simd4f&);
+ void integrateParticles(AccelerationIterator& accelIt, const T4f&);
};
+
+//explicit template instantiation declaration
+#if NV_SIMD_SIMD
+extern template class SwSolverKernel<Simd4f>;
+#endif
+#if NV_SIMD_SCALAR
+extern template class SwSolverKernel<Scalar4f>;
+#endif
+
}
}