From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- .../PhysX/src/gpu/PxPhysXGpuModuleLoader.cpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'PhysX_3.4/Source/PhysX/src/gpu/PxPhysXGpuModuleLoader.cpp') diff --git a/PhysX_3.4/Source/PhysX/src/gpu/PxPhysXGpuModuleLoader.cpp b/PhysX_3.4/Source/PhysX/src/gpu/PxPhysXGpuModuleLoader.cpp index 1d5f7388..2664c6f5 100644 --- a/PhysX_3.4/Source/PhysX/src/gpu/PxPhysXGpuModuleLoader.cpp +++ b/PhysX_3.4/Source/PhysX/src/gpu/PxPhysXGpuModuleLoader.cpp @@ -32,6 +32,7 @@ #include "foundation/Px.h" #include "PsFoundation.h" #include "PxPhysics.h" +#include "PxGpu.h" #include "cudamanager/PxCudaContextManager.h" @@ -66,6 +67,29 @@ static const char* gPhysXGpuLibraryName = "./libPhysX3Gpu" CONFIG_SUB_STR "_" PL #undef GETSTRING #undef STRINGIFY +void PxSetPhysXGpuLoadHook(const PxGpuLoadHook* hook) +{ + if(strstr(gPhysXGpuLibraryName, "DEBUG")) + { + gPhysXGpuLibraryName = hook->getPhysXGpuDEBUGDllName(); + return; + } + + if(strstr(gPhysXGpuLibraryName, "CHECKED")) + { + gPhysXGpuLibraryName = hook->getPhysXGpuCHECKEDDllName(); + return; + } + + if(strstr(gPhysXGpuLibraryName, "PROFILE")) + { + gPhysXGpuLibraryName = hook->getPhysXGpuPROFILEDllName(); + return; + } + + gPhysXGpuLibraryName = hook->getPhysXGpuDllName(); +} + namespace physx { #if PX_VC -- cgit v1.2.3