summaryrefslogtreecommitdiff
path: root/src/LambdaCube/Compiler/CoreToIR.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LambdaCube/Compiler/CoreToIR.hs')
-rw-r--r--src/LambdaCube/Compiler/CoreToIR.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LambdaCube/Compiler/CoreToIR.hs b/src/LambdaCube/Compiler/CoreToIR.hs
index 9c67cb02..2a3c78eb 100644
--- a/src/LambdaCube/Compiler/CoreToIR.hs
+++ b/src/LambdaCube/Compiler/CoreToIR.hs
@@ -225,7 +225,7 @@ getCommands e = case e of
225 rt <- newFrameBufferTarget (tyOf a) 225 rt <- newFrameBufferTarget (tyOf a)
226 (subCmds,cmds) <- getCommands a 226 (subCmds,cmds) <- getCommands a
227 return (subCmds,IR.SetRenderTarget rt : cmds) 227 return (subCmds,IR.SetRenderTarget rt : cmds)
228 A3 "Accumulate" actx (getFragmentShader . removeDepthHandler -> (frag, getFragFilter -> (ffilter, Prim3 "foldr" (EtaPrim2_2 "++") (A0 "Nil") (Prim2 "map" (EtaPrim3 "rasterize" {-rp-} is rctx) (getVertexShader -> (vert, input)))))) fbuf -> do 228 Prim3 "Accumulate" actx (getFragmentShader . removeDepthHandler -> (frag, getFragFilter -> (ffilter, Prim3 "foldr" (EtaPrim2_2 "++") (A0 "Nil") (Prim2 "map" (EtaPrim3 "rasterize" {-rp-} is rctx) (getVertexShader -> (vert, input)))))) fbuf -> do
229 let rp = compRC' rctx 229 let rp = compRC' rctx
230 (smpBindingsV,vertCmds) <- getRenderTextureCommands vert 230 (smpBindingsV,vertCmds) <- getRenderTextureCommands vert
231 (smpBindingsR,rastCmds) <- maybe (return mempty) getRenderTextureCommands ffilter 231 (smpBindingsR,rastCmds) <- maybe (return mempty) getRenderTextureCommands ffilter
@@ -267,8 +267,8 @@ getUniforms e = case e of
267 267
268compFrameBuffer x = case x of 268compFrameBuffer x = case x of
269 ETuple a -> concatMap compFrameBuffer a 269 ETuple a -> concatMap compFrameBuffer a
270 A1 "DepthImage" a -> [(IR.Depth, compValue a)] 270 Prim1 "DepthImage" a -> [(IR.Depth, compValue a)]
271 A1 "ColorImage" a -> [(IR.Color, compValue a)] 271 Prim1 "ColorImage" a -> [(IR.Color, compValue a)]
272 x -> error $ "compFrameBuffer " ++ ppShow x 272 x -> error $ "compFrameBuffer " ++ ppShow x
273 273
274compSemantic x = case x of 274compSemantic x = case x of