diff options
Diffstat (limited to 'APEX_1.4/module/basicfs_legacy/include')
42 files changed, 8289 insertions, 0 deletions
diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionAttractorFSActorParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionAttractorFSActorParams_0p0_0p1.h new file mode 100644 index 00000000..156bcd44 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionAttractorFSActorParams_0p0_0p1.h @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONATTRACTORFSACTORPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONATTRACTORFSACTORPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "AttractorFSActorParams_0p0.h" +#include "AttractorFSActorParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::AttractorFSActorParams_0p0, + nvidia::parameterized::AttractorFSActorParams_0p1, + nvidia::parameterized::AttractorFSActorParams_0p0::ClassVersion, + nvidia::parameterized::AttractorFSActorParams_0p1::ClassVersion> + ConversionAttractorFSActorParams_0p0_0p1Parent; + +class ConversionAttractorFSActorParams_0p0_0p1: public ConversionAttractorFSActorParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionAttractorFSActorParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionAttractorFSActorParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionAttractorFSActorParams_0p0_0p1(NvParameterized::Traits* t) : ConversionAttractorFSActorParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + physx::PxMat33 tm(physx::PxVec3(mLegacyData->initialPose[0],mLegacyData->initialPose[1],mLegacyData->initialPose[2]), + physx::PxVec3(mLegacyData->initialPose[3],mLegacyData->initialPose[4],mLegacyData->initialPose[5]), + physx::PxVec3(mLegacyData->initialPose[6],mLegacyData->initialPose[7],mLegacyData->initialPose[8])); + + mNewData->initialPose.q = physx::PxQuat(tm); + mNewData->initialPose.p = physx::PxVec3(mLegacyData->initialPose[9],mLegacyData->initialPose[10],mLegacyData->initialPose[11]); + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionAttractorFSAssetParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionAttractorFSAssetParams_0p0_0p1.h new file mode 100644 index 00000000..ef242902 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionAttractorFSAssetParams_0p0_0p1.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONATTRACTORFSASSETPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONATTRACTORFSASSETPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "AttractorFSAssetParams_0p0.h" +#include "AttractorFSAssetParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::AttractorFSAssetParams_0p0, + nvidia::parameterized::AttractorFSAssetParams_0p1, + nvidia::parameterized::AttractorFSAssetParams_0p0::ClassVersion, + nvidia::parameterized::AttractorFSAssetParams_0p1::ClassVersion> + ConversionAttractorFSAssetParams_0p0_0p1Parent; + +class ConversionAttractorFSAssetParams_0p0_0p1: public ConversionAttractorFSAssetParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionAttractorFSAssetParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionAttractorFSAssetParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionAttractorFSAssetParams_0p0_0p1(NvParameterized::Traits* t) : ConversionAttractorFSAssetParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionJetFSActorParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionJetFSActorParams_0p0_0p1.h new file mode 100644 index 00000000..a97e2c85 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionJetFSActorParams_0p0_0p1.h @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONJETFSACTORPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONJETFSACTORPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "JetFSActorParams_0p0.h" +#include "JetFSActorParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::JetFSActorParams_0p0, + nvidia::parameterized::JetFSActorParams_0p1, + nvidia::parameterized::JetFSActorParams_0p0::ClassVersion, + nvidia::parameterized::JetFSActorParams_0p1::ClassVersion> + ConversionJetFSActorParams_0p0_0p1Parent; + +class ConversionJetFSActorParams_0p0_0p1: public ConversionJetFSActorParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionJetFSActorParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionJetFSActorParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionJetFSActorParams_0p0_0p1(NvParameterized::Traits* t) : ConversionJetFSActorParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + { + physx::PxMat33 tm(physx::PxVec3(mLegacyData->initialPose[0],mLegacyData->initialPose[1],mLegacyData->initialPose[2]), + physx::PxVec3(mLegacyData->initialPose[3],mLegacyData->initialPose[4],mLegacyData->initialPose[5]), + physx::PxVec3(mLegacyData->initialPose[6],mLegacyData->initialPose[7],mLegacyData->initialPose[8])); + + mNewData->initialPose.q = physx::PxQuat(tm); + mNewData->initialPose.p = physx::PxVec3(mLegacyData->initialPose[9],mLegacyData->initialPose[10],mLegacyData->initialPose[11]); + } + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionJetFSAssetParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionJetFSAssetParams_0p0_0p1.h new file mode 100644 index 00000000..5f289b72 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionJetFSAssetParams_0p0_0p1.h @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONJETFSASSETPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONJETFSASSETPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "JetFSAssetParams_0p0.h" +#include "JetFSAssetParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::JetFSAssetParams_0p0, + nvidia::parameterized::JetFSAssetParams_0p1, + nvidia::parameterized::JetFSAssetParams_0p0::ClassVersion, + nvidia::parameterized::JetFSAssetParams_0p1::ClassVersion> + ConversionJetFSAssetParams_0p0_0p1Parent; + +class ConversionJetFSAssetParams_0p0_0p1: public ConversionJetFSAssetParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionJetFSAssetParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionJetFSAssetParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionJetFSAssetParams_0p0_0p1(NvParameterized::Traits* t) : ConversionJetFSAssetParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + PX_INLINE void containMin(float& value, float min) + { + if (value < min) value = min; + } + + PX_INLINE void containMinMax(float& value, float min, float max) + { + containMin(value, min); + if (value > max) value = max; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + // perhaps these values should be retrieved from the hints themselves (in case we decide to change these?) + containMinMax(mNewData->boundaryFadePercentage, 0.0f, 1.0f); + containMinMax(mNewData->fieldDirectionDeviationAngle, 0.0f, 180.0f); + containMin(mNewData->fieldDirectionOscillationPeriod, 0.0f); + containMin(mNewData->fieldStrength, 0.0f); + containMinMax(mNewData->fieldStrengthDeviationPercentage, 0.0f, 1.0f); + containMin(mNewData->fieldStrengthOscillationPeriod, 0.0f); + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSActorParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSActorParams_0p0_0p1.h new file mode 100644 index 00000000..9678032e --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSActorParams_0p0_0p1.h @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONNOISEFSACTORPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONNOISEFSACTORPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "NoiseFSActorParams_0p0.h" +#include "NoiseFSActorParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::NoiseFSActorParams_0p0, + nvidia::parameterized::NoiseFSActorParams_0p1, + nvidia::parameterized::NoiseFSActorParams_0p0::ClassVersion, + nvidia::parameterized::NoiseFSActorParams_0p1::ClassVersion> + ConversionNoiseFSActorParams_0p0_0p1Parent; + +class ConversionNoiseFSActorParams_0p0_0p1: public ConversionNoiseFSActorParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionNoiseFSActorParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionNoiseFSActorParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionNoiseFSActorParams_0p0_0p1(NvParameterized::Traits* t) : ConversionNoiseFSActorParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + { + physx::PxMat33 tm(physx::PxVec3(mLegacyData->initialPose[0],mLegacyData->initialPose[1],mLegacyData->initialPose[2]), + physx::PxVec3(mLegacyData->initialPose[3],mLegacyData->initialPose[4],mLegacyData->initialPose[5]), + physx::PxVec3(mLegacyData->initialPose[6],mLegacyData->initialPose[7],mLegacyData->initialPose[8])); + + mNewData->initialPose.q = physx::PxQuat(tm); + mNewData->initialPose.p = physx::PxVec3(mLegacyData->initialPose[9],mLegacyData->initialPose[10],mLegacyData->initialPose[11]); + } + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSAssetParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSAssetParams_0p0_0p1.h new file mode 100644 index 00000000..22fa2488 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSAssetParams_0p0_0p1.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONNOISEFSASSETPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONNOISEFSASSETPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "NoiseFSAssetParams_0p0.h" +#include "NoiseFSAssetParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::NoiseFSAssetParams_0p0, + nvidia::parameterized::NoiseFSAssetParams_0p1, + nvidia::parameterized::NoiseFSAssetParams_0p0::ClassVersion, + nvidia::parameterized::NoiseFSAssetParams_0p1::ClassVersion> + ConversionNoiseFSAssetParams_0p0_0p1Parent; + +class ConversionNoiseFSAssetParams_0p0_0p1: public ConversionNoiseFSAssetParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionNoiseFSAssetParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionNoiseFSAssetParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionNoiseFSAssetParams_0p0_0p1(NvParameterized::Traits* t) : ConversionNoiseFSAssetParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSAssetParams_0p1_0p2.h b/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSAssetParams_0p1_0p2.h new file mode 100644 index 00000000..57f54156 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionNoiseFSAssetParams_0p1_0p2.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONNOISEFSASSETPARAMS_0P1_0P2H_H +#define MODULE_CONVERSIONNOISEFSASSETPARAMS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "NoiseFSAssetParams_0p1.h" +#include "NoiseFSAssetParams_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::NoiseFSAssetParams_0p1, + nvidia::parameterized::NoiseFSAssetParams_0p2, + nvidia::parameterized::NoiseFSAssetParams_0p1::ClassVersion, + nvidia::parameterized::NoiseFSAssetParams_0p2::ClassVersion> + ConversionNoiseFSAssetParams_0p1_0p2Parent; + +class ConversionNoiseFSAssetParams_0p1_0p2: public ConversionNoiseFSAssetParams_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionNoiseFSAssetParams_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionNoiseFSAssetParams_0p1_0p2)(t) : 0; + } + +protected: + ConversionNoiseFSAssetParams_0p1_0p2(NvParameterized::Traits* t) : ConversionNoiseFSAssetParams_0p1_0p2Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSActorParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSActorParams_0p0_0p1.h new file mode 100644 index 00000000..b5fcd2dd --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSActorParams_0p0_0p1.h @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONVORTEXFSACTORPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONVORTEXFSACTORPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "VortexFSActorParams_0p0.h" +#include "VortexFSActorParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::VortexFSActorParams_0p0, + nvidia::parameterized::VortexFSActorParams_0p1, + nvidia::parameterized::VortexFSActorParams_0p0::ClassVersion, + nvidia::parameterized::VortexFSActorParams_0p1::ClassVersion> + ConversionVortexFSActorParams_0p0_0p1Parent; + +class ConversionVortexFSActorParams_0p0_0p1: public ConversionVortexFSActorParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionVortexFSActorParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionVortexFSActorParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionVortexFSActorParams_0p0_0p1(NvParameterized::Traits* t) : ConversionVortexFSActorParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + { + physx::PxMat33 tm(physx::PxVec3(mLegacyData->initialPose[0],mLegacyData->initialPose[1],mLegacyData->initialPose[2]), + physx::PxVec3(mLegacyData->initialPose[3],mLegacyData->initialPose[4],mLegacyData->initialPose[5]), + physx::PxVec3(mLegacyData->initialPose[6],mLegacyData->initialPose[7],mLegacyData->initialPose[8])); + + mNewData->initialPose.q = physx::PxQuat(tm); + mNewData->initialPose.p = physx::PxVec3(mLegacyData->initialPose[9],mLegacyData->initialPose[10],mLegacyData->initialPose[11]); + } + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSAssetParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSAssetParams_0p0_0p1.h new file mode 100644 index 00000000..f1d35186 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSAssetParams_0p0_0p1.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONVORTEXFSASSETPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONVORTEXFSASSETPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "VortexFSAssetParams_0p0.h" +#include "VortexFSAssetParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::VortexFSAssetParams_0p0, + nvidia::parameterized::VortexFSAssetParams_0p1, + nvidia::parameterized::VortexFSAssetParams_0p0::ClassVersion, + nvidia::parameterized::VortexFSAssetParams_0p1::ClassVersion> + ConversionVortexFSAssetParams_0p0_0p1Parent; + +class ConversionVortexFSAssetParams_0p0_0p1: public ConversionVortexFSAssetParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionVortexFSAssetParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionVortexFSAssetParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionVortexFSAssetParams_0p0_0p1(NvParameterized::Traits* t) : ConversionVortexFSAssetParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSAssetParams_0p1_0p2.h b/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSAssetParams_0p1_0p2.h new file mode 100644 index 00000000..62ca243a --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionVortexFSAssetParams_0p1_0p2.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONVORTEXFSASSETPARAMS_0P1_0P2H_H +#define MODULE_CONVERSIONVORTEXFSASSETPARAMS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "VortexFSAssetParams_0p1.h" +#include "VortexFSAssetParams_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::VortexFSAssetParams_0p1, + nvidia::parameterized::VortexFSAssetParams_0p2, + nvidia::parameterized::VortexFSAssetParams_0p1::ClassVersion, + nvidia::parameterized::VortexFSAssetParams_0p2::ClassVersion> + ConversionVortexFSAssetParams_0p1_0p2Parent; + +class ConversionVortexFSAssetParams_0p1_0p2: public ConversionVortexFSAssetParams_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionVortexFSAssetParams_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionVortexFSAssetParams_0p1_0p2)(t) : 0; + } + +protected: + ConversionVortexFSAssetParams_0p1_0p2(NvParameterized::Traits* t) : ConversionVortexFSAssetParams_0p1_0p2Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionWindFSActorParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionWindFSActorParams_0p0_0p1.h new file mode 100644 index 00000000..7a209b90 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionWindFSActorParams_0p0_0p1.h @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONWINDFSACTORPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONWINDFSACTORPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "WindFSActorParams_0p0.h" +#include "WindFSActorParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::WindFSActorParams_0p0, + nvidia::parameterized::WindFSActorParams_0p1, + nvidia::parameterized::WindFSActorParams_0p0::ClassVersion, + nvidia::parameterized::WindFSActorParams_0p1::ClassVersion> + ConversionWindFSActorParams_0p0_0p1Parent; + +class ConversionWindFSActorParams_0p0_0p1: public ConversionWindFSActorParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionWindFSActorParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionWindFSActorParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionWindFSActorParams_0p0_0p1(NvParameterized::Traits* t) : ConversionWindFSActorParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + { + physx::PxMat33 tm(physx::PxVec3(mLegacyData->initialPose[0],mLegacyData->initialPose[1],mLegacyData->initialPose[2]), + physx::PxVec3(mLegacyData->initialPose[3],mLegacyData->initialPose[4],mLegacyData->initialPose[5]), + physx::PxVec3(mLegacyData->initialPose[6],mLegacyData->initialPose[7],mLegacyData->initialPose[8])); + + mNewData->initialPose.q = physx::PxQuat(tm); + mNewData->initialPose.p = physx::PxVec3(mLegacyData->initialPose[9],mLegacyData->initialPose[10],mLegacyData->initialPose[11]); + } + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/ConversionWindFSAssetParams_0p0_0p1.h b/APEX_1.4/module/basicfs_legacy/include/ConversionWindFSAssetParams_0p0_0p1.h new file mode 100644 index 00000000..620a898b --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/ConversionWindFSAssetParams_0p0_0p1.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef MODULE_CONVERSIONWINDFSASSETPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONWINDFSASSETPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "WindFSAssetParams_0p0.h" +#include "WindFSAssetParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::WindFSAssetParams_0p0, + nvidia::parameterized::WindFSAssetParams_0p1, + nvidia::parameterized::WindFSAssetParams_0p0::ClassVersion, + nvidia::parameterized::WindFSAssetParams_0p1::ClassVersion> + ConversionWindFSAssetParams_0p0_0p1Parent; + +class ConversionWindFSAssetParams_0p0_0p1: public ConversionWindFSAssetParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionWindFSAssetParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionWindFSAssetParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionWindFSAssetParams_0p0_0p1(NvParameterized::Traits* t) : ConversionWindFSAssetParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSActorParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSActorParams_0p0.h new file mode 100644 index 00000000..7e9e953e --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSActorParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_AttractorFSActorParams_0p0_h +#define HEADER_AttractorFSActorParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace AttractorFSActorParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float initialPose[12]; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x45e3d998, 0xba60d2f4, 0x6021f101, 0xff67e267, }; + +} // namespace AttractorFSActorParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class AttractorFSActorParams_0p0 : public NvParameterized::NvParameters, public AttractorFSActorParams_0p0NS::ParametersStruct +{ +public: + AttractorFSActorParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~AttractorFSActorParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("AttractorFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(AttractorFSActorParams_0p0NS::checksum); + return AttractorFSActorParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const AttractorFSActorParams_0p0NS::ParametersStruct& parameters(void) const + { + AttractorFSActorParams_0p0* tmpThis = const_cast<AttractorFSActorParams_0p0*>(this); + return *(static_cast<AttractorFSActorParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + AttractorFSActorParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<AttractorFSActorParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class AttractorFSActorParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + AttractorFSActorParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(AttractorFSActorParams_0p0), AttractorFSActorParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, AttractorFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSActorParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(AttractorFSActorParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, AttractorFSActorParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, AttractorFSActorParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, AttractorFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSActorParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of AttractorFSActorParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (AttractorFSActorParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (AttractorFSActorParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (AttractorFSActorParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (AttractorFSActorParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (AttractorFSActorParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSActorParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSActorParams_0p1.h new file mode 100644 index 00000000..34024f36 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSActorParams_0p1.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_AttractorFSActorParams_0p1_h +#define HEADER_AttractorFSActorParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace AttractorFSActorParams_0p1NS +{ + + + +struct ParametersStruct +{ + + physx::PxTransform initialPose; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x4f2a3341, 0x2794b529, 0x17ac5081, 0xa5038a78, }; + +} // namespace AttractorFSActorParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class AttractorFSActorParams_0p1 : public NvParameterized::NvParameters, public AttractorFSActorParams_0p1NS::ParametersStruct +{ +public: + AttractorFSActorParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~AttractorFSActorParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("AttractorFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(AttractorFSActorParams_0p1NS::checksum); + return AttractorFSActorParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const AttractorFSActorParams_0p1NS::ParametersStruct& parameters(void) const + { + AttractorFSActorParams_0p1* tmpThis = const_cast<AttractorFSActorParams_0p1*>(this); + return *(static_cast<AttractorFSActorParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + AttractorFSActorParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<AttractorFSActorParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class AttractorFSActorParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + AttractorFSActorParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(AttractorFSActorParams_0p1), AttractorFSActorParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, AttractorFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSActorParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(AttractorFSActorParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, AttractorFSActorParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, AttractorFSActorParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, AttractorFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSActorParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of AttractorFSActorParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (AttractorFSActorParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (AttractorFSActorParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (AttractorFSActorParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (AttractorFSActorParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (AttractorFSActorParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSAssetParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSAssetParams_0p0.h new file mode 100644 index 00000000..4f78e39f --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSAssetParams_0p0.h @@ -0,0 +1,235 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_AttractorFSAssetParams_0p0_h +#define HEADER_AttractorFSAssetParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace AttractorFSAssetParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float boundaryFadePercentage; + float radius; + float constFieldStrength; + float variableFieldStrength; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xcfa05f8f, 0x552c72d3, 0xecaee81f, 0xd2e7b308, }; + +} // namespace AttractorFSAssetParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class AttractorFSAssetParams_0p0 : public NvParameterized::NvParameters, public AttractorFSAssetParams_0p0NS::ParametersStruct +{ +public: + AttractorFSAssetParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~AttractorFSAssetParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("AttractorFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(AttractorFSAssetParams_0p0NS::checksum); + return AttractorFSAssetParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const AttractorFSAssetParams_0p0NS::ParametersStruct& parameters(void) const + { + AttractorFSAssetParams_0p0* tmpThis = const_cast<AttractorFSAssetParams_0p0*>(this); + return *(static_cast<AttractorFSAssetParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + AttractorFSAssetParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<AttractorFSAssetParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class AttractorFSAssetParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + AttractorFSAssetParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(AttractorFSAssetParams_0p0), AttractorFSAssetParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, AttractorFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSAssetParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(AttractorFSAssetParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, AttractorFSAssetParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, AttractorFSAssetParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, AttractorFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSAssetParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of AttractorFSAssetParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (AttractorFSAssetParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (AttractorFSAssetParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (AttractorFSAssetParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (AttractorFSAssetParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (AttractorFSAssetParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSAssetParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSAssetParams_0p1.h new file mode 100644 index 00000000..4233a9b3 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSAssetParams_0p1.h @@ -0,0 +1,237 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_AttractorFSAssetParams_0p1_h +#define HEADER_AttractorFSAssetParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace AttractorFSAssetParams_0p1NS +{ + + + +struct ParametersStruct +{ + + float boundaryFadePercentage; + float radius; + float constFieldStrength; + float variableFieldStrength; + float fieldDragCoeff; + float fieldWeight; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xa5c6fe76, 0x029893b4, 0x67ea6245, 0xb8f7fb2a, }; + +} // namespace AttractorFSAssetParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class AttractorFSAssetParams_0p1 : public NvParameterized::NvParameters, public AttractorFSAssetParams_0p1NS::ParametersStruct +{ +public: + AttractorFSAssetParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~AttractorFSAssetParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("AttractorFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(AttractorFSAssetParams_0p1NS::checksum); + return AttractorFSAssetParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const AttractorFSAssetParams_0p1NS::ParametersStruct& parameters(void) const + { + AttractorFSAssetParams_0p1* tmpThis = const_cast<AttractorFSAssetParams_0p1*>(this); + return *(static_cast<AttractorFSAssetParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + AttractorFSAssetParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<AttractorFSAssetParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class AttractorFSAssetParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + AttractorFSAssetParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(AttractorFSAssetParams_0p1), AttractorFSAssetParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, AttractorFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSAssetParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(AttractorFSAssetParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, AttractorFSAssetParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, AttractorFSAssetParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, AttractorFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSAssetParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of AttractorFSAssetParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (AttractorFSAssetParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (AttractorFSAssetParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (AttractorFSAssetParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (AttractorFSAssetParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (AttractorFSAssetParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSPreviewParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSPreviewParams_0p0.h new file mode 100644 index 00000000..7800e399 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/AttractorFSPreviewParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_AttractorFSPreviewParams_0p0_h +#define HEADER_AttractorFSPreviewParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace AttractorFSPreviewParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool drawShape; + bool drawAssetInfo; + uint64_t userData; + +}; + +static const uint32_t checksum[] = { 0x8922c590, 0x18102a05, 0xf09b9b50, 0xdcef001a, }; + +} // namespace AttractorFSPreviewParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class AttractorFSPreviewParams_0p0 : public NvParameterized::NvParameters, public AttractorFSPreviewParams_0p0NS::ParametersStruct +{ +public: + AttractorFSPreviewParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~AttractorFSPreviewParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("AttractorFSPreviewParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(AttractorFSPreviewParams_0p0NS::checksum); + return AttractorFSPreviewParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const AttractorFSPreviewParams_0p0NS::ParametersStruct& parameters(void) const + { + AttractorFSPreviewParams_0p0* tmpThis = const_cast<AttractorFSPreviewParams_0p0*>(this); + return *(static_cast<AttractorFSPreviewParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + AttractorFSPreviewParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<AttractorFSPreviewParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class AttractorFSPreviewParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + AttractorFSPreviewParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(AttractorFSPreviewParams_0p0), AttractorFSPreviewParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, AttractorFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSPreviewParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(AttractorFSPreviewParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, AttractorFSPreviewParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, AttractorFSPreviewParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, AttractorFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class AttractorFSPreviewParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of AttractorFSPreviewParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (AttractorFSPreviewParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (AttractorFSPreviewParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (AttractorFSPreviewParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (AttractorFSPreviewParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (AttractorFSPreviewParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/BasicFSDebugRenderParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/BasicFSDebugRenderParams_0p0.h new file mode 100644 index 00000000..c64275ef --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/BasicFSDebugRenderParams_0p0.h @@ -0,0 +1,251 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_BasicFSDebugRenderParams_0p0_h +#define HEADER_BasicFSDebugRenderParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace BasicFSDebugRenderParams_0p0NS +{ + + + +struct ParametersStruct +{ + + bool VISUALIZE_JET_FS_ACTOR; + bool VISUALIZE_JET_FS_ACTOR_NAME; + bool VISUALIZE_JET_FS_SHAPE; + bool VISUALIZE_JET_FS_FIELD; + bool VISUALIZE_JET_FS_POSE; + float JET_FS_FIELD_SCALE; + bool VISUALIZE_ATTRACTOR_FS_ACTOR; + bool VISUALIZE_ATTRACTOR_FS_ACTOR_NAME; + bool VISUALIZE_ATTRACTOR_FS_SHAPE; + bool VISUALIZE_ATTRACTOR_FS_FIELD; + bool VISUALIZE_ATTRACTOR_FS_POSE; + bool VISUALIZE_VORTEX_FS_ACTOR; + bool VISUALIZE_VORTEX_FS_ACTOR_NAME; + bool VISUALIZE_VORTEX_FS_SHAPE; + bool VISUALIZE_VORTEX_FS_FIELD; + bool VISUALIZE_VORTEX_FS_POSE; + bool VISUALIZE_NOISE_FS_ACTOR; + bool VISUALIZE_NOISE_FS_ACTOR_NAME; + bool VISUALIZE_NOISE_FS_SHAPE; + bool VISUALIZE_NOISE_FS_POSE; + bool VISUALIZE_WIND_FS_ACTOR; + bool VISUALIZE_WIND_FS_ACTOR_NAME; + +}; + +static const uint32_t checksum[] = { 0xb0169d27, 0x35d0161d, 0xa6b13602, 0x90135fb1, }; + +} // namespace BasicFSDebugRenderParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class BasicFSDebugRenderParams_0p0 : public NvParameterized::NvParameters, public BasicFSDebugRenderParams_0p0NS::ParametersStruct +{ +public: + BasicFSDebugRenderParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~BasicFSDebugRenderParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("BasicFSDebugRenderParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(BasicFSDebugRenderParams_0p0NS::checksum); + return BasicFSDebugRenderParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const BasicFSDebugRenderParams_0p0NS::ParametersStruct& parameters(void) const + { + BasicFSDebugRenderParams_0p0* tmpThis = const_cast<BasicFSDebugRenderParams_0p0*>(this); + return *(static_cast<BasicFSDebugRenderParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + BasicFSDebugRenderParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<BasicFSDebugRenderParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class BasicFSDebugRenderParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + BasicFSDebugRenderParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(BasicFSDebugRenderParams_0p0), BasicFSDebugRenderParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, BasicFSDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class BasicFSDebugRenderParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(BasicFSDebugRenderParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, BasicFSDebugRenderParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, BasicFSDebugRenderParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, BasicFSDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class BasicFSDebugRenderParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of BasicFSDebugRenderParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (BasicFSDebugRenderParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (BasicFSDebugRenderParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (BasicFSDebugRenderParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (BasicFSDebugRenderParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (BasicFSDebugRenderParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/BasicFSModuleParameters_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/BasicFSModuleParameters_0p0.h new file mode 100644 index 00000000..25835193 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/BasicFSModuleParameters_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_BasicFSModuleParameters_0p0_h +#define HEADER_BasicFSModuleParameters_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace BasicFSModuleParameters_0p0NS +{ + + + +struct ParametersStruct +{ + + uint32_t unused; + +}; + +static const uint32_t checksum[] = { 0x5172e1d0, 0xd8897074, 0x2680816d, 0x73062129, }; + +} // namespace BasicFSModuleParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class BasicFSModuleParameters_0p0 : public NvParameterized::NvParameters, public BasicFSModuleParameters_0p0NS::ParametersStruct +{ +public: + BasicFSModuleParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~BasicFSModuleParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("BasicFSModuleParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(BasicFSModuleParameters_0p0NS::checksum); + return BasicFSModuleParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const BasicFSModuleParameters_0p0NS::ParametersStruct& parameters(void) const + { + BasicFSModuleParameters_0p0* tmpThis = const_cast<BasicFSModuleParameters_0p0*>(this); + return *(static_cast<BasicFSModuleParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + BasicFSModuleParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<BasicFSModuleParameters_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class BasicFSModuleParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + BasicFSModuleParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(BasicFSModuleParameters_0p0), BasicFSModuleParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, BasicFSModuleParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class BasicFSModuleParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(BasicFSModuleParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, BasicFSModuleParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, BasicFSModuleParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, BasicFSModuleParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class BasicFSModuleParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of BasicFSModuleParameters_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (BasicFSModuleParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (BasicFSModuleParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (BasicFSModuleParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (BasicFSModuleParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (BasicFSModuleParameters_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSActorParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSActorParams_0p0.h new file mode 100644 index 00000000..224c51be --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSActorParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_JetFSActorParams_0p0_h +#define HEADER_JetFSActorParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace JetFSActorParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float initialPose[12]; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x1c5d70a6, 0x751958e8, 0xcf53c70a, 0xd108a6ab, }; + +} // namespace JetFSActorParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class JetFSActorParams_0p0 : public NvParameterized::NvParameters, public JetFSActorParams_0p0NS::ParametersStruct +{ +public: + JetFSActorParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~JetFSActorParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("JetFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(JetFSActorParams_0p0NS::checksum); + return JetFSActorParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const JetFSActorParams_0p0NS::ParametersStruct& parameters(void) const + { + JetFSActorParams_0p0* tmpThis = const_cast<JetFSActorParams_0p0*>(this); + return *(static_cast<JetFSActorParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + JetFSActorParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<JetFSActorParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class JetFSActorParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + JetFSActorParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(JetFSActorParams_0p0), JetFSActorParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, JetFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSActorParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(JetFSActorParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, JetFSActorParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, JetFSActorParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, JetFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSActorParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of JetFSActorParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (JetFSActorParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (JetFSActorParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (JetFSActorParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (JetFSActorParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (JetFSActorParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSActorParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSActorParams_0p1.h new file mode 100644 index 00000000..21e27e52 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSActorParams_0p1.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_JetFSActorParams_0p1_h +#define HEADER_JetFSActorParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace JetFSActorParams_0p1NS +{ + + + +struct ParametersStruct +{ + + physx::PxTransform initialPose; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xa4d1a7f7, 0x7f6decb8, 0x56e05568, 0x7b6ddfd3, }; + +} // namespace JetFSActorParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class JetFSActorParams_0p1 : public NvParameterized::NvParameters, public JetFSActorParams_0p1NS::ParametersStruct +{ +public: + JetFSActorParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~JetFSActorParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("JetFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(JetFSActorParams_0p1NS::checksum); + return JetFSActorParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const JetFSActorParams_0p1NS::ParametersStruct& parameters(void) const + { + JetFSActorParams_0p1* tmpThis = const_cast<JetFSActorParams_0p1*>(this); + return *(static_cast<JetFSActorParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + JetFSActorParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<JetFSActorParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class JetFSActorParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + JetFSActorParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(JetFSActorParams_0p1), JetFSActorParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, JetFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSActorParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(JetFSActorParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, JetFSActorParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, JetFSActorParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, JetFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSActorParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of JetFSActorParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (JetFSActorParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (JetFSActorParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (JetFSActorParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (JetFSActorParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (JetFSActorParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSAssetParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSAssetParams_0p0.h new file mode 100644 index 00000000..5c8d330c --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSAssetParams_0p0.h @@ -0,0 +1,252 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_JetFSAssetParams_0p0_h +#define HEADER_JetFSAssetParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace JetFSAssetParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float defaultScale; + float boundaryFadePercentage; + physx::PxVec3 fieldDirection; + float fieldDirectionDeviationAngle; + float fieldDirectionOscillationPeriod; + float fieldStrength; + float fieldStrengthDeviationPercentage; + float fieldStrengthOscillationPeriod; + float gridShapeRadius; + float gridShapeHeight; + float gridBoundaryFadePercentage; + float nearRadius; + float pivotRadius; + float farRadius; + float directionalStretch; + float averageStartDistance; + float averageEndDistance; + float noisePercentage; + float noiseSpaceScale; + float noiseTimeScale; + uint32_t noiseOctaves; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x08d0f147, 0xdd6bdfdb, 0xc8ba84a3, 0x82b526e5, }; + +} // namespace JetFSAssetParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class JetFSAssetParams_0p0 : public NvParameterized::NvParameters, public JetFSAssetParams_0p0NS::ParametersStruct +{ +public: + JetFSAssetParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~JetFSAssetParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("JetFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(JetFSAssetParams_0p0NS::checksum); + return JetFSAssetParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const JetFSAssetParams_0p0NS::ParametersStruct& parameters(void) const + { + JetFSAssetParams_0p0* tmpThis = const_cast<JetFSAssetParams_0p0*>(this); + return *(static_cast<JetFSAssetParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + JetFSAssetParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<JetFSAssetParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class JetFSAssetParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + JetFSAssetParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(JetFSAssetParams_0p0), JetFSAssetParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, JetFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSAssetParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(JetFSAssetParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, JetFSAssetParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, JetFSAssetParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, JetFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSAssetParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of JetFSAssetParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (JetFSAssetParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (JetFSAssetParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (JetFSAssetParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (JetFSAssetParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (JetFSAssetParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSAssetParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSAssetParams_0p1.h new file mode 100644 index 00000000..8c7421f1 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSAssetParams_0p1.h @@ -0,0 +1,254 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_JetFSAssetParams_0p1_h +#define HEADER_JetFSAssetParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace JetFSAssetParams_0p1NS +{ + + + +struct ParametersStruct +{ + + float defaultScale; + float boundaryFadePercentage; + physx::PxVec3 fieldDirection; + float fieldDirectionDeviationAngle; + float fieldDirectionOscillationPeriod; + float fieldStrength; + float fieldStrengthDeviationPercentage; + float fieldStrengthOscillationPeriod; + float gridShapeRadius; + float gridShapeHeight; + float gridBoundaryFadePercentage; + float nearRadius; + float pivotRadius; + float farRadius; + float directionalStretch; + float averageStartDistance; + float averageEndDistance; + float noisePercentage; + float noiseSpaceScale; + float noiseTimeScale; + uint32_t noiseOctaves; + float fieldDragCoeff; + float fieldWeight; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x69e560ed, 0x4dd107de, 0x04ab3f89, 0x32270f6f, }; + +} // namespace JetFSAssetParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class JetFSAssetParams_0p1 : public NvParameterized::NvParameters, public JetFSAssetParams_0p1NS::ParametersStruct +{ +public: + JetFSAssetParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~JetFSAssetParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("JetFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(JetFSAssetParams_0p1NS::checksum); + return JetFSAssetParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const JetFSAssetParams_0p1NS::ParametersStruct& parameters(void) const + { + JetFSAssetParams_0p1* tmpThis = const_cast<JetFSAssetParams_0p1*>(this); + return *(static_cast<JetFSAssetParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + JetFSAssetParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<JetFSAssetParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class JetFSAssetParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + JetFSAssetParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(JetFSAssetParams_0p1), JetFSAssetParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, JetFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSAssetParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(JetFSAssetParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, JetFSAssetParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, JetFSAssetParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, JetFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSAssetParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of JetFSAssetParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (JetFSAssetParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (JetFSAssetParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (JetFSAssetParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (JetFSAssetParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (JetFSAssetParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSPreviewParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSPreviewParams_0p0.h new file mode 100644 index 00000000..3f8caf82 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/JetFSPreviewParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_JetFSPreviewParams_0p0_h +#define HEADER_JetFSPreviewParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace JetFSPreviewParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool drawShape; + bool drawAssetInfo; + uint64_t userData; + +}; + +static const uint32_t checksum[] = { 0xd4ae1ca1, 0x104c2a39, 0xc7e092cd, 0xc962045f, }; + +} // namespace JetFSPreviewParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class JetFSPreviewParams_0p0 : public NvParameterized::NvParameters, public JetFSPreviewParams_0p0NS::ParametersStruct +{ +public: + JetFSPreviewParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~JetFSPreviewParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("JetFSPreviewParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(JetFSPreviewParams_0p0NS::checksum); + return JetFSPreviewParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const JetFSPreviewParams_0p0NS::ParametersStruct& parameters(void) const + { + JetFSPreviewParams_0p0* tmpThis = const_cast<JetFSPreviewParams_0p0*>(this); + return *(static_cast<JetFSPreviewParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + JetFSPreviewParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<JetFSPreviewParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class JetFSPreviewParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + JetFSPreviewParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(JetFSPreviewParams_0p0), JetFSPreviewParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, JetFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSPreviewParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(JetFSPreviewParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, JetFSPreviewParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, JetFSPreviewParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, JetFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class JetFSPreviewParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of JetFSPreviewParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (JetFSPreviewParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (JetFSPreviewParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (JetFSPreviewParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (JetFSPreviewParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (JetFSPreviewParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/ModuleBasicFSLegacyRegistration.h b/APEX_1.4/module/basicfs_legacy/include/autogen/ModuleBasicFSLegacyRegistration.h new file mode 100644 index 00000000..d07f643c --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/ModuleBasicFSLegacyRegistration.h @@ -0,0 +1,386 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + +#ifndef MODULE_MODULEBASICFSLEGACYREGISTRATIONH_H +#define MODULE_MODULEBASICFSLEGACYREGISTRATIONH_H + +#include "PsAllocator.h" +#include "NvRegistrationsForTraitsBase.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "PxAssert.h" +#include <stdint.h> + +// INCLUDE GENERATED FACTORIES +#include "AttractorFSActorParams_0p0.h" +#include "AttractorFSAssetParams_0p0.h" +#include "JetFSActorParams_0p0.h" +#include "JetFSAssetParams_0p0.h" +#include "NoiseFSActorParams_0p0.h" +#include "NoiseFSAssetParams_0p0.h" +#include "NoiseFSAssetParams_0p1.h" +#include "VortexFSActorParams_0p0.h" +#include "VortexFSAssetParams_0p0.h" +#include "VortexFSAssetParams_0p1.h" +#include "WindFSActorParams_0p0.h" +#include "WindFSAssetParams_0p0.h" +#include "AttractorFSActorParams_0p1.h" +#include "AttractorFSAssetParams_0p1.h" +#include "AttractorFSPreviewParams_0p0.h" +#include "BasicFSDebugRenderParams_0p0.h" +#include "JetFSActorParams_0p1.h" +#include "JetFSAssetParams_0p1.h" +#include "JetFSPreviewParams_0p0.h" +#include "BasicFSModuleParameters_0p0.h" +#include "NoiseFSActorParams_0p1.h" +#include "NoiseFSAssetParams_0p2.h" +#include "NoiseFSPreviewParams_0p0.h" +#include "VortexFSActorParams_0p1.h" +#include "VortexFSAssetParams_0p2.h" +#include "VortexFSPreviewParams_0p0.h" +#include "WindFSActorParams_0p1.h" +#include "WindFSAssetParams_0p1.h" +#include "WindFSPreviewParams_0p0.h" + + +// INCLUDE GENERATED CONVERSION +#include "ConversionAttractorFSActorParams_0p0_0p1.h" +#include "ConversionAttractorFSAssetParams_0p0_0p1.h" +#include "ConversionJetFSActorParams_0p0_0p1.h" +#include "ConversionJetFSAssetParams_0p0_0p1.h" +#include "ConversionNoiseFSActorParams_0p0_0p1.h" +#include "ConversionNoiseFSAssetParams_0p0_0p1.h" +#include "ConversionNoiseFSAssetParams_0p1_0p2.h" +#include "ConversionVortexFSActorParams_0p0_0p1.h" +#include "ConversionVortexFSAssetParams_0p0_0p1.h" +#include "ConversionVortexFSAssetParams_0p1_0p2.h" +#include "ConversionWindFSActorParams_0p0_0p1.h" +#include "ConversionWindFSAssetParams_0p0_0p1.h" + + +// global namespace + +class ModuleBasicFSLegacyRegistration : public NvParameterized::RegistrationsForTraitsBase +{ +public: + static void invokeRegistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleBasicFSLegacyRegistration().registerAll(*parameterizedTraits); + } + } + + static void invokeUnregistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleBasicFSLegacyRegistration().unregisterAll(*parameterizedTraits); + } + } + + void registerAvailableFactories(NvParameterized::Traits& parameterizedTraits) + { + ::NvParameterized::Factory* factoriesToRegister[] = { +// REGISTER GENERATED FACTORIES + new nvidia::parameterized::AttractorFSActorParams_0p0Factory(), + new nvidia::parameterized::AttractorFSAssetParams_0p0Factory(), + new nvidia::parameterized::JetFSActorParams_0p0Factory(), + new nvidia::parameterized::JetFSAssetParams_0p0Factory(), + new nvidia::parameterized::NoiseFSActorParams_0p0Factory(), + new nvidia::parameterized::NoiseFSAssetParams_0p0Factory(), + new nvidia::parameterized::NoiseFSAssetParams_0p1Factory(), + new nvidia::parameterized::VortexFSActorParams_0p0Factory(), + new nvidia::parameterized::VortexFSAssetParams_0p0Factory(), + new nvidia::parameterized::VortexFSAssetParams_0p1Factory(), + new nvidia::parameterized::WindFSActorParams_0p0Factory(), + new nvidia::parameterized::WindFSAssetParams_0p0Factory(), + + }; + + for (size_t i = 0; i < sizeof(factoriesToRegister)/sizeof(factoriesToRegister[0]); ++i) + { + parameterizedTraits.registerFactory(*factoriesToRegister[i]); + } + } + + virtual void registerAvailableConverters(NvParameterized::Traits& parameterizedTraits) + { +// REGISTER GENERATED CONVERSION + { + typedef nvidia::apex::legacy::ConversionAttractorFSActorParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionAttractorFSAssetParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionJetFSActorParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionJetFSAssetParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionNoiseFSActorParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionNoiseFSAssetParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionNoiseFSAssetParams_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionVortexFSActorParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionVortexFSAssetParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionVortexFSAssetParams_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionWindFSActorParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionWindFSAssetParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + + } + + void unregisterAvailableFactories(NvParameterized::Traits& parameterizedTraits) + { + struct FactoryDesc + { + const char* name; + uint32_t version; + }; + + ::NvParameterized::Factory* factoriesToUnregister[] = { +// UNREGISTER GENERATED FACTORIES + new nvidia::parameterized::AttractorFSActorParams_0p0Factory(), + new nvidia::parameterized::AttractorFSAssetParams_0p0Factory(), + new nvidia::parameterized::JetFSActorParams_0p0Factory(), + new nvidia::parameterized::JetFSAssetParams_0p0Factory(), + new nvidia::parameterized::NoiseFSActorParams_0p0Factory(), + new nvidia::parameterized::NoiseFSAssetParams_0p0Factory(), + new nvidia::parameterized::NoiseFSAssetParams_0p1Factory(), + new nvidia::parameterized::VortexFSActorParams_0p0Factory(), + new nvidia::parameterized::VortexFSAssetParams_0p0Factory(), + new nvidia::parameterized::VortexFSAssetParams_0p1Factory(), + new nvidia::parameterized::WindFSActorParams_0p0Factory(), + new nvidia::parameterized::WindFSAssetParams_0p0Factory(), + + }; + + for (size_t i = 0; i < sizeof(factoriesToUnregister)/sizeof(factoriesToUnregister[0]); ++i) + { + ::NvParameterized::Factory* removedFactory = parameterizedTraits.removeFactory(factoriesToUnregister[i]->getClassName(), factoriesToUnregister[i]->getVersion()); + if (!removedFactory) + { + PX_ASSERT_WITH_MESSAGE(0, "Factory can not be removed!"); + } + else + { + removedFactory->freeParameterDefinitionTable(¶meterizedTraits); + delete removedFactory; + delete factoriesToUnregister[i]; + } + } + } + + virtual void unregisterAvailableConverters(NvParameterized::Traits& parameterizedTraits) + { +// UNREGISTER GENERATED CONVERSION + { + typedef nvidia::apex::legacy::ConversionAttractorFSActorParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionAttractorFSAssetParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionJetFSActorParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionJetFSAssetParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionNoiseFSActorParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionNoiseFSAssetParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionNoiseFSAssetParams_0p1_0p2 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionVortexFSActorParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionVortexFSAssetParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionVortexFSAssetParams_0p1_0p2 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionWindFSActorParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionWindFSAssetParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + + } + +}; + +// global namespace + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSActorParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSActorParams_0p0.h new file mode 100644 index 00000000..f16bce7f --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSActorParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_NoiseFSActorParams_0p0_h +#define HEADER_NoiseFSActorParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace NoiseFSActorParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float initialPose[12]; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xec387120, 0xb053883c, 0x09be46f0, 0x0ef38266, }; + +} // namespace NoiseFSActorParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class NoiseFSActorParams_0p0 : public NvParameterized::NvParameters, public NoiseFSActorParams_0p0NS::ParametersStruct +{ +public: + NoiseFSActorParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~NoiseFSActorParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("NoiseFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(NoiseFSActorParams_0p0NS::checksum); + return NoiseFSActorParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const NoiseFSActorParams_0p0NS::ParametersStruct& parameters(void) const + { + NoiseFSActorParams_0p0* tmpThis = const_cast<NoiseFSActorParams_0p0*>(this); + return *(static_cast<NoiseFSActorParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + NoiseFSActorParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<NoiseFSActorParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class NoiseFSActorParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + NoiseFSActorParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(NoiseFSActorParams_0p0), NoiseFSActorParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, NoiseFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSActorParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(NoiseFSActorParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, NoiseFSActorParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, NoiseFSActorParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, NoiseFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSActorParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of NoiseFSActorParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (NoiseFSActorParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (NoiseFSActorParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (NoiseFSActorParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (NoiseFSActorParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (NoiseFSActorParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSActorParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSActorParams_0p1.h new file mode 100644 index 00000000..cd225b51 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSActorParams_0p1.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_NoiseFSActorParams_0p1_h +#define HEADER_NoiseFSActorParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace NoiseFSActorParams_0p1NS +{ + + + +struct ParametersStruct +{ + + physx::PxTransform initialPose; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xe4c90c5a, 0x15924053, 0x3469b7ba, 0xb14315a6, }; + +} // namespace NoiseFSActorParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class NoiseFSActorParams_0p1 : public NvParameterized::NvParameters, public NoiseFSActorParams_0p1NS::ParametersStruct +{ +public: + NoiseFSActorParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~NoiseFSActorParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("NoiseFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(NoiseFSActorParams_0p1NS::checksum); + return NoiseFSActorParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const NoiseFSActorParams_0p1NS::ParametersStruct& parameters(void) const + { + NoiseFSActorParams_0p1* tmpThis = const_cast<NoiseFSActorParams_0p1*>(this); + return *(static_cast<NoiseFSActorParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + NoiseFSActorParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<NoiseFSActorParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class NoiseFSActorParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + NoiseFSActorParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(NoiseFSActorParams_0p1), NoiseFSActorParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, NoiseFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSActorParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(NoiseFSActorParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, NoiseFSActorParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, NoiseFSActorParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, NoiseFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSActorParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of NoiseFSActorParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (NoiseFSActorParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (NoiseFSActorParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (NoiseFSActorParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (NoiseFSActorParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (NoiseFSActorParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p0.h new file mode 100644 index 00000000..55f78a7f --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_NoiseFSAssetParams_0p0_h +#define HEADER_NoiseFSAssetParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace NoiseFSAssetParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float defaultScale; + physx::PxVec3 boundarySize; + float boundaryFadePercentage; + const char* fieldType; + float fieldDragCoeff; + const char* noiseType; + uint32_t noiseSeed; + float noiseStrength; + physx::PxVec3 noiseSpacePeriod; + float noiseTimePeriod; + uint32_t noiseOctaves; + float noiseStrengthOctaveMultiplier; + physx::PxVec3 noiseSpacePeriodOctaveMultiplier; + float noiseTimePeriodOctaveMultiplier; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x723f8182, 0xf52a8761, 0xdf6794c0, 0x6e29e7e6, }; + +} // namespace NoiseFSAssetParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class NoiseFSAssetParams_0p0 : public NvParameterized::NvParameters, public NoiseFSAssetParams_0p0NS::ParametersStruct +{ +public: + NoiseFSAssetParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~NoiseFSAssetParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("NoiseFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(NoiseFSAssetParams_0p0NS::checksum); + return NoiseFSAssetParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const NoiseFSAssetParams_0p0NS::ParametersStruct& parameters(void) const + { + NoiseFSAssetParams_0p0* tmpThis = const_cast<NoiseFSAssetParams_0p0*>(this); + return *(static_cast<NoiseFSAssetParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + NoiseFSAssetParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<NoiseFSAssetParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class NoiseFSAssetParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + NoiseFSAssetParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(NoiseFSAssetParams_0p0), NoiseFSAssetParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, NoiseFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSAssetParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(NoiseFSAssetParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, NoiseFSAssetParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, NoiseFSAssetParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, NoiseFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSAssetParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of NoiseFSAssetParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (NoiseFSAssetParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (NoiseFSAssetParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (NoiseFSAssetParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (NoiseFSAssetParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (NoiseFSAssetParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p1.h new file mode 100644 index 00000000..21bf2021 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p1.h @@ -0,0 +1,246 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_NoiseFSAssetParams_0p1_h +#define HEADER_NoiseFSAssetParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace NoiseFSAssetParams_0p1NS +{ + + + +struct ParametersStruct +{ + + float defaultScale; + physx::PxVec3 boundarySize; + float boundaryFadePercentage; + const char* fieldType; + float fieldDragCoeff; + const char* noiseType; + uint32_t noiseSeed; + float noiseStrength; + physx::PxVec3 noiseSpacePeriod; + float noiseTimePeriod; + uint32_t noiseOctaves; + float noiseStrengthOctaveMultiplier; + physx::PxVec3 noiseSpacePeriodOctaveMultiplier; + float noiseTimePeriodOctaveMultiplier; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + bool useLocalSpace; + +}; + +static const uint32_t checksum[] = { 0x284ac2b4, 0x701176e7, 0x30355714, 0x98ea3ee2, }; + +} // namespace NoiseFSAssetParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class NoiseFSAssetParams_0p1 : public NvParameterized::NvParameters, public NoiseFSAssetParams_0p1NS::ParametersStruct +{ +public: + NoiseFSAssetParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~NoiseFSAssetParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("NoiseFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(NoiseFSAssetParams_0p1NS::checksum); + return NoiseFSAssetParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const NoiseFSAssetParams_0p1NS::ParametersStruct& parameters(void) const + { + NoiseFSAssetParams_0p1* tmpThis = const_cast<NoiseFSAssetParams_0p1*>(this); + return *(static_cast<NoiseFSAssetParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + NoiseFSAssetParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<NoiseFSAssetParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class NoiseFSAssetParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + NoiseFSAssetParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(NoiseFSAssetParams_0p1), NoiseFSAssetParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, NoiseFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSAssetParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(NoiseFSAssetParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, NoiseFSAssetParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, NoiseFSAssetParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, NoiseFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSAssetParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of NoiseFSAssetParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (NoiseFSAssetParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (NoiseFSAssetParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (NoiseFSAssetParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (NoiseFSAssetParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (NoiseFSAssetParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p2.h b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p2.h new file mode 100644 index 00000000..54ecb4f6 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSAssetParams_0p2.h @@ -0,0 +1,247 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_NoiseFSAssetParams_0p2_h +#define HEADER_NoiseFSAssetParams_0p2_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace NoiseFSAssetParams_0p2NS +{ + + + +struct ParametersStruct +{ + + float defaultScale; + physx::PxVec3 boundarySize; + float boundaryFadePercentage; + const char* fieldType; + float fieldDragCoeff; + float fieldWeight; + const char* noiseType; + uint32_t noiseSeed; + float noiseStrength; + physx::PxVec3 noiseSpacePeriod; + float noiseTimePeriod; + uint32_t noiseOctaves; + float noiseStrengthOctaveMultiplier; + physx::PxVec3 noiseSpacePeriodOctaveMultiplier; + float noiseTimePeriodOctaveMultiplier; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + bool useLocalSpace; + +}; + +static const uint32_t checksum[] = { 0xd5a49209, 0xd5e62b90, 0x73aa7e86, 0xd57406b3, }; + +} // namespace NoiseFSAssetParams_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class NoiseFSAssetParams_0p2 : public NvParameterized::NvParameters, public NoiseFSAssetParams_0p2NS::ParametersStruct +{ +public: + NoiseFSAssetParams_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~NoiseFSAssetParams_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("NoiseFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)2; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(NoiseFSAssetParams_0p2NS::checksum); + return NoiseFSAssetParams_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const NoiseFSAssetParams_0p2NS::ParametersStruct& parameters(void) const + { + NoiseFSAssetParams_0p2* tmpThis = const_cast<NoiseFSAssetParams_0p2*>(this); + return *(static_cast<NoiseFSAssetParams_0p2NS::ParametersStruct*>(tmpThis)); + } + + NoiseFSAssetParams_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<NoiseFSAssetParams_0p2NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class NoiseFSAssetParams_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + NoiseFSAssetParams_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(NoiseFSAssetParams_0p2), NoiseFSAssetParams_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, NoiseFSAssetParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSAssetParams_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(NoiseFSAssetParams_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, NoiseFSAssetParams_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, NoiseFSAssetParams_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, NoiseFSAssetParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSAssetParams_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of NoiseFSAssetParams_0p2 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (NoiseFSAssetParams_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (NoiseFSAssetParams_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (NoiseFSAssetParams_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (NoiseFSAssetParams_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (NoiseFSAssetParams_0p2::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSPreviewParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSPreviewParams_0p0.h new file mode 100644 index 00000000..1e6b91db --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/NoiseFSPreviewParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_NoiseFSPreviewParams_0p0_h +#define HEADER_NoiseFSPreviewParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace NoiseFSPreviewParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool drawShape; + bool drawAssetInfo; + uint64_t userData; + +}; + +static const uint32_t checksum[] = { 0x4c188363, 0x012fd224, 0x5689640e, 0x104914de, }; + +} // namespace NoiseFSPreviewParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class NoiseFSPreviewParams_0p0 : public NvParameterized::NvParameters, public NoiseFSPreviewParams_0p0NS::ParametersStruct +{ +public: + NoiseFSPreviewParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~NoiseFSPreviewParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("NoiseFSPreviewParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(NoiseFSPreviewParams_0p0NS::checksum); + return NoiseFSPreviewParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const NoiseFSPreviewParams_0p0NS::ParametersStruct& parameters(void) const + { + NoiseFSPreviewParams_0p0* tmpThis = const_cast<NoiseFSPreviewParams_0p0*>(this); + return *(static_cast<NoiseFSPreviewParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + NoiseFSPreviewParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<NoiseFSPreviewParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class NoiseFSPreviewParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + NoiseFSPreviewParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(NoiseFSPreviewParams_0p0), NoiseFSPreviewParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, NoiseFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSPreviewParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(NoiseFSPreviewParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, NoiseFSPreviewParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, NoiseFSPreviewParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, NoiseFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class NoiseFSPreviewParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of NoiseFSPreviewParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (NoiseFSPreviewParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (NoiseFSPreviewParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (NoiseFSPreviewParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (NoiseFSPreviewParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (NoiseFSPreviewParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSActorParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSActorParams_0p0.h new file mode 100644 index 00000000..133d79c7 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSActorParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_VortexFSActorParams_0p0_h +#define HEADER_VortexFSActorParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace VortexFSActorParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float initialPose[12]; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x15a7ecd0, 0x4b61fe90, 0xdcca24f3, 0xde2d10d9, }; + +} // namespace VortexFSActorParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class VortexFSActorParams_0p0 : public NvParameterized::NvParameters, public VortexFSActorParams_0p0NS::ParametersStruct +{ +public: + VortexFSActorParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~VortexFSActorParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("VortexFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(VortexFSActorParams_0p0NS::checksum); + return VortexFSActorParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const VortexFSActorParams_0p0NS::ParametersStruct& parameters(void) const + { + VortexFSActorParams_0p0* tmpThis = const_cast<VortexFSActorParams_0p0*>(this); + return *(static_cast<VortexFSActorParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + VortexFSActorParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<VortexFSActorParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class VortexFSActorParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + VortexFSActorParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(VortexFSActorParams_0p0), VortexFSActorParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, VortexFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSActorParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(VortexFSActorParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, VortexFSActorParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, VortexFSActorParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, VortexFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSActorParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of VortexFSActorParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (VortexFSActorParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (VortexFSActorParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (VortexFSActorParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (VortexFSActorParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (VortexFSActorParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSActorParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSActorParams_0p1.h new file mode 100644 index 00000000..84612f52 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSActorParams_0p1.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_VortexFSActorParams_0p1_h +#define HEADER_VortexFSActorParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace VortexFSActorParams_0p1NS +{ + + + +struct ParametersStruct +{ + + physx::PxTransform initialPose; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x6551fe7f, 0xf22a11ba, 0x548415b0, 0xe1409901, }; + +} // namespace VortexFSActorParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class VortexFSActorParams_0p1 : public NvParameterized::NvParameters, public VortexFSActorParams_0p1NS::ParametersStruct +{ +public: + VortexFSActorParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~VortexFSActorParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("VortexFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(VortexFSActorParams_0p1NS::checksum); + return VortexFSActorParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const VortexFSActorParams_0p1NS::ParametersStruct& parameters(void) const + { + VortexFSActorParams_0p1* tmpThis = const_cast<VortexFSActorParams_0p1*>(this); + return *(static_cast<VortexFSActorParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + VortexFSActorParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<VortexFSActorParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class VortexFSActorParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + VortexFSActorParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(VortexFSActorParams_0p1), VortexFSActorParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, VortexFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSActorParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(VortexFSActorParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, VortexFSActorParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, VortexFSActorParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, VortexFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSActorParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of VortexFSActorParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (VortexFSActorParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (VortexFSActorParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (VortexFSActorParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (VortexFSActorParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (VortexFSActorParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p0.h new file mode 100644 index 00000000..bc840e79 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p0.h @@ -0,0 +1,239 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_VortexFSAssetParams_0p0_h +#define HEADER_VortexFSAssetParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace VortexFSAssetParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float boundaryFadePercentage; + physx::PxVec3 axis; + float height; + float bottomRadius; + float topRadius; + float rotationalStrength; + float radialStrength; + float liftStrength; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x54e03a25, 0xd7fa937e, 0x6dfa0ad8, 0xcc2faa99, }; + +} // namespace VortexFSAssetParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class VortexFSAssetParams_0p0 : public NvParameterized::NvParameters, public VortexFSAssetParams_0p0NS::ParametersStruct +{ +public: + VortexFSAssetParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~VortexFSAssetParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("VortexFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(VortexFSAssetParams_0p0NS::checksum); + return VortexFSAssetParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const VortexFSAssetParams_0p0NS::ParametersStruct& parameters(void) const + { + VortexFSAssetParams_0p0* tmpThis = const_cast<VortexFSAssetParams_0p0*>(this); + return *(static_cast<VortexFSAssetParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + VortexFSAssetParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<VortexFSAssetParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class VortexFSAssetParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + VortexFSAssetParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(VortexFSAssetParams_0p0), VortexFSAssetParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, VortexFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSAssetParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(VortexFSAssetParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, VortexFSAssetParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, VortexFSAssetParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, VortexFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSAssetParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of VortexFSAssetParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (VortexFSAssetParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (VortexFSAssetParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (VortexFSAssetParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (VortexFSAssetParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (VortexFSAssetParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p1.h new file mode 100644 index 00000000..fb969fe8 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p1.h @@ -0,0 +1,241 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_VortexFSAssetParams_0p1_h +#define HEADER_VortexFSAssetParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace VortexFSAssetParams_0p1NS +{ + + + +struct ParametersStruct +{ + + float boundaryFadePercentage; + physx::PxVec3 axis; + float height; + float bottomRadius; + float topRadius; + float rotationalStrength; + float radialStrength; + float liftStrength; + float fieldDragCoeff; + float fieldWeight; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xb3a96601, 0x15670e53, 0x6a2a32cd, 0xb4740788, }; + +} // namespace VortexFSAssetParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class VortexFSAssetParams_0p1 : public NvParameterized::NvParameters, public VortexFSAssetParams_0p1NS::ParametersStruct +{ +public: + VortexFSAssetParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~VortexFSAssetParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("VortexFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(VortexFSAssetParams_0p1NS::checksum); + return VortexFSAssetParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const VortexFSAssetParams_0p1NS::ParametersStruct& parameters(void) const + { + VortexFSAssetParams_0p1* tmpThis = const_cast<VortexFSAssetParams_0p1*>(this); + return *(static_cast<VortexFSAssetParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + VortexFSAssetParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<VortexFSAssetParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class VortexFSAssetParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + VortexFSAssetParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(VortexFSAssetParams_0p1), VortexFSAssetParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, VortexFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSAssetParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(VortexFSAssetParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, VortexFSAssetParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, VortexFSAssetParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, VortexFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSAssetParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of VortexFSAssetParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (VortexFSAssetParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (VortexFSAssetParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (VortexFSAssetParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (VortexFSAssetParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (VortexFSAssetParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p2.h b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p2.h new file mode 100644 index 00000000..d0822d3a --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSAssetParams_0p2.h @@ -0,0 +1,243 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_VortexFSAssetParams_0p2_h +#define HEADER_VortexFSAssetParams_0p2_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace VortexFSAssetParams_0p2NS +{ + + + +struct ParametersStruct +{ + + float boundaryFadePercentage; + physx::PxVec3 axis; + bool bottomSphericalForce; + bool topSphericalForce; + float height; + float bottomRadius; + float topRadius; + float rotationalStrength; + float radialStrength; + float liftStrength; + float fieldDragCoeff; + float fieldWeight; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x14505c9d, 0xbc126a67, 0x5ee6862c, 0x8b6bbbf2, }; + +} // namespace VortexFSAssetParams_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class VortexFSAssetParams_0p2 : public NvParameterized::NvParameters, public VortexFSAssetParams_0p2NS::ParametersStruct +{ +public: + VortexFSAssetParams_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~VortexFSAssetParams_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("VortexFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)2; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(VortexFSAssetParams_0p2NS::checksum); + return VortexFSAssetParams_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const VortexFSAssetParams_0p2NS::ParametersStruct& parameters(void) const + { + VortexFSAssetParams_0p2* tmpThis = const_cast<VortexFSAssetParams_0p2*>(this); + return *(static_cast<VortexFSAssetParams_0p2NS::ParametersStruct*>(tmpThis)); + } + + VortexFSAssetParams_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<VortexFSAssetParams_0p2NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class VortexFSAssetParams_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + VortexFSAssetParams_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(VortexFSAssetParams_0p2), VortexFSAssetParams_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, VortexFSAssetParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSAssetParams_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(VortexFSAssetParams_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, VortexFSAssetParams_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, VortexFSAssetParams_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, VortexFSAssetParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSAssetParams_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of VortexFSAssetParams_0p2 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (VortexFSAssetParams_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (VortexFSAssetParams_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (VortexFSAssetParams_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (VortexFSAssetParams_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (VortexFSAssetParams_0p2::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSPreviewParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSPreviewParams_0p0.h new file mode 100644 index 00000000..f3748cca --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/VortexFSPreviewParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_VortexFSPreviewParams_0p0_h +#define HEADER_VortexFSPreviewParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace VortexFSPreviewParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool drawShape; + bool drawAssetInfo; + uint64_t userData; + +}; + +static const uint32_t checksum[] = { 0xbc265cbc, 0xf8125270, 0x2746f91e, 0xf4e63077, }; + +} // namespace VortexFSPreviewParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class VortexFSPreviewParams_0p0 : public NvParameterized::NvParameters, public VortexFSPreviewParams_0p0NS::ParametersStruct +{ +public: + VortexFSPreviewParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~VortexFSPreviewParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("VortexFSPreviewParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(VortexFSPreviewParams_0p0NS::checksum); + return VortexFSPreviewParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const VortexFSPreviewParams_0p0NS::ParametersStruct& parameters(void) const + { + VortexFSPreviewParams_0p0* tmpThis = const_cast<VortexFSPreviewParams_0p0*>(this); + return *(static_cast<VortexFSPreviewParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + VortexFSPreviewParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<VortexFSPreviewParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class VortexFSPreviewParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + VortexFSPreviewParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(VortexFSPreviewParams_0p0), VortexFSPreviewParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, VortexFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSPreviewParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(VortexFSPreviewParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, VortexFSPreviewParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, VortexFSPreviewParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, VortexFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class VortexFSPreviewParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of VortexFSPreviewParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (VortexFSPreviewParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (VortexFSPreviewParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (VortexFSPreviewParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (VortexFSPreviewParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (VortexFSPreviewParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSActorParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSActorParams_0p0.h new file mode 100644 index 00000000..c8626039 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSActorParams_0p0.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_WindFSActorParams_0p0_h +#define HEADER_WindFSActorParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace WindFSActorParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float initialPose[12]; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xd55c781b, 0x04c7b790, 0x059ff1a4, 0x580967a0, }; + +} // namespace WindFSActorParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class WindFSActorParams_0p0 : public NvParameterized::NvParameters, public WindFSActorParams_0p0NS::ParametersStruct +{ +public: + WindFSActorParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~WindFSActorParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("WindFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(WindFSActorParams_0p0NS::checksum); + return WindFSActorParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const WindFSActorParams_0p0NS::ParametersStruct& parameters(void) const + { + WindFSActorParams_0p0* tmpThis = const_cast<WindFSActorParams_0p0*>(this); + return *(static_cast<WindFSActorParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + WindFSActorParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<WindFSActorParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class WindFSActorParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + WindFSActorParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(WindFSActorParams_0p0), WindFSActorParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, WindFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSActorParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(WindFSActorParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, WindFSActorParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, WindFSActorParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, WindFSActorParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSActorParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of WindFSActorParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (WindFSActorParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (WindFSActorParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (WindFSActorParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (WindFSActorParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (WindFSActorParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSActorParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSActorParams_0p1.h new file mode 100644 index 00000000..faf5bb87 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSActorParams_0p1.h @@ -0,0 +1,233 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_WindFSActorParams_0p1_h +#define HEADER_WindFSActorParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace WindFSActorParams_0p1NS +{ + + + +struct ParametersStruct +{ + + physx::PxTransform initialPose; + float initialScale; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xfbbdce26, 0x591f9e00, 0xc2836d8a, 0x30d980f8, }; + +} // namespace WindFSActorParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class WindFSActorParams_0p1 : public NvParameterized::NvParameters, public WindFSActorParams_0p1NS::ParametersStruct +{ +public: + WindFSActorParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~WindFSActorParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("WindFSActorParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(WindFSActorParams_0p1NS::checksum); + return WindFSActorParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const WindFSActorParams_0p1NS::ParametersStruct& parameters(void) const + { + WindFSActorParams_0p1* tmpThis = const_cast<WindFSActorParams_0p1*>(this); + return *(static_cast<WindFSActorParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + WindFSActorParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<WindFSActorParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class WindFSActorParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + WindFSActorParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(WindFSActorParams_0p1), WindFSActorParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, WindFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSActorParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(WindFSActorParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, WindFSActorParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, WindFSActorParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, WindFSActorParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSActorParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of WindFSActorParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (WindFSActorParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (WindFSActorParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (WindFSActorParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (WindFSActorParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (WindFSActorParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSAssetParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSAssetParams_0p0.h new file mode 100644 index 00000000..7e0e886e --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSAssetParams_0p0.h @@ -0,0 +1,238 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_WindFSAssetParams_0p0_h +#define HEADER_WindFSAssetParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace WindFSAssetParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxVec3 fieldDirection; + float fieldDirectionDeviationAngle; + float fieldDirectionOscillationPeriod; + float fieldStrength; + float fieldStrengthDeviationPercentage; + float fieldStrengthOscillationPeriod; + float fieldDragCoeff; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0xfc07cfce, 0x16f5bf3f, 0x6278f094, 0xaf32883b, }; + +} // namespace WindFSAssetParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class WindFSAssetParams_0p0 : public NvParameterized::NvParameters, public WindFSAssetParams_0p0NS::ParametersStruct +{ +public: + WindFSAssetParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~WindFSAssetParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("WindFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(WindFSAssetParams_0p0NS::checksum); + return WindFSAssetParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const WindFSAssetParams_0p0NS::ParametersStruct& parameters(void) const + { + WindFSAssetParams_0p0* tmpThis = const_cast<WindFSAssetParams_0p0*>(this); + return *(static_cast<WindFSAssetParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + WindFSAssetParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<WindFSAssetParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class WindFSAssetParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + WindFSAssetParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(WindFSAssetParams_0p0), WindFSAssetParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, WindFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSAssetParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(WindFSAssetParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, WindFSAssetParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, WindFSAssetParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, WindFSAssetParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSAssetParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of WindFSAssetParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (WindFSAssetParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (WindFSAssetParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (WindFSAssetParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (WindFSAssetParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (WindFSAssetParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSAssetParams_0p1.h b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSAssetParams_0p1.h new file mode 100644 index 00000000..692d05d4 --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSAssetParams_0p1.h @@ -0,0 +1,239 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_WindFSAssetParams_0p1_h +#define HEADER_WindFSAssetParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace WindFSAssetParams_0p1NS +{ + + + +struct ParametersStruct +{ + + physx::PxVec3 fieldDirection; + float fieldDirectionDeviationAngle; + float fieldDirectionOscillationPeriod; + float fieldStrength; + float fieldStrengthDeviationPercentage; + float fieldStrengthOscillationPeriod; + float fieldDragCoeff; + float fieldWeight; + NvParameterized::DummyStringStruct fieldBoundaryFilterDataName; + NvParameterized::DummyStringStruct fieldSamplerFilterDataName; + +}; + +static const uint32_t checksum[] = { 0x3e5a69fc, 0x251178a3, 0x76c98ef0, 0x28e1658a, }; + +} // namespace WindFSAssetParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class WindFSAssetParams_0p1 : public NvParameterized::NvParameters, public WindFSAssetParams_0p1NS::ParametersStruct +{ +public: + WindFSAssetParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~WindFSAssetParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("WindFSAssetParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(WindFSAssetParams_0p1NS::checksum); + return WindFSAssetParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const WindFSAssetParams_0p1NS::ParametersStruct& parameters(void) const + { + WindFSAssetParams_0p1* tmpThis = const_cast<WindFSAssetParams_0p1*>(this); + return *(static_cast<WindFSAssetParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + WindFSAssetParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<WindFSAssetParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class WindFSAssetParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + WindFSAssetParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(WindFSAssetParams_0p1), WindFSAssetParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, WindFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSAssetParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(WindFSAssetParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, WindFSAssetParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, WindFSAssetParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, WindFSAssetParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSAssetParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of WindFSAssetParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (WindFSAssetParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (WindFSAssetParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (WindFSAssetParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (WindFSAssetParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (WindFSAssetParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSPreviewParams_0p0.h b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSPreviewParams_0p0.h new file mode 100644 index 00000000..a10742ca --- /dev/null +++ b/APEX_1.4/module/basicfs_legacy/include/autogen/WindFSPreviewParams_0p0.h @@ -0,0 +1,232 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_WindFSPreviewParams_0p0_h +#define HEADER_WindFSPreviewParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace WindFSPreviewParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool drawAssetInfo; + uint64_t userData; + +}; + +static const uint32_t checksum[] = { 0xb4818bbc, 0x84a817f6, 0x02ddad4a, 0x91a3c5ec, }; + +} // namespace WindFSPreviewParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class WindFSPreviewParams_0p0 : public NvParameterized::NvParameters, public WindFSPreviewParams_0p0NS::ParametersStruct +{ +public: + WindFSPreviewParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~WindFSPreviewParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("WindFSPreviewParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(WindFSPreviewParams_0p0NS::checksum); + return WindFSPreviewParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const WindFSPreviewParams_0p0NS::ParametersStruct& parameters(void) const + { + WindFSPreviewParams_0p0* tmpThis = const_cast<WindFSPreviewParams_0p0*>(this); + return *(static_cast<WindFSPreviewParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + WindFSPreviewParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<WindFSPreviewParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class WindFSPreviewParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + WindFSPreviewParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(WindFSPreviewParams_0p0), WindFSPreviewParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, WindFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSPreviewParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(WindFSPreviewParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, WindFSPreviewParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, WindFSPreviewParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, WindFSPreviewParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class WindFSPreviewParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of WindFSPreviewParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (WindFSPreviewParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (WindFSPreviewParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (WindFSPreviewParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (WindFSPreviewParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (WindFSPreviewParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif |