diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-22 15:15:23 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-22 15:15:44 +0100 |
commit | 23b42e612a6a7864428674b3c9d63ed86fc07435 (patch) | |
tree | 79bea78eba5d508ef9d4072c9721a4c09f87a000 /src/LambdaCube | |
parent | 94dead004d04bd80db17429859454981513be814 (diff) |
rename: fetch_ --> fetch; fetchArrays_ --> fetchArrays
Diffstat (limited to 'src/LambdaCube')
-rw-r--r-- | src/LambdaCube/Compiler/CoreToIR.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LambdaCube/Compiler/CoreToIR.hs b/src/LambdaCube/Compiler/CoreToIR.hs index c58e559e..06b08038 100644 --- a/src/LambdaCube/Compiler/CoreToIR.hs +++ b/src/LambdaCube/Compiler/CoreToIR.hs | |||
@@ -121,7 +121,7 @@ getCommands backend e = case e of | |||
121 | (smpBindings, txtCmds) <- mconcat <$> traverse (uncurry getRenderTextureCommands) (Map.toList $ fst <$> pUniforms) | 121 | (smpBindings, txtCmds) <- mconcat <$> traverse (uncurry getRenderTextureCommands) (Map.toList $ fst <$> pUniforms) |
122 | 122 | ||
123 | (renderCommand,input) <- case input_ of | 123 | (renderCommand,input) <- case input_ of |
124 | A2 "fetch_" (EString slotName) attrs -> do | 124 | A2 "fetch" (EString slotName) attrs -> do |
125 | i <- IR.RenderSlot <$> addL' slotLens slotName (flip mergeSlot) IR.Slot | 125 | i <- IR.RenderSlot <$> addL' slotLens slotName (flip mergeSlot) IR.Slot |
126 | { IR.slotName = slotName | 126 | { IR.slotName = slotName |
127 | , IR.slotUniforms = IR.programUniforms prg | 127 | , IR.slotUniforms = IR.programUniforms prg |
@@ -137,7 +137,7 @@ getCommands backend e = case e of | |||
137 | , IR.slotStreams = IR.slotStreams a <> IR.slotStreams b | 137 | , IR.slotStreams = IR.slotStreams a <> IR.slotStreams b |
138 | , IR.slotPrograms = IR.slotPrograms a <> IR.slotPrograms b | 138 | , IR.slotPrograms = IR.slotPrograms a <> IR.slotPrograms b |
139 | } | 139 | } |
140 | A1 "fetchArrays_" (unzip . compAttributeValue -> (tys, values)) -> do | 140 | A1 "fetchArrays" (unzip . compAttributeValue -> (tys, values)) -> do |
141 | i <- IR.RenderStream <$> addL streamLens IR.StreamData | 141 | i <- IR.RenderStream <$> addL streamLens IR.StreamData |
142 | { IR.streamData = Map.fromList $ zip names values | 142 | { IR.streamData = Map.fromList $ zip names values |
143 | , IR.streamType = Map.fromList input | 143 | , IR.streamType = Map.fromList input |