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

public class ComputeQueue extends NonCopyable implements RefTarget
A command queue for performing calculations on a specific ComputeSystem.
  • Method Details

    • executeAndWait

      public void executeAndWait()
      Execute the command list and wait for it to finish.
    • getRefCount

      public int getRefCount()
      Count the active references to the native ComputeQueue. The queue is unaffected.
      Specified by:
      getRefCount in interface RefTarget
      Returns:
      the count (≥0)
    • setEmbedded

      public void setEmbedded()
      Mark the native ComputeQueue as embedded.
      Specified by:
      setEmbedded in interface RefTarget
    • toRef

      public ConstraintRef toRef()
      Create a counted reference to the native ComputeQueue.
      Specified by:
      toRef in interface RefTarget
      Returns:
      a new JVM object with a new native object assigned