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/clothing_legacy/include/autogen | |
| 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/clothing_legacy/include/autogen')
81 files changed, 27665 insertions, 0 deletions
diff --git a/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p0.h new file mode 100644 index 00000000..9da2b5cb --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p0.h @@ -0,0 +1,329 @@ +// 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_ClothingActorParam_0p0_h +#define HEADER_ClothingActorParam_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 ClothingActorParam_0p0NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelPhysXMeshSkinning; + bool ParallelMeshMeshSkinning; + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + +}; + +static const uint32_t checksum[] = { 0x9b2c41d0, 0x9f698b34, 0xd5e7a1f6, 0x018e730e, }; + +} // namespace ClothingActorParam_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p0 : public NvParameterized::NvParameters, public ClothingActorParam_0p0NS::ParametersStruct +{ +public: + ClothingActorParam_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + 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(ClothingActorParam_0p0NS::checksum); + return ClothingActorParam_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p0NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p0* tmpThis = const_cast<ClothingActorParam_0p0*>(this); + return *(static_cast<ClothingActorParam_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_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 ClothingActorParam_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p0), ClothingActorParam_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_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 (ClothingActorParam_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_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/clothing_legacy/include/autogen/ClothingActorParam_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p1.h new file mode 100644 index 00000000..8151dc4c --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p1.h @@ -0,0 +1,338 @@ +// 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_ClothingActorParam_0p1_h +#define HEADER_ClothingActorParam_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 ClothingActorParam_0p1NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelPhysXMeshSkinning; + bool ParallelMeshMeshSkinning; + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + +}; + +static const uint32_t checksum[] = { 0x047f02b5, 0xb4f816d1, 0xe1eab9e0, 0xcbc4b329, }; + +} // namespace ClothingActorParam_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p1 : public NvParameterized::NvParameters, public ClothingActorParam_0p1NS::ParametersStruct +{ +public: + ClothingActorParam_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + 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(ClothingActorParam_0p1NS::checksum); + return ClothingActorParam_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p1NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p1* tmpThis = const_cast<ClothingActorParam_0p1*>(this); + return *(static_cast<ClothingActorParam_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_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 ClothingActorParam_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p1), ClothingActorParam_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_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 (ClothingActorParam_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_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/clothing_legacy/include/autogen/ClothingActorParam_0p10.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p10.h new file mode 100644 index 00000000..627cdb49 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p10.h @@ -0,0 +1,353 @@ +// 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_ClothingActorParam_0p10_h +#define HEADER_ClothingActorParam_0p10_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 ClothingActorParam_0p10NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + NvParameterized::DummyStringStruct simulationBackend; + +}; + +static const uint32_t checksum[] = { 0x50b92a0a, 0x347246a3, 0xec02dcea, 0xca2e94b2, }; + +} // namespace ClothingActorParam_0p10NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p10 : public NvParameterized::NvParameters, public ClothingActorParam_0p10NS::ParametersStruct +{ +public: + ClothingActorParam_0p10(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p10(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)10; + + 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(ClothingActorParam_0p10NS::checksum); + return ClothingActorParam_0p10NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p10NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p10* tmpThis = const_cast<ClothingActorParam_0p10*>(this); + return *(static_cast<ClothingActorParam_0p10NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p10NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p10NS::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 ClothingActorParam_0p10Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p10::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p10), ClothingActorParam_0p10::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p10"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p10)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p10)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p10::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p10"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p10 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 (ClothingActorParam_0p10*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p10::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p10::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p10::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p10::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/clothing_legacy/include/autogen/ClothingActorParam_0p11.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p11.h new file mode 100644 index 00000000..d1276614 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p11.h @@ -0,0 +1,354 @@ +// 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_ClothingActorParam_0p11_h +#define HEADER_ClothingActorParam_0p11_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 ClothingActorParam_0p11NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + NvParameterized::DummyStringStruct simulationBackend; + bool freezeByLOD; + +}; + +static const uint32_t checksum[] = { 0x8ad676e2, 0xad4268cf, 0xaca73ada, 0x78a0c105, }; + +} // namespace ClothingActorParam_0p11NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p11 : public NvParameterized::NvParameters, public ClothingActorParam_0p11NS::ParametersStruct +{ +public: + ClothingActorParam_0p11(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p11(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)11; + + 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(ClothingActorParam_0p11NS::checksum); + return ClothingActorParam_0p11NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p11NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p11* tmpThis = const_cast<ClothingActorParam_0p11*>(this); + return *(static_cast<ClothingActorParam_0p11NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p11NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p11NS::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 ClothingActorParam_0p11Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p11::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p11), ClothingActorParam_0p11::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p11"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p11)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p11)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p11::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p11"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p11 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 (ClothingActorParam_0p11*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p11::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p11::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p11::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p11::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/clothing_legacy/include/autogen/ClothingActorParam_0p12.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p12.h new file mode 100644 index 00000000..8e08c6cd --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p12.h @@ -0,0 +1,355 @@ +// 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_ClothingActorParam_0p12_h +#define HEADER_ClothingActorParam_0p12_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 ClothingActorParam_0p12NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + NvParameterized::DummyStringStruct simulationBackend; + bool freezeByLOD; + +}; + +static const uint32_t checksum[] = { 0xd2c0383d, 0xd509d3bb, 0x5705bfa6, 0xa9b64c16, }; + +} // namespace ClothingActorParam_0p12NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p12 : public NvParameterized::NvParameters, public ClothingActorParam_0p12NS::ParametersStruct +{ +public: + ClothingActorParam_0p12(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p12(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)12; + + 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(ClothingActorParam_0p12NS::checksum); + return ClothingActorParam_0p12NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p12NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p12* tmpThis = const_cast<ClothingActorParam_0p12*>(this); + return *(static_cast<ClothingActorParam_0p12NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p12NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p12NS::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 ClothingActorParam_0p12Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p12::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p12), ClothingActorParam_0p12::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p12::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p12"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p12)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p12)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p12::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p12::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p12"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p12 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 (ClothingActorParam_0p12*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p12::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p12::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p12::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p12::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/clothing_legacy/include/autogen/ClothingActorParam_0p13.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p13.h new file mode 100644 index 00000000..976aefde --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p13.h @@ -0,0 +1,357 @@ +// 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_ClothingActorParam_0p13_h +#define HEADER_ClothingActorParam_0p13_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 ClothingActorParam_0p13NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + const char* simulationBackend; + bool useStiffSolver; + bool freezeByLOD; + bool localSpaceSim; + +}; + +static const uint32_t checksum[] = { 0x25820f61, 0xca66d3ac, 0x838a3c46, 0xa11ee9d9, }; + +} // namespace ClothingActorParam_0p13NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p13 : public NvParameterized::NvParameters, public ClothingActorParam_0p13NS::ParametersStruct +{ +public: + ClothingActorParam_0p13(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p13(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)13; + + 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(ClothingActorParam_0p13NS::checksum); + return ClothingActorParam_0p13NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p13NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p13* tmpThis = const_cast<ClothingActorParam_0p13*>(this); + return *(static_cast<ClothingActorParam_0p13NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p13NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p13NS::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 ClothingActorParam_0p13Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p13::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p13), ClothingActorParam_0p13::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p13::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p13"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p13)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p13)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p13::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p13::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p13"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p13 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 (ClothingActorParam_0p13*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p13::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p13::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p13::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p13::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/clothing_legacy/include/autogen/ClothingActorParam_0p14.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p14.h new file mode 100644 index 00000000..ab2b013b --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p14.h @@ -0,0 +1,358 @@ +// 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_ClothingActorParam_0p14_h +#define HEADER_ClothingActorParam_0p14_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 ClothingActorParam_0p14NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + const char* simulationBackend; + bool useStiffSolver; + bool freezeByLOD; + bool localSpaceSim; + int32_t teleportMode; + +}; + +static const uint32_t checksum[] = { 0xda27d122, 0x45cc896e, 0x1a9a7624, 0x58264ded, }; + +} // namespace ClothingActorParam_0p14NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p14 : public NvParameterized::NvParameters, public ClothingActorParam_0p14NS::ParametersStruct +{ +public: + ClothingActorParam_0p14(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p14(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)14; + + 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(ClothingActorParam_0p14NS::checksum); + return ClothingActorParam_0p14NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p14NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p14* tmpThis = const_cast<ClothingActorParam_0p14*>(this); + return *(static_cast<ClothingActorParam_0p14NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p14NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p14NS::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 ClothingActorParam_0p14Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p14::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p14), ClothingActorParam_0p14::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p14::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p14"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p14)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p14)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p14::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p14::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p14"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p14 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 (ClothingActorParam_0p14*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p14::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p14::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p14::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p14::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/clothing_legacy/include/autogen/ClothingActorParam_0p15.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p15.h new file mode 100644 index 00000000..824b438a --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p15.h @@ -0,0 +1,359 @@ +// 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_ClothingActorParam_0p15_h +#define HEADER_ClothingActorParam_0p15_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 ClothingActorParam_0p15NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool RecomputeTangents; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + const char* simulationBackend; + bool useStiffSolver; + bool freezeByLOD; + bool localSpaceSim; + int32_t teleportMode; + +}; + +static const uint32_t checksum[] = { 0x6a410b79, 0x9118ce89, 0x6e2cd051, 0xfc723b18, }; + +} // namespace ClothingActorParam_0p15NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p15 : public NvParameterized::NvParameters, public ClothingActorParam_0p15NS::ParametersStruct +{ +public: + ClothingActorParam_0p15(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p15(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)15; + + 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(ClothingActorParam_0p15NS::checksum); + return ClothingActorParam_0p15NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p15NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p15* tmpThis = const_cast<ClothingActorParam_0p15*>(this); + return *(static_cast<ClothingActorParam_0p15NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p15NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p15NS::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 ClothingActorParam_0p15Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p15::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p15), ClothingActorParam_0p15::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p15::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p15"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p15)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p15)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p15::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p15::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p15"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p15 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 (ClothingActorParam_0p15*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p15::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p15::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p15::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p15::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/clothing_legacy/include/autogen/ClothingActorParam_0p16.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p16.h new file mode 100644 index 00000000..cfc1f91f --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p16.h @@ -0,0 +1,361 @@ +// 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_ClothingActorParam_0p16_h +#define HEADER_ClothingActorParam_0p16_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 ClothingActorParam_0p16NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool RecomputeTangents; + bool Visualize; + bool CorrectSimulationNormals; + bool ComputeRenderData; + bool ComputePhysicsMeshNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + const char* simulationBackend; + bool useStiffSolver; + bool freezeByLOD; + bool localSpaceSim; + int32_t teleportMode; + +}; + +static const uint32_t checksum[] = { 0x38fffcfa, 0x11f6b80a, 0xd6e75150, 0x68c6a1ba, }; + +} // namespace ClothingActorParam_0p16NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p16 : public NvParameterized::NvParameters, public ClothingActorParam_0p16NS::ParametersStruct +{ +public: + ClothingActorParam_0p16(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p16(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)16; + + 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(ClothingActorParam_0p16NS::checksum); + return ClothingActorParam_0p16NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p16NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p16* tmpThis = const_cast<ClothingActorParam_0p16*>(this); + return *(static_cast<ClothingActorParam_0p16NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p16NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p16NS::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 ClothingActorParam_0p16Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p16::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p16), ClothingActorParam_0p16::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p16::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p16"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p16)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p16)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p16::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p16::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p16"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p16 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 (ClothingActorParam_0p16*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p16::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p16::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p16::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p16::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/clothing_legacy/include/autogen/ClothingActorParam_0p17.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p17.h new file mode 100644 index 00000000..dc5043db --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p17.h @@ -0,0 +1,360 @@ +// 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_ClothingActorParam_0p17_h +#define HEADER_ClothingActorParam_0p17_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 ClothingActorParam_0p17NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool RecomputeTangents; + bool Visualize; + bool CorrectSimulationNormals; + bool ComputeRenderData; + bool ComputePhysicsMeshNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + const char* simulationBackend; + bool freezeByLOD; + bool localSpaceSim; + int32_t teleportMode; + +}; + +static const uint32_t checksum[] = { 0xe922c41d, 0xea43dc67, 0xa730fe7b, 0x3f5fe47d, }; + +} // namespace ClothingActorParam_0p17NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p17 : public NvParameterized::NvParameters, public ClothingActorParam_0p17NS::ParametersStruct +{ +public: + ClothingActorParam_0p17(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p17(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)17; + + 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(ClothingActorParam_0p17NS::checksum); + return ClothingActorParam_0p17NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p17NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p17* tmpThis = const_cast<ClothingActorParam_0p17*>(this); + return *(static_cast<ClothingActorParam_0p17NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p17NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p17NS::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 ClothingActorParam_0p17Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p17::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p17), ClothingActorParam_0p17::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p17::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p17"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p17)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p17)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p17::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p17::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p17"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p17 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 (ClothingActorParam_0p17*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p17::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p17::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p17::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p17::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/clothing_legacy/include/autogen/ClothingActorParam_0p18.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p18.h new file mode 100644 index 00000000..3039d1b6 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p18.h @@ -0,0 +1,351 @@ +// 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_ClothingActorParam_0p18_h +#define HEADER_ClothingActorParam_0p18_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 ClothingActorParam_0p18NS +{ + +struct GroupsMask_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool RecomputeTangents; + bool Visualize; + bool CorrectSimulationNormals; + bool ComputeRenderData; + bool ComputePhysicsMeshNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + VEC3_DynamicArray1D_Type morphGraphicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + const char* simulationBackend; + bool freezeByLOD; + bool localSpaceSim; + int32_t teleportMode; + +}; + +static const uint32_t checksum[] = { 0xf1063127, 0xe3a4d0e2, 0x61f25577, 0x4e838af4, }; + +} // namespace ClothingActorParam_0p18NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p18 : public NvParameterized::NvParameters, public ClothingActorParam_0p18NS::ParametersStruct +{ +public: + ClothingActorParam_0p18(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p18(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)18; + + 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(ClothingActorParam_0p18NS::checksum); + return ClothingActorParam_0p18NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p18NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p18* tmpThis = const_cast<ClothingActorParam_0p18*>(this); + return *(static_cast<ClothingActorParam_0p18NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p18NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p18NS::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 ClothingActorParam_0p18Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p18::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p18), ClothingActorParam_0p18::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p18::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p18"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p18)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p18)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p18::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p18::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p18"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p18 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 (ClothingActorParam_0p18*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p18::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p18::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p18::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p18::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/clothing_legacy/include/autogen/ClothingActorParam_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p2.h new file mode 100644 index 00000000..b12163f4 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p2.h @@ -0,0 +1,339 @@ +// 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_ClothingActorParam_0p2_h +#define HEADER_ClothingActorParam_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 ClothingActorParam_0p2NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelPhysXMeshSkinning; + bool ParallelMeshMeshSkinning; + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + +}; + +static const uint32_t checksum[] = { 0x931064bf, 0x4b58babd, 0xd449c5ad, 0x56a18a24, }; + +} // namespace ClothingActorParam_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p2 : public NvParameterized::NvParameters, public ClothingActorParam_0p2NS::ParametersStruct +{ +public: + ClothingActorParam_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + 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(ClothingActorParam_0p2NS::checksum); + return ClothingActorParam_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p2NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p2* tmpThis = const_cast<ClothingActorParam_0p2*>(this); + return *(static_cast<ClothingActorParam_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_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 ClothingActorParam_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p2), ClothingActorParam_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_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 (ClothingActorParam_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_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/clothing_legacy/include/autogen/ClothingActorParam_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p3.h new file mode 100644 index 00000000..cfd9ee11 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p3.h @@ -0,0 +1,340 @@ +// 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_ClothingActorParam_0p3_h +#define HEADER_ClothingActorParam_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 ClothingActorParam_0p3NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelPhysXMeshSkinning; + bool ParallelMeshMeshSkinning; + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + +}; + +static const uint32_t checksum[] = { 0xc4f85660, 0xcbc71121, 0xdb7a9f9f, 0xd0b72ec7, }; + +} // namespace ClothingActorParam_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p3 : public NvParameterized::NvParameters, public ClothingActorParam_0p3NS::ParametersStruct +{ +public: + ClothingActorParam_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + 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(ClothingActorParam_0p3NS::checksum); + return ClothingActorParam_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p3NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p3* tmpThis = const_cast<ClothingActorParam_0p3*>(this); + return *(static_cast<ClothingActorParam_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_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 ClothingActorParam_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p3), ClothingActorParam_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_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 (ClothingActorParam_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_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/clothing_legacy/include/autogen/ClothingActorParam_0p4.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p4.h new file mode 100644 index 00000000..88d1593c --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p4.h @@ -0,0 +1,341 @@ +// 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_ClothingActorParam_0p4_h +#define HEADER_ClothingActorParam_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 ClothingActorParam_0p4NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelPhysXMeshSkinning; + bool ParallelMeshMeshSkinning; + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + +}; + +static const uint32_t checksum[] = { 0x427db3db, 0x3805a7f5, 0xf749b7d2, 0xcec020d2, }; + +} // namespace ClothingActorParam_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p4 : public NvParameterized::NvParameters, public ClothingActorParam_0p4NS::ParametersStruct +{ +public: + ClothingActorParam_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + 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(ClothingActorParam_0p4NS::checksum); + return ClothingActorParam_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p4NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p4* tmpThis = const_cast<ClothingActorParam_0p4*>(this); + return *(static_cast<ClothingActorParam_0p4NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_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 ClothingActorParam_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p4), ClothingActorParam_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_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 (ClothingActorParam_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_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/clothing_legacy/include/autogen/ClothingActorParam_0p5.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p5.h new file mode 100644 index 00000000..3b7085bc --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p5.h @@ -0,0 +1,343 @@ +// 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_ClothingActorParam_0p5_h +#define HEADER_ClothingActorParam_0p5_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 ClothingActorParam_0p5NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelPhysXMeshSkinning; + bool ParallelMeshMeshSkinning; + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + +}; + +static const uint32_t checksum[] = { 0x098e8792, 0xa9d5ccdc, 0x914ad3cc, 0x948832d6, }; + +} // namespace ClothingActorParam_0p5NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p5 : public NvParameterized::NvParameters, public ClothingActorParam_0p5NS::ParametersStruct +{ +public: + ClothingActorParam_0p5(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p5(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)5; + + 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(ClothingActorParam_0p5NS::checksum); + return ClothingActorParam_0p5NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p5NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p5* tmpThis = const_cast<ClothingActorParam_0p5*>(this); + return *(static_cast<ClothingActorParam_0p5NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p5NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p5NS::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 ClothingActorParam_0p5Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p5::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p5), ClothingActorParam_0p5::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p5"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p5)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p5)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p5::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p5"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p5 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 (ClothingActorParam_0p5*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p5::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p5::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p5::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p5::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/clothing_legacy/include/autogen/ClothingActorParam_0p6.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p6.h new file mode 100644 index 00000000..a5baeb02 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p6.h @@ -0,0 +1,341 @@ +// 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_ClothingActorParam_0p6_h +#define HEADER_ClothingActorParam_0p6_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 ClothingActorParam_0p6NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + +}; + +static const uint32_t checksum[] = { 0xcbce1ca9, 0x74c446a7, 0x3dea63d3, 0x79c15ccb, }; + +} // namespace ClothingActorParam_0p6NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p6 : public NvParameterized::NvParameters, public ClothingActorParam_0p6NS::ParametersStruct +{ +public: + ClothingActorParam_0p6(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p6(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)6; + + 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(ClothingActorParam_0p6NS::checksum); + return ClothingActorParam_0p6NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p6NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p6* tmpThis = const_cast<ClothingActorParam_0p6*>(this); + return *(static_cast<ClothingActorParam_0p6NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p6NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p6NS::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 ClothingActorParam_0p6Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p6::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p6), ClothingActorParam_0p6::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p6"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p6)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p6)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p6::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p6"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p6 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 (ClothingActorParam_0p6*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p6::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p6::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p6::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p6::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/clothing_legacy/include/autogen/ClothingActorParam_0p7.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p7.h new file mode 100644 index 00000000..3613e055 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p7.h @@ -0,0 +1,343 @@ +// 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_ClothingActorParam_0p7_h +#define HEADER_ClothingActorParam_0p7_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 ClothingActorParam_0p7NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + +}; + +static const uint32_t checksum[] = { 0x2928b37c, 0x0784b8e7, 0x64ad431c, 0x76431329, }; + +} // namespace ClothingActorParam_0p7NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p7 : public NvParameterized::NvParameters, public ClothingActorParam_0p7NS::ParametersStruct +{ +public: + ClothingActorParam_0p7(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p7(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)7; + + 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(ClothingActorParam_0p7NS::checksum); + return ClothingActorParam_0p7NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p7NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p7* tmpThis = const_cast<ClothingActorParam_0p7*>(this); + return *(static_cast<ClothingActorParam_0p7NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p7NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p7NS::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 ClothingActorParam_0p7Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p7::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p7), ClothingActorParam_0p7::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p7"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p7)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p7)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p7::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p7"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p7 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 (ClothingActorParam_0p7*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p7::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p7::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p7::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p7::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/clothing_legacy/include/autogen/ClothingActorParam_0p8.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p8.h new file mode 100644 index 00000000..3f570dcf --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p8.h @@ -0,0 +1,343 @@ +// 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_ClothingActorParam_0p8_h +#define HEADER_ClothingActorParam_0p8_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 ClothingActorParam_0p8NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + +}; + +static const uint32_t checksum[] = { 0xd21d519c, 0x9aa2e36e, 0x0eb2eec6, 0xf196b802, }; + +} // namespace ClothingActorParam_0p8NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p8 : public NvParameterized::NvParameters, public ClothingActorParam_0p8NS::ParametersStruct +{ +public: + ClothingActorParam_0p8(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p8(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)8; + + 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(ClothingActorParam_0p8NS::checksum); + return ClothingActorParam_0p8NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p8NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p8* tmpThis = const_cast<ClothingActorParam_0p8*>(this); + return *(static_cast<ClothingActorParam_0p8NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p8NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p8NS::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 ClothingActorParam_0p8Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p8::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p8), ClothingActorParam_0p8::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p8"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p8)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p8)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p8::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p8"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p8 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 (ClothingActorParam_0p8*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p8::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p8::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p8::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p8::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/clothing_legacy/include/autogen/ClothingActorParam_0p9.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p9.h new file mode 100644 index 00000000..da8f4537 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingActorParam_0p9.h @@ -0,0 +1,352 @@ +// 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_ClothingActorParam_0p9_h +#define HEADER_ClothingActorParam_0p9_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 ClothingActorParam_0p9NS +{ + +struct GroupsMask_Type; +struct LODWeights_Type; +struct ClothDescTemplate_Type; +struct ShapeDescFlags_Type; +struct ShapeDescTemplate_Type; +struct ActorDescTemplate_Type; +struct WindParameters_Type; +struct MaxDistanceScale_Type; +struct ClothingActorFlags_Type; + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorDescTemplate_Type +{ + uint64_t userData; + uint64_t name; +}; +struct GroupsMask_Type +{ + uint32_t bits0; + uint32_t bits1; + uint32_t bits2; + uint32_t bits3; +}; +struct ClothDescTemplate_Type +{ + float collisionResponseCoefficient; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + physx::PxBounds3 validBounds; + uint64_t compartment; + uint64_t userData; +}; +struct MaxDistanceScale_Type +{ + float Scale; + bool Multipliable; +}; +struct ClothingActorFlags_Type +{ + bool ParallelCpuSkinning; + bool RecomputeNormals; + bool Visualize; + bool CorrectSimulationNormals; +}; +struct ShapeDescFlags_Type +{ + bool NX_SF_VISUALIZATION; + bool NX_SF_DISABLE_COLLISION; + bool NX_SF_DISABLE_RAYCASTING; + bool NX_SF_DYNAMIC_DYNAMIC_CCD; + bool NX_SF_DISABLE_SCENE_QUERIES; +}; +struct ShapeDescTemplate_Type +{ + ShapeDescFlags_Type flags; + uint16_t collisionGroup; + GroupsMask_Type groupsMask; + uint16_t materialIndex; + uint64_t userData; + uint64_t name; +}; +struct WindParameters_Type +{ + physx::PxVec3 Velocity; + float Adaption; +}; +struct LODWeights_Type +{ + float maxDistance; + float distanceWeight; + float bias; + float benefitsBias; +}; + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool useHardwareCloth; + ClothingActorFlags_Type flags; + bool fallbackSkinning; + bool slowStart; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint32_t uvChannelForTangentUpdate; + float maxDistanceBlendTime; + uint32_t clothingMaterialIndex; + LODWeights_Type lodWeights; + WindParameters_Type windParams; + MaxDistanceScale_Type maxDistanceScale; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + ClothDescTemplate_Type clothDescTemplate; + ShapeDescTemplate_Type shapeDescTemplate; + ActorDescTemplate_Type actorDescTemplate; + float actorScale; + NvParameterized::Interface* runtimeCooked; + VEC3_DynamicArray1D_Type morphDisplacements; + VEC3_DynamicArray1D_Type morphPhysicalMeshNewPositions; + bool allowAdaptiveTargetFrequency; + bool useVelocityClamping; + physx::PxBounds3 vertexVelocityClamp; + float pressure; + bool multiplyGlobalPoseIntoBones; + STRING_DynamicArray1D_Type overrideMaterialNames; + +}; + +static const uint32_t checksum[] = { 0x27e70af8, 0xd62acc08, 0x7314beda, 0xdc297c24, }; + +} // namespace ClothingActorParam_0p9NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingActorParam_0p9 : public NvParameterized::NvParameters, public ClothingActorParam_0p9NS::ParametersStruct +{ +public: + ClothingActorParam_0p9(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingActorParam_0p9(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingActorParam"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)9; + + 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(ClothingActorParam_0p9NS::checksum); + return ClothingActorParam_0p9NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingActorParam_0p9NS::ParametersStruct& parameters(void) const + { + ClothingActorParam_0p9* tmpThis = const_cast<ClothingActorParam_0p9*>(this); + return *(static_cast<ClothingActorParam_0p9NS::ParametersStruct*>(tmpThis)); + } + + ClothingActorParam_0p9NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingActorParam_0p9NS::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 ClothingActorParam_0p9Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingActorParam_0p9::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingActorParam_0p9), ClothingActorParam_0p9::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingActorParam_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p9"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingActorParam_0p9)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingActorParam_0p9)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingActorParam_0p9::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingActorParam_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingActorParam_0p9"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingActorParam_0p9 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 (ClothingActorParam_0p9*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingActorParam_0p9::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingActorParam_0p9::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingActorParam_0p9::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingActorParam_0p9::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p0.h new file mode 100644 index 00000000..9ed094bf --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p0.h @@ -0,0 +1,309 @@ +// 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_ClothingAssetParameters_0p0_h +#define HEADER_ClothingAssetParameters_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 ClothingAssetParameters_0p0NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + uint32_t simulationHierarchicalLevels; + float simulationThickness; + float simulationSelfcollisionThickness; + float simulationSleepLinearVelocity; + bool simulationDisableCCD; + bool simulationUntangling; + bool simulationSelfcollision; + bool simulationTwowayInteraction; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + U8_DynamicArray1D_Type convexesCookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xa40ce7f9, 0x80497c91, 0x880b9bad, 0x4f78e1ea, }; + +} // namespace ClothingAssetParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p0 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p0NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + 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(ClothingAssetParameters_0p0NS::checksum); + return ClothingAssetParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p0NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p0* tmpThis = const_cast<ClothingAssetParameters_0p0*>(this); + return *(static_cast<ClothingAssetParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_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 ClothingAssetParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p0), ClothingAssetParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_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 (ClothingAssetParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_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/clothing_legacy/include/autogen/ClothingAssetParameters_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p1.h new file mode 100644 index 00000000..351024a1 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p1.h @@ -0,0 +1,310 @@ +// 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_ClothingAssetParameters_0p1_h +#define HEADER_ClothingAssetParameters_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 ClothingAssetParameters_0p1NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + uint32_t simulationHierarchicalLevels; + float simulationThickness; + float simulationSelfcollisionThickness; + float simulationSleepLinearVelocity; + bool simulationDisableCCD; + bool simulationUntangling; + bool simulationSelfcollision; + bool simulationTwowayInteraction; + float simulationTargetFrequency; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + U8_DynamicArray1D_Type convexesCookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xa61739fc, 0x3de90e28, 0xabc5e465, 0xc4288f2a, }; + +} // namespace ClothingAssetParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p1 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p1NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + 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(ClothingAssetParameters_0p1NS::checksum); + return ClothingAssetParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p1NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p1* tmpThis = const_cast<ClothingAssetParameters_0p1*>(this); + return *(static_cast<ClothingAssetParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_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 ClothingAssetParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p1), ClothingAssetParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_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 (ClothingAssetParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_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/clothing_legacy/include/autogen/ClothingAssetParameters_0p10.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p10.h new file mode 100644 index 00000000..0d9af047 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p10.h @@ -0,0 +1,348 @@ +// 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_ClothingAssetParameters_0p10_h +#define HEADER_ClothingAssetParameters_0p10_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 ClothingAssetParameters_0p10NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + NvParameterized::DummyStringStruct toolString; + +}; + +static const uint32_t checksum[] = { 0xc4f8e8a7, 0xd7d5da55, 0x775137b7, 0x42c5860e, }; + +} // namespace ClothingAssetParameters_0p10NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p10 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p10NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p10(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p10(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)10; + + 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(ClothingAssetParameters_0p10NS::checksum); + return ClothingAssetParameters_0p10NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p10NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p10* tmpThis = const_cast<ClothingAssetParameters_0p10*>(this); + return *(static_cast<ClothingAssetParameters_0p10NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p10NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p10NS::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 ClothingAssetParameters_0p10Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p10::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p10), ClothingAssetParameters_0p10::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p10"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p10)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p10)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p10::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p10"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p10 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 (ClothingAssetParameters_0p10*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p10::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p10::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p10::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p10::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p11.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p11.h new file mode 100644 index 00000000..a9e49ec4 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p11.h @@ -0,0 +1,373 @@ +// 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_ClothingAssetParameters_0p11_h +#define HEADER_ClothingAssetParameters_0p11_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 ClothingAssetParameters_0p11NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct BonePlane_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_DynamicArray1D_Type +{ + BonePlane_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_Type +{ + int32_t boneIndex; + physx::PxVec3 n; + float d; +}; +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + BonePlane_DynamicArray1D_Type bonePlanes; + U32_DynamicArray1D_Type collisionConvexes; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + NvParameterized::DummyStringStruct toolString; + +}; + +static const uint32_t checksum[] = { 0xbdc16589, 0x3ae9f533, 0xe0c38fae, 0xa5dd0d61, }; + +} // namespace ClothingAssetParameters_0p11NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p11 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p11NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p11(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p11(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)11; + + 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(ClothingAssetParameters_0p11NS::checksum); + return ClothingAssetParameters_0p11NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p11NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p11* tmpThis = const_cast<ClothingAssetParameters_0p11*>(this); + return *(static_cast<ClothingAssetParameters_0p11NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p11NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p11NS::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 ClothingAssetParameters_0p11Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p11::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p11), ClothingAssetParameters_0p11::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p11"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p11)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p11)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p11::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p11"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p11 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 (ClothingAssetParameters_0p11*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p11::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p11::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p11::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p11::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p12.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p12.h new file mode 100644 index 00000000..36584d39 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p12.h @@ -0,0 +1,373 @@ +// 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_ClothingAssetParameters_0p12_h +#define HEADER_ClothingAssetParameters_0p12_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 ClothingAssetParameters_0p12NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct BonePlane_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_DynamicArray1D_Type +{ + BonePlane_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_Type +{ + int32_t boneIndex; + physx::PxVec3 n; + float d; +}; +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + BonePlane_DynamicArray1D_Type bonePlanes; + U32_DynamicArray1D_Type collisionConvexes; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + NvParameterized::DummyStringStruct toolString; + +}; + +static const uint32_t checksum[] = { 0xa51cc7bc, 0xbd0d2180, 0xb3cb930e, 0x543fdb61, }; + +} // namespace ClothingAssetParameters_0p12NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p12 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p12NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p12(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p12(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)12; + + 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(ClothingAssetParameters_0p12NS::checksum); + return ClothingAssetParameters_0p12NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p12NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p12* tmpThis = const_cast<ClothingAssetParameters_0p12*>(this); + return *(static_cast<ClothingAssetParameters_0p12NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p12NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p12NS::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 ClothingAssetParameters_0p12Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p12::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p12), ClothingAssetParameters_0p12::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p12::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p12"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p12)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p12)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p12::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p12::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p12"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p12 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 (ClothingAssetParameters_0p12*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p12::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p12::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p12::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p12::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p13.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p13.h new file mode 100644 index 00000000..63fae8bd --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p13.h @@ -0,0 +1,374 @@ +// 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_ClothingAssetParameters_0p13_h +#define HEADER_ClothingAssetParameters_0p13_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 ClothingAssetParameters_0p13NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct BonePlane_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_DynamicArray1D_Type +{ + BonePlane_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_Type +{ + int32_t boneIndex; + physx::PxVec3 n; + float d; +}; +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + BonePlane_DynamicArray1D_Type bonePlanes; + U32_DynamicArray1D_Type collisionConvexes; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + uint32_t interCollisionChannels; + NvParameterized::DummyStringStruct toolString; + +}; + +static const uint32_t checksum[] = { 0x1c07d2c0, 0xa436dad5, 0xb2c1e2a5, 0xcf467a82, }; + +} // namespace ClothingAssetParameters_0p13NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p13 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p13NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p13(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p13(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)13; + + 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(ClothingAssetParameters_0p13NS::checksum); + return ClothingAssetParameters_0p13NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p13NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p13* tmpThis = const_cast<ClothingAssetParameters_0p13*>(this); + return *(static_cast<ClothingAssetParameters_0p13NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p13NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p13NS::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 ClothingAssetParameters_0p13Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p13::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p13), ClothingAssetParameters_0p13::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p13::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p13"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p13)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p13)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p13::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p13::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p13"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p13 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 (ClothingAssetParameters_0p13*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p13::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p13::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p13::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p13::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p14.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p14.h new file mode 100644 index 00000000..1b30ad0c --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p14.h @@ -0,0 +1,374 @@ +// 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_ClothingAssetParameters_0p14_h +#define HEADER_ClothingAssetParameters_0p14_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 ClothingAssetParameters_0p14NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct BonePlane_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_DynamicArray1D_Type +{ + BonePlane_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BonePlane_Type +{ + int32_t boneIndex; + physx::PxVec3 n; + float d; +}; +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + physx::PxMat44 bindPose; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + physx::PxMat44 localPose; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + BonePlane_DynamicArray1D_Type bonePlanes; + U32_DynamicArray1D_Type collisionConvexes; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + uint32_t interCollisionChannels; + NvParameterized::DummyStringStruct toolString; + +}; + +static const uint32_t checksum[] = { 0x1095fcd4, 0x7327d8f7, 0xefaa63f8, 0x5bda9add, }; + +} // namespace ClothingAssetParameters_0p14NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p14 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p14NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p14(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p14(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)14; + + 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(ClothingAssetParameters_0p14NS::checksum); + return ClothingAssetParameters_0p14NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p14NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p14* tmpThis = const_cast<ClothingAssetParameters_0p14*>(this); + return *(static_cast<ClothingAssetParameters_0p14NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p14NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p14NS::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 ClothingAssetParameters_0p14Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p14::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p14), ClothingAssetParameters_0p14::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p14::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p14"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p14)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p14)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p14::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p14::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p14"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p14 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 (ClothingAssetParameters_0p14*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p14::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p14::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p14::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p14::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p2.h new file mode 100644 index 00000000..3bab924d --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p2.h @@ -0,0 +1,316 @@ +// 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_ClothingAssetParameters_0p2_h +#define HEADER_ClothingAssetParameters_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 ClothingAssetParameters_0p2NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct CookedEntry_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + uint32_t simulationHierarchicalLevels; + float simulationThickness; + float simulationSelfcollisionThickness; + float simulationSleepLinearVelocity; + bool simulationDisableCCD; + bool simulationUntangling; + bool simulationSelfcollision; + bool simulationTwowayInteraction; + float simulationTargetFrequency; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xd01062b5, 0xc521bcdd, 0x1ca8cd6b, 0xd98add86, }; + +} // namespace ClothingAssetParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p2 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p2NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + 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(ClothingAssetParameters_0p2NS::checksum); + return ClothingAssetParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p2NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p2* tmpThis = const_cast<ClothingAssetParameters_0p2*>(this); + return *(static_cast<ClothingAssetParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_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 ClothingAssetParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p2), ClothingAssetParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_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 (ClothingAssetParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_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/clothing_legacy/include/autogen/ClothingAssetParameters_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p3.h new file mode 100644 index 00000000..0a0af850 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p3.h @@ -0,0 +1,315 @@ +// 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_ClothingAssetParameters_0p3_h +#define HEADER_ClothingAssetParameters_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 ClothingAssetParameters_0p3NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct CookedEntry_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + uint32_t simulationHierarchicalLevels; + float simulationThickness; + float simulationSelfcollisionThickness; + float simulationSleepLinearVelocity; + bool simulationDisableCCD; + bool simulationUntangling; + bool simulationSelfcollision; + bool simulationTwowayInteraction; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xdabc95a2, 0x4bc9ddba, 0x3c661d7a, 0x2b194f6c, }; + +} // namespace ClothingAssetParameters_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p3 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p3NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + 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(ClothingAssetParameters_0p3NS::checksum); + return ClothingAssetParameters_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p3NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p3* tmpThis = const_cast<ClothingAssetParameters_0p3*>(this); + return *(static_cast<ClothingAssetParameters_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_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 ClothingAssetParameters_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p3), ClothingAssetParameters_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_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 (ClothingAssetParameters_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_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/clothing_legacy/include/autogen/ClothingAssetParameters_0p4.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p4.h new file mode 100644 index 00000000..55343339 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p4.h @@ -0,0 +1,321 @@ +// 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_ClothingAssetParameters_0p4_h +#define HEADER_ClothingAssetParameters_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 ClothingAssetParameters_0p4NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float selfcollisionThickness; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool selfcollision; + bool twowayInteraction; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xfb509bc0, 0x1f80b5fa, 0x4ebbea14, 0x8c9c33b5, }; + +} // namespace ClothingAssetParameters_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p4 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p4NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + 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(ClothingAssetParameters_0p4NS::checksum); + return ClothingAssetParameters_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p4NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p4* tmpThis = const_cast<ClothingAssetParameters_0p4*>(this); + return *(static_cast<ClothingAssetParameters_0p4NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_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 ClothingAssetParameters_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p4), ClothingAssetParameters_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_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 (ClothingAssetParameters_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_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/clothing_legacy/include/autogen/ClothingAssetParameters_0p5.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p5.h new file mode 100644 index 00000000..e3c1ad8b --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p5.h @@ -0,0 +1,322 @@ +// 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_ClothingAssetParameters_0p5_h +#define HEADER_ClothingAssetParameters_0p5_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 ClothingAssetParameters_0p5NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float selfcollisionThickness; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool selfcollision; + bool twowayInteraction; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xfb9d6cf7, 0x4e92037f, 0xc7a487e6, 0xcc776c9d, }; + +} // namespace ClothingAssetParameters_0p5NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p5 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p5NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p5(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p5(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)5; + + 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(ClothingAssetParameters_0p5NS::checksum); + return ClothingAssetParameters_0p5NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p5NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p5* tmpThis = const_cast<ClothingAssetParameters_0p5*>(this); + return *(static_cast<ClothingAssetParameters_0p5NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p5NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p5NS::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 ClothingAssetParameters_0p5Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p5::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p5), ClothingAssetParameters_0p5::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p5"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p5)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p5)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p5::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p5"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p5 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 (ClothingAssetParameters_0p5*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p5::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p5::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p5::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p5::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p6.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p6.h new file mode 100644 index 00000000..2271e102 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p6.h @@ -0,0 +1,323 @@ +// 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_ClothingAssetParameters_0p6_h +#define HEADER_ClothingAssetParameters_0p6_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 ClothingAssetParameters_0p6NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float selfcollisionThickness; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool selfcollision; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0x9c5bbd0f, 0xe154473c, 0x4ff17cec, 0xc60a543b, }; + +} // namespace ClothingAssetParameters_0p6NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p6 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p6NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p6(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p6(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)6; + + 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(ClothingAssetParameters_0p6NS::checksum); + return ClothingAssetParameters_0p6NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p6NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p6* tmpThis = const_cast<ClothingAssetParameters_0p6*>(this); + return *(static_cast<ClothingAssetParameters_0p6NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p6NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p6NS::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 ClothingAssetParameters_0p6Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p6::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p6), ClothingAssetParameters_0p6::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p6"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p6)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p6)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p6::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p6"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p6 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 (ClothingAssetParameters_0p6*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p6::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p6::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p6::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p6::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p7.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p7.h new file mode 100644 index 00000000..33975bc9 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p7.h @@ -0,0 +1,348 @@ +// 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_ClothingAssetParameters_0p7_h +#define HEADER_ClothingAssetParameters_0p7_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 ClothingAssetParameters_0p7NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float selfcollisionThickness; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool selfcollision; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0xd3631cea, 0x5e474c63, 0xcaec5688, 0x075751f4, }; + +} // namespace ClothingAssetParameters_0p7NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p7 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p7NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p7(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p7(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)7; + + 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(ClothingAssetParameters_0p7NS::checksum); + return ClothingAssetParameters_0p7NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p7NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p7* tmpThis = const_cast<ClothingAssetParameters_0p7*>(this); + return *(static_cast<ClothingAssetParameters_0p7NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p7NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p7NS::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 ClothingAssetParameters_0p7Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p7::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p7), ClothingAssetParameters_0p7::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p7"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p7)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p7)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p7::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p7"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p7 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 (ClothingAssetParameters_0p7*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p7::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p7::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p7::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p7::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p8.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p8.h new file mode 100644 index 00000000..88731a3a --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p8.h @@ -0,0 +1,349 @@ +// 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_ClothingAssetParameters_0p8_h +#define HEADER_ClothingAssetParameters_0p8_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 ClothingAssetParameters_0p8NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float selfcollisionThickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool selfcollision; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + +}; + +static const uint32_t checksum[] = { 0x2fdf10c9, 0xe19f8a78, 0xd9be75ef, 0xf96fc9b2, }; + +} // namespace ClothingAssetParameters_0p8NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p8 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p8NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p8(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p8(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)8; + + 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(ClothingAssetParameters_0p8NS::checksum); + return ClothingAssetParameters_0p8NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p8NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p8* tmpThis = const_cast<ClothingAssetParameters_0p8*>(this); + return *(static_cast<ClothingAssetParameters_0p8NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p8NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p8NS::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 ClothingAssetParameters_0p8Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p8::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p8), ClothingAssetParameters_0p8::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p8"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p8)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p8)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p8::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p8"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p8 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 (ClothingAssetParameters_0p8*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p8::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p8::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p8::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p8::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/clothing_legacy/include/autogen/ClothingAssetParameters_0p9.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p9.h new file mode 100644 index 00000000..6fffd8fa --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingAssetParameters_0p9.h @@ -0,0 +1,350 @@ +// 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_ClothingAssetParameters_0p9_h +#define HEADER_ClothingAssetParameters_0p9_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 ClothingAssetParameters_0p9NS +{ + +struct BoneEntry_Type; +struct ActorEntry_Type; +struct BoneSphere_Type; +struct CookedEntry_Type; +struct SimulationParams_Type; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneEntry_DynamicArray1D_Type +{ + BoneEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ActorEntry_DynamicArray1D_Type +{ + ActorEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_DynamicArray1D_Type +{ + BoneSphere_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedEntry_DynamicArray1D_Type +{ + CookedEntry_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct BoneSphere_Type +{ + int32_t boneIndex; + float radius; + physx::PxVec3 localPos; +}; +struct SimulationParams_Type +{ + uint32_t hierarchicalLevels; + float thickness; + float selfcollisionThickness; + float virtualParticleDensity; + physx::PxVec3 gravityDirection; + float sleepLinearVelocity; + bool disableCCD; + bool untangling; + bool selfcollision; + bool twowayInteraction; + float restLengthScale; +}; +struct CookedEntry_Type +{ + float scale; + NvParameterized::Interface* cookedData; +}; +struct BoneEntry_Type +{ + int32_t internalIndex; + int32_t externalIndex; + uint32_t numMeshReferenced; + uint32_t numRigidBodiesReferenced; + int32_t parentIndex; + float bindPose[12]; + NvParameterized::DummyStringStruct name; +}; +struct ActorEntry_Type +{ + int32_t boneIndex; + uint32_t convexVerticesStart; + uint32_t convexVerticesCount; + float capsuleRadius; + float capsuleHeight; + float localPose[12]; +}; + +struct ParametersStruct +{ + + REF_DynamicArray1D_Type physicalMeshes; + REF_DynamicArray1D_Type graphicalLods; + SimulationParams_Type simulation; + BoneEntry_DynamicArray1D_Type bones; + uint32_t bonesReferenced; + uint32_t bonesReferencedByMesh; + uint32_t rootBoneIndex; + ActorEntry_DynamicArray1D_Type boneActors; + VEC3_DynamicArray1D_Type boneVertices; + BoneSphere_DynamicArray1D_Type boneSpheres; + U16_DynamicArray1D_Type boneSphereConnections; + CookedEntry_DynamicArray1D_Type cookedData; + physx::PxBounds3 boundingBox; + NvParameterized::Interface* materialLibrary; + uint32_t materialIndex; + NvParameterized::DummyStringStruct toolString; + +}; + +static const uint32_t checksum[] = { 0x6f9c2e10, 0xabbe7d19, 0x039846d7, 0x63232322, }; + +} // namespace ClothingAssetParameters_0p9NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingAssetParameters_0p9 : public NvParameterized::NvParameters, public ClothingAssetParameters_0p9NS::ParametersStruct +{ +public: + ClothingAssetParameters_0p9(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingAssetParameters_0p9(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)9; + + 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(ClothingAssetParameters_0p9NS::checksum); + return ClothingAssetParameters_0p9NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingAssetParameters_0p9NS::ParametersStruct& parameters(void) const + { + ClothingAssetParameters_0p9* tmpThis = const_cast<ClothingAssetParameters_0p9*>(this); + return *(static_cast<ClothingAssetParameters_0p9NS::ParametersStruct*>(tmpThis)); + } + + ClothingAssetParameters_0p9NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingAssetParameters_0p9NS::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 ClothingAssetParameters_0p9Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingAssetParameters_0p9::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p9), ClothingAssetParameters_0p9::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingAssetParameters_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p9"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingAssetParameters_0p9)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p9)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingAssetParameters_0p9::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingAssetParameters_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p9"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingAssetParameters_0p9 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 (ClothingAssetParameters_0p9*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingAssetParameters_0p9::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingAssetParameters_0p9::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingAssetParameters_0p9::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingAssetParameters_0p9::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/clothing_legacy/include/autogen/ClothingCookedParam_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p0.h new file mode 100644 index 00000000..e3a817f6 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p0.h @@ -0,0 +1,267 @@ +// 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_ClothingCookedParam_0p0_h +#define HEADER_ClothingCookedParam_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 ClothingCookedParam_0p0NS +{ + +struct CookedPhysicalSubmesh_Type; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct POINTER_DynamicArray1D_Type +{ + void** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalSubmesh_DynamicArray1D_Type +{ + CookedPhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalSubmesh_Type +{ + uint32_t physicalMeshId; + uint32_t submeshId; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; + void* deformableMeshPointer; +}; + +struct ParametersStruct +{ + + float actorScale; + U8_DynamicArray1D_Type convexCookedData; + POINTER_DynamicArray1D_Type convexMeshPointers; + CookedPhysicalSubmesh_DynamicArray1D_Type cookedPhysicalSubmeshes; + U8_DynamicArray1D_Type deformableCookedData; + +}; + +static const uint32_t checksum[] = { 0xfcb347aa, 0xb8e47b73, 0xaee36e9f, 0xe906c580, }; + +} // namespace ClothingCookedParam_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedParam_0p0 : public NvParameterized::NvParameters, public ClothingCookedParam_0p0NS::ParametersStruct +{ +public: + ClothingCookedParam_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedParam_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedParam"); + } + + 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(ClothingCookedParam_0p0NS::checksum); + return ClothingCookedParam_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedParam_0p0NS::ParametersStruct& parameters(void) const + { + ClothingCookedParam_0p0* tmpThis = const_cast<ClothingCookedParam_0p0*>(this); + return *(static_cast<ClothingCookedParam_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedParam_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedParam_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 ClothingCookedParam_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedParam_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedParam_0p0), ClothingCookedParam_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedParam_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedParam_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedParam_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedParam_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 (ClothingCookedParam_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedParam_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedParam_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedParam_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedParam_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/clothing_legacy/include/autogen/ClothingCookedParam_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p1.h new file mode 100644 index 00000000..26144a09 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p1.h @@ -0,0 +1,268 @@ +// 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_ClothingCookedParam_0p1_h +#define HEADER_ClothingCookedParam_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 ClothingCookedParam_0p1NS +{ + +struct CookedPhysicalSubmesh_Type; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct POINTER_DynamicArray1D_Type +{ + void** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalSubmesh_DynamicArray1D_Type +{ + CookedPhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalSubmesh_Type +{ + uint32_t physicalMeshId; + uint32_t submeshId; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; + void* deformableMeshPointer; +}; + +struct ParametersStruct +{ + + float actorScale; + U8_DynamicArray1D_Type convexCookedData; + POINTER_DynamicArray1D_Type convexMeshPointers; + CookedPhysicalSubmesh_DynamicArray1D_Type cookedPhysicalSubmeshes; + U8_DynamicArray1D_Type deformableCookedData; + uint32_t cookedDataVersion; + +}; + +static const uint32_t checksum[] = { 0xc165832e, 0x12123123, 0xe1b1c4dc, 0x8808bb20, }; + +} // namespace ClothingCookedParam_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedParam_0p1 : public NvParameterized::NvParameters, public ClothingCookedParam_0p1NS::ParametersStruct +{ +public: + ClothingCookedParam_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedParam_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedParam"); + } + + 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(ClothingCookedParam_0p1NS::checksum); + return ClothingCookedParam_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedParam_0p1NS::ParametersStruct& parameters(void) const + { + ClothingCookedParam_0p1* tmpThis = const_cast<ClothingCookedParam_0p1*>(this); + return *(static_cast<ClothingCookedParam_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedParam_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedParam_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 ClothingCookedParam_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedParam_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedParam_0p1), ClothingCookedParam_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedParam_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedParam_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedParam_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedParam_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedParam_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedParam_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 (ClothingCookedParam_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedParam_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedParam_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedParam_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedParam_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/clothing_legacy/include/autogen/ClothingCookedParam_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p2.h new file mode 100644 index 00000000..cbc1bb56 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p2.h @@ -0,0 +1,298 @@ +// 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_ClothingCookedParam_0p2_h +#define HEADER_ClothingCookedParam_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 ClothingCookedParam_0p2NS +{ + +struct CookedPhysicalSubmesh_Type; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct POINTER_DynamicArray1D_Type +{ + void** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalSubmesh_DynamicArray1D_Type +{ + CookedPhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalSubmesh_Type +{ + uint32_t physicalMeshId; + uint32_t submeshId; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; + void* deformableMeshPointer; + uint32_t deformableInvParticleWeightsOffset; + uint32_t virtualParticleIndicesOffset; + uint32_t virtualParticleIndicesLength; +}; + +struct ParametersStruct +{ + + float actorScale; + U8_DynamicArray1D_Type convexCookedData; + POINTER_DynamicArray1D_Type convexMeshPointers; + CookedPhysicalSubmesh_DynamicArray1D_Type cookedPhysicalSubmeshes; + U8_DynamicArray1D_Type deformableCookedData; + uint32_t cookedDataVersion; + F32_DynamicArray1D_Type deformableInvParticleWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + VEC3_DynamicArray1D_Type virtualParticleWeights; + +}; + +static const uint32_t checksum[] = { 0x936b7868, 0xbc6f31e7, 0xea489107, 0xb65fdbe5, }; + +} // namespace ClothingCookedParam_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedParam_0p2 : public NvParameterized::NvParameters, public ClothingCookedParam_0p2NS::ParametersStruct +{ +public: + ClothingCookedParam_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedParam_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedParam"); + } + + 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(ClothingCookedParam_0p2NS::checksum); + return ClothingCookedParam_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedParam_0p2NS::ParametersStruct& parameters(void) const + { + ClothingCookedParam_0p2* tmpThis = const_cast<ClothingCookedParam_0p2*>(this); + return *(static_cast<ClothingCookedParam_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedParam_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedParam_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 ClothingCookedParam_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedParam_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedParam_0p2), ClothingCookedParam_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedParam_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedParam_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedParam_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedParam_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedParam_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedParam_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 (ClothingCookedParam_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedParam_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedParam_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedParam_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedParam_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/clothing_legacy/include/autogen/ClothingCookedParam_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p3.h new file mode 100644 index 00000000..c2bf7e45 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedParam_0p3.h @@ -0,0 +1,297 @@ +// 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_ClothingCookedParam_0p3_h +#define HEADER_ClothingCookedParam_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 ClothingCookedParam_0p3NS +{ + +struct CookedPhysicalMesh_Type; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct POINTER_DynamicArray1D_Type +{ + void** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalMesh_DynamicArray1D_Type +{ + CookedPhysicalMesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct CookedPhysicalMesh_Type +{ + uint32_t physicalMeshId; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; + void* deformableMeshPointer; + uint32_t deformableInvParticleWeightsOffset; + uint32_t virtualParticleIndicesOffset; + uint32_t virtualParticleIndicesLength; +}; + +struct ParametersStruct +{ + + float actorScale; + U8_DynamicArray1D_Type convexCookedData; + POINTER_DynamicArray1D_Type convexMeshPointers; + CookedPhysicalMesh_DynamicArray1D_Type cookedPhysicalMeshes; + U8_DynamicArray1D_Type deformableCookedData; + uint32_t cookedDataVersion; + F32_DynamicArray1D_Type deformableInvParticleWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + VEC3_DynamicArray1D_Type virtualParticleWeights; + +}; + +static const uint32_t checksum[] = { 0x140bacb3, 0x5ea948eb, 0x14dd612e, 0x6ad11b93, }; + +} // namespace ClothingCookedParam_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedParam_0p3 : public NvParameterized::NvParameters, public ClothingCookedParam_0p3NS::ParametersStruct +{ +public: + ClothingCookedParam_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedParam_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedParam"); + } + + 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(ClothingCookedParam_0p3NS::checksum); + return ClothingCookedParam_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedParam_0p3NS::ParametersStruct& parameters(void) const + { + ClothingCookedParam_0p3* tmpThis = const_cast<ClothingCookedParam_0p3*>(this); + return *(static_cast<ClothingCookedParam_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedParam_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedParam_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 ClothingCookedParam_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedParam_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedParam_0p3), ClothingCookedParam_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedParam_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedParam_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedParam_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedParam_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedParam_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedParam_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedParam_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 (ClothingCookedParam_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedParam_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedParam_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedParam_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedParam_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/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p0.h new file mode 100644 index 00000000..80749821 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p0.h @@ -0,0 +1,295 @@ +// 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_ClothingCookedPhysX3Param_0p0_h +#define HEADER_ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p0NS +{ + +struct PhaseDesc_Type; +struct SetDesc_Type; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_DynamicArray1D_Type +{ + SetDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhaseDesc_DynamicArray1D_Type +{ + PhaseDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_Type +{ + uint32_t fiberEnd; + uint32_t longestFiber; + uint32_t shortestFiber; + uint32_t numEdges; + float avgEdgeLength; + uint32_t avgFiberLength; +}; +struct PhaseDesc_Type +{ + uint32_t phaseType; + uint32_t setIndex; + uint32_t restValueOffset; +}; + +struct ParametersStruct +{ + + uint32_t physicalMeshId; + uint32_t physicalSubMeshId; + uint32_t numVertices; + F32_DynamicArray1D_Type deformableRestLengths; + U32_DynamicArray1D_Type deformableIndices; + U32_DynamicArray1D_Type deformableFibers; + SetDesc_DynamicArray1D_Type deformableSets; + PhaseDesc_DynamicArray1D_Type deformablePhaseDescs; + U32_DynamicArray1D_Type tetherAnchors; + F32_DynamicArray1D_Type tetherLengths; + F32_DynamicArray1D_Type deformableInvVertexWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + F32_DynamicArray1D_Type virtualParticleWeights; + uint32_t cookedDataVersion; + void* fabricCPU; + void* fabricGPU; + NvParameterized::Interface* nextCookedData; + +}; + +static const uint32_t checksum[] = { 0x22beeaa3, 0xe15f304d, 0xe1ac2daf, 0x3f6ec0e9, }; + +} // namespace ClothingCookedPhysX3Param_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedPhysX3Param_0p0 : public NvParameterized::NvParameters, public ClothingCookedPhysX3Param_0p0NS::ParametersStruct +{ +public: + ClothingCookedPhysX3Param_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedPhysX3Param_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedPhysX3Param"); + } + + 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(ClothingCookedPhysX3Param_0p0NS::checksum); + return ClothingCookedPhysX3Param_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedPhysX3Param_0p0NS::ParametersStruct& parameters(void) const + { + ClothingCookedPhysX3Param_0p0* tmpThis = const_cast<ClothingCookedPhysX3Param_0p0*>(this); + return *(static_cast<ClothingCookedPhysX3Param_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedPhysX3Param_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedPhysX3Param_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedPhysX3Param_0p0), ClothingCookedPhysX3Param_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedPhysX3Param_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedPhysX3Param_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedPhysX3Param_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedPhysX3Param_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedPhysX3Param_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedPhysX3Param_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 (ClothingCookedPhysX3Param_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedPhysX3Param_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedPhysX3Param_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedPhysX3Param_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedPhysX3Param_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/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p1.h new file mode 100644 index 00000000..73cd6313 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p1.h @@ -0,0 +1,296 @@ +// 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_ClothingCookedPhysX3Param_0p1_h +#define HEADER_ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p1NS +{ + +struct PhaseDesc_Type; +struct SetDesc_Type; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_DynamicArray1D_Type +{ + SetDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhaseDesc_DynamicArray1D_Type +{ + PhaseDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_Type +{ + uint32_t fiberEnd; + uint32_t longestFiber; + uint32_t shortestFiber; + uint32_t numEdges; + float avgEdgeLength; + uint32_t avgFiberLength; +}; +struct PhaseDesc_Type +{ + uint32_t phaseType; + uint32_t setIndex; + uint32_t restValueOffset; +}; + +struct ParametersStruct +{ + + uint32_t physicalMeshId; + uint32_t physicalSubMeshId; + uint32_t numVertices; + F32_DynamicArray1D_Type deformableRestLengths; + U32_DynamicArray1D_Type deformableIndices; + U32_DynamicArray1D_Type selfCollisionIndices; + U32_DynamicArray1D_Type deformableFibers; + SetDesc_DynamicArray1D_Type deformableSets; + PhaseDesc_DynamicArray1D_Type deformablePhaseDescs; + U32_DynamicArray1D_Type tetherAnchors; + F32_DynamicArray1D_Type tetherLengths; + F32_DynamicArray1D_Type deformableInvVertexWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + F32_DynamicArray1D_Type virtualParticleWeights; + uint32_t cookedDataVersion; + void* fabricCPU; + void* fabricGPU; + NvParameterized::Interface* nextCookedData; + +}; + +static const uint32_t checksum[] = { 0xd2633720, 0xc6102ecc, 0xc50570bc, 0x3e706734, }; + +} // namespace ClothingCookedPhysX3Param_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedPhysX3Param_0p1 : public NvParameterized::NvParameters, public ClothingCookedPhysX3Param_0p1NS::ParametersStruct +{ +public: + ClothingCookedPhysX3Param_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedPhysX3Param_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedPhysX3Param"); + } + + 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(ClothingCookedPhysX3Param_0p1NS::checksum); + return ClothingCookedPhysX3Param_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedPhysX3Param_0p1NS::ParametersStruct& parameters(void) const + { + ClothingCookedPhysX3Param_0p1* tmpThis = const_cast<ClothingCookedPhysX3Param_0p1*>(this); + return *(static_cast<ClothingCookedPhysX3Param_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedPhysX3Param_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedPhysX3Param_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedPhysX3Param_0p1), ClothingCookedPhysX3Param_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedPhysX3Param_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedPhysX3Param_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedPhysX3Param_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedPhysX3Param_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedPhysX3Param_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedPhysX3Param_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 (ClothingCookedPhysX3Param_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedPhysX3Param_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedPhysX3Param_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedPhysX3Param_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedPhysX3Param_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/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p2.h new file mode 100644 index 00000000..4ce3a1a9 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p2.h @@ -0,0 +1,295 @@ +// 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_ClothingCookedPhysX3Param_0p2_h +#define HEADER_ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p2NS +{ + +struct PhaseDesc_Type; +struct SetDesc_Type; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_DynamicArray1D_Type +{ + SetDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhaseDesc_DynamicArray1D_Type +{ + PhaseDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_Type +{ + uint32_t fiberEnd; + uint32_t longestFiber; + uint32_t shortestFiber; + uint32_t numEdges; + float avgEdgeLength; + uint32_t avgFiberLength; +}; +struct PhaseDesc_Type +{ + uint32_t phaseType; + uint32_t setIndex; + uint32_t restValueOffset; +}; + +struct ParametersStruct +{ + + uint32_t physicalMeshId; + uint32_t physicalSubMeshId; + uint32_t numVertices; + F32_DynamicArray1D_Type deformableRestLengths; + U32_DynamicArray1D_Type deformableIndices; + U32_DynamicArray1D_Type selfCollisionIndices; + SetDesc_DynamicArray1D_Type deformableSets; + PhaseDesc_DynamicArray1D_Type deformablePhaseDescs; + U32_DynamicArray1D_Type tetherAnchors; + F32_DynamicArray1D_Type tetherLengths; + F32_DynamicArray1D_Type deformableInvVertexWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + F32_DynamicArray1D_Type virtualParticleWeights; + uint32_t cookedDataVersion; + void* fabricCPU; + void* fabricGPU; + NvParameterized::Interface* nextCookedData; + +}; + +static const uint32_t checksum[] = { 0x2ec59008, 0x1d0cdab9, 0x4748f516, 0x9d9eca53, }; + +} // namespace ClothingCookedPhysX3Param_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedPhysX3Param_0p2 : public NvParameterized::NvParameters, public ClothingCookedPhysX3Param_0p2NS::ParametersStruct +{ +public: + ClothingCookedPhysX3Param_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedPhysX3Param_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedPhysX3Param"); + } + + 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(ClothingCookedPhysX3Param_0p2NS::checksum); + return ClothingCookedPhysX3Param_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedPhysX3Param_0p2NS::ParametersStruct& parameters(void) const + { + ClothingCookedPhysX3Param_0p2* tmpThis = const_cast<ClothingCookedPhysX3Param_0p2*>(this); + return *(static_cast<ClothingCookedPhysX3Param_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedPhysX3Param_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedPhysX3Param_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedPhysX3Param_0p2), ClothingCookedPhysX3Param_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedPhysX3Param_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedPhysX3Param_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedPhysX3Param_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedPhysX3Param_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedPhysX3Param_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedPhysX3Param_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 (ClothingCookedPhysX3Param_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedPhysX3Param_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedPhysX3Param_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedPhysX3Param_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedPhysX3Param_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/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p3.h new file mode 100644 index 00000000..6a3041a6 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p3.h @@ -0,0 +1,297 @@ +// 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_ClothingCookedPhysX3Param_0p3_h +#define HEADER_ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p3NS +{ + +struct PhaseDesc_Type; +struct SetDesc_Type; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_DynamicArray1D_Type +{ + SetDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhaseDesc_DynamicArray1D_Type +{ + PhaseDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_Type +{ + uint32_t fiberEnd; + uint32_t longestFiber; + uint32_t shortestFiber; + uint32_t numEdges; + float avgEdgeLength; + uint32_t avgFiberLength; +}; +struct PhaseDesc_Type +{ + uint32_t phaseType; + uint32_t setIndex; + uint32_t restValueOffset; +}; + +struct ParametersStruct +{ + + uint32_t physicalMeshId; + uint32_t physicalSubMeshId; + uint32_t numVertices; + F32_DynamicArray1D_Type deformableRestLengths; + U32_DynamicArray1D_Type deformableIndices; + U32_DynamicArray1D_Type selfCollisionIndices; + U32_DynamicArray1D_Type selfCollisionNormalIndices; + U32_DynamicArray1D_Type selfCollisionNormalSetSizes; + SetDesc_DynamicArray1D_Type deformableSets; + PhaseDesc_DynamicArray1D_Type deformablePhaseDescs; + U32_DynamicArray1D_Type tetherAnchors; + F32_DynamicArray1D_Type tetherLengths; + F32_DynamicArray1D_Type deformableInvVertexWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + F32_DynamicArray1D_Type virtualParticleWeights; + uint32_t cookedDataVersion; + void* fabricCPU; + void* fabricGPU; + NvParameterized::Interface* nextCookedData; + +}; + +static const uint32_t checksum[] = { 0x67ce86d2, 0xe7220a2c, 0x22a15df5, 0x5e2afad5, }; + +} // namespace ClothingCookedPhysX3Param_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedPhysX3Param_0p3 : public NvParameterized::NvParameters, public ClothingCookedPhysX3Param_0p3NS::ParametersStruct +{ +public: + ClothingCookedPhysX3Param_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedPhysX3Param_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedPhysX3Param"); + } + + 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(ClothingCookedPhysX3Param_0p3NS::checksum); + return ClothingCookedPhysX3Param_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedPhysX3Param_0p3NS::ParametersStruct& parameters(void) const + { + ClothingCookedPhysX3Param_0p3* tmpThis = const_cast<ClothingCookedPhysX3Param_0p3*>(this); + return *(static_cast<ClothingCookedPhysX3Param_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedPhysX3Param_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedPhysX3Param_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedPhysX3Param_0p3), ClothingCookedPhysX3Param_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedPhysX3Param_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedPhysX3Param_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedPhysX3Param_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedPhysX3Param_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedPhysX3Param_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedPhysX3Param_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 (ClothingCookedPhysX3Param_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedPhysX3Param_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedPhysX3Param_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedPhysX3Param_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedPhysX3Param_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/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p4.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p4.h new file mode 100644 index 00000000..3893faab --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p4.h @@ -0,0 +1,311 @@ +// 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_ClothingCookedPhysX3Param_0p4_h +#define HEADER_ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p4NS +{ + +struct PhaseDesc_Type; +struct SetDesc_Type; +struct FabricGPU_Type; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_DynamicArray1D_Type +{ + SetDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhaseDesc_DynamicArray1D_Type +{ + PhaseDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct FabricGPU_DynamicArray1D_Type +{ + FabricGPU_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_Type +{ + uint32_t fiberEnd; + uint32_t longestFiber; + uint32_t shortestFiber; + uint32_t numEdges; + float avgEdgeLength; + uint32_t avgFiberLength; +}; +struct PhaseDesc_Type +{ + uint32_t phaseType; + uint32_t setIndex; + uint32_t restValueOffset; +}; +struct FabricGPU_Type +{ + void* fabricGPU; + void* factory; +}; + +struct ParametersStruct +{ + + uint32_t physicalMeshId; + uint32_t physicalSubMeshId; + uint32_t numVertices; + F32_DynamicArray1D_Type deformableRestLengths; + U32_DynamicArray1D_Type deformableIndices; + U32_DynamicArray1D_Type selfCollisionIndices; + U32_DynamicArray1D_Type selfCollisionNormalIndices; + U32_DynamicArray1D_Type selfCollisionNormalSetSizes; + SetDesc_DynamicArray1D_Type deformableSets; + PhaseDesc_DynamicArray1D_Type deformablePhaseDescs; + U32_DynamicArray1D_Type tetherAnchors; + F32_DynamicArray1D_Type tetherLengths; + F32_DynamicArray1D_Type deformableInvVertexWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + F32_DynamicArray1D_Type virtualParticleWeights; + uint32_t cookedDataVersion; + void* fabricCPU; + FabricGPU_DynamicArray1D_Type fabricGPU; + NvParameterized::Interface* nextCookedData; + +}; + +static const uint32_t checksum[] = { 0x79f27469, 0x6d51114c, 0x5b7f675d, 0x042718ac, }; + +} // namespace ClothingCookedPhysX3Param_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedPhysX3Param_0p4 : public NvParameterized::NvParameters, public ClothingCookedPhysX3Param_0p4NS::ParametersStruct +{ +public: + ClothingCookedPhysX3Param_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedPhysX3Param_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedPhysX3Param"); + } + + 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(ClothingCookedPhysX3Param_0p4NS::checksum); + return ClothingCookedPhysX3Param_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedPhysX3Param_0p4NS::ParametersStruct& parameters(void) const + { + ClothingCookedPhysX3Param_0p4* tmpThis = const_cast<ClothingCookedPhysX3Param_0p4*>(this); + return *(static_cast<ClothingCookedPhysX3Param_0p4NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedPhysX3Param_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedPhysX3Param_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 ClothingCookedPhysX3Param_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedPhysX3Param_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedPhysX3Param_0p4), ClothingCookedPhysX3Param_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedPhysX3Param_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedPhysX3Param_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedPhysX3Param_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedPhysX3Param_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedPhysX3Param_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedPhysX3Param_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 (ClothingCookedPhysX3Param_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedPhysX3Param_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedPhysX3Param_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedPhysX3Param_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedPhysX3Param_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/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p5.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p5.h new file mode 100644 index 00000000..4622f218 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingCookedPhysX3Param_0p5.h @@ -0,0 +1,310 @@ +// 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_ClothingCookedPhysX3Param_0p5_h +#define HEADER_ClothingCookedPhysX3Param_0p5_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 ClothingCookedPhysX3Param_0p5NS +{ + +struct PhaseDesc_Type; +struct SetDesc_Type; +struct FabricGPU_Type; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_DynamicArray1D_Type +{ + SetDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhaseDesc_DynamicArray1D_Type +{ + PhaseDesc_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct FabricGPU_DynamicArray1D_Type +{ + FabricGPU_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SetDesc_Type +{ + uint32_t fiberEnd; + uint32_t longestFiber; + uint32_t shortestFiber; + uint32_t numEdges; + float avgEdgeLength; + uint32_t avgFiberLength; +}; +struct PhaseDesc_Type +{ + uint32_t phaseType; + uint32_t setIndex; + uint32_t restValueOffset; +}; +struct FabricGPU_Type +{ + void* fabricGPU; + void* factory; +}; + +struct ParametersStruct +{ + + uint32_t physicalMeshId; + uint32_t numVertices; + F32_DynamicArray1D_Type deformableRestLengths; + U32_DynamicArray1D_Type deformableIndices; + U32_DynamicArray1D_Type selfCollisionIndices; + U32_DynamicArray1D_Type selfCollisionNormalIndices; + U32_DynamicArray1D_Type selfCollisionNormalSetSizes; + SetDesc_DynamicArray1D_Type deformableSets; + PhaseDesc_DynamicArray1D_Type deformablePhaseDescs; + U32_DynamicArray1D_Type tetherAnchors; + F32_DynamicArray1D_Type tetherLengths; + F32_DynamicArray1D_Type deformableInvVertexWeights; + U32_DynamicArray1D_Type virtualParticleIndices; + F32_DynamicArray1D_Type virtualParticleWeights; + uint32_t cookedDataVersion; + void* fabricCPU; + FabricGPU_DynamicArray1D_Type fabricGPU; + NvParameterized::Interface* nextCookedData; + +}; + +static const uint32_t checksum[] = { 0x05292657, 0xc602622e, 0xa6989638, 0xf1f9e34f, }; + +} // namespace ClothingCookedPhysX3Param_0p5NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingCookedPhysX3Param_0p5 : public NvParameterized::NvParameters, public ClothingCookedPhysX3Param_0p5NS::ParametersStruct +{ +public: + ClothingCookedPhysX3Param_0p5(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingCookedPhysX3Param_0p5(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingCookedPhysX3Param"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)5; + + 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(ClothingCookedPhysX3Param_0p5NS::checksum); + return ClothingCookedPhysX3Param_0p5NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingCookedPhysX3Param_0p5NS::ParametersStruct& parameters(void) const + { + ClothingCookedPhysX3Param_0p5* tmpThis = const_cast<ClothingCookedPhysX3Param_0p5*>(this); + return *(static_cast<ClothingCookedPhysX3Param_0p5NS::ParametersStruct*>(tmpThis)); + } + + ClothingCookedPhysX3Param_0p5NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingCookedPhysX3Param_0p5NS::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 ClothingCookedPhysX3Param_0p5Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingCookedPhysX3Param_0p5::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingCookedPhysX3Param_0p5), ClothingCookedPhysX3Param_0p5::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingCookedPhysX3Param_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p5"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingCookedPhysX3Param_0p5)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingCookedPhysX3Param_0p5)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingCookedPhysX3Param_0p5::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingCookedPhysX3Param_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingCookedPhysX3Param_0p5"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingCookedPhysX3Param_0p5 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 (ClothingCookedPhysX3Param_0p5*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingCookedPhysX3Param_0p5::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingCookedPhysX3Param_0p5::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingCookedPhysX3Param_0p5::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingCookedPhysX3Param_0p5::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/clothing_legacy/include/autogen/ClothingDebugRenderParams_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingDebugRenderParams_0p0.h new file mode 100644 index 00000000..64edfdee --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingDebugRenderParams_0p0.h @@ -0,0 +1,270 @@ +// 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_ClothingDebugRenderParams_0p0_h +#define HEADER_ClothingDebugRenderParams_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 ClothingDebugRenderParams_0p0NS +{ + + + +struct ParametersStruct +{ + + bool Actors; + float SkinnedPositions; + bool Backstop; + float BackstopPrecise; + bool MaxDistance; + bool MaxDistanceInwards; + bool SkinMapAll; + bool SkinMapBad; + bool SkinMapActual; + bool SkinMapInvalidBary; + float PhysicsMeshWire; + float PhysicsMeshSolid; + float PhysicsMeshNormals; + bool Skeleton; + float BoneFrames; + float BoneNames; + float Velocities; + float Wind; + bool GraphicalVertexBones; + bool PhysicalVertexBones; + bool CollisionShapes; + bool CollisionShapesWire; + bool LengthFibers; + bool CrossSectionFibers; + bool BendingFibers; + bool ShearingFibers; + bool ZerostretchFibers; + bool TethersActive; + bool TethersInactive; + bool VirtualCollision; + bool FiberRange; + bool ShowInLocalSpace; + bool GlobalPose; + bool RecomputeSubmeshes; + bool RecomputeVertices; + bool PhysicsMeshIndices; + bool MassScale; + bool SelfCollision; + bool SelfCollisionWire; + float SelfCollisionAttenuation; + bool SolverMode; + +}; + +static const uint32_t checksum[] = { 0x0814367c, 0x9b811470, 0x122fd821, 0xd5717b8e, }; + +} // namespace ClothingDebugRenderParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingDebugRenderParams_0p0 : public NvParameterized::NvParameters, public ClothingDebugRenderParams_0p0NS::ParametersStruct +{ +public: + ClothingDebugRenderParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingDebugRenderParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingDebugRenderParams"); + } + + 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(ClothingDebugRenderParams_0p0NS::checksum); + return ClothingDebugRenderParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingDebugRenderParams_0p0NS::ParametersStruct& parameters(void) const + { + ClothingDebugRenderParams_0p0* tmpThis = const_cast<ClothingDebugRenderParams_0p0*>(this); + return *(static_cast<ClothingDebugRenderParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingDebugRenderParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingDebugRenderParams_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 ClothingDebugRenderParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingDebugRenderParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingDebugRenderParams_0p0), ClothingDebugRenderParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingDebugRenderParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingDebugRenderParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingDebugRenderParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingDebugRenderParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingDebugRenderParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingDebugRenderParams_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 (ClothingDebugRenderParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingDebugRenderParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingDebugRenderParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingDebugRenderParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingDebugRenderParams_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/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p0.h new file mode 100644 index 00000000..a0f67204 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p0.h @@ -0,0 +1,296 @@ +// 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_ClothingGraphicalLodParameters_0p0_h +#define HEADER_ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p0NS +{ + +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct TetraLink_DynamicArray1D_Type +{ + TetraLink_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + uint32_t lod; + uint32_t physicalMeshId; + NvParameterized::Interface* renderMeshAsset; + U32_DynamicArray1D_Type immediateClothMap; + SkinClothMapB_DynamicArray1D_Type skinClothMapB; + SkinClothMapC_DynamicArray1D_Type skinClothMapC; + float skinClothMapThickness; + float skinClothMapOffset; + TetraLink_DynamicArray1D_Type tetraMap; + +}; + +static const uint32_t checksum[] = { 0x1ce5a801, 0xaa61a1ef, 0x2d3592b8, 0xbca0ab8a, }; + +} // namespace ClothingGraphicalLodParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingGraphicalLodParameters_0p0 : public NvParameterized::NvParameters, public ClothingGraphicalLodParameters_0p0NS::ParametersStruct +{ +public: + ClothingGraphicalLodParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingGraphicalLodParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingGraphicalLodParameters"); + } + + 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(ClothingGraphicalLodParameters_0p0NS::checksum); + return ClothingGraphicalLodParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingGraphicalLodParameters_0p0NS::ParametersStruct& parameters(void) const + { + ClothingGraphicalLodParameters_0p0* tmpThis = const_cast<ClothingGraphicalLodParameters_0p0*>(this); + return *(static_cast<ClothingGraphicalLodParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingGraphicalLodParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingGraphicalLodParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingGraphicalLodParameters_0p0), ClothingGraphicalLodParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingGraphicalLodParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingGraphicalLodParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingGraphicalLodParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingGraphicalLodParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingGraphicalLodParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingGraphicalLodParameters_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 (ClothingGraphicalLodParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingGraphicalLodParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingGraphicalLodParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingGraphicalLodParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingGraphicalLodParameters_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/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p1.h new file mode 100644 index 00000000..cd4cf4bc --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p1.h @@ -0,0 +1,297 @@ +// 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_ClothingGraphicalLodParameters_0p1_h +#define HEADER_ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p1NS +{ + +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct TetraLink_DynamicArray1D_Type +{ + TetraLink_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + uint32_t lod; + uint32_t physicalMeshId; + NvParameterized::Interface* renderMeshAsset; + void* renderMeshAssetPointer; + U32_DynamicArray1D_Type immediateClothMap; + SkinClothMapB_DynamicArray1D_Type skinClothMapB; + SkinClothMapC_DynamicArray1D_Type skinClothMapC; + float skinClothMapThickness; + float skinClothMapOffset; + TetraLink_DynamicArray1D_Type tetraMap; + +}; + +static const uint32_t checksum[] = { 0x0858a22f, 0xbd945797, 0x894e7da4, 0x2a89e0be, }; + +} // namespace ClothingGraphicalLodParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingGraphicalLodParameters_0p1 : public NvParameterized::NvParameters, public ClothingGraphicalLodParameters_0p1NS::ParametersStruct +{ +public: + ClothingGraphicalLodParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingGraphicalLodParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingGraphicalLodParameters"); + } + + 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(ClothingGraphicalLodParameters_0p1NS::checksum); + return ClothingGraphicalLodParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingGraphicalLodParameters_0p1NS::ParametersStruct& parameters(void) const + { + ClothingGraphicalLodParameters_0p1* tmpThis = const_cast<ClothingGraphicalLodParameters_0p1*>(this); + return *(static_cast<ClothingGraphicalLodParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingGraphicalLodParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingGraphicalLodParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingGraphicalLodParameters_0p1), ClothingGraphicalLodParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingGraphicalLodParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingGraphicalLodParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingGraphicalLodParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingGraphicalLodParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingGraphicalLodParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingGraphicalLodParameters_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 (ClothingGraphicalLodParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingGraphicalLodParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingGraphicalLodParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingGraphicalLodParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingGraphicalLodParameters_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/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p2.h new file mode 100644 index 00000000..f0de3fa2 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p2.h @@ -0,0 +1,306 @@ +// 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_ClothingGraphicalLodParameters_0p2_h +#define HEADER_ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p2NS +{ + +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct TetraLink_DynamicArray1D_Type +{ + TetraLink_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + STRING_DynamicArray1D_Type platforms; + uint32_t lod; + uint32_t physicalMeshId; + NvParameterized::Interface* renderMeshAsset; + void* renderMeshAssetPointer; + U32_DynamicArray1D_Type immediateClothMap; + SkinClothMapB_DynamicArray1D_Type skinClothMapB; + SkinClothMapC_DynamicArray1D_Type skinClothMapC; + float skinClothMapThickness; + float skinClothMapOffset; + TetraLink_DynamicArray1D_Type tetraMap; + +}; + +static const uint32_t checksum[] = { 0x54c73376, 0x1977a7e7, 0x92780a14, 0x8c4d2b89, }; + +} // namespace ClothingGraphicalLodParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingGraphicalLodParameters_0p2 : public NvParameterized::NvParameters, public ClothingGraphicalLodParameters_0p2NS::ParametersStruct +{ +public: + ClothingGraphicalLodParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingGraphicalLodParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingGraphicalLodParameters"); + } + + 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(ClothingGraphicalLodParameters_0p2NS::checksum); + return ClothingGraphicalLodParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingGraphicalLodParameters_0p2NS::ParametersStruct& parameters(void) const + { + ClothingGraphicalLodParameters_0p2* tmpThis = const_cast<ClothingGraphicalLodParameters_0p2*>(this); + return *(static_cast<ClothingGraphicalLodParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingGraphicalLodParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingGraphicalLodParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingGraphicalLodParameters_0p2), ClothingGraphicalLodParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingGraphicalLodParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingGraphicalLodParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingGraphicalLodParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingGraphicalLodParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingGraphicalLodParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingGraphicalLodParameters_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 (ClothingGraphicalLodParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingGraphicalLodParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingGraphicalLodParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingGraphicalLodParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingGraphicalLodParameters_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/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p3.h new file mode 100644 index 00000000..162bd416 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p3.h @@ -0,0 +1,325 @@ +// 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_ClothingGraphicalLodParameters_0p3_h +#define HEADER_ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p3NS +{ + +struct PhysicsSubmeshPartitioning_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct TetraLink_DynamicArray1D_Type +{ + TetraLink_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicsSubmeshPartitioning_DynamicArray1D_Type +{ + PhysicsSubmeshPartitioning_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicsSubmeshPartitioning_Type +{ + uint32_t graphicalSubmesh; + uint32_t physicalSubmesh; + uint32_t numSimulatedVertices; + uint32_t numSimulatedVerticesAdditional; + uint32_t numSimulatedIndices; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + STRING_DynamicArray1D_Type platforms; + uint32_t lod; + uint32_t physicalMeshId; + NvParameterized::Interface* renderMeshAsset; + void* renderMeshAssetPointer; + U32_DynamicArray1D_Type immediateClothMap; + SkinClothMapB_DynamicArray1D_Type skinClothMapB; + SkinClothMapC_DynamicArray1D_Type skinClothMapC; + float skinClothMapThickness; + float skinClothMapOffset; + TetraLink_DynamicArray1D_Type tetraMap; + uint32_t renderMeshAssetSorting; + PhysicsSubmeshPartitioning_DynamicArray1D_Type physicsSubmeshPartitioning; + +}; + +static const uint32_t checksum[] = { 0x41f36544, 0x55c9d3e4, 0xf4daab87, 0xbb7a1957, }; + +} // namespace ClothingGraphicalLodParameters_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingGraphicalLodParameters_0p3 : public NvParameterized::NvParameters, public ClothingGraphicalLodParameters_0p3NS::ParametersStruct +{ +public: + ClothingGraphicalLodParameters_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingGraphicalLodParameters_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingGraphicalLodParameters"); + } + + 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(ClothingGraphicalLodParameters_0p3NS::checksum); + return ClothingGraphicalLodParameters_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingGraphicalLodParameters_0p3NS::ParametersStruct& parameters(void) const + { + ClothingGraphicalLodParameters_0p3* tmpThis = const_cast<ClothingGraphicalLodParameters_0p3*>(this); + return *(static_cast<ClothingGraphicalLodParameters_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingGraphicalLodParameters_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingGraphicalLodParameters_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingGraphicalLodParameters_0p3), ClothingGraphicalLodParameters_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingGraphicalLodParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingGraphicalLodParameters_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingGraphicalLodParameters_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingGraphicalLodParameters_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingGraphicalLodParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingGraphicalLodParameters_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 (ClothingGraphicalLodParameters_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingGraphicalLodParameters_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingGraphicalLodParameters_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingGraphicalLodParameters_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingGraphicalLodParameters_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/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p4.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p4.h new file mode 100644 index 00000000..5b9d0aac --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p4.h @@ -0,0 +1,336 @@ +// 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_ClothingGraphicalLodParameters_0p4_h +#define HEADER_ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p4NS +{ + +struct PhysicsSubmeshPartitioning_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct SkinClothMapD_Type; +struct TetraLink_Type; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapD_DynamicArray1D_Type +{ + SkinClothMapD_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct TetraLink_DynamicArray1D_Type +{ + TetraLink_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicsSubmeshPartitioning_DynamicArray1D_Type +{ + PhysicsSubmeshPartitioning_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicsSubmeshPartitioning_Type +{ + uint32_t graphicalSubmesh; + uint32_t physicalSubmesh; + uint32_t numSimulatedVertices; + uint32_t numSimulatedVerticesAdditional; + uint32_t numSimulatedIndices; +}; +struct SkinClothMapD_Type +{ + physx::PxVec3 vertexBary; + uint32_t vertexIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndex1; + physx::PxVec3 tangentBary; + uint32_t vertexIndex2; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + STRING_DynamicArray1D_Type platforms; + uint32_t lod; + uint32_t physicalMeshId; + NvParameterized::Interface* renderMeshAsset; + void* renderMeshAssetPointer; + U32_DynamicArray1D_Type immediateClothMap; + SkinClothMapB_DynamicArray1D_Type skinClothMapB; + SkinClothMapD_DynamicArray1D_Type skinClothMap; + float skinClothMapThickness; + float skinClothMapOffset; + TetraLink_DynamicArray1D_Type tetraMap; + uint32_t renderMeshAssetSorting; + PhysicsSubmeshPartitioning_DynamicArray1D_Type physicsSubmeshPartitioning; + +}; + +static const uint32_t checksum[] = { 0x8cf41087, 0x1ec73f2e, 0x602ad91d, 0xdbec5061, }; + +} // namespace ClothingGraphicalLodParameters_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingGraphicalLodParameters_0p4 : public NvParameterized::NvParameters, public ClothingGraphicalLodParameters_0p4NS::ParametersStruct +{ +public: + ClothingGraphicalLodParameters_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingGraphicalLodParameters_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingGraphicalLodParameters"); + } + + 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(ClothingGraphicalLodParameters_0p4NS::checksum); + return ClothingGraphicalLodParameters_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingGraphicalLodParameters_0p4NS::ParametersStruct& parameters(void) const + { + ClothingGraphicalLodParameters_0p4* tmpThis = const_cast<ClothingGraphicalLodParameters_0p4*>(this); + return *(static_cast<ClothingGraphicalLodParameters_0p4NS::ParametersStruct*>(tmpThis)); + } + + ClothingGraphicalLodParameters_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingGraphicalLodParameters_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 ClothingGraphicalLodParameters_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingGraphicalLodParameters_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingGraphicalLodParameters_0p4), ClothingGraphicalLodParameters_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingGraphicalLodParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingGraphicalLodParameters_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingGraphicalLodParameters_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingGraphicalLodParameters_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingGraphicalLodParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingGraphicalLodParameters_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 (ClothingGraphicalLodParameters_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingGraphicalLodParameters_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingGraphicalLodParameters_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingGraphicalLodParameters_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingGraphicalLodParameters_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/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p5.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p5.h new file mode 100644 index 00000000..e5c0fd2b --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingGraphicalLodParameters_0p5.h @@ -0,0 +1,335 @@ +// 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_ClothingGraphicalLodParameters_0p5_h +#define HEADER_ClothingGraphicalLodParameters_0p5_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 ClothingGraphicalLodParameters_0p5NS +{ + +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct SkinClothMapD_Type; +struct TetraLink_Type; +struct PhysicsMeshPartitioning_Type; + +struct STRING_DynamicArray1D_Type +{ + NvParameterized::DummyStringStruct* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapD_DynamicArray1D_Type +{ + SkinClothMapD_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct TetraLink_DynamicArray1D_Type +{ + TetraLink_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicsMeshPartitioning_DynamicArray1D_Type +{ + PhysicsMeshPartitioning_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicsMeshPartitioning_Type +{ + uint32_t graphicalSubmesh; + uint32_t numSimulatedVertices; + uint32_t numSimulatedVerticesAdditional; + uint32_t numSimulatedIndices; +}; +struct SkinClothMapD_Type +{ + physx::PxVec3 vertexBary; + uint32_t vertexIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndex1; + physx::PxVec3 tangentBary; + uint32_t vertexIndex2; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + STRING_DynamicArray1D_Type platforms; + uint32_t lod; + uint32_t physicalMeshId; + NvParameterized::Interface* renderMeshAsset; + void* renderMeshAssetPointer; + U32_DynamicArray1D_Type immediateClothMap; + SkinClothMapB_DynamicArray1D_Type skinClothMapB; + SkinClothMapD_DynamicArray1D_Type skinClothMap; + float skinClothMapThickness; + float skinClothMapOffset; + TetraLink_DynamicArray1D_Type tetraMap; + uint32_t renderMeshAssetSorting; + PhysicsMeshPartitioning_DynamicArray1D_Type physicsMeshPartitioning; + +}; + +static const uint32_t checksum[] = { 0xb82a1fab, 0xfd43a015, 0x35b1be8a, 0x80ebc50f, }; + +} // namespace ClothingGraphicalLodParameters_0p5NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingGraphicalLodParameters_0p5 : public NvParameterized::NvParameters, public ClothingGraphicalLodParameters_0p5NS::ParametersStruct +{ +public: + ClothingGraphicalLodParameters_0p5(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingGraphicalLodParameters_0p5(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingGraphicalLodParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)5; + + 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(ClothingGraphicalLodParameters_0p5NS::checksum); + return ClothingGraphicalLodParameters_0p5NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingGraphicalLodParameters_0p5NS::ParametersStruct& parameters(void) const + { + ClothingGraphicalLodParameters_0p5* tmpThis = const_cast<ClothingGraphicalLodParameters_0p5*>(this); + return *(static_cast<ClothingGraphicalLodParameters_0p5NS::ParametersStruct*>(tmpThis)); + } + + ClothingGraphicalLodParameters_0p5NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingGraphicalLodParameters_0p5NS::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 ClothingGraphicalLodParameters_0p5Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingGraphicalLodParameters_0p5::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingGraphicalLodParameters_0p5), ClothingGraphicalLodParameters_0p5::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingGraphicalLodParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p5"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingGraphicalLodParameters_0p5)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingGraphicalLodParameters_0p5)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingGraphicalLodParameters_0p5::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingGraphicalLodParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingGraphicalLodParameters_0p5"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingGraphicalLodParameters_0p5 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 (ClothingGraphicalLodParameters_0p5*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingGraphicalLodParameters_0p5::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingGraphicalLodParameters_0p5::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingGraphicalLodParameters_0p5::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingGraphicalLodParameters_0p5::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p0.h new file mode 100644 index 00000000..f5f02b41 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p0.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_ClothingMaterialLibraryParameters_0p0_h +#define HEADER_ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p0NS +{ + +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float stretchingStiffness; + float bendingStiffness; + bool orthoBending; + float damping; + bool comDamping; + float friction; + uint32_t solverIterations; + float gravityScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x11752aa8, 0xb9fb8d72, 0xfd5bc424, 0x39a92b38, }; + +} // namespace ClothingMaterialLibraryParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p0 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p0NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + 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(ClothingMaterialLibraryParameters_0p0NS::checksum); + return ClothingMaterialLibraryParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p0NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p0* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p0*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p0), ClothingMaterialLibraryParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_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 (ClothingMaterialLibraryParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p1.h new file mode 100644 index 00000000..3aefdb0f --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p1.h @@ -0,0 +1,261 @@ +// 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_ClothingMaterialLibraryParameters_0p1_h +#define HEADER_ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p1NS +{ + +struct Compression_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct Compression_Type +{ + float limit; + float stiffness; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float stretchingStiffness; + float bendingStiffness; + bool orthoBending; + Compression_Type compression; + float damping; + bool comDamping; + float friction; + uint32_t solverIterations; + float gravityScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x6e6c2e8f, 0x92869606, 0xa8605f07, 0x6c4fcaa5, }; + +} // namespace ClothingMaterialLibraryParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p1 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p1NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + 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(ClothingMaterialLibraryParameters_0p1NS::checksum); + return ClothingMaterialLibraryParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p1NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p1* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p1*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p1), ClothingMaterialLibraryParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_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 (ClothingMaterialLibraryParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p10.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p10.h new file mode 100644 index 00000000..69d94fc2 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p10.h @@ -0,0 +1,274 @@ +// 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_ClothingMaterialLibraryParameters_0p10_h +#define HEADER_ClothingMaterialLibraryParameters_0p10_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 ClothingMaterialLibraryParameters_0p10NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + float tetherStiffness; + float tetherLimit; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float stiffnessFrequency; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x4bbf73c3, 0xbb7f05e0, 0xf659f61c, 0x827f3962, }; + +} // namespace ClothingMaterialLibraryParameters_0p10NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p10 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p10NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p10(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p10(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)10; + + 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(ClothingMaterialLibraryParameters_0p10NS::checksum); + return ClothingMaterialLibraryParameters_0p10NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p10NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p10* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p10*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p10NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p10NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p10NS::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 ClothingMaterialLibraryParameters_0p10Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p10::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p10), ClothingMaterialLibraryParameters_0p10::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p10"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p10)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p10)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p10::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p10"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p10 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 (ClothingMaterialLibraryParameters_0p10*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p10::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p10::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p10::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p10::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p11.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p11.h new file mode 100644 index 00000000..2d4b2faa --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p11.h @@ -0,0 +1,276 @@ +// 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_ClothingMaterialLibraryParameters_0p11_h +#define HEADER_ClothingMaterialLibraryParameters_0p11_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 ClothingMaterialLibraryParameters_0p11NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + float tetherStiffness; + float tetherLimit; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float stiffnessFrequency; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; + float selfcollisionThickness; + float selfcollisionStiffness; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x7845008c, 0xbe332d1d, 0x0729e87b, 0xe44ddf4b, }; + +} // namespace ClothingMaterialLibraryParameters_0p11NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p11 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p11NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p11(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p11(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)11; + + 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(ClothingMaterialLibraryParameters_0p11NS::checksum); + return ClothingMaterialLibraryParameters_0p11NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p11NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p11* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p11*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p11NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p11NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p11NS::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 ClothingMaterialLibraryParameters_0p11Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p11::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p11), ClothingMaterialLibraryParameters_0p11::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p11"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p11)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p11)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p11::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p11"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p11 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 (ClothingMaterialLibraryParameters_0p11*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p11::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p11::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p11::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p11::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p12.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p12.h new file mode 100644 index 00000000..f54caca2 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p12.h @@ -0,0 +1,277 @@ +// 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_ClothingMaterialLibraryParameters_0p12_h +#define HEADER_ClothingMaterialLibraryParameters_0p12_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 ClothingMaterialLibraryParameters_0p12NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float compressionRange; + float stretchRange; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + float tetherStiffness; + float tetherLimit; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float stiffnessFrequency; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; + float selfcollisionThickness; + float selfcollisionStiffness; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x75415773, 0xe8084f86, 0x506e53db, 0xd51f5113, }; + +} // namespace ClothingMaterialLibraryParameters_0p12NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p12 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p12NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p12(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p12(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)12; + + 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(ClothingMaterialLibraryParameters_0p12NS::checksum); + return ClothingMaterialLibraryParameters_0p12NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p12NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p12* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p12*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p12NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p12NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p12NS::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 ClothingMaterialLibraryParameters_0p12Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p12::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p12), ClothingMaterialLibraryParameters_0p12::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p12::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p12"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p12)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p12)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p12::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p12::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p12"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p12 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 (ClothingMaterialLibraryParameters_0p12*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p12::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p12::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p12::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p12::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p13.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p13.h new file mode 100644 index 00000000..b6ab0ba2 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p13.h @@ -0,0 +1,278 @@ +// 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_ClothingMaterialLibraryParameters_0p13_h +#define HEADER_ClothingMaterialLibraryParameters_0p13_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 ClothingMaterialLibraryParameters_0p13NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float compressionRange; + float stretchRange; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + float tetherStiffness; + float tetherLimit; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float stiffnessFrequency; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; + float selfcollisionThickness; + float selfcollisionSquashScale; + float selfcollisionStiffness; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x81ce711f, 0x95e15fb3, 0xfa092d04, 0xcd72e3c8, }; + +} // namespace ClothingMaterialLibraryParameters_0p13NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p13 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p13NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p13(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p13(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)13; + + 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(ClothingMaterialLibraryParameters_0p13NS::checksum); + return ClothingMaterialLibraryParameters_0p13NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p13NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p13* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p13*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p13NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p13NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p13NS::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 ClothingMaterialLibraryParameters_0p13Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p13::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p13), ClothingMaterialLibraryParameters_0p13::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p13::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p13"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p13)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p13)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p13::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p13::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p13"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p13 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 (ClothingMaterialLibraryParameters_0p13*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p13::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p13::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p13::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p13::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p14.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p14.h new file mode 100644 index 00000000..d2d5507e --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p14.h @@ -0,0 +1,277 @@ +// 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_ClothingMaterialLibraryParameters_0p14_h +#define HEADER_ClothingMaterialLibraryParameters_0p14_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 ClothingMaterialLibraryParameters_0p14NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float compressionRange; + float stretchRange; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float tetherStiffness; + float tetherLimit; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float stiffnessFrequency; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; + float selfcollisionThickness; + float selfcollisionSquashScale; + float selfcollisionStiffness; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0xf827ceb7, 0xd03d140a, 0x0c8ae038, 0x16333673, }; + +} // namespace ClothingMaterialLibraryParameters_0p14NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p14 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p14NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p14(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p14(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)14; + + 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(ClothingMaterialLibraryParameters_0p14NS::checksum); + return ClothingMaterialLibraryParameters_0p14NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p14NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p14* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p14*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p14NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p14NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p14NS::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 ClothingMaterialLibraryParameters_0p14Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p14::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p14), ClothingMaterialLibraryParameters_0p14::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p14::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p14"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p14)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p14)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p14::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p14::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p14"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p14 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 (ClothingMaterialLibraryParameters_0p14*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p14::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p14::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p14::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p14::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p2.h new file mode 100644 index 00000000..e9a11dfc --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p2.h @@ -0,0 +1,265 @@ +// 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_ClothingMaterialLibraryParameters_0p2_h +#define HEADER_ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p2NS +{ + +struct StretchingLimit_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StretchingLimit_Type +{ + float limit; + float stiffness; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float stretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StretchingLimit_Type stretchingLimit; + StretchingLimit_Type bendingLimit; + StretchingLimit_Type shearingLimit; + float damping; + bool comDamping; + float friction; + uint32_t solverIterations; + float gravityScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0xee3fb07e, 0xe06497a4, 0x2c764e15, 0xee57b907, }; + +} // namespace ClothingMaterialLibraryParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p2 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p2NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + 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(ClothingMaterialLibraryParameters_0p2NS::checksum); + return ClothingMaterialLibraryParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p2NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p2* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p2*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p2), ClothingMaterialLibraryParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_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 (ClothingMaterialLibraryParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p3.h new file mode 100644 index 00000000..272972fb --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p3.h @@ -0,0 +1,266 @@ +// 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_ClothingMaterialLibraryParameters_0p3_h +#define HEADER_ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p3NS +{ + +struct StretchingLimit_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StretchingLimit_Type +{ + float limit; + float stiffness; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float stretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StretchingLimit_Type stretchingLimit; + StretchingLimit_Type bendingLimit; + StretchingLimit_Type shearingLimit; + float damping; + bool comDamping; + float friction; + uint32_t solverIterations; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x126b8c7a, 0x5164ea25, 0xbc717294, 0x214e139f, }; + +} // namespace ClothingMaterialLibraryParameters_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p3 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p3NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + 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(ClothingMaterialLibraryParameters_0p3NS::checksum); + return ClothingMaterialLibraryParameters_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p3NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p3* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p3*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p3), ClothingMaterialLibraryParameters_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_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 (ClothingMaterialLibraryParameters_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p4.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p4.h new file mode 100644 index 00000000..ee9f85c2 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p4.h @@ -0,0 +1,267 @@ +// 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_ClothingMaterialLibraryParameters_0p4_h +#define HEADER_ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p4NS +{ + +struct StretchingLimit_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StretchingLimit_Type +{ + float limit; + float stiffness; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float stretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StretchingLimit_Type stretchingLimit; + StretchingLimit_Type bendingLimit; + StretchingLimit_Type shearingLimit; + float damping; + float internalDamping; + bool comDamping; + float friction; + uint32_t solverIterations; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0xfc102886, 0x150d1ffb, 0xbf27936d, 0x4dabcfcd, }; + +} // namespace ClothingMaterialLibraryParameters_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p4 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p4NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + 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(ClothingMaterialLibraryParameters_0p4NS::checksum); + return ClothingMaterialLibraryParameters_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p4NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p4* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p4*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p4NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_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 ClothingMaterialLibraryParameters_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p4), ClothingMaterialLibraryParameters_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_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 (ClothingMaterialLibraryParameters_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p5.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p5.h new file mode 100644 index 00000000..fb3f149e --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p5.h @@ -0,0 +1,269 @@ +// 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_ClothingMaterialLibraryParameters_0p5_h +#define HEADER_ClothingMaterialLibraryParameters_0p5_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 ClothingMaterialLibraryParameters_0p5NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float internalDamping; + bool comDamping; + float friction; + uint32_t solverIterations; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x210fb6ce, 0x315cb945, 0xa64aa98e, 0xd68d84ef, }; + +} // namespace ClothingMaterialLibraryParameters_0p5NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p5 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p5NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p5(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p5(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)5; + + 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(ClothingMaterialLibraryParameters_0p5NS::checksum); + return ClothingMaterialLibraryParameters_0p5NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p5NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p5* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p5*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p5NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p5NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p5NS::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 ClothingMaterialLibraryParameters_0p5Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p5::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p5), ClothingMaterialLibraryParameters_0p5::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p5"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p5)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p5)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p5::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p5"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p5 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 (ClothingMaterialLibraryParameters_0p5*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p5::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p5::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p5::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p5::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p6.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p6.h new file mode 100644 index 00000000..57c351d7 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p6.h @@ -0,0 +1,270 @@ +// 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_ClothingMaterialLibraryParameters_0p6_h +#define HEADER_ClothingMaterialLibraryParameters_0p6_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 ClothingMaterialLibraryParameters_0p6NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float internalDamping; + bool comDamping; + float friction; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x88104dea, 0xfcee2625, 0x4738b22c, 0x20798b99, }; + +} // namespace ClothingMaterialLibraryParameters_0p6NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p6 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p6NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p6(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p6(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)6; + + 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(ClothingMaterialLibraryParameters_0p6NS::checksum); + return ClothingMaterialLibraryParameters_0p6NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p6NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p6* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p6*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p6NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p6NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p6NS::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 ClothingMaterialLibraryParameters_0p6Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p6::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p6), ClothingMaterialLibraryParameters_0p6::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p6"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p6)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p6)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p6::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p6"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p6 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 (ClothingMaterialLibraryParameters_0p6*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p6::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p6::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p6::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p6::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p7.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p7.h new file mode 100644 index 00000000..d886b5e2 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p7.h @@ -0,0 +1,271 @@ +// 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_ClothingMaterialLibraryParameters_0p7_h +#define HEADER_ClothingMaterialLibraryParameters_0p7_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 ClothingMaterialLibraryParameters_0p7NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float internalDamping; + float drag; + bool comDamping; + float friction; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x6f2cb784, 0xd6b385b1, 0x0d04cf2d, 0x41c6eaee, }; + +} // namespace ClothingMaterialLibraryParameters_0p7NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p7 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p7NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p7(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p7(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)7; + + 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(ClothingMaterialLibraryParameters_0p7NS::checksum); + return ClothingMaterialLibraryParameters_0p7NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p7NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p7* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p7*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p7NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p7NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p7NS::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 ClothingMaterialLibraryParameters_0p7Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p7::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p7), ClothingMaterialLibraryParameters_0p7::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p7"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p7)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p7)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p7::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p7"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p7 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 (ClothingMaterialLibraryParameters_0p7*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p7::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p7::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p7::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p7::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p8.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p8.h new file mode 100644 index 00000000..ca1b1eb8 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p8.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_ClothingMaterialLibraryParameters_0p8_h +#define HEADER_ClothingMaterialLibraryParameters_0p8_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 ClothingMaterialLibraryParameters_0p8NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float internalDamping; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0x3911fc41, 0xfa09d817, 0xf389e348, 0x88d23552, }; + +} // namespace ClothingMaterialLibraryParameters_0p8NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p8 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p8NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p8(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p8(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)8; + + 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(ClothingMaterialLibraryParameters_0p8NS::checksum); + return ClothingMaterialLibraryParameters_0p8NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p8NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p8* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p8*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p8NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p8NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p8NS::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 ClothingMaterialLibraryParameters_0p8Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p8::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p8), ClothingMaterialLibraryParameters_0p8::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p8"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p8)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p8)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p8::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p8"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p8 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 (ClothingMaterialLibraryParameters_0p8*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p8::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p8::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p8::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p8::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/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p9.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p9.h new file mode 100644 index 00000000..6330170d --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingMaterialLibraryParameters_0p9.h @@ -0,0 +1,274 @@ +// 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_ClothingMaterialLibraryParameters_0p9_h +#define HEADER_ClothingMaterialLibraryParameters_0p9_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 ClothingMaterialLibraryParameters_0p9NS +{ + +struct StiffnessScaling_Type; +struct ClothingMaterial_Type; + +struct ClothingMaterial_DynamicArray1D_Type +{ + ClothingMaterial_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct StiffnessScaling_Type +{ + float range; + float scale; +}; +struct ClothingMaterial_Type +{ + NvParameterized::DummyStringStruct materialName; + float verticalStretchingStiffness; + float horizontalStretchingStiffness; + float bendingStiffness; + float shearingStiffness; + float zeroStretchStiffness; + float tetherStiffness; + float tetherLimit; + bool orthoBending; + StiffnessScaling_Type verticalStiffnessScaling; + StiffnessScaling_Type horizontalStiffnessScaling; + StiffnessScaling_Type bendingStiffnessScaling; + StiffnessScaling_Type shearingStiffnessScaling; + float damping; + float internalDamping; + float drag; + bool comDamping; + float friction; + float massScale; + uint32_t solverIterations; + float solverFrequency; + float gravityScale; + float inertiaScale; + float hardStretchLimitation; + float maxDistanceBias; + uint32_t hierarchicalSolverIterations; +}; + +struct ParametersStruct +{ + + ClothingMaterial_DynamicArray1D_Type materials; + +}; + +static const uint32_t checksum[] = { 0xa89b19a3, 0x928e0054, 0xd2ed2a10, 0x71f94b20, }; + +} // namespace ClothingMaterialLibraryParameters_0p9NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingMaterialLibraryParameters_0p9 : public NvParameterized::NvParameters, public ClothingMaterialLibraryParameters_0p9NS::ParametersStruct +{ +public: + ClothingMaterialLibraryParameters_0p9(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingMaterialLibraryParameters_0p9(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingMaterialLibraryParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)9; + + 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(ClothingMaterialLibraryParameters_0p9NS::checksum); + return ClothingMaterialLibraryParameters_0p9NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingMaterialLibraryParameters_0p9NS::ParametersStruct& parameters(void) const + { + ClothingMaterialLibraryParameters_0p9* tmpThis = const_cast<ClothingMaterialLibraryParameters_0p9*>(this); + return *(static_cast<ClothingMaterialLibraryParameters_0p9NS::ParametersStruct*>(tmpThis)); + } + + ClothingMaterialLibraryParameters_0p9NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingMaterialLibraryParameters_0p9NS::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 ClothingMaterialLibraryParameters_0p9Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingMaterialLibraryParameters_0p9::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingMaterialLibraryParameters_0p9), ClothingMaterialLibraryParameters_0p9::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingMaterialLibraryParameters_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p9"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingMaterialLibraryParameters_0p9)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingMaterialLibraryParameters_0p9)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingMaterialLibraryParameters_0p9::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingMaterialLibraryParameters_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingMaterialLibraryParameters_0p9"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingMaterialLibraryParameters_0p9 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 (ClothingMaterialLibraryParameters_0p9*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingMaterialLibraryParameters_0p9::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingMaterialLibraryParameters_0p9::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingMaterialLibraryParameters_0p9::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingMaterialLibraryParameters_0p9::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/clothing_legacy/include/autogen/ClothingModuleParameters_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingModuleParameters_0p1.h new file mode 100644 index 00000000..7d34434b --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingModuleParameters_0p1.h @@ -0,0 +1,240 @@ +// 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_ClothingModuleParameters_0p1_h +#define HEADER_ClothingModuleParameters_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 ClothingModuleParameters_0p1NS +{ + + + +struct ParametersStruct +{ + + uint32_t maxNumCompartments; + uint32_t maxUnusedPhysXResources; + bool allowAsyncCooking; + bool asyncFetchResults; + uint32_t avgSimFrequencyWindow; + bool allowApexWorkBetweenSubsteps; + float interCollisionDistance; + float interCollisionStiffness; + uint32_t interCollisionIterations; + bool sparseSelfCollision; + uint32_t maxTimeRenderProxyInPool; + +}; + +static const uint32_t checksum[] = { 0x15043a9d, 0x77224355, 0x4c92d234, 0x3bbce77c, }; + +} // namespace ClothingModuleParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingModuleParameters_0p1 : public NvParameterized::NvParameters, public ClothingModuleParameters_0p1NS::ParametersStruct +{ +public: + ClothingModuleParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingModuleParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingModuleParameters"); + } + + 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(ClothingModuleParameters_0p1NS::checksum); + return ClothingModuleParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingModuleParameters_0p1NS::ParametersStruct& parameters(void) const + { + ClothingModuleParameters_0p1* tmpThis = const_cast<ClothingModuleParameters_0p1*>(this); + return *(static_cast<ClothingModuleParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingModuleParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingModuleParameters_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 ClothingModuleParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingModuleParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingModuleParameters_0p1), ClothingModuleParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingModuleParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingModuleParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingModuleParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingModuleParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingModuleParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingModuleParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingModuleParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingModuleParameters_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 (ClothingModuleParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingModuleParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingModuleParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingModuleParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingModuleParameters_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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p0.h new file mode 100644 index 00000000..c46730e3 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p0.h @@ -0,0 +1,391 @@ +// 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_ClothingPhysicalMeshParameters_0p0_h +#define HEADER_ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p0NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + U32_DynamicArray1D_Type vertexFlags; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + U8_DynamicArray1D_Type deformableCookedData; + uint32_t deformableCookedDataVersion; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x52405a64, 0xbedbf4ae, 0xaab8ec54, 0x28862c74, }; + +} // namespace ClothingPhysicalMeshParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p0 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p0NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + 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(ClothingPhysicalMeshParameters_0p0NS::checksum); + return ClothingPhysicalMeshParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p0NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p0* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p0*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p0), ClothingPhysicalMeshParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_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 (ClothingPhysicalMeshParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p1.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p1.h new file mode 100644 index 00000000..17fec55c --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p1.h @@ -0,0 +1,392 @@ +// 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_ClothingPhysicalMeshParameters_0p1_h +#define HEADER_ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p1NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; + void* nxDeformableMesh; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + U32_DynamicArray1D_Type vertexFlags; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + U8_DynamicArray1D_Type deformableCookedData; + uint32_t deformableCookedDataVersion; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x0e11b41a, 0x0924da76, 0xd2bfd5b4, 0x09b6a1b5, }; + +} // namespace ClothingPhysicalMeshParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p1 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p1NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + 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(ClothingPhysicalMeshParameters_0p1NS::checksum); + return ClothingPhysicalMeshParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p1NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p1* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p1*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p1), ClothingPhysicalMeshParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_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 (ClothingPhysicalMeshParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p10.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p10.h new file mode 100644 index 00000000..e95f1ca1 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p10.h @@ -0,0 +1,403 @@ +// 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_ClothingPhysicalMeshParameters_0p10_h +#define HEADER_ClothingPhysicalMeshParameters_0p10_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 ClothingPhysicalMeshParameters_0p10NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct SkinClothMapD_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapD_DynamicArray1D_Type +{ + SkinClothMapD_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t numMaxDistance0Vertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U8_DynamicArray1D_Type optimizationData; + bool hasNegativeBackstop; + bool isClosed; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + uint32_t physicalMeshSorting; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapD_Type +{ + physx::PxVec3 vertexBary; + uint32_t vertexIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndex1; + physx::PxVec3 tangentBary; + uint32_t vertexIndex2; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapD_DynamicArray1D_Type transitionUp; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapD_DynamicArray1D_Type transitionDown; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0xcffdb608, 0x34772e05, 0xb720e9cd, 0xf962cbf8, }; + +} // namespace ClothingPhysicalMeshParameters_0p10NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p10 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p10NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p10(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p10(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)10; + + 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(ClothingPhysicalMeshParameters_0p10NS::checksum); + return ClothingPhysicalMeshParameters_0p10NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p10NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p10* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p10*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p10NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p10NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p10NS::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 ClothingPhysicalMeshParameters_0p10Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p10::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p10), ClothingPhysicalMeshParameters_0p10::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p10"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p10)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p10)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p10::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p10::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p10"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p10 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 (ClothingPhysicalMeshParameters_0p10*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p10::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p10::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p10::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p10::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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p11.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p11.h new file mode 100644 index 00000000..7a584b41 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p11.h @@ -0,0 +1,373 @@ +// 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_ClothingPhysicalMeshParameters_0p11_h +#define HEADER_ClothingPhysicalMeshParameters_0p11_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 ClothingPhysicalMeshParameters_0p11NS +{ + +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct SkinClothMapD_Type; +struct TetraLink_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapD_DynamicArray1D_Type +{ + SkinClothMapD_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numSimulatedVertices; + uint32_t numMaxDistance0Vertices; + uint32_t numIndices; + uint32_t numSimulatedIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U8_DynamicArray1D_Type optimizationData; + bool hasNegativeBackstop; + bool isClosed; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + uint32_t physicalMeshSorting; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapD_Type +{ + physx::PxVec3 vertexBary; + uint32_t vertexIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndex1; + physx::PxVec3 tangentBary; + uint32_t vertexIndex2; + uint32_t vertexIndexPlusOffset; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapD_DynamicArray1D_Type transitionUp; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapD_DynamicArray1D_Type transitionDown; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x436eae3d, 0xbb86cc6f, 0xab9fa108, 0x26281bae, }; + +} // namespace ClothingPhysicalMeshParameters_0p11NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p11 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p11NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p11(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p11(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)11; + + 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(ClothingPhysicalMeshParameters_0p11NS::checksum); + return ClothingPhysicalMeshParameters_0p11NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p11NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p11* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p11*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p11NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p11NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p11NS::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 ClothingPhysicalMeshParameters_0p11Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p11::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p11), ClothingPhysicalMeshParameters_0p11::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p11"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p11)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p11)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p11::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p11::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p11"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p11 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 (ClothingPhysicalMeshParameters_0p11*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p11::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p11::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p11::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p11::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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p2.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p2.h new file mode 100644 index 00000000..37e50e3f --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p2.h @@ -0,0 +1,393 @@ +// 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_ClothingPhysicalMeshParameters_0p2_h +#define HEADER_ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p2NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t cookedDataOffset; + uint32_t cookedDataLength; + void* nxDeformableMesh; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + U32_DynamicArray1D_Type vertexFlags; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + U8_DynamicArray1D_Type deformableCookedData; + uint32_t deformableCookedDataVersion; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0xce16109b, 0x915a4ba3, 0xbcb76375, 0x12b10e79, }; + +} // namespace ClothingPhysicalMeshParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p2 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p2NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + 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(ClothingPhysicalMeshParameters_0p2NS::checksum); + return ClothingPhysicalMeshParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p2NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p2* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p2*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p2), ClothingPhysicalMeshParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_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 (ClothingPhysicalMeshParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p3.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p3.h new file mode 100644 index 00000000..b23bb3cc --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p3.h @@ -0,0 +1,380 @@ +// 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_ClothingPhysicalMeshParameters_0p3_h +#define HEADER_ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p3NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + U32_DynamicArray1D_Type vertexFlags; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0xf271b249, 0x9b83cd49, 0x48c9e93d, 0xac640756, }; + +} // namespace ClothingPhysicalMeshParameters_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p3 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p3NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + 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(ClothingPhysicalMeshParameters_0p3NS::checksum); + return ClothingPhysicalMeshParameters_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p3NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p3* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p3*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p3NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p3), ClothingPhysicalMeshParameters_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_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 (ClothingPhysicalMeshParameters_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p4.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p4.h new file mode 100644 index 00000000..5111b795 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p4.h @@ -0,0 +1,379 @@ +// 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_ClothingPhysicalMeshParameters_0p4_h +#define HEADER_ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p4NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x9bfbb498, 0x8a184db8, 0xe1411e37, 0xf508aff3, }; + +} // namespace ClothingPhysicalMeshParameters_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p4 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p4NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + 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(ClothingPhysicalMeshParameters_0p4NS::checksum); + return ClothingPhysicalMeshParameters_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p4NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p4* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p4*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p4NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_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 ClothingPhysicalMeshParameters_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p4), ClothingPhysicalMeshParameters_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_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 (ClothingPhysicalMeshParameters_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p5.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p5.h new file mode 100644 index 00000000..8ad6cdc8 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p5.h @@ -0,0 +1,380 @@ +// 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_ClothingPhysicalMeshParameters_0p5_h +#define HEADER_ClothingPhysicalMeshParameters_0p5_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 ClothingPhysicalMeshParameters_0p5NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t numMaxDistance0Vertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x6baed1a8, 0x1687e4a1, 0x0569f5e0, 0x32d0cc3a, }; + +} // namespace ClothingPhysicalMeshParameters_0p5NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p5 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p5NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p5(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p5(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)5; + + 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(ClothingPhysicalMeshParameters_0p5NS::checksum); + return ClothingPhysicalMeshParameters_0p5NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p5NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p5* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p5*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p5NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p5NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p5NS::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 ClothingPhysicalMeshParameters_0p5Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p5::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p5), ClothingPhysicalMeshParameters_0p5::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p5"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p5)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p5)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p5::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p5::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p5"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p5 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 (ClothingPhysicalMeshParameters_0p5*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p5::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p5::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p5::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p5::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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p6.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p6.h new file mode 100644 index 00000000..2bdeb756 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p6.h @@ -0,0 +1,390 @@ +// 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_ClothingPhysicalMeshParameters_0p6_h +#define HEADER_ClothingPhysicalMeshParameters_0p6_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 ClothingPhysicalMeshParameters_0p6NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t numMaxDistance0Vertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U8_DynamicArray1D_Type optimizationData; + bool hasNegativeBackstop; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x636eef8b, 0x46785ed2, 0xaf5fdd55, 0x22177626, }; + +} // namespace ClothingPhysicalMeshParameters_0p6NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p6 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p6NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p6(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p6(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)6; + + 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(ClothingPhysicalMeshParameters_0p6NS::checksum); + return ClothingPhysicalMeshParameters_0p6NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p6NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p6* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p6*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p6NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p6NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p6NS::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 ClothingPhysicalMeshParameters_0p6Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p6::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p6), ClothingPhysicalMeshParameters_0p6::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p6"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p6)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p6)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p6::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p6::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p6"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p6 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 (ClothingPhysicalMeshParameters_0p6*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p6::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p6::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p6::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p6::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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p7.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p7.h new file mode 100644 index 00000000..6dce7b01 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p7.h @@ -0,0 +1,391 @@ +// 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_ClothingPhysicalMeshParameters_0p7_h +#define HEADER_ClothingPhysicalMeshParameters_0p7_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 ClothingPhysicalMeshParameters_0p7NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t numMaxDistance0Vertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U8_DynamicArray1D_Type optimizationData; + bool hasNegativeBackstop; + bool isClosed; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0x49914969, 0x5f81155d, 0xcf62be18, 0xc6aeb7b9, }; + +} // namespace ClothingPhysicalMeshParameters_0p7NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p7 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p7NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p7(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p7(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)7; + + 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(ClothingPhysicalMeshParameters_0p7NS::checksum); + return ClothingPhysicalMeshParameters_0p7NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p7NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p7* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p7*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p7NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p7NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p7NS::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 ClothingPhysicalMeshParameters_0p7Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p7::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p7), ClothingPhysicalMeshParameters_0p7::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p7"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p7)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p7)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p7::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p7::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p7"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p7 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 (ClothingPhysicalMeshParameters_0p7*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p7::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p7::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p7::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p7::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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p8.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p8.h new file mode 100644 index 00000000..cb193808 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p8.h @@ -0,0 +1,391 @@ +// 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_ClothingPhysicalMeshParameters_0p8_h +#define HEADER_ClothingPhysicalMeshParameters_0p8_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 ClothingPhysicalMeshParameters_0p8NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t numMaxDistance0Vertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U8_DynamicArray1D_Type optimizationData; + bool hasNegativeBackstop; + bool isClosed; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0xe1b3e658, 0xd3331375, 0xd77d59f6, 0x8d25a6ec, }; + +} // namespace ClothingPhysicalMeshParameters_0p8NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p8 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p8NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p8(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p8(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)8; + + 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(ClothingPhysicalMeshParameters_0p8NS::checksum); + return ClothingPhysicalMeshParameters_0p8NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p8NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p8* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p8*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p8NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p8NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p8NS::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 ClothingPhysicalMeshParameters_0p8Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p8::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p8), ClothingPhysicalMeshParameters_0p8::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p8"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p8)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p8)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p8::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p8::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p8"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p8 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 (ClothingPhysicalMeshParameters_0p8*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p8::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p8::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p8::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p8::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/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p9.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p9.h new file mode 100644 index 00000000..15df27f0 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPhysicalMeshParameters_0p9.h @@ -0,0 +1,392 @@ +// 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_ClothingPhysicalMeshParameters_0p9_h +#define HEADER_ClothingPhysicalMeshParameters_0p9_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 ClothingPhysicalMeshParameters_0p9NS +{ + +struct PhysicalSubmesh_Type; +struct PhysicalLod_Type; +struct ConstrainCoefficient_Type; +struct PhysicalMesh_Type; +struct SkinClothMapB_Type; +struct SkinClothMapC_Type; +struct TetraLink_Type; + +struct VEC3_DynamicArray1D_Type +{ + physx::PxVec3* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct ConstrainCoefficient_DynamicArray1D_Type +{ + ConstrainCoefficient_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U16_DynamicArray1D_Type +{ + uint16_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct F32_DynamicArray1D_Type +{ + float* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U8_DynamicArray1D_Type +{ + uint8_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct U32_DynamicArray1D_Type +{ + uint32_t* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalSubmesh_DynamicArray1D_Type +{ + PhysicalSubmesh_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct PhysicalLod_DynamicArray1D_Type +{ + PhysicalLod_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapB_DynamicArray1D_Type +{ + SkinClothMapB_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_DynamicArray1D_Type +{ + SkinClothMapC_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct SkinClothMapC_Type +{ + physx::PxVec3 vertexBary; + uint32_t faceIndex0; + physx::PxVec3 normalBary; + uint32_t vertexIndexPlusOffset; +}; +struct PhysicalSubmesh_Type +{ + uint32_t numIndices; + uint32_t numVertices; + uint32_t numMaxDistance0Vertices; +}; +struct PhysicalLod_Type +{ + uint32_t costWithoutIterations; + uint32_t submeshId; + float solverIterationScale; + float maxDistanceReduction; +}; +struct ConstrainCoefficient_Type +{ + float maxDistance; + float collisionSphereRadius; + float collisionSphereDistance; +}; +struct PhysicalMesh_Type +{ + uint32_t numVertices; + uint32_t numIndices; + uint32_t numBonesPerVertex; + VEC3_DynamicArray1D_Type vertices; + VEC3_DynamicArray1D_Type normals; + VEC3_DynamicArray1D_Type skinningNormals; + ConstrainCoefficient_DynamicArray1D_Type constrainCoefficients; + U16_DynamicArray1D_Type boneIndices; + F32_DynamicArray1D_Type boneWeights; + U8_DynamicArray1D_Type optimizationData; + bool hasNegativeBackstop; + bool isClosed; + U32_DynamicArray1D_Type indices; + float maximumMaxDistance; + uint32_t physicalMeshSorting; + float shortestEdgeLength; + float averageEdgeLength; + bool isTetrahedralMesh; + bool flipNormals; +}; +struct SkinClothMapB_Type +{ + physx::PxVec3 vtxTetraBary; + uint32_t vertexIndexPlusOffset; + physx::PxVec3 nrmTetraBary; + uint32_t faceIndex0; + uint32_t tetraIndex; + uint32_t submeshIndex; +}; +struct TetraLink_Type +{ + physx::PxVec3 vertexBary; + uint32_t tetraIndex0; + physx::PxVec3 normalBary; + uint32_t _dummyForAlignment; +}; + +struct ParametersStruct +{ + + PhysicalMesh_Type physicalMesh; + PhysicalSubmesh_DynamicArray1D_Type submeshes; + PhysicalLod_DynamicArray1D_Type physicalLods; + SkinClothMapB_DynamicArray1D_Type transitionUpB; + SkinClothMapC_DynamicArray1D_Type transitionUpC; + float transitionUpThickness; + float transitionUpOffset; + SkinClothMapB_DynamicArray1D_Type transitionDownB; + SkinClothMapC_DynamicArray1D_Type transitionDownC; + float transitionDownThickness; + float transitionDownOffset; + uint32_t referenceCount; + +}; + +static const uint32_t checksum[] = { 0xc6db4fee, 0x9cc0d906, 0x7db6c2b1, 0xe4df1f3d, }; + +} // namespace ClothingPhysicalMeshParameters_0p9NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPhysicalMeshParameters_0p9 : public NvParameterized::NvParameters, public ClothingPhysicalMeshParameters_0p9NS::ParametersStruct +{ +public: + ClothingPhysicalMeshParameters_0p9(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPhysicalMeshParameters_0p9(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPhysicalMeshParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)9; + + 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(ClothingPhysicalMeshParameters_0p9NS::checksum); + return ClothingPhysicalMeshParameters_0p9NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPhysicalMeshParameters_0p9NS::ParametersStruct& parameters(void) const + { + ClothingPhysicalMeshParameters_0p9* tmpThis = const_cast<ClothingPhysicalMeshParameters_0p9*>(this); + return *(static_cast<ClothingPhysicalMeshParameters_0p9NS::ParametersStruct*>(tmpThis)); + } + + ClothingPhysicalMeshParameters_0p9NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPhysicalMeshParameters_0p9NS::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 ClothingPhysicalMeshParameters_0p9Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPhysicalMeshParameters_0p9::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPhysicalMeshParameters_0p9), ClothingPhysicalMeshParameters_0p9::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPhysicalMeshParameters_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p9"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPhysicalMeshParameters_0p9)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPhysicalMeshParameters_0p9)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPhysicalMeshParameters_0p9::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPhysicalMeshParameters_0p9::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPhysicalMeshParameters_0p9"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPhysicalMeshParameters_0p9 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 (ClothingPhysicalMeshParameters_0p9*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPhysicalMeshParameters_0p9::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPhysicalMeshParameters_0p9::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPhysicalMeshParameters_0p9::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPhysicalMeshParameters_0p9::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/clothing_legacy/include/autogen/ClothingPreviewParam_0p0.h b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPreviewParam_0p0.h new file mode 100644 index 00000000..fe1907cd --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ClothingPreviewParam_0p0.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_ClothingPreviewParam_0p0_h +#define HEADER_ClothingPreviewParam_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 ClothingPreviewParam_0p0NS +{ + + +struct MAT44_DynamicArray1D_Type +{ + physx::PxMat44* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + + +struct ParametersStruct +{ + + physx::PxMat44 globalPose; + bool fallbackSkinning; + bool useInternalBoneOrder; + bool updateStateWithGlobalMatrices; + uint64_t userData; + MAT44_DynamicArray1D_Type boneMatrices; + +}; + +static const uint32_t checksum[] = { 0x614ffe9f, 0x273131aa, 0xa5bdd27c, 0xfe7fba5b, }; + +} // namespace ClothingPreviewParam_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ClothingPreviewParam_0p0 : public NvParameterized::NvParameters, public ClothingPreviewParam_0p0NS::ParametersStruct +{ +public: + ClothingPreviewParam_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ClothingPreviewParam_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ClothingPreviewParam"); + } + + 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(ClothingPreviewParam_0p0NS::checksum); + return ClothingPreviewParam_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ClothingPreviewParam_0p0NS::ParametersStruct& parameters(void) const + { + ClothingPreviewParam_0p0* tmpThis = const_cast<ClothingPreviewParam_0p0*>(this); + return *(static_cast<ClothingPreviewParam_0p0NS::ParametersStruct*>(tmpThis)); + } + + ClothingPreviewParam_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ClothingPreviewParam_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 ClothingPreviewParam_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ClothingPreviewParam_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ClothingPreviewParam_0p0), ClothingPreviewParam_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ClothingPreviewParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPreviewParam_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ClothingPreviewParam_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ClothingPreviewParam_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ClothingPreviewParam_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ClothingPreviewParam_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingPreviewParam_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ClothingPreviewParam_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 (ClothingPreviewParam_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ClothingPreviewParam_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ClothingPreviewParam_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ClothingPreviewParam_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ClothingPreviewParam_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/clothing_legacy/include/autogen/ModuleClothingLegacyRegistration.h b/APEX_1.4/module/clothing_legacy/include/autogen/ModuleClothingLegacyRegistration.h new file mode 100644 index 00000000..8a9b52c8 --- /dev/null +++ b/APEX_1.4/module/clothing_legacy/include/autogen/ModuleClothingLegacyRegistration.h @@ -0,0 +1,1655 @@ +/* + * 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_MODULECLOTHINGLEGACYREGISTRATIONH_H +#define MODULE_MODULECLOTHINGLEGACYREGISTRATIONH_H + +#include "PsAllocator.h" +#include "NvRegistrationsForTraitsBase.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "PxAssert.h" +#include <stdint.h> + +// INCLUDE GENERATED FACTORIES +#include "ClothingActorParam_0p0.h" +#include "ClothingActorParam_0p1.h" +#include "ClothingActorParam_0p10.h" +#include "ClothingActorParam_0p11.h" +#include "ClothingActorParam_0p12.h" +#include "ClothingActorParam_0p13.h" +#include "ClothingActorParam_0p14.h" +#include "ClothingActorParam_0p15.h" +#include "ClothingActorParam_0p16.h" +#include "ClothingActorParam_0p17.h" +#include "ClothingActorParam_0p2.h" +#include "ClothingActorParam_0p3.h" +#include "ClothingActorParam_0p4.h" +#include "ClothingActorParam_0p5.h" +#include "ClothingActorParam_0p6.h" +#include "ClothingActorParam_0p7.h" +#include "ClothingActorParam_0p8.h" +#include "ClothingActorParam_0p9.h" +#include "ClothingAssetParameters_0p0.h" +#include "ClothingAssetParameters_0p1.h" +#include "ClothingAssetParameters_0p10.h" +#include "ClothingAssetParameters_0p11.h" +#include "ClothingAssetParameters_0p12.h" +#include "ClothingAssetParameters_0p13.h" +#include "ClothingAssetParameters_0p2.h" +#include "ClothingAssetParameters_0p3.h" +#include "ClothingAssetParameters_0p4.h" +#include "ClothingAssetParameters_0p5.h" +#include "ClothingAssetParameters_0p6.h" +#include "ClothingAssetParameters_0p7.h" +#include "ClothingAssetParameters_0p8.h" +#include "ClothingAssetParameters_0p9.h" +#include "ClothingCookedParam_0p0.h" +#include "ClothingCookedParam_0p1.h" +#include "ClothingCookedParam_0p2.h" +#include "ClothingCookedPhysX3Param_0p0.h" +#include "ClothingCookedPhysX3Param_0p1.h" +#include "ClothingCookedPhysX3Param_0p2.h" +#include "ClothingCookedPhysX3Param_0p3.h" +#include "ClothingCookedPhysX3Param_0p4.h" +#include "ClothingGraphicalLodParameters_0p0.h" +#include "ClothingGraphicalLodParameters_0p1.h" +#include "ClothingGraphicalLodParameters_0p2.h" +#include "ClothingGraphicalLodParameters_0p3.h" +#include "ClothingGraphicalLodParameters_0p4.h" +#include "ClothingMaterialLibraryParameters_0p0.h" +#include "ClothingMaterialLibraryParameters_0p1.h" +#include "ClothingMaterialLibraryParameters_0p10.h" +#include "ClothingMaterialLibraryParameters_0p11.h" +#include "ClothingMaterialLibraryParameters_0p12.h" +#include "ClothingMaterialLibraryParameters_0p13.h" +#include "ClothingMaterialLibraryParameters_0p2.h" +#include "ClothingMaterialLibraryParameters_0p3.h" +#include "ClothingMaterialLibraryParameters_0p4.h" +#include "ClothingMaterialLibraryParameters_0p5.h" +#include "ClothingMaterialLibraryParameters_0p6.h" +#include "ClothingMaterialLibraryParameters_0p7.h" +#include "ClothingMaterialLibraryParameters_0p8.h" +#include "ClothingMaterialLibraryParameters_0p9.h" +#include "ClothingPhysicalMeshParameters_0p0.h" +#include "ClothingPhysicalMeshParameters_0p1.h" +#include "ClothingPhysicalMeshParameters_0p10.h" +#include "ClothingPhysicalMeshParameters_0p2.h" +#include "ClothingPhysicalMeshParameters_0p3.h" +#include "ClothingPhysicalMeshParameters_0p4.h" +#include "ClothingPhysicalMeshParameters_0p5.h" +#include "ClothingPhysicalMeshParameters_0p6.h" +#include "ClothingPhysicalMeshParameters_0p7.h" +#include "ClothingPhysicalMeshParameters_0p8.h" +#include "ClothingPhysicalMeshParameters_0p9.h" +#include "ClothingActorParam_0p18.h" +#include "ClothingAssetParameters_0p14.h" +#include "ClothingCookedParam_0p3.h" +#include "ClothingCookedPhysX3Param_0p5.h" +#include "ClothingDebugRenderParams_0p0.h" +#include "ClothingGraphicalLodParameters_0p5.h" +#include "ClothingMaterialLibraryParameters_0p14.h" +#include "ClothingModuleParameters_0p1.h" +#include "ClothingPhysicalMeshParameters_0p11.h" +#include "ClothingPreviewParam_0p0.h" + + +// INCLUDE GENERATED CONVERSION +#include "ConversionClothingActorParam_0p0_0p1.h" +#include "ConversionClothingActorParam_0p10_0p11.h" +#include "ConversionClothingActorParam_0p11_0p12.h" +#include "ConversionClothingActorParam_0p12_0p13.h" +#include "ConversionClothingActorParam_0p13_0p14.h" +#include "ConversionClothingActorParam_0p14_0p15.h" +#include "ConversionClothingActorParam_0p15_0p16.h" +#include "ConversionClothingActorParam_0p16_0p17.h" +#include "ConversionClothingActorParam_0p17_0p18.h" +#include "ConversionClothingActorParam_0p1_0p2.h" +#include "ConversionClothingActorParam_0p2_0p3.h" +#include "ConversionClothingActorParam_0p3_0p4.h" +#include "ConversionClothingActorParam_0p4_0p5.h" +#include "ConversionClothingActorParam_0p5_0p6.h" +#include "ConversionClothingActorParam_0p6_0p7.h" +#include "ConversionClothingActorParam_0p7_0p8.h" +#include "ConversionClothingActorParam_0p8_0p9.h" +#include "ConversionClothingActorParam_0p9_0p10.h" +#include "ConversionClothingAssetParameters_0p0_0p1.h" +#include "ConversionClothingAssetParameters_0p10_0p11.h" +#include "ConversionClothingAssetParameters_0p11_0p12.h" +#include "ConversionClothingAssetParameters_0p12_0p13.h" +#include "ConversionClothingAssetParameters_0p13_0p14.h" +#include "ConversionClothingAssetParameters_0p1_0p2.h" +#include "ConversionClothingAssetParameters_0p2_0p3.h" +#include "ConversionClothingAssetParameters_0p3_0p4.h" +#include "ConversionClothingAssetParameters_0p4_0p5.h" +#include "ConversionClothingAssetParameters_0p5_0p6.h" +#include "ConversionClothingAssetParameters_0p6_0p7.h" +#include "ConversionClothingAssetParameters_0p7_0p8.h" +#include "ConversionClothingAssetParameters_0p8_0p9.h" +#include "ConversionClothingAssetParameters_0p9_0p10.h" +#include "ConversionClothingCookedParam_0p0_0p1.h" +#include "ConversionClothingCookedParam_0p1_0p2.h" +#include "ConversionClothingCookedParam_0p2_0p3.h" +#include "ConversionClothingCookedPhysX3Param_0p0_0p1.h" +#include "ConversionClothingCookedPhysX3Param_0p1_0p2.h" +#include "ConversionClothingCookedPhysX3Param_0p2_0p3.h" +#include "ConversionClothingCookedPhysX3Param_0p3_0p4.h" +#include "ConversionClothingCookedPhysX3Param_0p4_0p5.h" +#include "ConversionClothingGraphicalLodParameters_0p0_0p1.h" +#include "ConversionClothingGraphicalLodParameters_0p1_0p2.h" +#include "ConversionClothingGraphicalLodParameters_0p2_0p3.h" +#include "ConversionClothingGraphicalLodParameters_0p3_0p4.h" +#include "ConversionClothingGraphicalLodParameters_0p4_0p5.h" +#include "ConversionClothingMaterialLibraryParameters_0p0_0p1.h" +#include "ConversionClothingMaterialLibraryParameters_0p10_0p11.h" +#include "ConversionClothingMaterialLibraryParameters_0p11_0p12.h" +#include "ConversionClothingMaterialLibraryParameters_0p12_0p13.h" +#include "ConversionClothingMaterialLibraryParameters_0p13_0p14.h" +#include "ConversionClothingMaterialLibraryParameters_0p1_0p2.h" +#include "ConversionClothingMaterialLibraryParameters_0p2_0p3.h" +#include "ConversionClothingMaterialLibraryParameters_0p3_0p4.h" +#include "ConversionClothingMaterialLibraryParameters_0p4_0p5.h" +#include "ConversionClothingMaterialLibraryParameters_0p5_0p6.h" +#include "ConversionClothingMaterialLibraryParameters_0p6_0p7.h" +#include "ConversionClothingMaterialLibraryParameters_0p7_0p8.h" +#include "ConversionClothingMaterialLibraryParameters_0p8_0p9.h" +#include "ConversionClothingMaterialLibraryParameters_0p9_0p10.h" +#include "ConversionClothingPhysicalMeshParameters_0p0_0p1.h" +#include "ConversionClothingPhysicalMeshParameters_0p10_0p11.h" +#include "ConversionClothingPhysicalMeshParameters_0p1_0p2.h" +#include "ConversionClothingPhysicalMeshParameters_0p2_0p3.h" +#include "ConversionClothingPhysicalMeshParameters_0p3_0p4.h" +#include "ConversionClothingPhysicalMeshParameters_0p4_0p5.h" +#include "ConversionClothingPhysicalMeshParameters_0p5_0p6.h" +#include "ConversionClothingPhysicalMeshParameters_0p6_0p7.h" +#include "ConversionClothingPhysicalMeshParameters_0p7_0p8.h" +#include "ConversionClothingPhysicalMeshParameters_0p8_0p9.h" +#include "ConversionClothingPhysicalMeshParameters_0p9_0p10.h" + + +// global namespace + +class ModuleClothingLegacyRegistration : public NvParameterized::RegistrationsForTraitsBase +{ +public: + static void invokeRegistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleClothingLegacyRegistration().registerAll(*parameterizedTraits); + } + } + + static void invokeUnregistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleClothingLegacyRegistration().unregisterAll(*parameterizedTraits); + } + } + + void registerAvailableFactories(NvParameterized::Traits& parameterizedTraits) + { + ::NvParameterized::Factory* factoriesToRegister[] = { +// REGISTER GENERATED FACTORIES + new nvidia::parameterized::ClothingActorParam_0p0Factory(), + new nvidia::parameterized::ClothingActorParam_0p1Factory(), + new nvidia::parameterized::ClothingActorParam_0p10Factory(), + new nvidia::parameterized::ClothingActorParam_0p11Factory(), + new nvidia::parameterized::ClothingActorParam_0p12Factory(), + new nvidia::parameterized::ClothingActorParam_0p13Factory(), + new nvidia::parameterized::ClothingActorParam_0p14Factory(), + new nvidia::parameterized::ClothingActorParam_0p15Factory(), + new nvidia::parameterized::ClothingActorParam_0p16Factory(), + new nvidia::parameterized::ClothingActorParam_0p17Factory(), + new nvidia::parameterized::ClothingActorParam_0p2Factory(), + new nvidia::parameterized::ClothingActorParam_0p3Factory(), + new nvidia::parameterized::ClothingActorParam_0p4Factory(), + new nvidia::parameterized::ClothingActorParam_0p5Factory(), + new nvidia::parameterized::ClothingActorParam_0p6Factory(), + new nvidia::parameterized::ClothingActorParam_0p7Factory(), + new nvidia::parameterized::ClothingActorParam_0p8Factory(), + new nvidia::parameterized::ClothingActorParam_0p9Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p0Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p1Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p10Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p11Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p12Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p13Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p2Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p3Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p4Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p5Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p6Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p7Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p8Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p9Factory(), + new nvidia::parameterized::ClothingCookedParam_0p0Factory(), + new nvidia::parameterized::ClothingCookedParam_0p1Factory(), + new nvidia::parameterized::ClothingCookedParam_0p2Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p0Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p1Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p2Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p3Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p4Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p0Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p1Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p2Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p3Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p4Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p0Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p1Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p10Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p11Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p12Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p13Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p2Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p3Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p4Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p5Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p6Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p7Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p8Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p9Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p0Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p1Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p10Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p2Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p3Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p4Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p5Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p6Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p7Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p8Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p9Factory(), + + }; + + 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::ConversionClothingActorParam_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p10_0p11 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p11_0p12 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p12_0p13 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p13_0p14 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p14_0p15 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p15_0p16 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p16_0p17 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p17_0p18 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p4_0p5 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p5_0p6 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p6_0p7 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p7_0p8 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p8_0p9 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingActorParam_0p9_0p10 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p10_0p11 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p11_0p12 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p12_0p13 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p13_0p14 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p4_0p5 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p5_0p6 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p6_0p7 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p7_0p8 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p8_0p9 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingAssetParameters_0p9_0p10 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedParam_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedParam_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedParam_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedPhysX3Param_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedPhysX3Param_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedPhysX3Param_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedPhysX3Param_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingCookedPhysX3Param_0p4_0p5 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingGraphicalLodParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingGraphicalLodParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingGraphicalLodParameters_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingGraphicalLodParameters_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingGraphicalLodParameters_0p4_0p5 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p10_0p11 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p11_0p12 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p12_0p13 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p13_0p14 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p4_0p5 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p5_0p6 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p6_0p7 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p7_0p8 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p8_0p9 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingMaterialLibraryParameters_0p9_0p10 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p10_0p11 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p4_0p5 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p5_0p6 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p6_0p7 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p7_0p8 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p8_0p9 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionClothingPhysicalMeshParameters_0p9_0p10 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::ClothingActorParam_0p0Factory(), + new nvidia::parameterized::ClothingActorParam_0p1Factory(), + new nvidia::parameterized::ClothingActorParam_0p10Factory(), + new nvidia::parameterized::ClothingActorParam_0p11Factory(), + new nvidia::parameterized::ClothingActorParam_0p12Factory(), + new nvidia::parameterized::ClothingActorParam_0p13Factory(), + new nvidia::parameterized::ClothingActorParam_0p14Factory(), + new nvidia::parameterized::ClothingActorParam_0p15Factory(), + new nvidia::parameterized::ClothingActorParam_0p16Factory(), + new nvidia::parameterized::ClothingActorParam_0p17Factory(), + new nvidia::parameterized::ClothingActorParam_0p2Factory(), + new nvidia::parameterized::ClothingActorParam_0p3Factory(), + new nvidia::parameterized::ClothingActorParam_0p4Factory(), + new nvidia::parameterized::ClothingActorParam_0p5Factory(), + new nvidia::parameterized::ClothingActorParam_0p6Factory(), + new nvidia::parameterized::ClothingActorParam_0p7Factory(), + new nvidia::parameterized::ClothingActorParam_0p8Factory(), + new nvidia::parameterized::ClothingActorParam_0p9Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p0Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p1Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p10Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p11Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p12Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p13Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p2Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p3Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p4Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p5Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p6Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p7Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p8Factory(), + new nvidia::parameterized::ClothingAssetParameters_0p9Factory(), + new nvidia::parameterized::ClothingCookedParam_0p0Factory(), + new nvidia::parameterized::ClothingCookedParam_0p1Factory(), + new nvidia::parameterized::ClothingCookedParam_0p2Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p0Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p1Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p2Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p3Factory(), + new nvidia::parameterized::ClothingCookedPhysX3Param_0p4Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p0Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p1Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p2Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p3Factory(), + new nvidia::parameterized::ClothingGraphicalLodParameters_0p4Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p0Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p1Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p10Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p11Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p12Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p13Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p2Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p3Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p4Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p5Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p6Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p7Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p8Factory(), + new nvidia::parameterized::ClothingMaterialLibraryParameters_0p9Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p0Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p1Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p10Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p2Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p3Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p4Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p5Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p6Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p7Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p8Factory(), + new nvidia::parameterized::ClothingPhysicalMeshParameters_0p9Factory(), + + }; + + 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::ConversionClothingActorParam_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::ConversionClothingActorParam_0p10_0p11 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::ConversionClothingActorParam_0p11_0p12 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::ConversionClothingActorParam_0p12_0p13 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::ConversionClothingActorParam_0p13_0p14 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::ConversionClothingActorParam_0p14_0p15 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::ConversionClothingActorParam_0p15_0p16 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::ConversionClothingActorParam_0p16_0p17 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::ConversionClothingActorParam_0p17_0p18 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::ConversionClothingActorParam_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::ConversionClothingActorParam_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::ConversionClothingActorParam_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::ConversionClothingActorParam_0p4_0p5 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::ConversionClothingActorParam_0p5_0p6 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::ConversionClothingActorParam_0p6_0p7 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::ConversionClothingActorParam_0p7_0p8 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::ConversionClothingActorParam_0p8_0p9 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::ConversionClothingActorParam_0p9_0p10 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::ConversionClothingAssetParameters_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::ConversionClothingAssetParameters_0p10_0p11 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::ConversionClothingAssetParameters_0p11_0p12 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::ConversionClothingAssetParameters_0p12_0p13 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::ConversionClothingAssetParameters_0p13_0p14 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::ConversionClothingAssetParameters_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::ConversionClothingAssetParameters_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::ConversionClothingAssetParameters_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::ConversionClothingAssetParameters_0p4_0p5 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::ConversionClothingAssetParameters_0p5_0p6 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::ConversionClothingAssetParameters_0p6_0p7 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::ConversionClothingAssetParameters_0p7_0p8 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::ConversionClothingAssetParameters_0p8_0p9 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::ConversionClothingAssetParameters_0p9_0p10 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::ConversionClothingCookedParam_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::ConversionClothingCookedParam_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::ConversionClothingCookedParam_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::ConversionClothingCookedPhysX3Param_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::ConversionClothingCookedPhysX3Param_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::ConversionClothingCookedPhysX3Param_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::ConversionClothingCookedPhysX3Param_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::ConversionClothingCookedPhysX3Param_0p4_0p5 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::ConversionClothingGraphicalLodParameters_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::ConversionClothingGraphicalLodParameters_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::ConversionClothingGraphicalLodParameters_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::ConversionClothingGraphicalLodParameters_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::ConversionClothingGraphicalLodParameters_0p4_0p5 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::ConversionClothingMaterialLibraryParameters_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::ConversionClothingMaterialLibraryParameters_0p10_0p11 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::ConversionClothingMaterialLibraryParameters_0p11_0p12 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::ConversionClothingMaterialLibraryParameters_0p12_0p13 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::ConversionClothingMaterialLibraryParameters_0p13_0p14 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::ConversionClothingMaterialLibraryParameters_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::ConversionClothingMaterialLibraryParameters_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::ConversionClothingMaterialLibraryParameters_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::ConversionClothingMaterialLibraryParameters_0p4_0p5 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::ConversionClothingMaterialLibraryParameters_0p5_0p6 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::ConversionClothingMaterialLibraryParameters_0p6_0p7 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::ConversionClothingMaterialLibraryParameters_0p7_0p8 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::ConversionClothingMaterialLibraryParameters_0p8_0p9 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::ConversionClothingMaterialLibraryParameters_0p9_0p10 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::ConversionClothingPhysicalMeshParameters_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::ConversionClothingPhysicalMeshParameters_0p10_0p11 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::ConversionClothingPhysicalMeshParameters_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::ConversionClothingPhysicalMeshParameters_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::ConversionClothingPhysicalMeshParameters_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::ConversionClothingPhysicalMeshParameters_0p4_0p5 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::ConversionClothingPhysicalMeshParameters_0p5_0p6 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::ConversionClothingPhysicalMeshParameters_0p6_0p7 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::ConversionClothingPhysicalMeshParameters_0p7_0p8 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::ConversionClothingPhysicalMeshParameters_0p8_0p9 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::ConversionClothingPhysicalMeshParameters_0p9_0p10 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 |