GPipe-2.2.5: Typesafe functional GPU graphics programming

Safe HaskellNone
LanguageHaskell98

Graphics.GPipe.Format

Contents

Description

This module provides data types for all formats of textures and frame buffers. None of the type classes in this module are intended to be instanced by anyone else. In fact, GPipe only uses these type classes through the GADT Format, which is closed, so any new instances wouldnt be considered anyway.

Synopsis

Texture formats

data Format a where Source #

Constructors

R8 :: Format RFloat 
R8S :: Format RFloat 
R16 :: Format RFloat 
R16S :: Format RFloat 
R16F :: Format RFloat 
R32F :: Format RFloat 
R8I :: Format RInt 
R16I :: Format RInt 
R32I :: Format RInt 
R8UI :: Format RWord 
R16UI :: Format RWord 
R32UI :: Format RWord 
RG8 :: Format RGFloat 
RG8S :: Format RGFloat 
RG16 :: Format RGFloat 
RG16S :: Format RGFloat 
RG16F :: Format RGFloat 
RG32F :: Format RGFloat 
RG8I :: Format RGInt 
RG16I :: Format RGInt 
RG32I :: Format RGInt 
RG8UI :: Format RGWord 
RG16UI :: Format RGWord 
RG32UI :: Format RGWord 
R3G3B2 :: Format RGBFloat 
RGB4 :: Format RGBFloat 
RGB5 :: Format RGBFloat 
RGB8 :: Format RGBFloat 
RGB8S :: Format RGBFloat 
RGB10 :: Format RGBFloat 
RGB12 :: Format RGBFloat 
RGB16 :: Format RGBFloat 
RGB16S :: Format RGBFloat 
RGB16F :: Format RGBFloat 
RGB32F :: Format RGBFloat 
R11FG11FB10F :: Format RGBFloat 
RGB9E5 :: Format RGBFloat 
SRGB8 :: Format RGBFloat 
RGB8I :: Format RGBInt 
RGB16I :: Format RGBInt 
RGB32I :: Format RGBInt 
RGBWord :: Format RGBWord 
RGB8UI :: Format RGBWord 
RGB16UI :: Format RGBWord 
RGB32UI :: Format RGBWord 
RGBA2 :: Format RGBAFloat 
RGBA4 :: Format RGBAFloat 
RGB5A1 :: Format RGBAFloat 
RGBA8 :: Format RGBAFloat 
RGBA8S :: Format RGBAFloat 
RGB10A2 :: Format RGBAFloat 
RGBA12 :: Format RGBAFloat 
RGBA16 :: Format RGBAFloat 
RGBA16S :: Format RGBAFloat 
RGBA16F :: Format RGBAFloat 
RGBA32F :: Format RGBAFloat 
SRGB8A8 :: Format RGBAFloat 
RGBA8I :: Format RGBAInt 
RGBA16I :: Format RGBAInt 
RGBA32I :: Format RGBAInt 
RGBA8UI :: Format RGBAWord 
RGBA16UI :: Format RGBAWord 
RGBA32UI :: Format RGBAWord 
Depth16 :: Format Depth 
Depth24 :: Format Depth 
Depth32 :: Format Depth 
Depth32F :: Format Depth 
Stencil1 :: Format Stencil 
Stencil4 :: Format Stencil 
Stencil8 :: Format Stencil 
Stencil16 :: Format Stencil 
Depth24Stencil8 :: Format DepthStencil 
Depth32FStencil8 :: Format DepthStencil 

class TextureFormat f Source #

Instances
TextureFormat DepthStencil Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat Depth Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Methods

getGlFormat :: Depth -> GLenum

TextureFormat RGBAWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGBAInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGBAFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGBWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGBInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGBFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RGInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Methods

getGlFormat :: RGInt -> GLenum

TextureFormat RGFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

TextureFormat RWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Methods

getGlFormat :: RWord -> GLenum

TextureFormat RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Methods

getGlFormat :: RInt -> GLenum

TextureFormat RFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

data RInt Source #

Instances
ColorRenderable RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorSampleable RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RInt a :: Type Source #

type ColorElement RInt :: Type Source #

TextureFormat RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Methods

getGlFormat :: RInt -> GLenum

type ColorElement RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

type Color RInt a Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

type Color RInt a = a

data Depth Source #

Instances
DepthRenderable Depth Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorSampleable Depth Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color Depth a :: Type Source #

type ColorElement Depth :: Type Source #

TextureFormat Depth Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Methods

getGlFormat :: Depth -> GLenum

type ColorElement Depth Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

type Color Depth a Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

type Color Depth a = a

Format constraints

class TextureFormat f => ColorSampleable f Source #

Associated Types

type Color f a Source #

type ColorElement f :: * Source #

Instances
ColorSampleable DepthStencil Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color DepthStencil a :: Type Source #

type ColorElement DepthStencil :: Type Source #

ColorSampleable Depth Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color Depth a :: Type Source #

type ColorElement Depth :: Type Source #

ColorSampleable RGBAWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGBAWord a :: Type Source #

type ColorElement RGBAWord :: Type Source #

ColorSampleable RGBAInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGBAInt a :: Type Source #

type ColorElement RGBAInt :: Type Source #

ColorSampleable RGBAFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGBAFloat a :: Type Source #

type ColorElement RGBAFloat :: Type Source #

ColorSampleable RGBWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGBWord a :: Type Source #

type ColorElement RGBWord :: Type Source #

ColorSampleable RGBInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGBInt a :: Type Source #

type ColorElement RGBInt :: Type Source #

ColorSampleable RGBFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGBFloat a :: Type Source #

type ColorElement RGBFloat :: Type Source #

ColorSampleable RGWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGWord a :: Type Source #

type ColorElement RGWord :: Type Source #

ColorSampleable RGInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGInt a :: Type Source #

type ColorElement RGInt :: Type Source #

ColorSampleable RGFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RGFloat a :: Type Source #

type ColorElement RGFloat :: Type Source #

ColorSampleable RWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RWord a :: Type Source #

type ColorElement RWord :: Type Source #

ColorSampleable RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RInt a :: Type Source #

type ColorElement RInt :: Type Source #

ColorSampleable RFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Associated Types

type Color RFloat a :: Type Source #

type ColorElement RFloat :: Type Source #

class ColorSampleable c => ColorRenderable c Source #

Instances
ColorRenderable RGBAWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGBAInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGBAFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGBWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGBInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGBFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RGFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RWord Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RInt Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

ColorRenderable RFloat Source # 
Instance details

Defined in Graphics.GPipe.Internal.Format

Context formats

type WindowBits = ((Int, Int, Int, Int, Bool), Int, Int) Source #