| Safe Haskell | Safe-Infered |
|---|
Graphics.GPipe.Format
Contents
Description
This module defines the various formats that are used by FrameBuffers and textures, both
on the GPU and the CPU.
- data AlphaFormat
- data LuminanceFormat
- = Luminance4
- | Luminance8
- | Luminance12
- | Luminance16
- | SLuminance8
- data LuminanceAlphaFormat
- data RGBFormat
- data RGBAFormat
- data DepthFormat
- data StencilFormat = StencilFormat
- class (StorableCPUFormat (CPUFormat f), Eq (CPUFormat f)) => GPUFormat f where
- type CPUFormat f
- class GPUFormat f => ColorFormat f where
- data Color f :: * -> *
- type Depth = Float
- type Stencil = Int
- data CPUFormat4Comp
- data CPUFormat3Comp
- data CPUFormat2Comp = PerComp2 CPUFormat1Comp
- data CPUFormat1Comp
- class StorableCPUFormat a
GPU formats
data AlphaFormat Source
A GPU format with only an alpha value.
These are the associated types in GPUFormat and ColorFormat:
CPUFormat AlphaFormat-
CPUFormat1Comp Color AlphaFormat a-
Alpha a
Instances
| Bounded AlphaFormat | |
| Enum AlphaFormat | |
| Eq AlphaFormat | |
| Ord AlphaFormat | |
| Show AlphaFormat | |
| ColorFormat AlphaFormat | |
| GPUFormat AlphaFormat | |
| DepthColorFormat AlphaFormat | |
| IfB bool a => IfB bool (Color AlphaFormat a) | |
| Eq a => Eq (Color AlphaFormat a) | |
| Ord a => Ord (Color AlphaFormat a) | |
| Show a => Show (Color AlphaFormat a) |
data LuminanceFormat Source
A GPU format with a single color component.
These are the associated types in GPUFormat and ColorFormat:
CPUFormat LuminanceFormat-
CPUFormat1Comp Color LuminanceFormat a-
Luminance a
Constructors
| Luminance4 | |
| Luminance8 | |
| Luminance12 | |
| Luminance16 | |
| SLuminance8 |
Instances
| Bounded LuminanceFormat | |
| Enum LuminanceFormat | |
| Eq LuminanceFormat | |
| Ord LuminanceFormat | |
| Show LuminanceFormat | |
| ColorFormat LuminanceFormat | |
| GPUFormat LuminanceFormat | |
| DepthColorFormat LuminanceFormat | |
| IfB bool a => IfB bool (Color LuminanceFormat a) | |
| Eq a => Eq (Color LuminanceFormat a) | |
| Ord a => Ord (Color LuminanceFormat a) | |
| Show a => Show (Color LuminanceFormat a) |
data LuminanceAlphaFormat Source
A GPU format with a single color component and an alpha value.
These are the associated types in GPUFormat and ColorFormat:
CPUFormat LuminanceAlphaFormat-
CPUFormat2Comp Color LuminanceAlphaFormat a-
LuminanceAlpha a a
Constructors
| Luminance4Alpha4 | |
| Luminance6Alpha2 | |
| Luminance8Alpha8 | |
| Luminance12Alpha4 | |
| Luminance12Alpha12 | |
| Luminance16Alpha16 | |
| SLuminance8Alpha8 |
Instances
A GPU format with color components for red, green and blue.
These are the associated types in GPUFormat and ColorFormat:
CPUFormat RGBFormat-
CPUFormat3Comp Color RGBFormat a-
RGB (Vec3a)
data RGBAFormat Source
A GPU format with color components for red, green and blue, and an alpha value.
These are the associated types in GPUFormat and ColorFormat:
CPUFormat RGBAFormat-
CPUFormat4Comp Color RGBAFormat a-
RGBA (Vec3a) a
Instances
| Bounded RGBAFormat | |
| Enum RGBAFormat | |
| Eq RGBAFormat | |
| Ord RGBAFormat | |
| Show RGBAFormat | |
| ColorFormat RGBAFormat | |
| GPUFormat RGBAFormat | |
| IfB bool a => IfB bool (Color RGBAFormat a) | |
| Eq a => Eq (Color RGBAFormat a) | |
| Ord a => Ord (Color RGBAFormat a) | |
| Show a => Show (Color RGBAFormat a) |
data DepthFormat Source
A GPU format for a depth buffer value.
This is the associated type in GPUFormat:
CPUFormat DepthFormat-
CPUFormat1Comp
data StencilFormat Source
A GPU format for a stencil buffer value.
This is the associated type in GPUFormat:
CPUFormat StencilFormat-
CPUFormat1Comp
Constructors
| StencilFormat |
class GPUFormat f => ColorFormat f Source
This context is used to select which types can be used in a frame buffers color buffer, and also to restrict the type of a texture.
CPU formats
data CPUFormat4Comp Source
A CPU format for 4 components (i.e. a RGBA color).
data CPUFormat3Comp Source
A CPU format for 3 components (i.e. a RGB color).
data CPUFormat2Comp Source
A CPU format for 2 components (i.e. a LuminanceAlpha color).
Constructors
| PerComp2 CPUFormat1Comp |
data CPUFormat1Comp Source
A CPU format for 1 component