diff options
| author | git perforce import user <a@b> | 2016-10-25 12:29:14 -0600 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees> | 2016-10-25 18:56:37 -0500 |
| commit | 3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch) | |
| tree | fa6485c169e50d7415a651bf838f5bcd0fd3bfbd /APEX_1.4/module/pxparticleios_legacy/include | |
| download | physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip | |
Initial commit:
PhysX 3.4.0 Update @ 21294896
APEX 1.4.0 Update @ 21275617
[CL 21300167]
Diffstat (limited to 'APEX_1.4/module/pxparticleios_legacy/include')
20 files changed, 3796 insertions, 0 deletions
diff --git a/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p0_0p1.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p0_0p1.h new file mode 100644 index 00000000..364b87b6 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_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_CONVERSIONPARTICLEIOSASSETPARAM_0P0_0P1H_H +#define MODULE_CONVERSIONPARTICLEIOSASSETPARAM_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "ParticleIosAssetParam_0p0.h" +#include "ParticleIosAssetParam_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::ParticleIosAssetParam_0p0, + nvidia::parameterized::ParticleIosAssetParam_0p1, + nvidia::parameterized::ParticleIosAssetParam_0p0::ClassVersion, + nvidia::parameterized::ParticleIosAssetParam_0p1::ClassVersion> + ConversionParticleIosAssetParam_0p0_0p1Parent; + +class ConversionParticleIosAssetParam_0p0_0p1: public ConversionParticleIosAssetParam_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionParticleIosAssetParam_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionParticleIosAssetParam_0p0_0p1)(t) : 0; + } + +protected: + ConversionParticleIosAssetParam_0p0_0p1(NvParameterized::Traits* t) : ConversionParticleIosAssetParam_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/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p1_0p2.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p1_0p2.h new file mode 100644 index 00000000..fa5efc2f --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_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_CONVERSIONPARTICLEIOSASSETPARAM_0P1_0P2H_H +#define MODULE_CONVERSIONPARTICLEIOSASSETPARAM_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "ParticleIosAssetParam_0p1.h" +#include "ParticleIosAssetParam_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::ParticleIosAssetParam_0p1, + nvidia::parameterized::ParticleIosAssetParam_0p2, + nvidia::parameterized::ParticleIosAssetParam_0p1::ClassVersion, + nvidia::parameterized::ParticleIosAssetParam_0p2::ClassVersion> + ConversionParticleIosAssetParam_0p1_0p2Parent; + +class ConversionParticleIosAssetParam_0p1_0p2: public ConversionParticleIosAssetParam_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionParticleIosAssetParam_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionParticleIosAssetParam_0p1_0p2)(t) : 0; + } + +protected: + ConversionParticleIosAssetParam_0p1_0p2(NvParameterized::Traits* t) : ConversionParticleIosAssetParam_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/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p2_0p3.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p2_0p3.h new file mode 100644 index 00000000..49fc068d --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p2_0p3.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_CONVERSIONPARTICLEIOSASSETPARAM_0P2_0P3H_H +#define MODULE_CONVERSIONPARTICLEIOSASSETPARAM_0P2_0P3H_H + +#include "NvParamConversionTemplate.h" +#include "ParticleIosAssetParam_0p2.h" +#include "ParticleIosAssetParam_0p3.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::ParticleIosAssetParam_0p2, + nvidia::parameterized::ParticleIosAssetParam_0p3, + nvidia::parameterized::ParticleIosAssetParam_0p2::ClassVersion, + nvidia::parameterized::ParticleIosAssetParam_0p3::ClassVersion> + ConversionParticleIosAssetParam_0p2_0p3Parent; + +class ConversionParticleIosAssetParam_0p2_0p3: public ConversionParticleIosAssetParam_0p2_0p3Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionParticleIosAssetParam_0p2_0p3)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionParticleIosAssetParam_0p2_0p3)(t) : 0; + } + +protected: + ConversionParticleIosAssetParam_0p2_0p3(NvParameterized::Traits* t) : ConversionParticleIosAssetParam_0p2_0p3Parent(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/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p3_0p4.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p3_0p4.h new file mode 100644 index 00000000..60e2a220 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionParticleIosAssetParam_0p3_0p4.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_CONVERSIONPARTICLEIOSASSETPARAM_0P3_0P4H_H +#define MODULE_CONVERSIONPARTICLEIOSASSETPARAM_0P3_0P4H_H + +#include "NvParamConversionTemplate.h" +#include "ParticleIosAssetParam_0p3.h" +#include "ParticleIosAssetParam_0p4.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::ParticleIosAssetParam_0p3, + nvidia::parameterized::ParticleIosAssetParam_0p4, + nvidia::parameterized::ParticleIosAssetParam_0p3::ClassVersion, + nvidia::parameterized::ParticleIosAssetParam_0p4::ClassVersion> + ConversionParticleIosAssetParam_0p3_0p4Parent; + +class ConversionParticleIosAssetParam_0p3_0p4: public ConversionParticleIosAssetParam_0p3_0p4Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionParticleIosAssetParam_0p3_0p4)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionParticleIosAssetParam_0p3_0p4)(t) : 0; + } + +protected: + ConversionParticleIosAssetParam_0p3_0p4(NvParameterized::Traits* t) : ConversionParticleIosAssetParam_0p3_0p4Parent(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/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p0_0p1.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p0_0p1.h new file mode 100644 index 00000000..102f889b --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_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_CONVERSIONSIMPLEPARTICLESYSTEMPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONSIMPLEPARTICLESYSTEMPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "SimpleParticleSystemParams_0p0.h" +#include "SimpleParticleSystemParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SimpleParticleSystemParams_0p0, + nvidia::parameterized::SimpleParticleSystemParams_0p1, + nvidia::parameterized::SimpleParticleSystemParams_0p0::ClassVersion, + nvidia::parameterized::SimpleParticleSystemParams_0p1::ClassVersion> + ConversionSimpleParticleSystemParams_0p0_0p1Parent; + +class ConversionSimpleParticleSystemParams_0p0_0p1: public ConversionSimpleParticleSystemParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSimpleParticleSystemParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSimpleParticleSystemParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionSimpleParticleSystemParams_0p0_0p1(NvParameterized::Traits* t) : ConversionSimpleParticleSystemParams_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/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p1_0p2.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p1_0p2.h new file mode 100644 index 00000000..b5cb4d3d --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p1_0p2.h @@ -0,0 +1,97 @@ +/* + * 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_CONVERSIONSIMPLEPARTICLESYSTEMPARAMS_0P1_0P2H_H +#define MODULE_CONVERSIONSIMPLEPARTICLESYSTEMPARAMS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "SimpleParticleSystemParams_0p1.h" +#include "SimpleParticleSystemParams_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SimpleParticleSystemParams_0p1, + nvidia::parameterized::SimpleParticleSystemParams_0p2, + nvidia::parameterized::SimpleParticleSystemParams_0p1::ClassVersion, + nvidia::parameterized::SimpleParticleSystemParams_0p2::ClassVersion> + ConversionSimpleParticleSystemParams_0p1_0p2Parent; + +class ConversionSimpleParticleSystemParams_0p1_0p2: public ConversionSimpleParticleSystemParams_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSimpleParticleSystemParams_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSimpleParticleSystemParams_0p1_0p2)(t) : 0; + } + +protected: + ConversionSimpleParticleSystemParams_0p1_0p2(NvParameterized::Traits* t) : ConversionSimpleParticleSystemParams_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. + + mNewData->GridDensityGrid.Enabled = mLegacyData->FakeDensityGrid.Enabled; + mNewData->GridDensityGrid.FrustumParams.GridMaxCellCount = mLegacyData->FakeDensityGrid.FrustumParams.GridMaxCellCount; + mNewData->GridDensityGrid.FrustumParams.GridSize = mLegacyData->FakeDensityGrid.FrustumParams.GridSize; + + NvParameterized::Handle hEnumNew(*mNewData, "GridDensityGrid.GridResolution"); //convert FDG -> GDG + NvParameterized::Handle hEnumOld(*mLegacyData, "FakeDensityGrid.GridResolution"); + PX_ASSERT(hEnumNew.isValid()); + PX_ASSERT(hEnumOld.isValid()); + + const NvParameterized::Definition* paramDefOld; + paramDefOld = hEnumOld.parameterDefinition(); + int32_t index = paramDefOld->enumValIndex(mLegacyData->FakeDensityGrid.GridResolution); + + const NvParameterized::Definition* paramDefNew; + paramDefNew = hEnumNew.parameterDefinition(); + hEnumNew.setParamEnum(paramDefNew->enumVal(index)); + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p2_0p3.h b/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p2_0p3.h new file mode 100644 index 00000000..7780be31 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/ConversionSimpleParticleSystemParams_0p2_0p3.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_CONVERSIONSIMPLEPARTICLESYSTEMPARAMS_0P2_0P3H_H +#define MODULE_CONVERSIONSIMPLEPARTICLESYSTEMPARAMS_0P2_0P3H_H + +#include "NvParamConversionTemplate.h" +#include "SimpleParticleSystemParams_0p2.h" +#include "SimpleParticleSystemParams_0p3.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SimpleParticleSystemParams_0p2, + nvidia::parameterized::SimpleParticleSystemParams_0p3, + nvidia::parameterized::SimpleParticleSystemParams_0p2::ClassVersion, + nvidia::parameterized::SimpleParticleSystemParams_0p3::ClassVersion> + ConversionSimpleParticleSystemParams_0p2_0p3Parent; + +class ConversionSimpleParticleSystemParams_0p2_0p3: public ConversionSimpleParticleSystemParams_0p2_0p3Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSimpleParticleSystemParams_0p2_0p3)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSimpleParticleSystemParams_0p2_0p3)(t) : 0; + } + +protected: + ConversionSimpleParticleSystemParams_0p2_0p3(NvParameterized::Traits* t) : ConversionSimpleParticleSystemParams_0p2_0p3Parent(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() + { + mNewData->GridDensity.Enabled = mLegacyData->GridDensityGrid.Enabled; + //mNewData->GridDensity.Resolution = mLegacyData->GridDensityGrid.GridResolution; + mNewData->GridDensity.GridSize = mLegacyData->GridDensityGrid.FrustumParams.GridSize; + mNewData->GridDensity.MaxCellCount = mLegacyData->GridDensityGrid.FrustumParams.GridMaxCellCount; + + // enums are strings, better do it the safe way + NvParameterized::Handle hEnumNew(*mNewData, "GridDensity.Resolution"); + NvParameterized::Handle hEnumOld(*mLegacyData, "GridDensityGrid.GridResolution"); + PX_ASSERT(hEnumNew.isValid()); + PX_ASSERT(hEnumOld.isValid()); + + const NvParameterized::Definition* paramDefOld; + paramDefOld = hEnumOld.parameterDefinition(); + int32_t index = paramDefOld->enumValIndex(mLegacyData->GridDensityGrid.GridResolution); + + const NvParameterized::Definition* paramDefNew; + paramDefNew = hEnumNew.parameterDefinition(); + hEnumNew.setParamEnum(paramDefNew->enumVal(index)); + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/pxparticleios_legacy/include/autogen/FluidParticleSystemParams_0p0.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/FluidParticleSystemParams_0p0.h new file mode 100644 index 00000000..48af4bbe --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/FluidParticleSystemParams_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_FluidParticleSystemParams_0p0_h +#define HEADER_FluidParticleSystemParams_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 FluidParticleSystemParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float restParticleDistance; + float stiffness; + float viscosity; + +}; + +static const uint32_t checksum[] = { 0x986c06bb, 0x7de711a7, 0xa8681094, 0x8ee8ef0b, }; + +} // namespace FluidParticleSystemParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class FluidParticleSystemParams_0p0 : public NvParameterized::NvParameters, public FluidParticleSystemParams_0p0NS::ParametersStruct +{ +public: + FluidParticleSystemParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~FluidParticleSystemParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("FluidParticleSystemParams"); + } + + 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(FluidParticleSystemParams_0p0NS::checksum); + return FluidParticleSystemParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const FluidParticleSystemParams_0p0NS::ParametersStruct& parameters(void) const + { + FluidParticleSystemParams_0p0* tmpThis = const_cast<FluidParticleSystemParams_0p0*>(this); + return *(static_cast<FluidParticleSystemParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + FluidParticleSystemParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<FluidParticleSystemParams_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 FluidParticleSystemParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + FluidParticleSystemParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(FluidParticleSystemParams_0p0), FluidParticleSystemParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, FluidParticleSystemParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class FluidParticleSystemParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(FluidParticleSystemParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, FluidParticleSystemParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, FluidParticleSystemParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, FluidParticleSystemParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class FluidParticleSystemParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of FluidParticleSystemParams_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 (FluidParticleSystemParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (FluidParticleSystemParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (FluidParticleSystemParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (FluidParticleSystemParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (FluidParticleSystemParams_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/pxparticleios_legacy/include/autogen/ModuleParticleIOSLegacyRegistration.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ModuleParticleIOSLegacyRegistration.h new file mode 100644 index 00000000..de51e932 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ModuleParticleIOSLegacyRegistration.h @@ -0,0 +1,264 @@ +/* + * 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_MODULEPARTICLEIOSLEGACYREGISTRATIONH_H +#define MODULE_MODULEPARTICLEIOSLEGACYREGISTRATIONH_H + +#include "PsAllocator.h" +#include "NvRegistrationsForTraitsBase.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "PxAssert.h" +#include <stdint.h> + +// INCLUDE GENERATED FACTORIES +#include "ParticleIosAssetParam_0p0.h" +#include "ParticleIosAssetParam_0p1.h" +#include "ParticleIosAssetParam_0p2.h" +#include "ParticleIosAssetParam_0p3.h" +#include "SimpleParticleSystemParams_0p0.h" +#include "SimpleParticleSystemParams_0p1.h" +#include "SimpleParticleSystemParams_0p2.h" +#include "ParticleIosModuleParameters_0p0.h" +#include "ParticleIosAssetParam_0p4.h" +#include "SimpleParticleSystemParams_0p3.h" +#include "FluidParticleSystemParams_0p0.h" +#include "ParticleIosDebugRenderParams_0p0.h" + + +// INCLUDE GENERATED CONVERSION +#include "ConversionParticleIosAssetParam_0p0_0p1.h" +#include "ConversionParticleIosAssetParam_0p1_0p2.h" +#include "ConversionParticleIosAssetParam_0p2_0p3.h" +#include "ConversionParticleIosAssetParam_0p3_0p4.h" +#include "ConversionSimpleParticleSystemParams_0p0_0p1.h" +#include "ConversionSimpleParticleSystemParams_0p1_0p2.h" +#include "ConversionSimpleParticleSystemParams_0p2_0p3.h" + + +// global namespace + +class ModuleParticleIOSLegacyRegistration : public NvParameterized::RegistrationsForTraitsBase +{ +public: + static void invokeRegistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleParticleIOSLegacyRegistration().registerAll(*parameterizedTraits); + } + } + + static void invokeUnregistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleParticleIOSLegacyRegistration().unregisterAll(*parameterizedTraits); + } + } + + void registerAvailableFactories(NvParameterized::Traits& parameterizedTraits) + { + ::NvParameterized::Factory* factoriesToRegister[] = { +// REGISTER GENERATED FACTORIES + new nvidia::parameterized::ParticleIosAssetParam_0p0Factory(), + new nvidia::parameterized::ParticleIosAssetParam_0p1Factory(), + new nvidia::parameterized::ParticleIosAssetParam_0p2Factory(), + new nvidia::parameterized::ParticleIosAssetParam_0p3Factory(), + new nvidia::parameterized::SimpleParticleSystemParams_0p0Factory(), + new nvidia::parameterized::SimpleParticleSystemParams_0p1Factory(), + new nvidia::parameterized::SimpleParticleSystemParams_0p2Factory(), + + }; + + 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::ConversionParticleIosAssetParam_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionParticleIosAssetParam_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionParticleIosAssetParam_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionParticleIosAssetParam_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSimpleParticleSystemParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSimpleParticleSystemParams_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSimpleParticleSystemParams_0p2_0p3 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::ParticleIosAssetParam_0p0Factory(), + new nvidia::parameterized::ParticleIosAssetParam_0p1Factory(), + new nvidia::parameterized::ParticleIosAssetParam_0p2Factory(), + new nvidia::parameterized::ParticleIosAssetParam_0p3Factory(), + new nvidia::parameterized::SimpleParticleSystemParams_0p0Factory(), + new nvidia::parameterized::SimpleParticleSystemParams_0p1Factory(), + new nvidia::parameterized::SimpleParticleSystemParams_0p2Factory(), + + }; + + 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::ConversionParticleIosAssetParam_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::ConversionParticleIosAssetParam_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::ConversionParticleIosAssetParam_0p2_0p3 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::ConversionParticleIosAssetParam_0p3_0p4 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::ConversionSimpleParticleSystemParams_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::ConversionSimpleParticleSystemParams_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::ConversionSimpleParticleSystemParams_0p2_0p3 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/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p0.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p0.h new file mode 100644 index 00000000..6f6619f2 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p0.h @@ -0,0 +1,259 @@ +// 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_ParticleIosAssetParam_0p0_h +#define HEADER_ParticleIosAssetParam_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 ParticleIosAssetParam_0p0NS +{ + + + +struct ParametersStruct +{ + + NvParameterized::Interface* particleType; + uint32_t maxParticleCount; + float particleRadius; + float maxInjectedParticleCount; + float maxMotionDistance; + float contactOffset; + float restOffset; + float gridSize; + float damping; + physx::PxVec3 externalAcceleration; + physx::PxVec3 projectionPlaneNormal; + float projectionPlaneDistance; + float particleMass; + float restitution; + float dynamicFriction; + float staticFriction; + NvParameterized::DummyStringStruct simulationFilterData; + bool CollisionTwoway; + bool CollisionWithDynamicActors; + bool Enable; + bool ProjectToPlane; + bool PerParticleRestOffset; + bool PerParticleCollisionCacheHint; + bool useGPU; + bool PositionBuffer; + bool VelocityBuffer; + bool RestOffsetBuffer; + bool FlagsBuffer; + bool CollisionNormalBuffer; + bool DensityBuffer; + +}; + +static const uint32_t checksum[] = { 0x6ade1528, 0x48d5e8e8, 0x974dda3a, 0xd10d8d0a, }; + +} // namespace ParticleIosAssetParam_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosAssetParam_0p0 : public NvParameterized::NvParameters, public ParticleIosAssetParam_0p0NS::ParametersStruct +{ +public: + ParticleIosAssetParam_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosAssetParam_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosAssetParam"); + } + + 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(ParticleIosAssetParam_0p0NS::checksum); + return ParticleIosAssetParam_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosAssetParam_0p0NS::ParametersStruct& parameters(void) const + { + ParticleIosAssetParam_0p0* tmpThis = const_cast<ParticleIosAssetParam_0p0*>(this); + return *(static_cast<ParticleIosAssetParam_0p0NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosAssetParam_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosAssetParam_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 ParticleIosAssetParam_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosAssetParam_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosAssetParam_0p0), ParticleIosAssetParam_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosAssetParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosAssetParam_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosAssetParam_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosAssetParam_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosAssetParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosAssetParam_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 (ParticleIosAssetParam_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosAssetParam_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosAssetParam_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosAssetParam_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosAssetParam_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/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p1.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p1.h new file mode 100644 index 00000000..99b5584b --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p1.h @@ -0,0 +1,260 @@ +// 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_ParticleIosAssetParam_0p1_h +#define HEADER_ParticleIosAssetParam_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 ParticleIosAssetParam_0p1NS +{ + + + +struct ParametersStruct +{ + + NvParameterized::Interface* particleType; + uint32_t maxParticleCount; + float particleRadius; + float maxInjectedParticleCount; + float maxMotionDistance; + float contactOffset; + float restOffset; + float gridSize; + float damping; + physx::PxVec3 externalAcceleration; + physx::PxVec3 projectionPlaneNormal; + float projectionPlaneDistance; + float particleMass; + float restitution; + float dynamicFriction; + float staticFriction; + NvParameterized::DummyStringStruct simulationFilterData; + NvParameterized::DummyStringStruct fieldSamplerFilterData; + bool CollisionTwoway; + bool CollisionWithDynamicActors; + bool Enable; + bool ProjectToPlane; + bool PerParticleRestOffset; + bool PerParticleCollisionCacheHint; + bool useGPU; + bool PositionBuffer; + bool VelocityBuffer; + bool RestOffsetBuffer; + bool FlagsBuffer; + bool CollisionNormalBuffer; + bool DensityBuffer; + +}; + +static const uint32_t checksum[] = { 0x2ac1fbb6, 0x95b2fc4e, 0x9f902cfe, 0x4c97a8ab, }; + +} // namespace ParticleIosAssetParam_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosAssetParam_0p1 : public NvParameterized::NvParameters, public ParticleIosAssetParam_0p1NS::ParametersStruct +{ +public: + ParticleIosAssetParam_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosAssetParam_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosAssetParam"); + } + + 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(ParticleIosAssetParam_0p1NS::checksum); + return ParticleIosAssetParam_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosAssetParam_0p1NS::ParametersStruct& parameters(void) const + { + ParticleIosAssetParam_0p1* tmpThis = const_cast<ParticleIosAssetParam_0p1*>(this); + return *(static_cast<ParticleIosAssetParam_0p1NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosAssetParam_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosAssetParam_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 ParticleIosAssetParam_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosAssetParam_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosAssetParam_0p1), ParticleIosAssetParam_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosAssetParam_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosAssetParam_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosAssetParam_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosAssetParam_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosAssetParam_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosAssetParam_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 (ParticleIosAssetParam_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosAssetParam_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosAssetParam_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosAssetParam_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosAssetParam_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/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p2.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p2.h new file mode 100644 index 00000000..87d4eee2 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p2.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_ParticleIosAssetParam_0p2_h +#define HEADER_ParticleIosAssetParam_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 ParticleIosAssetParam_0p2NS +{ + + + +struct ParametersStruct +{ + + NvParameterized::Interface* particleType; + uint32_t maxParticleCount; + float particleRadius; + float maxInjectedParticleCount; + float maxMotionDistance; + float contactOffset; + float restOffset; + float gridSize; + float damping; + physx::PxVec3 externalAcceleration; + physx::PxVec3 projectionPlaneNormal; + float projectionPlaneDistance; + float particleMass; + float restitution; + float dynamicFriction; + float staticFriction; + NvParameterized::DummyStringStruct simulationFilterData; + NvParameterized::DummyStringStruct fieldSamplerFilterData; + bool CollisionTwoway; + bool CollisionWithDynamicActors; + bool Enable; + bool ProjectToPlane; + bool PerParticleRestOffset; + bool PerParticleCollisionCacheHint; + bool DensityBuffer; + +}; + +static const uint32_t checksum[] = { 0x0ef6e87f, 0x90c43164, 0x6f5eccf5, 0xa3b523ad, }; + +} // namespace ParticleIosAssetParam_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosAssetParam_0p2 : public NvParameterized::NvParameters, public ParticleIosAssetParam_0p2NS::ParametersStruct +{ +public: + ParticleIosAssetParam_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosAssetParam_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosAssetParam"); + } + + 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(ParticleIosAssetParam_0p2NS::checksum); + return ParticleIosAssetParam_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosAssetParam_0p2NS::ParametersStruct& parameters(void) const + { + ParticleIosAssetParam_0p2* tmpThis = const_cast<ParticleIosAssetParam_0p2*>(this); + return *(static_cast<ParticleIosAssetParam_0p2NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosAssetParam_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosAssetParam_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 ParticleIosAssetParam_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosAssetParam_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosAssetParam_0p2), ParticleIosAssetParam_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosAssetParam_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosAssetParam_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosAssetParam_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosAssetParam_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosAssetParam_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosAssetParam_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 (ParticleIosAssetParam_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosAssetParam_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosAssetParam_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosAssetParam_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosAssetParam_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/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p3.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p3.h new file mode 100644 index 00000000..dc869683 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p3.h @@ -0,0 +1,255 @@ +// 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_ParticleIosAssetParam_0p3_h +#define HEADER_ParticleIosAssetParam_0p3_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 ParticleIosAssetParam_0p3NS +{ + + + +struct ParametersStruct +{ + + NvParameterized::Interface* particleType; + uint32_t maxParticleCount; + float particleRadius; + float maxInjectedParticleCount; + float maxMotionDistance; + float contactOffset; + float restOffset; + float gridSize; + float damping; + physx::PxVec3 externalAcceleration; + physx::PxVec3 projectionPlaneNormal; + float projectionPlaneDistance; + float particleMass; + float restitution; + float dynamicFriction; + float staticFriction; + NvParameterized::DummyStringStruct simulationFilterData; + NvParameterized::DummyStringStruct fieldSamplerFilterData; + bool CollisionTwoway; + bool CollisionWithDynamicActors; + bool Enable; + bool ProjectToPlane; + bool PerParticleRestOffset; + bool PerParticleCollisionCacheHint; + bool DensityBuffer; + bool enableTemperatureBuffer; + +}; + +static const uint32_t checksum[] = { 0xbaa79a92, 0xef240d8d, 0x62e2bec9, 0x10dd30bd, }; + +} // namespace ParticleIosAssetParam_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosAssetParam_0p3 : public NvParameterized::NvParameters, public ParticleIosAssetParam_0p3NS::ParametersStruct +{ +public: + ParticleIosAssetParam_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosAssetParam_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosAssetParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)3; + + 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(ParticleIosAssetParam_0p3NS::checksum); + return ParticleIosAssetParam_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosAssetParam_0p3NS::ParametersStruct& parameters(void) const + { + ParticleIosAssetParam_0p3* tmpThis = const_cast<ParticleIosAssetParam_0p3*>(this); + return *(static_cast<ParticleIosAssetParam_0p3NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosAssetParam_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosAssetParam_0p3NS::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 ParticleIosAssetParam_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosAssetParam_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosAssetParam_0p3), ParticleIosAssetParam_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosAssetParam_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosAssetParam_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosAssetParam_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosAssetParam_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosAssetParam_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosAssetParam_0p3 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 (ParticleIosAssetParam_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosAssetParam_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosAssetParam_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosAssetParam_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosAssetParam_0p3::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/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p4.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p4.h new file mode 100644 index 00000000..a9db2e47 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosAssetParam_0p4.h @@ -0,0 +1,272 @@ +// 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_ParticleIosAssetParam_0p4_h +#define HEADER_ParticleIosAssetParam_0p4_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 ParticleIosAssetParam_0p4NS +{ + +struct ParticleToGridCouplingParams_Type; +struct GridToParticleCouplingParams_Type; + +struct ParticleToGridCouplingParams_Type +{ + float accelTimeConstant; + float decelTimeConstant; + float thresholdMultiplier; +}; +struct GridToParticleCouplingParams_Type +{ + float accelTimeConstant; + float decelTimeConstant; + float thresholdMultiplier; +}; + +struct ParametersStruct +{ + + NvParameterized::Interface* particleType; + uint32_t maxParticleCount; + float particleRadius; + float maxInjectedParticleCount; + float maxMotionDistance; + float contactOffset; + float restOffset; + float gridSize; + float damping; + physx::PxVec3 externalAcceleration; + physx::PxVec3 projectionPlaneNormal; + float projectionPlaneDistance; + float particleMass; + float restitution; + float dynamicFriction; + float staticFriction; + NvParameterized::DummyStringStruct simulationFilterData; + NvParameterized::DummyStringStruct fieldSamplerFilterData; + bool CollisionTwoway; + bool CollisionWithDynamicActors; + bool Enable; + bool ProjectToPlane; + bool PerParticleRestOffset; + bool PerParticleCollisionCacheHint; + bool DensityBuffer; + bool enableTemperatureBuffer; + bool enableCouplingOverride; + ParticleToGridCouplingParams_Type particleToGridCoupling; + GridToParticleCouplingParams_Type gridToParticleCoupling; + +}; + +static const uint32_t checksum[] = { 0x2fe48a73, 0x7f6aafee, 0x621cd7cd, 0x20a3c0e5, }; + +} // namespace ParticleIosAssetParam_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosAssetParam_0p4 : public NvParameterized::NvParameters, public ParticleIosAssetParam_0p4NS::ParametersStruct +{ +public: + ParticleIosAssetParam_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosAssetParam_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosAssetParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)4; + + 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(ParticleIosAssetParam_0p4NS::checksum); + return ParticleIosAssetParam_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosAssetParam_0p4NS::ParametersStruct& parameters(void) const + { + ParticleIosAssetParam_0p4* tmpThis = const_cast<ParticleIosAssetParam_0p4*>(this); + return *(static_cast<ParticleIosAssetParam_0p4NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosAssetParam_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosAssetParam_0p4NS::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 ParticleIosAssetParam_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosAssetParam_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosAssetParam_0p4), ParticleIosAssetParam_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosAssetParam_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosAssetParam_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosAssetParam_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosAssetParam_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosAssetParam_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosAssetParam_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosAssetParam_0p4 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 (ParticleIosAssetParam_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosAssetParam_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosAssetParam_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosAssetParam_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosAssetParam_0p4::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/pxparticleios_legacy/include/autogen/ParticleIosDebugRenderParams_0p0.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosDebugRenderParams_0p0.h new file mode 100644 index 00000000..b01ce524 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosDebugRenderParams_0p0.h @@ -0,0 +1,231 @@ +// 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_ParticleIosDebugRenderParams_0p0_h +#define HEADER_ParticleIosDebugRenderParams_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 ParticleIosDebugRenderParams_0p0NS +{ + + + +struct ParametersStruct +{ + + bool VISUALIZE_PARTICLE_IOS_ACTOR; + bool VISUALIZE_PARTICLE_IOS_GRID_DENSITY; + +}; + +static const uint32_t checksum[] = { 0x271c2489, 0x3bbc0436, 0x9f681969, 0x1c05e617, }; + +} // namespace ParticleIosDebugRenderParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosDebugRenderParams_0p0 : public NvParameterized::NvParameters, public ParticleIosDebugRenderParams_0p0NS::ParametersStruct +{ +public: + ParticleIosDebugRenderParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosDebugRenderParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosDebugRenderParams"); + } + + 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(ParticleIosDebugRenderParams_0p0NS::checksum); + return ParticleIosDebugRenderParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosDebugRenderParams_0p0NS::ParametersStruct& parameters(void) const + { + ParticleIosDebugRenderParams_0p0* tmpThis = const_cast<ParticleIosDebugRenderParams_0p0*>(this); + return *(static_cast<ParticleIosDebugRenderParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosDebugRenderParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosDebugRenderParams_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 ParticleIosDebugRenderParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosDebugRenderParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosDebugRenderParams_0p0), ParticleIosDebugRenderParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosDebugRenderParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosDebugRenderParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosDebugRenderParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosDebugRenderParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosDebugRenderParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosDebugRenderParams_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 (ParticleIosDebugRenderParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosDebugRenderParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosDebugRenderParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosDebugRenderParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosDebugRenderParams_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/pxparticleios_legacy/include/autogen/ParticleIosModuleParameters_0p0.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosModuleParameters_0p0.h new file mode 100644 index 00000000..b9bc13bc --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/ParticleIosModuleParameters_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_ParticleIosModuleParameters_0p0_h +#define HEADER_ParticleIosModuleParameters_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 ParticleIosModuleParameters_0p0NS +{ + + + +struct ParametersStruct +{ + + uint32_t unused; + +}; + +static const uint32_t checksum[] = { 0x53933c71, 0xf953550b, 0x814f74ec, 0x33f15b05, }; + +} // namespace ParticleIosModuleParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ParticleIosModuleParameters_0p0 : public NvParameterized::NvParameters, public ParticleIosModuleParameters_0p0NS::ParametersStruct +{ +public: + ParticleIosModuleParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ParticleIosModuleParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ParticleIosModuleParameters"); + } + + 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(ParticleIosModuleParameters_0p0NS::checksum); + return ParticleIosModuleParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ParticleIosModuleParameters_0p0NS::ParametersStruct& parameters(void) const + { + ParticleIosModuleParameters_0p0* tmpThis = const_cast<ParticleIosModuleParameters_0p0*>(this); + return *(static_cast<ParticleIosModuleParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + ParticleIosModuleParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ParticleIosModuleParameters_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 ParticleIosModuleParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ParticleIosModuleParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ParticleIosModuleParameters_0p0), ParticleIosModuleParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ParticleIosModuleParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosModuleParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ParticleIosModuleParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ParticleIosModuleParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ParticleIosModuleParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ParticleIosModuleParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ParticleIosModuleParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ParticleIosModuleParameters_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 (ParticleIosModuleParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ParticleIosModuleParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ParticleIosModuleParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ParticleIosModuleParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ParticleIosModuleParameters_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/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p0.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p0.h new file mode 100644 index 00000000..617ac022 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p0.h @@ -0,0 +1,229 @@ +// 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_SimpleParticleSystemParams_0p0_h +#define HEADER_SimpleParticleSystemParams_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 SimpleParticleSystemParams_0p0NS +{ + + + +struct ParametersStruct +{ + + +}; + +static const uint32_t checksum[] = { 0xbdb4a485, 0x637b7abf, 0x648f7aea, 0x7c6f6faa, }; + +} // namespace SimpleParticleSystemParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SimpleParticleSystemParams_0p0 : public NvParameterized::NvParameters, public SimpleParticleSystemParams_0p0NS::ParametersStruct +{ +public: + SimpleParticleSystemParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SimpleParticleSystemParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SimpleParticleSystemParams"); + } + + 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(SimpleParticleSystemParams_0p0NS::checksum); + return SimpleParticleSystemParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SimpleParticleSystemParams_0p0NS::ParametersStruct& parameters(void) const + { + SimpleParticleSystemParams_0p0* tmpThis = const_cast<SimpleParticleSystemParams_0p0*>(this); + return *(static_cast<SimpleParticleSystemParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + SimpleParticleSystemParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<SimpleParticleSystemParams_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 SimpleParticleSystemParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SimpleParticleSystemParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SimpleParticleSystemParams_0p0), SimpleParticleSystemParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SimpleParticleSystemParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SimpleParticleSystemParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SimpleParticleSystemParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SimpleParticleSystemParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SimpleParticleSystemParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SimpleParticleSystemParams_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 (SimpleParticleSystemParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (SimpleParticleSystemParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SimpleParticleSystemParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SimpleParticleSystemParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SimpleParticleSystemParams_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/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p1.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p1.h new file mode 100644 index 00000000..a9cac077 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p1.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_SimpleParticleSystemParams_0p1_h +#define HEADER_SimpleParticleSystemParams_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 SimpleParticleSystemParams_0p1NS +{ + +struct FakeDensityGridNonSharedParams_Type; +struct FakeDensityGridParams_Type; + +struct FakeDensityGridNonSharedParams_Type +{ + float GridSize; + uint32_t GridMaxCellCount; +}; +struct FakeDensityGridParams_Type +{ + bool Enabled; + bool FrustumMode; + const char* GridResolution; + FakeDensityGridNonSharedParams_Type NormalParams; + FakeDensityGridNonSharedParams_Type FrustumParams; +}; + +struct ParametersStruct +{ + + FakeDensityGridParams_Type FakeDensityGrid; + +}; + +static const uint32_t checksum[] = { 0x5c0d8210, 0x24ee81f8, 0x76e243b5, 0x5ec7a991, }; + +} // namespace SimpleParticleSystemParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SimpleParticleSystemParams_0p1 : public NvParameterized::NvParameters, public SimpleParticleSystemParams_0p1NS::ParametersStruct +{ +public: + SimpleParticleSystemParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SimpleParticleSystemParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SimpleParticleSystemParams"); + } + + 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(SimpleParticleSystemParams_0p1NS::checksum); + return SimpleParticleSystemParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SimpleParticleSystemParams_0p1NS::ParametersStruct& parameters(void) const + { + SimpleParticleSystemParams_0p1* tmpThis = const_cast<SimpleParticleSystemParams_0p1*>(this); + return *(static_cast<SimpleParticleSystemParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + SimpleParticleSystemParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<SimpleParticleSystemParams_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 SimpleParticleSystemParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SimpleParticleSystemParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SimpleParticleSystemParams_0p1), SimpleParticleSystemParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SimpleParticleSystemParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SimpleParticleSystemParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SimpleParticleSystemParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SimpleParticleSystemParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SimpleParticleSystemParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SimpleParticleSystemParams_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 (SimpleParticleSystemParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (SimpleParticleSystemParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SimpleParticleSystemParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SimpleParticleSystemParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SimpleParticleSystemParams_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/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p2.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p2.h new file mode 100644 index 00000000..87d47314 --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_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_SimpleParticleSystemParams_0p2_h +#define HEADER_SimpleParticleSystemParams_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 SimpleParticleSystemParams_0p2NS +{ + +struct GridDensityGridNonSharedParams_Type; +struct GridDensityGridParams_Type; + +struct GridDensityGridNonSharedParams_Type +{ + float GridSize; + uint32_t GridMaxCellCount; +}; +struct GridDensityGridParams_Type +{ + bool Enabled; + const char* GridResolution; + GridDensityGridNonSharedParams_Type FrustumParams; +}; + +struct ParametersStruct +{ + + GridDensityGridParams_Type GridDensityGrid; + +}; + +static const uint32_t checksum[] = { 0xc7152d62, 0x1caded32, 0xea3f2e0a, 0x1e7ed132, }; + +} // namespace SimpleParticleSystemParams_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SimpleParticleSystemParams_0p2 : public NvParameterized::NvParameters, public SimpleParticleSystemParams_0p2NS::ParametersStruct +{ +public: + SimpleParticleSystemParams_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SimpleParticleSystemParams_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SimpleParticleSystemParams"); + } + + 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(SimpleParticleSystemParams_0p2NS::checksum); + return SimpleParticleSystemParams_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SimpleParticleSystemParams_0p2NS::ParametersStruct& parameters(void) const + { + SimpleParticleSystemParams_0p2* tmpThis = const_cast<SimpleParticleSystemParams_0p2*>(this); + return *(static_cast<SimpleParticleSystemParams_0p2NS::ParametersStruct*>(tmpThis)); + } + + SimpleParticleSystemParams_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<SimpleParticleSystemParams_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 SimpleParticleSystemParams_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SimpleParticleSystemParams_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SimpleParticleSystemParams_0p2), SimpleParticleSystemParams_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SimpleParticleSystemParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SimpleParticleSystemParams_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SimpleParticleSystemParams_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SimpleParticleSystemParams_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SimpleParticleSystemParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SimpleParticleSystemParams_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 (SimpleParticleSystemParams_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (SimpleParticleSystemParams_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SimpleParticleSystemParams_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SimpleParticleSystemParams_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SimpleParticleSystemParams_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/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p3.h b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p3.h new file mode 100644 index 00000000..9658770a --- /dev/null +++ b/APEX_1.4/module/pxparticleios_legacy/include/autogen/SimpleParticleSystemParams_0p3.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_SimpleParticleSystemParams_0p3_h +#define HEADER_SimpleParticleSystemParams_0p3_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 SimpleParticleSystemParams_0p3NS +{ + +struct GridDensityParams_Type; + +struct GridDensityParams_Type +{ + bool Enabled; + const char* Resolution; + float GridSize; + uint32_t MaxCellCount; +}; + +struct ParametersStruct +{ + + GridDensityParams_Type GridDensity; + +}; + +static const uint32_t checksum[] = { 0xf872dc0a, 0x0e40cb32, 0x1627d31b, 0xfa23979d, }; + +} // namespace SimpleParticleSystemParams_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SimpleParticleSystemParams_0p3 : public NvParameterized::NvParameters, public SimpleParticleSystemParams_0p3NS::ParametersStruct +{ +public: + SimpleParticleSystemParams_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SimpleParticleSystemParams_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SimpleParticleSystemParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)3; + + 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(SimpleParticleSystemParams_0p3NS::checksum); + return SimpleParticleSystemParams_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SimpleParticleSystemParams_0p3NS::ParametersStruct& parameters(void) const + { + SimpleParticleSystemParams_0p3* tmpThis = const_cast<SimpleParticleSystemParams_0p3*>(this); + return *(static_cast<SimpleParticleSystemParams_0p3NS::ParametersStruct*>(tmpThis)); + } + + SimpleParticleSystemParams_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<SimpleParticleSystemParams_0p3NS::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 SimpleParticleSystemParams_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SimpleParticleSystemParams_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SimpleParticleSystemParams_0p3), SimpleParticleSystemParams_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SimpleParticleSystemParams_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SimpleParticleSystemParams_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SimpleParticleSystemParams_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SimpleParticleSystemParams_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SimpleParticleSystemParams_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleParticleSystemParams_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SimpleParticleSystemParams_0p3 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 (SimpleParticleSystemParams_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (SimpleParticleSystemParams_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SimpleParticleSystemParams_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SimpleParticleSystemParams_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SimpleParticleSystemParams_0p3::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif |