You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have downloaded PhysX5 repo and ran the snippet “SnippetPBF” in order to get a notion of how to render particles position calculated by PhysX5 (with cuda) without retrieving the particles position from the gpu to the cpu first and encountered the following code (note that USE_CUDA_INTEROP is defined and I have copied only what I believe to be the relevant parts of the functions ):
It seems that sPosBuffer.map() returns a pointer to a device address and not a cpu address. If so why is the function used is memcpyDtoH and not memcpyDtoD and why does it work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have downloaded PhysX5 repo and ran the snippet “SnippetPBF” in order to get a notion of how to render particles position calculated by PhysX5 (with cuda) without retrieving the particles position from the gpu to the cpu first and encountered the following code (note that USE_CUDA_INTEROP is defined and I have copied only what I believe to be the relevant parts of the functions ):
If we take a look at:
and then at:
It seems that sPosBuffer.map() returns a pointer to a device address and not a cpu address. If so why is the function used is memcpyDtoH and not memcpyDtoD and why does it work?
Beta Was this translation helpful? Give feedback.
All reactions