|
void cloth::DxSolver::addClothUpdateData() |
|
{ |
|
// sort cloth instances by size |
|
ps::sort(mCloths.begin(), mCloths.size(), ClothSimCostGreater(), ps::NonTrackingAllocator()); |
|
|
|
DxContextLock contextLock(mFactory); |
|
|
|
// resize containers and update kernel data |
|
mClothDataHostCopy.resize(mCloths.size()); |
|
mClothData.resize(mCloths.size()); |
|
mFrameDataHostCopy.resize(mCloths.size()); |
needs
// maybe we got sorted
for(auto& cd : mCloths)
cd->notifyChanged();
afterwards.
Without the fix it crashed the GPU.
NvCloth/NvCloth/src/dx/DxSolver.cpp
Lines 268 to 278 in d6d7175
needs
afterwards.
Without the fix it crashed the GPU.