Package apple.iosurface.enums
Class IOSurfaceLockOptions
- java.lang.Object
-
- apple.iosurface.enums.IOSurfaceLockOptions
-
public final class IOSurfaceLockOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intAvoidSyncIf you want to detect/avoid a potentially expensive paging operation (such as readback from a GPU to system memory) when you lock the buffer, you may include this flag.static intReadOnlyIf you are not going to modify the data while you hold the lock, you should set this flag to avoid invalidating any existing caches of the buffer contents.
-
-
-
Field Detail
-
ReadOnly
public static final int ReadOnly
If you are not going to modify the data while you hold the lock, you should set this flag to avoid invalidating any existing caches of the buffer contents. This flag should be passed both to the lock and unlock functions. Non-symmetrical usage of this flag will result in undefined behavior.- See Also:
- Constant Field Values
-
AvoidSync
public static final int AvoidSync
If you want to detect/avoid a potentially expensive paging operation (such as readback from a GPU to system memory) when you lock the buffer, you may include this flag. If locking the buffer requires a readback, the lock will fail with an error return of kIOReturnCannotLock.- See Also:
- Constant Field Values
-
-