Safe Haskell | None |
---|
- data TextureShape
- data Red = Red
- data RG = RG
- data RGB = RGB
- data RGBA = RGBA
- data TextureSemantics a
- = Regular a
- | Shadow a
- | MultiSample a
- | Buffer a
- data TextureArray
- data Sampler
- class GPU a => IsScalar a where
- class Show a => GPU a where
- class GPU a => SGPU a
- type family EltRepr a :: *
- type family EltRepr' a :: *
- class IsTuple tup where
- type TupleRepr tup
- data Tuple c t where
- data TupleIdx t e where
- ZeroTupIdx :: GPU s => TupleIdx (t, s) s
- SuccTupIdx :: TupleIdx t e -> TupleIdx (t, s) e
- tix0 :: GPU s => TupleIdx (t, s) s
- tix1 :: GPU s => TupleIdx ((t, s), s1) s
- tix2 :: GPU s => TupleIdx (((t, s), s1), s2) s
- tix3 :: GPU s => TupleIdx ((((t, s), s1), s2), s3) s
- tix4 :: GPU s => TupleIdx (((((t, s), s1), s2), s3), s4) s
- tix5 :: GPU s => TupleIdx ((((((t, s), s1), s2), s3), s4), s5) s
- tix6 :: GPU s => TupleIdx (((((((t, s), s1), s2), s3), s4), s5), s6) s
- tix7 :: GPU s => TupleIdx ((((((((t, s), s1), s2), s3), s4), s5), s6), s7) s
- tix8 :: GPU s => TupleIdx (((((((((t, s), s1), s2), s3), s4), s5), s6), s7), s8) s
Documentation
data TextureSemantics a Source
Regular a | |
Shadow a | |
MultiSample a | |
Buffer a |
class GPU a => IsScalar a whereSource
class Show a => GPU a whereSource
SGPU Float | |
SGPU Int32 | |
SGPU Word32 | |
SGPU V4U | |
SGPU V3U | |
SGPU V2U | |
SGPU V4I | |
SGPU V3I | |
SGPU V2I | |
SGPU V4F | |
SGPU V3F | |
SGPU V2F | |
SGPU M44F | |
SGPU M43F | |
SGPU M42F | |
SGPU M34F | |
SGPU M33F | |
SGPU M32F | |
SGPU M24F | |
SGPU M23F | |
SGPU M22F | |
(SGPU a, SGPU b) => SGPU (a, b) | |
(SGPU a, SGPU b, SGPU c) => SGPU (a, b, c) | |
(SGPU a, SGPU b, SGPU c, SGPU d) => SGPU (a, b, c, d) | |
(SGPU a, SGPU b, SGPU c, SGPU d, SGPU e) => SGPU (a, b, c, d, e) | |
(SGPU a, SGPU b, SGPU c, SGPU d, SGPU e, SGPU f) => SGPU (a, b, c, d, e, f) | |
(SGPU a, SGPU b, SGPU c, SGPU d, SGPU e, SGPU f, SGPU g) => SGPU (a, b, c, d, e, f, g) | |
(SGPU a, SGPU b, SGPU c, SGPU d, SGPU e, SGPU f, SGPU g, SGPU h) => SGPU (a, b, c, d, e, f, g, h) | |
(SGPU a, SGPU b, SGPU c, SGPU d, SGPU e, SGPU f, SGPU g, SGPU h, SGPU i) => SGPU (a, b, c, d, e, f, g, h, i) |
Conversion between surface n-tuples and our tuple representation.
our language uses nested tuple representation
We represent tuples as heterogenous lists, typed by a type list.
Type-safe projection indicies for tuples.
NB: We index tuples by starting to count from the *right*!
ZeroTupIdx :: GPU s => TupleIdx (t, s) s | |
SuccTupIdx :: TupleIdx t e -> TupleIdx (t, s) e |