aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Include/gpu
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Include/gpu
parentInitial commit: (diff)
downloadphysx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz
physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Include/gpu')
-rw-r--r--PhysX_3.4/Include/gpu/PxGpu.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/PhysX_3.4/Include/gpu/PxGpu.h b/PhysX_3.4/Include/gpu/PxGpu.h
index 0b8bf758..7efe3fe8 100644
--- a/PhysX_3.4/Include/gpu/PxGpu.h
+++ b/PhysX_3.4/Include/gpu/PxGpu.h
@@ -42,6 +42,41 @@
#include "foundation/PxFoundation.h"
/**
+\brief PxGpuLoadHook
+
+This is a helper class for loading the PhysXGpu dll.
+If a PhysXGpu dll with a non-default file name needs to be loaded,
+PxGpuLoadHook can be sub-classed to provide the custom filenames.
+
+Once the names are set, the instance must be set for use by PhysX.dll using PxSetPhysXGpuLoadHook(),
+
+@see PxSetPhysXGpuLoadHook()
+*/
+class PxGpuLoadHook
+{
+public:
+ PxGpuLoadHook() {}
+ virtual ~PxGpuLoadHook() {}
+
+ virtual const char* getPhysXGpuDEBUGDllName() const = 0;
+ virtual const char* getPhysXGpuCHECKEDDllName() const = 0;
+ virtual const char* getPhysXGpuPROFILEDllName() const = 0;
+ virtual const char* getPhysXGpuDllName() const = 0;
+
+protected:
+private:
+};
+
+/**
+\brief Sets GPU load hook instance for PhysX dll.
+
+\param[in] hook GPU load hook.
+
+@see PxGpuLoadHook
+*/
+PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxSetPhysXGpuLoadHook(const PxGpuLoadHook* hook);
+
+/**
* \brief Ask the NVIDIA control panel which GPU has been selected for use by
* PhysX. Returns -1 if no PhysX capable GPU is found or GPU PhysX has
* been disabled.