summaryrefslogtreecommitdiff
path: root/testdata/fragment03swizzling.lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-18 18:34:47 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-19 02:50:09 +0100
commit998ae8f884f4b1d4e092ebdf3a441b97b2cf05b7 (patch)
tree6ced17ee38fa78de69b05c8765288ecabe52fb6e /testdata/fragment03swizzling.lc
parent27c8f3aeb2d13da0bec522ee8a8a98f534fa39e8 (diff)
tuples are heterogeneous lists
Diffstat (limited to 'testdata/fragment03swizzling.lc')
-rw-r--r--testdata/fragment03swizzling.lc12
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 @@
1clear = FrameBuffer $ ColorImage @1 $ V4 1 0 0 0.5 1clear = FrameBuffer ((ColorImage @1 $ V4 1 0 0 0.5))
2 2
3triangleRasterCtx = TriangleCtx CullNone PolygonFill NoOffset LastVertex 3triangleRasterCtx = TriangleCtx CullNone PolygonFill NoOffset LastVertex
4colorFragmentCtx = accumulationContext (ColorOp NoBlending (V4 True True True True)) 4colorFragmentCtx = accumulationContext ((ColorOp NoBlending (V4 True True True True)))
5 5
6rasterizeWith = rasterizePrimitives 6rasterizeWith = rasterizePrimitives
7triangles = triangleRasterCtx 7triangles = triangleRasterCtx
8 8
9quadVertexStream = fetch "quad" Triangle (Attribute "position" :: Vec 4 Float) 9quadVertexStream = fetch "quad" Triangle (Attribute "position" :: ((Vec 4 Float)))
10 10
11transform s f = mapPrimitives (\v -> (f v, v)) s 11transform s f = mapPrimitives (\((v)) -> (f v, v)) s
12 12
13mapFragments2 s fs = accumulate colorFragmentCtx ( \a -> fs a) s clear 13mapFragments2 s fs = accumulate colorFragmentCtx ( \((a)) -> ((fs a))) s clear
14 14
15render f = quadVertexStream -- id vertices 15render 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