| Copyright | (c) Sven Panne 2018 |
|---|---|
| License | BSD3 |
| Maintainer | Sven Panne <[email protected]> |
| Stability | stable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Graphics.Rendering.OpenGL.GL.SyncObjects
Description
This module corresponds to section 4.1 (Sync Objects and Fences) of the OpenGL 4.4 specs.
Synopsis
- data SyncObject
- syncGpuCommandsComplete :: IO SyncObject
- type WaitTimeout = GLuint64
- data WaitFlag = SyncFlushCommands
- data WaitResult
- clientWaitSync :: SyncObject -> [WaitFlag] -> WaitTimeout -> IO WaitResult
- waitSync :: SyncObject -> IO ()
- maxServerWaitTimeout :: GettableStateVar WaitTimeout
- data SyncStatus
- syncStatus :: SyncObject -> GettableStateVar SyncStatus
Sync Objects and Fences
data SyncObject Source #
Instances
Waiting for Sync Objects
type WaitTimeout = GLuint64 Source #
Constructors
| SyncFlushCommands |
data WaitResult Source #
Constructors
| AlreadySignaled | |
| TimeoutExpired | |
| ConditionSatisfied | |
| WaitFailed |
Instances
| Eq WaitResult Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects | |
| Ord WaitResult Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods compare :: WaitResult -> WaitResult -> Ordering # (<) :: WaitResult -> WaitResult -> Bool # (<=) :: WaitResult -> WaitResult -> Bool # (>) :: WaitResult -> WaitResult -> Bool # (>=) :: WaitResult -> WaitResult -> Bool # max :: WaitResult -> WaitResult -> WaitResult # min :: WaitResult -> WaitResult -> WaitResult # | |
| Show WaitResult Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods showsPrec :: Int -> WaitResult -> ShowS # show :: WaitResult -> String # showList :: [WaitResult] -> ShowS # | |
clientWaitSync :: SyncObject -> [WaitFlag] -> WaitTimeout -> IO WaitResult Source #
waitSync :: SyncObject -> IO () Source #
Sync Object Queries
data SyncStatus Source #
Constructors
| Unsignaled | |
| Signaled |
Instances
| Eq SyncStatus Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects | |
| Ord SyncStatus Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods compare :: SyncStatus -> SyncStatus -> Ordering # (<) :: SyncStatus -> SyncStatus -> Bool # (<=) :: SyncStatus -> SyncStatus -> Bool # (>) :: SyncStatus -> SyncStatus -> Bool # (>=) :: SyncStatus -> SyncStatus -> Bool # max :: SyncStatus -> SyncStatus -> SyncStatus # min :: SyncStatus -> SyncStatus -> SyncStatus # | |
| Show SyncStatus Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods showsPrec :: Int -> SyncStatus -> ShowS # show :: SyncStatus -> String # showList :: [SyncStatus] -> ShowS # | |