summaryrefslogtreecommitdiff
path: root/Backend/GL/Input.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Backend/GL/Input.hs')
-rw-r--r--Backend/GL/Input.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Backend/GL/Input.hs b/Backend/GL/Input.hs
index e1d06b7..f92a9c9 100644
--- a/Backend/GL/Input.hs
+++ b/Backend/GL/Input.hs
@@ -31,7 +31,11 @@ import qualified IR as IR
31schemaFromPipeline :: IR.Pipeline -> PipelineSchema 31schemaFromPipeline :: IR.Pipeline -> PipelineSchema
32schemaFromPipeline a = PipelineSchema (T.fromList sl) (foldl T.unionL T.empty ul) 32schemaFromPipeline a = PipelineSchema (T.fromList sl) (foldl T.unionL T.empty ul)
33 where 33 where
34 (sl,ul) = unzip [((pack n,SlotSchema p (fmap cvt (toTrie s))),toTrie u) | IR.Slot n u s p _ <- V.toList $ IR.slots a] 34 (sl,ul) = unzip [( (pack sName,SlotSchema sPrimitive (fmap cvt (toTrie sStreams)))
35 , toTrie sUniforms
36 )
37 | IR.Slot sName sStreams sUniforms sPrimitive _ <- V.toList $ IR.slots a
38 ]
35 cvt a = case toStreamType a of 39 cvt a = case toStreamType a of
36 Just v -> v 40 Just v -> v
37 Nothing -> error "internal error (schemaFromPipeline)" 41 Nothing -> error "internal error (schemaFromPipeline)"