aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2019-09-17 09:16:55 -0700
committerBryan Galdrikian <[email protected]>2019-09-17 09:16:55 -0700
commit9f4fc41dc5d857e3c7c3500fc71953e54d780a39 (patch)
tree20a548f0eda0ff2f0510ef57f6d038e480dd8611 /test/src
parentFixing chunk hierarchy optimization/merge bugs (diff)
downloadblast-1.1.5_release.tar.xz
blast-1.1.5_release.zip
* NvBlastAsset::testForValidChunkOrder (used when creating an NvBlastAsset) is now more strict, requiring parent chunk descriptors to come before their children. It is still less strict than the order created by NvBlastBuildAssetDescChunkReorderMap.v1.1.5_releasev1.1.5_rc1v1.1.5_pre5dev
* Added FractureTool::setApproximateBonding function. Signals the tool to create bonds by proximity instead of just using cut plane data. * Chunks which have been merged using the uniteChunks function may be merged again * Restored chunk volume calculation * NvBlastBuildAssetDescChunkReorderMap failure cases fixed.
Diffstat (limited to 'test/src')
-rwxr-xr-xtest/src/unit/AssetTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/unit/AssetTests.cpp b/test/src/unit/AssetTests.cpp
index 58ea7d1..27df927 100755
--- a/test/src/unit/AssetTests.cpp
+++ b/test/src/unit/AssetTests.cpp
@@ -367,7 +367,7 @@ public:
if (!useTk)
{
std::vector<uint32_t> chunkReorderMap(chunkDescCount);
- std::vector<char> scratch2(2 * chunkDescCount * sizeof(uint32_t));
+ std::vector<char> scratch2(3 * chunkDescCount * sizeof(uint32_t));
const bool isIdentity = NvBlastBuildAssetDescChunkReorderMap(chunkReorderMap.data(), shuffledChunkDescs.data(), chunkDescCount, scratch2.data(), messageLog);
EXPECT_FALSE(isIdentity);
NvBlastApplyAssetDescChunkReorderMap(chunkDescs, shuffledChunkDescs.data(), chunkDescCount, bondDescs, bondDescCount, chunkReorderMap.data(), true, messageLog);