Skip to content

Commit 93b6c25

Browse files
committed
Blast SDK 5.0.0 - PhysX SDK 5.1.3 (32494398)
1 parent 4d33492 commit 93b6c25

File tree

2,055 files changed

+30540
-6965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,055 files changed

+30540
-6965
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NVIDIA PhysX
22

3-
Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
3+
Copyright (c) 2008-2023 NVIDIA Corporation. All rights reserved.
44

55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions

blast/PACKAGE-LICENSES/blast-sdk-LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2323
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424
//
25-
// Copyright (c) 2016-2022 NVIDIA Corporation. All rights reserved.
25+
// Copyright (c) 2016-2023 NVIDIA Corporation. All rights reserved.

blast/VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.2
1+
5.0.0

blast/deps/target-deps.packman.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
<package name="doxygen" version="1.8.5-windows-x86_64" platforms="windows-x86_64" />
1717
</dependency>
1818

19-
<dependency name="physxsdk" linkPath="../_build/target-deps/physxsdk">
20-
<package name="physxsdk" version="4.1.trunk.26400730-${platform}" platforms="windows-x86_64 linux-x86_64" />
21-
</dependency>
22-
<dependency name="pxshared" linkPath="../_build/target-deps/pxshared">
23-
<package name="pxshared" version="1.1.trunk.25954437-${platform}" platforms="windows-x86_64 linux-x86_64" />
24-
</dependency>
2519

2620
<dependency name="BoostMultiprecision" linkPath="../_build/target-deps/BoostMultiprecision">
2721
<package name="BoostMultiprecision" version="1.64.0.1" platforms="windows-x86_64 linux-x86_64"/>

blast/docs/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [5.0.0] - 23-Jan-2023
4+
5+
### Changes
6+
- Removed all PhysX dependencies from code outside of the ExtPx extension
7+
- Replaced Px types with NvShared types
8+
- NvFoundation headers in include/shared/NvFoundation
9+
- Includes NvPreprocessor.h and NvcTypes.h (formerly in include/lowlevel)
10+
- Include basic Nv types, such as NvVec3 (used by the Tk library)
11+
- Consolidated header structure
12+
- include/lowlevel/NvBlastPreprocessor.h is gone
13+
- Previously-defined NVBLAST_API has been renamed NV_C_API and is now defined in NvPreprocessor.h
14+
15+
316
## [4.0.2] - 31-Aug-2022
417

518
### Bugfixes

blast/include/extensions/assetutils/NvBlastExtAssetUtils.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2323
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424
//
25-
// Copyright (c) 2016-2022 NVIDIA Corporation. All rights reserved.
25+
// Copyright (c) 2016-2023 NVIDIA Corporation. All rights reserved.
2626

