aboutsummaryrefslogtreecommitdiff
path: root/test/src/utils/TestAssets.h
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
committerBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
commite1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch)
tree9f0cfce09c71a2c27ff19589fcad6cd83504477c /test/src/utils/TestAssets.h
parentfirst commit (diff)
downloadblast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz
blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'test/src/utils/TestAssets.h')
-rw-r--r--test/src/utils/TestAssets.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/src/utils/TestAssets.h b/test/src/utils/TestAssets.h
new file mode 100644
index 0000000..e4a9c77
--- /dev/null
+++ b/test/src/utils/TestAssets.h
@@ -0,0 +1,40 @@
+#ifndef TESTASSETS_H
+#define TESTASSETS_H
+
+#include "NvBlast.h"
+#include "AssetGenerator.h"
+
+struct ExpectedAssetValues
+{
+ uint32_t totalChunkCount;
+ uint32_t graphNodeCount;
+ uint32_t leafChunkCount;
+ uint32_t bondCount;
+ uint32_t subsupportChunkCount;
+};
+
+
+// Indexable asset descriptors and expected values
+extern const NvBlastAssetDesc g_assetDescs[3];
+extern const ExpectedAssetValues g_assetExpectedValues[3];
+
+// Indexable asset descriptors for assets missing coverage and expected values
+extern const NvBlastAssetDesc g_assetDescsMissingCoverage[3];
+extern const ExpectedAssetValues g_assetsFromMissingCoverageExpectedValues[3];
+
+
+inline uint32_t getAssetDescCount()
+{
+ return sizeof(g_assetDescs) / sizeof(g_assetDescs[0]);
+}
+
+inline uint32_t getAssetDescMissingCoverageCount()
+{
+ return sizeof(g_assetDescsMissingCoverage) / sizeof(g_assetDescsMissingCoverage[0]);
+}
+
+
+void generateCube(GeneratorAsset& cubeAsset, size_t maxDepth, size_t width, int32_t supportDepth = -1);
+void generateCube(GeneratorAsset& cubeAsset, NvBlastAssetDesc& assetDesc, size_t maxDepth, size_t width, int32_t supportDepth = -1);
+
+#endif // #ifdef TESTASSETS_H