java.lang.Object
physx.NativeObject
physx.common.PxGpuDynamicsMemoryConfig
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 PxGpuDynamicsMemoryConfigarrayGet(long baseAddress, int index) voiddestroy()intCapacity of the collision stack buffer, used as scratch space during narrowphase collision detection.intCapacity 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.intCapacity of femCloth contact buffer allocated in GPU global memory.intCapacity of hair system contact buffer allocated in GPU global memory.intCapacity of particle contact buffer allocated in GPU global memory.intSize of contact stream buffer allocated in pinned host memory.intSize of the contact patch stream buffer allocated in pinned host memory.intCapacity of softbody contact buffer allocated in GPU global memory.intInitial capacity of temp solver buffer allocated in pinned host memory.intCapacity of aggregate pair buffer allocated in GPU global memory.booleanisValid()voidsetCollisionStackSize(int value) Capacity of the collision stack buffer, used as scratch space during narrowphase collision detection.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) Capacity of femCloth contact buffer allocated in GPU global memory.voidsetMaxHairContacts(int value) Capacity of hair system contact buffer allocated in GPU global memory.voidsetMaxParticleContacts(int value) Capacity of particle contact buffer allocated in GPU global memory.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) Capacity of softbody contact buffer allocated in GPU global memory.voidsetTempBufferCapacity(int value) Initial capacity of temp solver buffer allocated in pinned host memory.voidsetTotalAggregatePairsCapacity(int value) Capacity of aggregate pair buffer allocated in GPU global memory.static PxGpuDynamicsMemoryConfigwrapPointer(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
-
PxGpuDynamicsMemoryConfig
protected PxGpuDynamicsMemoryConfig(long address) -
PxGpuDynamicsMemoryConfig
public PxGpuDynamicsMemoryConfig()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getTempBufferCapacity
public int getTempBufferCapacity()Initial capacity of temp solver buffer allocated in pinned host memory. This buffer will grow if more memory is needed than specified here. -
setTempBufferCapacity
public void setTempBufferCapacity(int value) Initial capacity of temp solver buffer allocated in pinned host memory. This buffer will grow if more memory is needed than specified here. -
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 aggregate pair buffer allocated in GPU global memory. -
setTotalAggregatePairsCapacity
public void setTotalAggregatePairsCapacity(int value) Capacity of aggregate pair buffer allocated in GPU global memory. -
getMaxSoftBodyContacts
public int getMaxSoftBodyContacts()Capacity of softbody contact buffer allocated in GPU global memory. -
setMaxSoftBodyContacts
public void setMaxSoftBodyContacts(int value) Capacity of softbody contact buffer allocated in GPU global memory. -
getMaxFemClothContacts
public int getMaxFemClothContacts()Capacity of femCloth contact buffer allocated in GPU global memory. -
setMaxFemClothContacts
public void setMaxFemClothContacts(int value) Capacity of femCloth contact buffer allocated in GPU global memory. -
getMaxParticleContacts
public int getMaxParticleContacts()Capacity of particle contact buffer allocated in GPU global memory. -
setMaxParticleContacts
public void setMaxParticleContacts(int value) Capacity of particle contact buffer allocated in GPU global memory. -
getCollisionStackSize
public int getCollisionStackSize()Capacity of the collision stack buffer, used as scratch space during narrowphase collision detection. -
setCollisionStackSize
public void setCollisionStackSize(int value) Capacity of the collision stack buffer, used as scratch space during narrowphase collision detection. -
getMaxHairContacts
public int getMaxHairContacts()Capacity of hair system contact buffer allocated in GPU global memory. -
setMaxHairContacts
public void setMaxHairContacts(int value) Capacity of hair system contact buffer allocated in GPU global memory. -
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-