PxCreateCudaContextManager

Defined in include/gpu/PxGpu.h

physx::PxCudaContextManager *PxCreateCudaContextManager(physx::PxFoundation &foundation, const physx::PxCudaContextManagerDesc &desc, physx::PxProfilerCallback *profilerCallback = NULL, bool launchSynchronous = false)

Allocate a CUDA Context manager, complete with heaps.

You only need one CUDA context manager per GPU device you intend to use for CUDA tasks.

Parameters
  • foundation[in] PhysXFoundation instance.

  • desc[in] Cuda context manager desc.

  • profilerCallback[in] PhysX profiler callback instance.

  • launchSynchronous[in] Set launchSynchronous to true for CUDA to report the actual point of failure.