Package icyllis.arc3d.engine
Interface SurfaceProxy.LazyInstantiateCallback
- All Superinterfaces:
AutoCloseable
- Enclosing class:
SurfaceProxy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface SurfaceProxy.LazyInstantiateCallback
extends AutoCloseable
Lazy-callback function.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
onLazyInstantiate
(ResourceProvider provider, BackendFormat format, int width, int height, int sampleCount, int surfaceFlags, String label) Specifies the expected properties of theGpuSurface
returned by a lazy instantiation callback.
-
Method Details
-
onLazyInstantiate
SurfaceProxy.LazyCallbackResult onLazyInstantiate(ResourceProvider provider, BackendFormat format, int width, int height, int sampleCount, int surfaceFlags, String label) Specifies the expected properties of theGpuSurface
returned by a lazy instantiation callback. The dimensions will be negative in the case of a lazy-most surface. -
close
default void close()- Specified by:
close
in interfaceAutoCloseable
-