Interface GpuFence

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
GlFence

public interface GpuFence extends AutoCloseable
High-level GPU fence for synchronization. Used to know when the GPU has finished consuming data (e.g. from a streaming buffer).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    Returns true if the GPU has passed this fence (work is complete).
    void
    Blocks until the GPU signals this fence.
    boolean
    waitFor(long timeoutNanos)
    Blocks with a timeout in nanoseconds.
  • Method Details

    • isSignaled

      boolean isSignaled()
      Returns true if the GPU has passed this fence (work is complete).
    • waitFor

      void waitFor()
      Blocks until the GPU signals this fence.
    • waitFor

      boolean waitFor(long timeoutNanos)
      Blocks with a timeout in nanoseconds. Returns true if signaled.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable