summaryrefslogtreecommitdiff
path: root/testdata/reject.ignore/fragctx02.reject.lc
blob: 1012d442cd5decbc4f0cdd0603edf800e4805d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
main = let
  emptyFB           = FrameBuffer ((colorImage1 (V4 0.0 0.0 0.4 1.0))
  rasterCtx         = TriangleCtx CullNone PolygonFill NoOffset LastVertex
  colorOp           = ColorOp NoBlending (V4 True True True True)
  fragmentCtx       = accumulationContext (colorOp,colorOp) -- ERROR
  vertexShader ((v))    = VertexOut v 1.0 () (Smooth v)
  vertexStream      = fetch "stream" Triangle (Attribute "position" :: ((Vec 4 Float)))
  primitiveStream   = Transform vertexShader vertexStream
  fragmentStream    = Rasterize rasterCtx primitiveStream
  fragmentShader = FragmentShader $ \((v)) -> (V4 1.0 0.0 0.0 1.0)
  frame             = accumulate fragmentCtx PassAll fragmentShader fragmentStream emptyFB
 in ScreenOut frame