forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[physx] Add patch for NVIDIAGameWorks/PhysX#322. (microsoft#12413)
* [physx] Add patch for NVIDIAGameWorks/PhysX#322. * [physx] Cleanup usage of `VCPKG_CMAKE_SYSTEM_NAME`. * [physx] Convert portfile space indentation to tabs. * Update portfile.cmake Co-authored-by: NancyLi1013 <[email protected]>
- Loading branch information
1 parent
62d4320
commit 092267f
Showing
3 changed files
with
68 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Source: physx | ||
Version: 4.1.1-3 | ||
Version: 4.1.1 | ||
Port-Version: 4 | ||
Description: The NVIDIA PhysX SDK is a scalable multi-platform physics solution supporting a wide range of devices, from smartphones to high-end multicore CPUs and GPUs | ||
Supports: !uwp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
diff --git a/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.cpp b/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.cpp | ||
index f19ba271..51580049 100644 | ||
--- a/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.cpp | ||
+++ b/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.cpp | ||
@@ -90,6 +90,8 @@ using namespace Cm; | ||
return ir; | ||
}*/ | ||
|
||
+namespace internalMBP { | ||
+ | ||
struct RegionHandle : public Ps::UserAllocated | ||
{ | ||
PxU16 mHandle; // Handle from region | ||
@@ -582,6 +584,10 @@ struct RegionData : public Ps::UserAllocated | ||
#endif | ||
#endif | ||
|
||
+} | ||
+ | ||
+using namespace internalMBP; | ||
+ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
MBP_PairManager::MBP_PairManager() : | ||
diff --git a/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.h b/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.h | ||
index cf15f6d3..90f43e47 100644 | ||
--- a/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.h | ||
+++ b/physx/source/lowlevelaabb/src/BpBroadPhaseMBP.h | ||
@@ -35,8 +35,10 @@ | ||
#include "BpBroadPhaseMBPCommon.h" | ||
#include "BpMBPTasks.h" | ||
|
||
+namespace internalMBP { | ||
class MBP; | ||
- | ||
+} | ||
+ | ||
namespace physx | ||
{ | ||
namespace Bp | ||
@@ -84,7 +86,7 @@ namespace Bp | ||
MBPUpdateWorkTask mMBPUpdateWorkTask; | ||
MBPPostUpdateWorkTask mMBPPostUpdateWorkTask; | ||
|
||
- MBP* mMBP; // PT: TODO: aggregate | ||
+ internalMBP::MBP* mMBP; // PT: TODO: aggregate | ||
|
||
MBP_Handle* mMapping; | ||
PxU32 mCapacity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters