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

#include "NvBlastGlobals.h"

Go to the source code of this file.

Classes

struct  Nv::Blast::ExtPxObjectTypeID

Namespaces

namespace  Nv
namespace  Nv::Blast
namespace  physx

Functions

size_t NvBlastExtPxSerializerLoadSet (Nv::Blast::TkFramework &framework, physx::PxPhysics &physics, physx::PxCooking &cooking, Nv::Blast::ExtSerialization &serialization)
uint64_t NvBlastExtSerializationSerializeExtPxAssetIntoBuffer (void *&buffer, Nv::Blast::ExtSerialization &serialization, const Nv::Blast::ExtPxAsset *asset)


Function Documentation

size_t NvBlastExtPxSerializerLoadSet ( Nv::Blast::TkFramework framework,
physx::PxPhysics &  physics,
physx::PxCooking &  cooking,
Nv::Blast::ExtSerialization serialization 
)

Load all ExtPhysX extension 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.

uint64_t NvBlastExtSerializationSerializeExtPxAssetIntoBuffer ( void *&  buffer,
Nv::Blast::ExtSerialization serialization,
const Nv::Blast::ExtPxAsset asset 
)

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

Equivalent to:

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

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