Copyright | (c) Sven Panne 2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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 #
data WaitResult Source #
Instances
Eq WaitResult Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects (==) :: WaitResult -> WaitResult -> Bool # (/=) :: WaitResult -> WaitResult -> Bool # | |
Ord WaitResult Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects 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 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 #
Instances
Eq SyncStatus Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects (==) :: SyncStatus -> SyncStatus -> Bool # (/=) :: SyncStatus -> SyncStatus -> Bool # | |
Ord SyncStatus Source # | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects 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 showsPrec :: Int -> SyncStatus -> ShowS # show :: SyncStatus -> String # showList :: [SyncStatus] -> ShowS # |