Cysharp / MagicPhysX

.NET PhysX 5 binding to all platforms(win, osx, linux) for 3D engine, deep learning, dedicated server of gaming.
MIT License
255 stars 17 forks source link

Cuda and Gpu acceleration in MagicPhysX? #22

Open pkrnd opened 3 months ago

pkrnd commented 3 months ago

Hi, I would like to ask if it is possible to run GRB simulation with MagicPhysX (GRB = Gpu Rigid Bodies) in similar way as it is in the PhysX snippet demo called HelloGRB. Please see the attached screenshots (from PhysX's codebase). I can't find corresponding Cuda methods and structures in MagicPhysX codebase. Is GPU acceleration supported in MagiPhysX or not please? Thanks in advance for your answers.

cuda-context-manager

neuecc commented 3 months ago

The Rust physx-sys library currently being used appears to have GPU-related features disabled. https://github.com/EmbarkStudios/physx-rs/blob/d0d571ee61ea44750bf58df96464f49b466da46e/physx-sys/build.rs#L318-L319