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 20 (Debug Output) of the OpenGL 4.5 specs.
Synopsis
- debugOutput :: StateVar Capability
- data DebugMessage = DebugMessage DebugSource DebugType DebugMessageID DebugSeverity String
- data DebugSource
- data DebugType
- newtype DebugMessageID = DebugMessageID GLuint
- data DebugSeverity
- maxDebugMessageLength :: GettableStateVar GLsizei
- debugMessageCallback :: StateVar (Maybe (DebugMessage -> IO ()))
- maxDebugLoggedMessages :: GettableStateVar GLsizei
- debugLoggedMessages :: IO [DebugMessage]
- data MessageGroup
- debugMessageControl :: MessageGroup -> SettableStateVar Capability
- debugMessageInsert :: DebugMessage -> IO ()
- data DebugGroup = DebugGroup DebugSource DebugMessageID String
- pushDebugGroup :: DebugSource -> DebugMessageID -> String -> IO ()
- popDebugGroup :: IO ()
- withDebugGroup :: DebugSource -> DebugMessageID -> String -> IO a -> IO a
- maxDebugGroupStackDepth :: GettableStateVar GLsizei
- class CanBeLabeled a where
- objectLabel :: a -> StateVar (Maybe String)
- maxLabelLength :: GettableStateVar GLsizei
- debugOutputSynchronous :: StateVar Capability
Debug Messages
data DebugMessage Source #
Instances
Eq DebugMessage Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput (==) :: DebugMessage -> DebugMessage -> Bool # (/=) :: DebugMessage -> DebugMessage -> Bool # | |
Ord DebugMessage Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput compare :: DebugMessage -> DebugMessage -> Ordering # (<) :: DebugMessage -> DebugMessage -> Bool # (<=) :: DebugMessage -> DebugMessage -> Bool # (>) :: DebugMessage -> DebugMessage -> Bool # (>=) :: DebugMessage -> DebugMessage -> Bool # max :: DebugMessage -> DebugMessage -> DebugMessage # min :: DebugMessage -> DebugMessage -> DebugMessage # | |
Show DebugMessage Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput showsPrec :: Int -> DebugMessage -> ShowS # show :: DebugMessage -> String # showList :: [DebugMessage] -> ShowS # |
data DebugSource Source #
DebugSourceAPI | |
DebugSourceShaderCompiler | |
DebugSourceWindowSystem | |
DebugSourceThirdParty | |
DebugSourceApplication | |
DebugSourceOther |
Instances
Eq DebugSource Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput (==) :: DebugSource -> DebugSource -> Bool # (/=) :: DebugSource -> DebugSource -> Bool # | |
Ord DebugSource Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput compare :: DebugSource -> DebugSource -> Ordering # (<) :: DebugSource -> DebugSource -> Bool # (<=) :: DebugSource -> DebugSource -> Bool # (>) :: DebugSource -> DebugSource -> Bool # (>=) :: DebugSource -> DebugSource -> Bool # max :: DebugSource -> DebugSource -> DebugSource # min :: DebugSource -> DebugSource -> DebugSource # | |
Show DebugSource Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput showsPrec :: Int -> DebugSource -> ShowS # show :: DebugSource -> String # showList :: [DebugSource] -> ShowS # |
DebugTypeError | |
DebugTypeDeprecatedBehavior | |
DebugTypeUndefinedBehavior | |
DebugTypePerformance | |
DebugTypePortability | |
DebugTypeMarker | |
DebugTypePushGroup | |
DebugTypePopGroup | |
DebugTypeOther |
newtype DebugMessageID Source #
Instances
Eq DebugMessageID Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput (==) :: DebugMessageID -> DebugMessageID -> Bool # (/=) :: DebugMessageID -> DebugMessageID -> Bool # | |
Ord DebugMessageID Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput compare :: DebugMessageID -> DebugMessageID -> Ordering # (<) :: DebugMessageID -> DebugMessageID -> Bool # (<=) :: DebugMessageID -> DebugMessageID -> Bool # (>) :: DebugMessageID -> DebugMessageID -> Bool # (>=) :: DebugMessageID -> DebugMessageID -> Bool # max :: DebugMessageID -> DebugMessageID -> DebugMessageID # min :: DebugMessageID -> DebugMessageID -> DebugMessageID # | |
Show DebugMessageID Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput showsPrec :: Int -> DebugMessageID -> ShowS # show :: DebugMessageID -> String # showList :: [DebugMessageID] -> ShowS # |
data DebugSeverity Source #
Instances
Eq DebugSeverity Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput (==) :: DebugSeverity -> DebugSeverity -> Bool # (/=) :: DebugSeverity -> DebugSeverity -> Bool # | |
Ord DebugSeverity Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput compare :: DebugSeverity -> DebugSeverity -> Ordering # (<) :: DebugSeverity -> DebugSeverity -> Bool # (<=) :: DebugSeverity -> DebugSeverity -> Bool # (>) :: DebugSeverity -> DebugSeverity -> Bool # (>=) :: DebugSeverity -> DebugSeverity -> Bool # max :: DebugSeverity -> DebugSeverity -> DebugSeverity # min :: DebugSeverity -> DebugSeverity -> DebugSeverity # | |
Show DebugSeverity Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput showsPrec :: Int -> DebugSeverity -> ShowS # show :: DebugSeverity -> String # showList :: [DebugSeverity] -> ShowS # |
Debug Message Callback
debugMessageCallback :: StateVar (Maybe (DebugMessage -> IO ())) Source #
Debug Message Log
Controlling Debug Messages
data MessageGroup Source #
MessageGroup (Maybe DebugSource) (Maybe DebugType) (Maybe DebugSeverity) | |
MessageGroupWithIDs DebugSource DebugType [DebugMessageID] |
Instances
Eq MessageGroup Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput (==) :: MessageGroup -> MessageGroup -> Bool # (/=) :: MessageGroup -> MessageGroup -> Bool # | |
Ord MessageGroup Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput compare :: MessageGroup -> MessageGroup -> Ordering # (<) :: MessageGroup -> MessageGroup -> Bool # (<=) :: MessageGroup -> MessageGroup -> Bool # (>) :: MessageGroup -> MessageGroup -> Bool # (>=) :: MessageGroup -> MessageGroup -> Bool # max :: MessageGroup -> MessageGroup -> MessageGroup # min :: MessageGroup -> MessageGroup -> MessageGroup # | |
Show MessageGroup Source # | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput showsPrec :: Int -> MessageGroup -> ShowS # show :: MessageGroup -> String # showList :: [MessageGroup] -> ShowS # |
Externally Generated Messages
debugMessageInsert :: DebugMessage -> IO () Source #
Debug Groups
pushDebugGroup :: DebugSource -> DebugMessageID -> String -> IO () Source #
popDebugGroup :: IO () Source #
withDebugGroup :: DebugSource -> DebugMessageID -> String -> IO a -> IO a Source #
Debug Labels
class CanBeLabeled a where Source #