sdk/extensions/serialization/include/NvBlastExtTkSerialization.h File Reference

#include "NvBlastGlobals.h"

Go to the source code of this file.

Classes

struct  Nv::Blast::TkObjectTypeID

Namespaces

namespace  Nv
namespace  Nv::Blast

Functions

NVBLAST_API uint64_t NvBlastExtSerializationSerializeTkAssetIntoBuffer (void *&buffer, Nv::Blast::ExtSerialization &serialization, const Nv::Blast::TkAsset *asset)
NVBLAST_API size_t NvBlastExtTkSerializerLoadSet (Nv::Blast::TkFramework &framework, Nv::Blast::ExtSerialization &serialization)


Function Documentation

NVBLAST_API uint64_t NvBlastExtSerializationSerializeTkAssetIntoBuffer ( void *&  buffer,
Nv::Blast::ExtSerialization serialization,
const Nv::Blast::TkAsset asset 
)

Utility wrapper function to serialize a TkAsset. Allocates the buffer internally using the callack set in ExtSerialization::setBufferProvider.

Equivalent to:

serialization.serializeIntoBuffer(buffer, asset, Nv::Blast::TkObjectTypeID::Asset);

Parameters:
[out] buffer Pointer to the buffer created.
[in] serialization Serialization manager.
[in] asset Pointer to the TkAsset to serialize.
Returns:
the number of bytes serialized into the buffer (zero if unsuccessful).

NVBLAST_API size_t NvBlastExtTkSerializerLoadSet ( Nv::Blast::TkFramework framework,
Nv::Blast::ExtSerialization serialization 
)

Load all high-level serializers into the ExtSerialization manager.

It does no harm to call this function more than once; serializers already loaded will not be loaded again.

Parameters:
[in] serialization Serialization manager into which to load serializers.
Returns:
the number of serializers loaded.