Class GlFence

java.lang.Object
dev.engine.graphics.opengl.GlFence
All Implemented Interfaces:
GpuFence, AutoCloseable

public class GlFence extends Object implements GpuFence
OpenGL implementation of GpuFence using GL sync objects.
  • Method Details

    • isSignaled

      public boolean isSignaled()
      Description copied from interface: GpuFence
      Returns true if the GPU has passed this fence (work is complete).
      Specified by:
      isSignaled in interface GpuFence
    • waitFor

      public void waitFor()
      Description copied from interface: GpuFence
      Blocks until the GPU signals this fence.
      Specified by:
      waitFor in interface GpuFence
    • waitFor

      public boolean waitFor(long timeoutNanos)
      Description copied from interface: GpuFence
      Blocks with a timeout in nanoseconds. Returns true if signaled.
      Specified by:
      waitFor in interface GpuFence
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface GpuFence