2727
//! @file
2828
//!
@@ -48,7 +48,7 @@ Reauthor the provided asset to create external bonds in the specified support ch
4848
4949
\return a new asset with added bonds if successful, NULL otherwise.
5050
*/
51-
NVBLAST_API NvBlastAsset* NvBlastExtAssetUtilsAddExternalBonds
51+
NV_C_API NvBlastAsset* NvBlastExtAssetUtilsAddExternalBonds
5252
(
5353
const NvBlastAsset* asset,
5454
const uint32_t* externalBoundChunks,
@@ -85,7 +85,7 @@ NVBLAST_FREE appied to the pointers in the returned NvBlastAssetDesc.
8585
8686
\return an asset descriptor that will build an exact duplicate of the input asset.
8787
*/
88-
NVBLAST_API NvBlastAssetDesc NvBlastExtAssetUtilsCreateDesc(const NvBlastAsset* asset);
88+
NV_C_API NvBlastAssetDesc NvBlastExtAssetUtilsCreateDesc(const NvBlastAsset* asset);
8989

9090

9191
/**
@@ -126,7 +126,7 @@ NVBLAST_FREE appied to the pointers in the returned NvBlastAssetDesc.
126126
127127
\return an asset descriptor that will build an asset which merges the components, using NvBlastCreateAsset.
128128
*/
129-
NVBLAST_API NvBlastAssetDesc NvBlastExtAssetUtilsMergeAssets
129+
NV_C_API NvBlastAssetDesc NvBlastExtAssetUtilsMergeAssets
130130
(
131131
const NvBlastAsset** components,
132132
const NvcVec3* scales,
@@ -151,7 +151,7 @@ Chunk volume and bond area are changed accordingly.
151151
\param[in] rotation Pointer to rotation to be applied. Can be nullptr.
152152
\param[in] translation Pointer to translation to be applied. Can be nullptr.
153153
*/
154-
NVBLAST_API void NvBlastExtAssetTransformInPlace
154+
NV_C_API void NvBlastExtAssetTransformInPlace
155155
(
156156
NvBlastAsset* asset,
157157
const NvcVec3* scale,

blast/include/extensions/authoring/NvBlastExtAuthoring.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2323
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424
//
25-
// Copyright (c) 2016-2022 NVIDIA Corporation. All rights reserved.
25+
// Copyright (c) 2016-2023 NVIDIA Corporation. All rights reserved.
2626

2727
//! @file
2828
//!
@@ -67,7 +67,7 @@ User should call release() after usage.
6767
6868
\return pointer to Nv::Blast::Mesh if it was created succefully otherwise return nullptr
6969
*/
70-
NVBLAST_API Nv::Blast::Mesh*
70+
NV_C_API Nv::Blast::Mesh*
7171
NvBlastExtAuthoringCreateMesh(const NvcVec3* positions, const NvcVec3* normals, const NvcVec2* uv,
7272
uint32_t verticesCount, const uint32_t* indices, uint32_t indicesCount);
7373

@@ -84,7 +84,7 @@ User should call Mesh::release() after usage.
8484
8585
\return pointer to Nv::Blast::Mesh if it was created succefully otherwise return nullptr
8686
*/
87-
NVBLAST_API Nv::Blast::Mesh*
87+
NV_C_API Nv::Blast::Mesh*
8888
NvBlastExtAuthoringCreateMeshOnlyTriangles(const void* vertices, uint32_t verticesCount, uint32_t* indices,
8989
uint32_t indexCount, void* materials = nullptr, uint32_t materialStride = 4);
9090

@@ -101,7 +101,7 @@ User should call release() after usage.
101101
102102
\return pointer to Nv::Blast::Mesh if it was created succefully otherwise return nullptr
103103
*/
104-
NVBLAST_API Nv::Blast::Mesh*
104+
NV_C_API Nv::Blast::Mesh*
105105
NvBlastExtAuthoringCreateMeshFromFacets(const void* vertices, const void* edges, const void* facets,
106106
uint32_t verticesCount, uint32_t edgesCount, uint32_t facetsCount);
107107

@@ -112,11 +112,11 @@ should be supplied with fracture mesh.
112112
\param[in] rnd User supplied random value generator.
113113
\return Pointer to VoronoiSitesGenerator. User's code should release it after usage.
114114
*/
115-
NVBLAST_API Nv::Blast::VoronoiSitesGenerator*
115+
NV_C_API Nv::Blast::VoronoiSitesGenerator*
116116
NvBlastExtAuthoringCreateVoronoiSitesGenerator(Nv::Blast::Mesh* mesh, Nv::Blast::RandomGeneratorBase* rng);
117117

118118
/** Instantiates a blank CutoutSet */
119-
NVBLAST_API Nv::Blast::CutoutSet* NvBlastExtAuthoringCreateCutoutSet();
119+
NV_C_API Nv::Blast::CutoutSet* NvBlastExtAuthoringCreateCutoutSet();
120120

121121
/**
122122
Builds a cutout set (which must have been initially created by createCutoutSet()).
@@ -134,7 +134,7 @@ segments may be fudged into alignment. By default set it to 1.
134134
\param expandGaps expand cutout regions to gaps or keep it as is
135135
136136
*/
137-
NVBLAST_API void
137+
NV_C_API void
138138
NvBlastExtAuthoringBuildCutoutSet(Nv::Blast::CutoutSet& cutoutSet, const uint8_t* pixelBuffer, uint32_t bufferWidth,
139139
uint32_t bufferHeight, float segmentationErrorThreshold, float snapThreshold,
140140
bool periodic, bool expandGaps);
@@ -143,13 +143,13 @@ NvBlastExtAuthoringBuildCutoutSet(Nv::Blast::CutoutSet& cutoutSet, const uint8_t
143143
Create FractureTool object.
144144
\return Pointer to create FractureTool. User's code should release it after usage.
145145
*/
146-
NVBLAST_API Nv::Blast::FractureTool* NvBlastExtAuthoringCreateFractureTool();
146+
NV_C_API Nv::Blast::FractureTool* NvBlastExtAuthoringCreateFractureTool();
147147

148148
/**
149149
Create BlastBondGenerator
150150
\return Pointer to created BlastBondGenerator. User's code should release it after usage.
151151
*/
152-
NVBLAST_API Nv::Blast::BlastBondGenerator* NvBlastExtAuthoringCreateBondGenerator(Nv::Blast::ConvexMeshBuilder* builder);
152+
NV_C_API Nv::Blast::BlastBondGenerator* NvBlastExtAuthoringCreateBondGenerator(Nv::Blast::ConvexMeshBuilder* builder);
153153

154154
/**
155155
Build convex mesh decomposition.
@@ -160,7 +160,7 @@ Build convex mesh decomposition.
160160
161161
\return Number of created convex hulls.
162162
*/
163-
NVBLAST_API int32_t NvBlastExtAuthoringBuildMeshConvexDecomposition(Nv::Blast::ConvexMeshBuilder* cmb,
163+
NV_C_API int32_t NvBlastExtAuthoringBuildMeshConvexDecomposition(Nv::Blast::ConvexMeshBuilder* cmb,
164164
const Nv::Blast::Triangle* mesh,
165165
uint32_t triangleCount,
166166
const Nv::Blast::ConvexDecompositionParams& params,
@@ -179,7 +179,7 @@ NVBLAST_API int32_t NvBlastExtAuthoringBuildMeshConvexDecomposition(Nv::Blast::C
179179
\param[in] chunkDepth Array of depth levels of convex hulls corresponding chunks.
180180
181181
*/
182-
NVBLAST_API void NvBlastExtAuthoringTrimCollisionGeometry(Nv::Blast::ConvexMeshBuilder* cmb, uint32_t chunksCount,
182+
NV_C_API void NvBlastExtAuthoringTrimCollisionGeometry(Nv::Blast::ConvexMeshBuilder* cmb, uint32_t chunksCount,
183183
Nv::Blast::CollisionHull** in, const uint32_t* chunkDepth);
184184

185185

@@ -190,7 +190,7 @@ Transforms collision hull in place using scale, rotation, transform.
190190
\param[in] rotation Pointer to rotation to be applied. Can be nullptr.
191191
\param[in] translation Pointer to translation to be applied. Can be nullptr.
192192
*/
193-
NVBLAST_API void NvBlastExtAuthoringTransformCollisionHullInPlace(Nv::Blast::CollisionHull* hull, const NvcVec3* scaling,
193+
NV_C_API void NvBlastExtAuthoringTransformCollisionHullInPlace(Nv::Blast::CollisionHull* hull, const NvcVec3* scaling,
194194
const NvcQuat* rotation, const NvcVec3* translation);
195195

196196
/**
@@ -200,7 +200,7 @@ Transforms collision hull in place using scale, rotation, transform.
200200
\param[in] rotation Pointer to rotation to be applied. Can be nullptr.
201201
\param[in] translation Pointer to translation to be applied. Can be nullptr.
202202
*/
203-
NVBLAST_API Nv::Blast::CollisionHull*
203+
NV_C_API Nv::Blast::CollisionHull*
204204
NvBlastExtAuthoringTransformCollisionHull(const Nv::Blast::CollisionHull* hull, const NvcVec3* scaling,
205205
const NvcQuat* rotation, const NvcVec3* translation);
206206

@@ -215,7 +215,7 @@ Performs pending fractures and generates fractured asset, render and collision g
215215
\param[in] collisionParam Parameters of collision hulls generation.
216216
\return Authoring result
217217
*/
218-
NVBLAST_API Nv::Blast::AuthoringResult*
218+
NV_C_API Nv::Blast::AuthoringResult*
219219
NvBlastExtAuthoringProcessFracture(Nv::Blast::FractureTool& fTool, Nv::Blast::BlastBondGenerator& bondGenerator,
220220
Nv::Blast::ConvexMeshBuilder& collisionBuilder,
221221
const Nv::Blast::ConvexDecompositionParams& collisionParam,
@@ -225,12 +225,12 @@ NvBlastExtAuthoringProcessFracture(Nv::Blast::FractureTool& fTool, Nv::Blast::Bl
225225
/**
226226
Releases collision data for AuthoringResult. AuthoringResult should be created by NvBlast.
227227
*/
228-
NVBLAST_API void NvBlastExtAuthoringReleaseAuthoringResultCollision(Nv::Blast::ConvexMeshBuilder& collisionBuilder, Nv::Blast::AuthoringResult* ar);
228+
NV_C_API void NvBlastExtAuthoringReleaseAuthoringResultCollision(Nv::Blast::ConvexMeshBuilder& collisionBuilder, Nv::Blast::AuthoringResult* ar);
229229

230230
/**
231231
Releases AuthoringResult data. AuthoringResult should be created by NvBlast.
232232
*/
233-
NVBLAST_API void NvBlastExtAuthoringReleaseAuthoringResult(Nv::Blast::ConvexMeshBuilder& collisionBuilder, Nv::Blast::AuthoringResult* ar);
233+
NV_C_API void NvBlastExtAuthoringReleaseAuthoringResult(Nv::Blast::ConvexMeshBuilder& collisionBuilder, Nv::Blast::AuthoringResult* ar);
234234

235235

236236
/**
@@ -240,7 +240,7 @@ Updates graphics mesh only
240240
\param[out] ares AuthoringResult object which contains chunks, for which rendermeshes will be updated
241241
(e.g. to tweak UVs). Initially should be created by NvBlastExtAuthoringProcessFracture.
242242
*/
243-
NVBLAST_API void NvBlastExtAuthoringUpdateGraphicsMesh(Nv::Blast::FractureTool& fTool, Nv::Blast::AuthoringResult& ares);
243+
NV_C_API void NvBlastExtAuthoringUpdateGraphicsMesh(Nv::Blast::FractureTool& fTool, Nv::Blast::AuthoringResult& ares);
244244

245245
/**
246246
Build collision meshes
@@ -251,7 +251,7 @@ Parameters of collision hulls generation.
251251
\param[in] chunksToProcessCount Number of chunk indices in chunksToProcess memory buffer.
252252
\param[in] chunksToProcess Chunk indices for which collision mesh should be built.
253253
*/
254-
NVBLAST_API void NvBlastExtAuthoringBuildCollisionMeshes(Nv::Blast::AuthoringResult& ares,
254+
NV_C_API void NvBlastExtAuthoringBuildCollisionMeshes(Nv::Blast::AuthoringResult& ares,
255255
Nv::Blast::ConvexMeshBuilder& collisionBuilder,
256256
const Nv::Blast::ConvexDecompositionParams& collisionParam,
257257
uint32_t chunksToProcessCount, uint32_t* chunksToProcess);
@@ -260,7 +260,7 @@ NVBLAST_API void NvBlastExtAuthoringBuildCollisionMeshes(Nv::Blast::AuthoringRes
260260
Creates MeshCleaner object
261261
\return pointer to Nv::Blast::Mesh if it was created succefully otherwise return nullptr
262262
*/
263-
NVBLAST_API Nv::Blast::MeshCleaner* NvBlastExtAuthoringCreateMeshCleaner();
263+
NV_C_API Nv::Blast::MeshCleaner* NvBlastExtAuthoringCreateMeshCleaner();
264264

265265
/**
266266
Finds bonds connecting chunks in a list of assets
@@ -287,47 +287,47 @@ relativeTransforms arrays.
287287
\param[in] maxSeparation Maximal distance between chunks which can be connected by bond.
288288
\return the number of bonds in newBondDescs
289289
*/
290-
NVBLAST_API uint32_t NvBlastExtAuthoringFindAssetConnectingBonds(
290+
NV_C_API uint32_t NvBlastExtAuthoringFindAssetConnectingBonds(
291291
const NvBlastAsset** components, const NvcVec3* scales, const NvcQuat* rotations, const NvcVec3* translations,
292292
const uint32_t** convexHullOffsets, const Nv::Blast::CollisionHull*** chunkHulls, uint32_t componentCount,
293293
NvBlastExtAssetUtilsBondDesc*& newBondDescs, float maxSeparation = 0.0f);
294294

295295
/**
296296
Returns pattern generator used for generating fracture patterns.
297297
*/
298-
NVBLAST_API Nv::Blast::PatternGenerator* NvBlastExtAuthoringCreatePatternGenerator();
298+
NV_C_API Nv::Blast::PatternGenerator* NvBlastExtAuthoringCreatePatternGenerator();
299299

300300
/**
301301
Create spatial grid for mesh.
302302
Release using Nv::Blast::SpatialGrid::release()
303303
*/
304-
NVBLAST_API Nv::Blast::SpatialGrid* NvBlastExtAuthoringCreateSpatialGrid(uint32_t resolution, const Nv::Blast::Mesh* m);
304+
NV_C_API Nv::Blast::SpatialGrid* NvBlastExtAuthoringCreateSpatialGrid(uint32_t resolution, const Nv::Blast::Mesh* m);
305305

306306
/**
307307
Create GridAccelerator - SpatialAccelerator which use Grid for faster mesh sampling.
308308
Release using Nv::Blast::SpatialAccelerator::release()
309309
*/
310-
NVBLAST_API Nv::Blast::SpatialAccelerator* NvBlastExtAuthoringCreateGridAccelerator(Nv::Blast::SpatialGrid* parent);
310+
NV_C_API Nv::Blast::SpatialAccelerator* NvBlastExtAuthoringCreateGridAccelerator(Nv::Blast::SpatialGrid* parent);
311311

312312
/**
313313
Create SweepingAccelerator - SpatialAccelerator which uses a sweep algorithm.
314314
Release using Nv::Blast::SpatialAccelerator::release()
315315
*/
316-
NVBLAST_API Nv::Blast::SpatialAccelerator* NvBlastExtAuthoringCreateSweepingAccelerator(const Nv::Blast::Mesh* m);
316+
NV_C_API Nv::Blast::SpatialAccelerator* NvBlastExtAuthoringCreateSweepingAccelerator(const Nv::Blast::Mesh* m);
317317

318318
/**
319319
Create BBoxBasedAccelerator - SpatialAccelerator which uses a bbox/grid algorithm.
320320
Release using Nv::Blast::SpatialAccelerator::release()
321321
*/
322-
NVBLAST_API Nv::Blast::SpatialAccelerator* NvBlastExtAuthoringCreateBBoxBasedAccelerator(uint32_t resolution, const Nv::Blast::Mesh* m);
322+
NV_C_API Nv::Blast::SpatialAccelerator* NvBlastExtAuthoringCreateBBoxBasedAccelerator(uint32_t resolution, const Nv::Blast::Mesh* m);
323323

324324
#define kBBoxBasedAcceleratorDefaultResolution 10
325325

326326
/**
327327
Create BooleanTool object.
328328
\return Pointer to created BooleanTool. User's code should release it after usage.
329329
*/
330-
NVBLAST_API Nv::Blast::BooleanTool* NvBlastExtAuthoringCreateBooleanTool();
330+
NV_C_API Nv::Blast::BooleanTool* NvBlastExtAuthoringCreateBooleanTool();
331331

332332

333333
#endif // ifndef NVBLASTAUTHORING_H

blast/include/extensions/authoring/NvBlastExtAuthoringBondGenerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2323
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424
//
25-
// Copyright (c) 2022 NVIDIA Corporation. All rights reserved.
25+
// Copyright (c) 2022-2023 NVIDIA Corporation. All rights reserved.
2626

2727
//! @file
2828
//!

blast/include/extensions/authoring/NvBlastExtAuthoringBooleanTool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2323
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424
//
25-
// Copyright (c) 2016-2021 NVIDIA Corporation. All rights reserved.
25+
// Copyright (c) 2016-2023 NVIDIA Corporation. All rights reserved.
2626

2727
//! @file
2828
//!

blast/include/extensions/authoring/NvBlastExtAuthoringCutout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// components in life support devices or systems without express written approval of
1212
// NVIDIA Corporation.
1313
//
14-
// Copyright (c) 2016-2022 NVIDIA Corporation. All rights reserved.
14+
// Copyright (c) 2016-2023 NVIDIA Corporation. All rights reserved.
1515

1616
//! @file
1717
//!

0 commit comments

Comments
 (0)