diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-18 18:34:47 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-19 02:50:09 +0100 |
commit | 998ae8f884f4b1d4e092ebdf3a441b97b2cf05b7 (patch) | |
tree | 6ced17ee38fa78de69b05c8765288ecabe52fb6e /testdata/fragment03swizzling.lc | |
parent | 27c8f3aeb2d13da0bec522ee8a8a98f534fa39e8 (diff) |
tuples are heterogeneous lists
Diffstat (limited to 'testdata/fragment03swizzling.lc')
-rw-r--r-- | testdata/fragment03swizzling.lc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testdata/fragment03swizzling.lc b/testdata/fragment03swizzling.lc index 62040179..4b7e3fa8 100644 --- a/testdata/fragment03swizzling.lc +++ b/testdata/fragment03swizzling.lc | |||
@@ -1,20 +1,20 @@ | |||
1 | clear = FrameBuffer $ ColorImage @1 $ V4 1 0 0 0.5 | 1 | clear = FrameBuffer ((ColorImage @1 $ V4 1 0 0 0.5)) |
2 | 2 | ||
3 | triangleRasterCtx = TriangleCtx CullNone PolygonFill NoOffset LastVertex | 3 | triangleRasterCtx = TriangleCtx CullNone PolygonFill NoOffset LastVertex |
4 | colorFragmentCtx = accumulationContext (ColorOp NoBlending (V4 True True True True)) | 4 | colorFragmentCtx = accumulationContext ((ColorOp NoBlending (V4 True True True True))) |
5 | 5 | ||
6 | rasterizeWith = rasterizePrimitives | 6 | rasterizeWith = rasterizePrimitives |
7 | triangles = triangleRasterCtx | 7 | triangles = triangleRasterCtx |
8 | 8 | ||
9 | quadVertexStream = fetch "quad" Triangle (Attribute "position" :: Vec 4 Float) | 9 | quadVertexStream = fetch "quad" Triangle (Attribute "position" :: ((Vec 4 Float))) |
10 | 10 | ||
11 | transform s f = mapPrimitives (\v -> (f v, v)) s | 11 | transform s f = mapPrimitives (\((v)) -> (f v, v)) s |
12 | 12 | ||
13 | mapFragments2 s fs = accumulate colorFragmentCtx ( \a -> fs a) s clear | 13 | mapFragments2 s fs = accumulate colorFragmentCtx ( \((a)) -> ((fs a))) s clear |
14 | 14 | ||
15 | render f = quadVertexStream -- id vertices | 15 | render f = quadVertexStream -- id vertices |
16 | `transform` id | 16 | `transform` id |
17 | & rasterizeWith triangles Smooth -- rasterize | 17 | & rasterizeWith triangles ((Smooth)) -- rasterize |
18 | `mapFragments2` f | 18 | `mapFragments2` f |
19 | & ScreenOut -- draw into screen | 19 | & ScreenOut -- draw into screen |
20 | 20 | ||