java.lang.Object
physx.NativeObject
physx.common.PxgDynamicsMemoryConfig
Sizes of pre-allocated buffers use for GPU dynamics
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxgDynamicsMemoryConfigarrayGet(long baseAddress, int index) voiddestroy()intintCapacity of found and lost buffers in aggregate system allocated in GPU global memory.intCapacity of found and lost buffers allocated in GPU global memory.intInitial capacity of the GPU and pinned host memory heaps.intintintintSize of contact stream buffer allocated in pinned host memory.intSize of the contact patch stream buffer allocated in pinned host memory.intintCapacity of temp buffer allocated in pinned host memory.intCapacity of total number of aggregate pairs allocated in GPU global memory.booleanisValid()voidsetCollisionStackSize(int value) voidsetFoundLostAggregatePairsCapacity(int value) Capacity of found and lost buffers in aggregate system allocated in GPU global memory.voidsetFoundLostPairsCapacity(int value) Capacity of found and lost buffers allocated in GPU global memory.voidsetHeapCapacity(int value) Initial capacity of the GPU and pinned host memory heaps.voidsetMaxFemClothContacts(int value) voidsetMaxHairContacts(int value) voidsetMaxParticleContacts(int value) voidsetMaxRigidContactCount(int value) Size of contact stream buffer allocated in pinned host memory.voidsetMaxRigidPatchCount(int value) Size of the contact patch stream buffer allocated in pinned host memory.voidsetMaxSoftBodyContacts(int value) voidsetTempBufferCapacity(int value) Capacity of temp buffer allocated in pinned host memory.voidsetTotalAggregatePairsCapacity(int value) Capacity of total number of aggregate pairs allocated in GPU global memory.static PxgDynamicsMemoryConfigwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxgDynamicsMemoryConfig
protected PxgDynamicsMemoryConfig(long address) -
PxgDynamicsMemoryConfig
public PxgDynamicsMemoryConfig()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getTempBufferCapacity
public int getTempBufferCapacity()Capacity of temp buffer allocated in pinned host memory. -
setTempBufferCapacity
public void setTempBufferCapacity(int value) Capacity of temp buffer allocated in pinned host memory. -
getMaxRigidContactCount
public int getMaxRigidContactCount()Size of contact stream buffer allocated in pinned host memory. This is double-buffered so total allocation size = 2* contactStreamCapacity * sizeof(PxContact). -
setMaxRigidContactCount
public void setMaxRigidContactCount(int value) Size of contact stream buffer allocated in pinned host memory. This is double-buffered so total allocation size = 2* contactStreamCapacity * sizeof(PxContact). -
getMaxRigidPatchCount
public int getMaxRigidPatchCount()Size of the contact patch stream buffer allocated in pinned host memory. This is double-buffered so total allocation size = 2 * patchStreamCapacity * sizeof(PxContactPatch). -
setMaxRigidPatchCount
public void setMaxRigidPatchCount(int value) Size of the contact patch stream buffer allocated in pinned host memory. This is double-buffered so total allocation size = 2 * patchStreamCapacity * sizeof(PxContactPatch). -
getHeapCapacity
public int getHeapCapacity()Initial capacity of the GPU and pinned host memory heaps. Additional memory will be allocated if more memory is required. -
setHeapCapacity
public void setHeapCapacity(int value) Initial capacity of the GPU and pinned host memory heaps. Additional memory will be allocated if more memory is required. -
getFoundLostPairsCapacity
public int getFoundLostPairsCapacity()Capacity of found and lost buffers allocated in GPU global memory. This is used for the found/lost pair reports in the BP. -
setFoundLostPairsCapacity
public void setFoundLostPairsCapacity(int value) Capacity of found and lost buffers allocated in GPU global memory. This is used for the found/lost pair reports in the BP. -
getFoundLostAggregatePairsCapacity
public int getFoundLostAggregatePairsCapacity()Capacity of found and lost buffers in aggregate system allocated in GPU global memory. This is used for the found/lost pair reports in AABB manager -
setFoundLostAggregatePairsCapacity
public void setFoundLostAggregatePairsCapacity(int value) Capacity of found and lost buffers in aggregate system allocated in GPU global memory. This is used for the found/lost pair reports in AABB manager -
getTotalAggregatePairsCapacity
public int getTotalAggregatePairsCapacity()Capacity of total number of aggregate pairs allocated in GPU global memory. -
setTotalAggregatePairsCapacity
public void setTotalAggregatePairsCapacity(int value) Capacity of total number of aggregate pairs allocated in GPU global memory. -
getMaxSoftBodyContacts
public int getMaxSoftBodyContacts() -
setMaxSoftBodyContacts
public void setMaxSoftBodyContacts(int value) -
getMaxFemClothContacts
public int getMaxFemClothContacts() -
setMaxFemClothContacts
public void setMaxFemClothContacts(int value) -
getMaxParticleContacts
public int getMaxParticleContacts() -
setMaxParticleContacts
public void setMaxParticleContacts(int value) -
getCollisionStackSize
public int getCollisionStackSize() -
setCollisionStackSize
public void setCollisionStackSize(int value) -
getMaxHairContacts
public int getMaxHairContacts() -
setMaxHairContacts
public void setMaxHairContacts(int value) -
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-