Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
Functor GLSL Source # | |
Foldable GLSL Source # | |
Defined in Language.GLSL.AST fold :: Monoid m => GLSL m -> m # foldMap :: Monoid m => (a -> m) -> GLSL a -> m # foldMap' :: Monoid m => (a -> m) -> GLSL a -> m # foldr :: (a -> b -> b) -> b -> GLSL a -> b # foldr' :: (a -> b -> b) -> b -> GLSL a -> b # foldl :: (b -> a -> b) -> b -> GLSL a -> b # foldl' :: (b -> a -> b) -> b -> GLSL a -> b # foldr1 :: (a -> a -> a) -> GLSL a -> a # foldl1 :: (a -> a -> a) -> GLSL a -> a # elem :: Eq a => a -> GLSL a -> Bool # maximum :: Ord a => GLSL a -> a # | |
Traversable GLSL Source # | |
Eq a => Eq (GLSL a) Source # | |
Show a => Show (GLSL a) Source # | |
Generic (GLSL a) Source # | |
type Rep (GLSL a) Source # | |
Defined in Language.GLSL.AST type Rep (GLSL a) = D1 ('MetaData "GLSL" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "GLSL" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Version) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TopDecl a]))) |
Instances
Instances
Eq ProcName Source # | |
Show ProcName Source # | |
Generic ProcName Source # | |
type Rep ProcName Source # | |
Defined in Language.GLSL.AST type Rep ProcName = D1 ('MetaData "ProcName" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "ProcMain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ProcName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NameId))) |
data LayoutSpec Source #
Instances
Eq LayoutSpec Source # | |
Defined in Language.GLSL.AST (==) :: LayoutSpec -> LayoutSpec -> Bool # (/=) :: LayoutSpec -> LayoutSpec -> Bool # | |
Show LayoutSpec Source # | |
Defined in Language.GLSL.AST showsPrec :: Int -> LayoutSpec -> ShowS # show :: LayoutSpec -> String # showList :: [LayoutSpec] -> ShowS # | |
Generic LayoutSpec Source # | |
Defined in Language.GLSL.AST type Rep LayoutSpec :: Type -> Type # from :: LayoutSpec -> Rep LayoutSpec x # to :: Rep LayoutSpec x -> LayoutSpec # | |
type Rep LayoutSpec Source # | |
Defined in Language.GLSL.AST type Rep LayoutSpec = D1 ('MetaData "LayoutSpec" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "LayoutStd140" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LayoutLocation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
Instances
Eq ParamDecl Source # | |
Show ParamDecl Source # | |
Generic ParamDecl Source # | |
type Rep ParamDecl Source # | |
Defined in Language.GLSL.AST type Rep ParamDecl = D1 ('MetaData "ParamDecl" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "Param" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ParamKind) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LocalDecl))) |
Instances
Eq LocalDecl Source # | |
Show LocalDecl Source # | |
Generic LocalDecl Source # | |
type Rep LocalDecl Source # | |
Defined in Language.GLSL.AST type Rep LocalDecl = D1 ('MetaData "LocalDecl" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "LDecl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Type) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NameId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Expr))))) |
data GlobalDecl Source #
Instances
Instances
Instances
Eq Name Source # | |
Show Name Source # | |
Generic Name Source # | |
type Rep Name Source # | |
Defined in Language.GLSL.AST type Rep Name = D1 ('MetaData "Name" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "Name" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Namespace) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NameId))) |
Instances
Eq Namespace Source # | |
Show Namespace Source # | |
Generic Namespace Source # | |
type Rep Namespace Source # | |
Defined in Language.GLSL.AST type Rep Namespace = D1 ('MetaData "Namespace" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) ((C1 ('MetaCons "NsT" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NsS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NsU" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "NsVF" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NsIn" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NsOut" 'PrefixI 'False) (U1 :: Type -> Type)))) |
Instances
Instances
Eq Swizzle Source # | |
Show Swizzle Source # | |
Generic Swizzle Source # | |
type Rep Swizzle Source # | |
Defined in Language.GLSL.AST type Rep Swizzle = D1 ('MetaData "Swizzle" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) ((C1 ('MetaCons "X" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Y" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Z" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "W" 'PrefixI 'False) (U1 :: Type -> Type))) |
Instances
Eq NameExpr Source # | |
Show NameExpr Source # | |
Generic NameExpr Source # | |
type Rep NameExpr Source # | |
Defined in Language.GLSL.AST type Rep NameExpr = D1 ('MetaData "NameExpr" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "NameExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name)) :+: C1 ('MetaCons "UniformExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NameId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NameId))) |
LitIntExpr Cast Int | |
LitFloatExpr Cast Float | |
IdentifierExpr NameExpr | |
SwizzleExpr NameId Swizzle | |
VecIndexExpr NameExpr Swizzle | |
MatIndexExpr NameExpr Swizzle Swizzle |
Instances
UnaryExpr UnaryOp ExprAtom | |
BinaryExpr ExprAtom BinaryOp ExprAtom | |
FunCallExpr FunName [ExprAtom] | |
TextureExpr ExprAtom ExprAtom ExprAtom | |
AtomExpr ExprAtom |
Instances
Instances
Eq BinaryOp Source # | |
Show BinaryOp Source # | |
Generic BinaryOp Source # | |
type Rep BinaryOp Source # | |
Defined in Language.GLSL.AST type Rep BinaryOp = D1 ('MetaData "BinaryOp" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (((C1 ('MetaCons "BOpPlus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BOpMinus" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BOpMul" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BOpDiv" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BOpGE" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "BOpGT" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BOpLE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BOpLT" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BOpAnd" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BOpOr" 'PrefixI 'False) (U1 :: Type -> Type))))) |
Instances
Instances
Instances
Eq Emit Source # | |
Show Emit Source # | |
Generic Emit Source # | |
type Rep Emit Source # | |
Defined in Language.GLSL.AST type Rep Emit = D1 ('MetaData "Emit" "Language.GLSL.AST" "glsl-0.0.1.0-inplace" 'False) (C1 ('MetaCons "EmitPosition" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Expr)) :+: C1 ('MetaCons "EmitFragDepth" 'PrefixI 'False) (U1 :: Type -> Type)) |
argCountForFunName :: FunName -> Int Source #
isIdentifierExpr :: ExprAtom -> Bool Source #