From e1bf674c16e3c8472b29574159c789cd3f0c64e0 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Fri, 24 Feb 2017 09:32:20 -0800 Subject: Updating to blast_source-windows@1.0.347-21749006 and blast_tools_and_samples-windows@1.0.347-21749006 with a new directory structure. NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this. --- docs/api_docs/files/pageextconverterll.html | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/api_docs/files/pageextconverterll.html (limited to 'docs/api_docs/files/pageextconverterll.html') diff --git a/docs/api_docs/files/pageextconverterll.html b/docs/api_docs/files/pageextconverterll.html new file mode 100644 index 0000000..391973d --- /dev/null +++ b/docs/api_docs/files/pageextconverterll.html @@ -0,0 +1,51 @@ + + + NVIDIA(R) Blast(R) SDK 1.0 API Reference: Data Format Conversion Extension (NvBlastExtConverterLL) + + + + + + + +
+

Data Format Conversion Extension (NvBlastExtConverterLL)

The low-level converter extension is a utility to convert NvBlastAsset and NvBlastFamily data from one format to another.

+The format version of an asset may be obtained using the function

+

uint32_t assetVersion = NvBlastAssetGetFormatVersion(asset, logFn);
+

+and likewise the format version of a family may be obtained using the function

+

uint32_t familyVersion = NvBlastAssetGetFormatVersion(family, logFn);
+

+If the format version does not match the SDK's current version for one of these objects, the data may not be used with the current SDK. The NvBlastExtConverterLL extension will apply a chain of conversion functions to transform an asset or family from its stored version to any other version, provided that such a chain exists.

+To apply it, simply use the function convertDataBlock. For example, given an asset pointer,

+

vector<char> inBlock, outBlock;
+
+inBlock.resize( NvBlastAssetGetSize(asset), logFn );
+memcpy( inBlock.data(), asset, NvBlastAssetGetSize(asset) );
+
+if ( convertDataBlock(outBlock, inBlock) )
+{
+    NvBlastAsset* convertedAsset = outBlock.data();
+
+    // Use convertedAsset here
+}
+

+
+

+ + + + -- cgit v1.2.3