flaw-gl-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Graphics.GLSL

Description

 
Synopsis

Documentation

data GlslConfig Source #

GLSL config for various versions of GLSL.

Constructors

GlslConfig 

Fields

data GlslAttribute Source #

Instances
Show GlslAttribute Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslAttribute Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslAttribute :: Type -> Type #

Serialize GlslAttribute Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslAttribute Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslAttribute = D1 (MetaData "GlslAttribute" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslAttribute" PrefixI True) (S1 (MetaSel (Just "glslAttributeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "glslAttributeInfo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Attribute)))

data GlslUniformBlock Source #

Information for binding uniform block to slot. It might be multiple uniform blocks bound to a single slot (for example, if uniforms from this slot are used in multiple shader stages).

Instances
Show GlslUniformBlock Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslUniformBlock Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslUniformBlock :: Type -> Type #

Serialize GlslUniformBlock Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslUniformBlock Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslUniformBlock = D1 (MetaData "GlslUniformBlock" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslUniformBlock" PrefixI True) (S1 (MetaSel (Just "glslUniformBlockName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "glslUniformBlockSlot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

data GlslUniform Source #

Uniform used by shader.

Instances
Show GlslUniform Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslUniform Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslUniform :: Type -> Type #

Serialize GlslUniform Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslUniform Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslUniform = D1 (MetaData "GlslUniform" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslUniform" PrefixI True) (S1 (MetaSel (Just "glslUniformName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "glslUniformInfo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Uniform)))

data GlslSampler Source #

Sampler used by shader.

Instances
Show GlslSampler Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslSampler Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslSampler :: Type -> Type #

Serialize GlslSampler Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslSampler Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslSampler = D1 (MetaData "GlslSampler" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslSampler" PrefixI True) (S1 (MetaSel (Just "glslSamplerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "glslSamplerInfo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sampler)))

data GlslFragmentTarget Source #

Fragment target outputted by shader.

Instances
Show GlslFragmentTarget Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslFragmentTarget Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslFragmentTarget :: Type -> Type #

Serialize GlslFragmentTarget Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslFragmentTarget Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslFragmentTarget = D1 (MetaData "GlslFragmentTarget" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslFragmentTarget" PrefixI True) (S1 (MetaSel (Just "glslFragmentTargetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "glslFragmentTargetIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) :+: C1 (MetaCons "GlslDualFragmentTarget" PrefixI True) (S1 (MetaSel (Just "glslFragmentTargetName0") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "glslFragmentTargetName1") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))

data GlslStage Source #

Instances
Show GlslStage Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslStage Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslStage :: Type -> Type #

Serialize GlslStage Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslStage Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslStage = D1 (MetaData "GlslStage" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslVertexStage" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GlslFragmentStage" PrefixI False) (U1 :: Type -> Type))

data GlslProgram Source #

GLSL program.

Instances
Show GlslProgram Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Generic GlslProgram Source # 
Instance details

Defined in Flaw.Graphics.GLSL

Associated Types

type Rep GlslProgram :: Type -> Type #

Serialize GlslProgram Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslProgram Source # 
Instance details

Defined in Flaw.Graphics.GLSL

type Rep GlslProgram = D1 (MetaData "GlslProgram" "Flaw.Graphics.GLSL" "flaw-gl-0.1.0.0-BCCPH3FmEKdCAD97ILJmS" False) (C1 (MetaCons "GlslProgram" PrefixI True) ((S1 (MetaSel (Just "glslProgramAttributes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlslAttribute]) :*: (S1 (MetaSel (Just "glslProgramUniformBlocks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlslUniformBlock]) :*: S1 (MetaSel (Just "glslProgramUniforms") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlslUniform]))) :*: (S1 (MetaSel (Just "glslProgramSamplers") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlslSampler]) :*: (S1 (MetaSel (Just "glslProgramFragmentTargets") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [GlslFragmentTarget]) :*: S1 (MetaSel (Just "glslProgramShaders") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(GlslStage, Text)])))))

glslGenerateProgram :: GlslConfig -> State -> GlslProgram Source #

Generate shader programs in GLSL.