Package physx.common

Class PxGpuDynamicsMemoryConfig

java.lang.Object
physx.NativeObject
physx.common.PxGpuDynamicsMemoryConfig

public class PxGpuDynamicsMemoryConfig extends NativeObject
Sizes of pre-allocated buffers use for GPU dynamics
  • 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

      public static PxGpuDynamicsMemoryConfig wrapPointer(long address)
    • arrayGet

      public static PxGpuDynamicsMemoryConfig arrayGet(long baseAddress, int index)
    • 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