Class ComputeSystemRef

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class ComputeSystemRef extends Ref
A counted reference to a ComputeSystem. (native type: Ref<ComputeSystem>)
  • Constructor Details

    • ComputeSystemRef

      public ComputeSystemRef()
      Instantiate an empty reference.
  • Method Details

    • getPtr

      public ComputeSystem getPtr()
      Temporarily access the referenced ComputeSystem.
      Specified by:
      getPtr in class Ref
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getRtti

      public Rtti getRtti()
      Access the run-time type information of the current compute system. (native function: GetRTTI)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • targetVa

      public long targetVa()
      Return the address of the native ComputeSystem. No objects are affected.
      Specified by:
      targetVa in interface ConstJoltPhysicsObject
      Overrides:
      targetVa in class JoltPhysicsObject
      Returns:
      a virtual address (not zero)
    • toRef

      public ComputeSystemRef toRef()
      Create another counted reference to the native ComputeSystem.
      Specified by:
      toRef in class Ref
      Returns:
      a new JVM object with a new native object assigned