Class QueueManager

java.lang.Object
icyllis.arc3d.engine.QueueManager
Direct Known Subclasses:
GLQueueManager, VulkanQueueManager

public abstract class QueueManager extends Object
A QueueManager represents a GPU queue and manages a pool of command buffers in that queue.
  • Field Details

  • Constructor Details

    • QueueManager

      protected QueueManager(Device device)
  • Method Details

    • addTask

      public boolean addTask(@RawPtr @RawPtr Task task)
    • submit

      public boolean submit()
    • getMaxCommandBuffers

      public int getMaxCommandBuffers()
    • hasOutstandingWork

      public boolean hasOutstandingWork()
      Returns true if there is any unfinished GPU work.
    • finishOutstandingWork

      public void finishOutstandingWork()
      Blocks the current thread and waits for queue to finish outstanding works.
    • checkForFinishedWork

      public void checkForFinishedWork()
    • prepareCommandBuffer

      protected boolean prepareCommandBuffer(ResourceProvider resourceProvider)
    • createNewCommandBuffer

      protected abstract CommandBuffer createNewCommandBuffer(ResourceProvider resourceProvider)