caramia-0.7.0.1: High-level OpenGL bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.Caramia.Shader.Internal

Synopsis

Documentation

data Shader Source

A shader object for a specific shader stage.

OpenGL equivalent is the shader object.

Constructors

Shader 

Fields

resource :: !(Resource Shader_)
 
viewStage :: !ShaderStage

Which stage does this shader belong to.

identifier :: !Unique
 

Instances

Eq Shader 
Ord Shader

The ordering has no inherent meaning but it allows shaders to be stored correctly in containers that have Ord constraint.

Typeable * Shader 
OpenGLResource GLuint Shader 

newtype Shader_ Source

Constructors

CompiledShader GLuint 

data Pipeline Source

A pipeline object that references a collection of shaders.

OpenGL equivalent is the shader program object.

Instances

Eq Pipeline 
Ord Pipeline 
Typeable * Pipeline 
OpenGLResource GLuint Pipeline

Despite the Haskell name, Pipeline, the object is a shader program object.

newtype Pipeline_ Source

Constructors

Pipeline_ GLuint