MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / NvFlexExtPullFromDevice

Function NvFlexExtPullFromDevice

extensions/flexExtContainer.cpp:749–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749void NvFlexExtPullFromDevice(NvFlexExtContainer* c)
750{
751
752 // read back particle data
753 NvFlexGetParticles(c->mSolver, c->mParticles.buffer, int(c->mParticles.size()));
754 NvFlexGetVelocities(c->mSolver, c->mVelocities.buffer, int(c->mVelocities.size()));
755 NvFlexGetPhases(c->mSolver, c->mPhases.buffer, int(c->mPhases.size()));
756 NvFlexGetNormals(c->mSolver, c->mNormals.buffer, int(c->mNormals.size()));
757 NvFlexGetBounds(c->mSolver, c->mBoundsLower.buffer, c->mBoundsUpper.buffer);
758
759 // read back shape transforms
760 if (c->mShapeCoefficients.size())
761 NvFlexGetRigidTransforms(c->mSolver, c->mShapeRotations.buffer, c->mShapeTranslations.buffer);
762
763}
764
765void NvFlexExtUpdateInstances(NvFlexExtContainer* c)
766{

Callers 1

NvFlexExtTickContainerFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected