caramia-0.7.2.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 Source 
Ord Shader Source

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

OpenGLResource GLuint Shader Source 

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 Source 
Ord Pipeline Source 
OpenGLResource GLuint Pipeline Source

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

newtype Pipeline_ Source

Constructors

Pipeline_ GLuint