lambdacube-edsl-0.2.0: LambdaCube 3D EDSL definition

Safe HaskellSafe-Inferred
LanguageHaskell2010

LambdaCube.Language.Sampler

Documentation

type family TexelRepr sampler Source

Instances

type TexelRepr (Sampler dim arr (v t) RGBA) = V4 t 
type TexelRepr (Sampler dim arr (v t) RGB) = V3 t 
type TexelRepr (Sampler dim arr (v t) RG) = V2 t 
type TexelRepr (Sampler dim arr (v t) Red) = t 

type Sampler1D t ar = GSampler1D (Regular t) ar Source

type Sampler2D t ar = GSampler2D (Regular t) ar Source

type Sampler3D t ar = GSampler3D (Regular t) ar Source

class IsTextureProj sampler coord bias | sampler coord -> bias Source

class IsTexelFetch sampler coord lod | sampler -> coord lod Source

class IsTexelFetchOffset sampler coord lod offset | sampler -> coord lod offset Source