Interface GpuFence
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
GlFence
High-level GPU fence for synchronization.
Used to know when the GPU has finished consuming data (e.g. from a streaming buffer).
-
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:
closein interfaceAutoCloseable
-