代码拉取完成,页面将自动刷新
diff -Naur qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
--- qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h 2024-06-27 16:11:54.523604123 +0800
+++ qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h 2024-06-27 16:07:34.811096872 +0800
@@ -129,6 +129,8 @@
#define PX_X64 1
#elif defined(__riscv) && __riscv_xlen == 64
#define PX_RV64 1
+#elif defined(__loongarch__) && __loongarch_grlen == 64
+#define PX_LN64 1
#else
#error "Unknown architecture"
#endif
@@ -149,7 +151,7 @@
#endif
/** Disable SIMD for webassembly, mips and arm64 */
-#if defined(__EMSCRIPTEN__) || defined(__mips__) || defined(_M_ARM64) || defined(_M_ARM) || defined(__riscv)
+#if defined(__EMSCRIPTEN__) || defined(__mips__) || defined(_M_ARM64) || defined(_M_ARM) || defined(__riscv) || defined(__loongarch__)
#define PX_SIMD_DISABLED 1
#endif
@@ -264,7 +266,7 @@
// architecture
#define PX_INTEL_FAMILY (PX_X64 || PX_X86)
#define PX_ARM_FAMILY (PX_ARM || PX_A64)
-#define PX_P64_FAMILY (PX_X64 || PX_A64 || PX_RV64) // shortcut for 64-bit architectures
+#define PX_P64_FAMILY (PX_X64 || PX_A64 || PX_RV64 || PX_LN64) // shortcut for 64-bit architectures
/**
C++ standard library defines
diff -Naur qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp
--- qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp 2024-06-27 16:11:54.523604123 +0800
+++ qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp 2024-06-27 16:11:09.539516263 +0800
@@ -39,7 +39,7 @@
namespace
{
-#define SN_NUM_BINARY_PLATFORMS 20
+#define SN_NUM_BINARY_PLATFORMS 21
const PxU32 sBinaryPlatformTags[SN_NUM_BINARY_PLATFORMS] =
{
PX_MAKE_FOURCC('W','_','3','2'),
@@ -60,6 +60,7 @@
PX_MAKE_FOURCC('W','A','6','4'),
PX_MAKE_FOURCC('L','A','3','2'),
PX_MAKE_FOURCC('L','V','6','4'),
+ PX_MAKE_FOURCC('L','N','6','4'),
PX_MAKE_FOURCC('U','N','K','_'),
};
@@ -84,6 +85,7 @@
"macarm",
"linuxarm",
"linuxrv64",
+ "linuxln64",
"unknown",
};
@@ -131,8 +133,10 @@
return sBinaryPlatformTags[17];
#elif PX_LINUX && PX_RV64
return sBinaryPlatformTags[18];
-#else
+#elif PX_LINUX && PX_LN64
return sBinaryPlatformTags[19];
+#else
+ return sBinaryPlatformTags[20];
#endif
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。