Turn Shape into a stream
This commit is contained in:
+2
-3
@@ -19,7 +19,6 @@ import qualified Data.Vector.Unboxed as UV
|
||||
import qualified Data.Vector.Unboxed.Mutable as UMV
|
||||
import qualified Data.Vector.Mutable as MV
|
||||
import qualified Data.Vector.Fusion.Stream.Monadic as VS
|
||||
import Data.Vector.Fusion.Util
|
||||
import Control.Monad.Primitive
|
||||
--import qualified Control.Monad.Parallel as MP
|
||||
|
||||
@@ -85,9 +84,9 @@ pokeShape
|
||||
:: Ptr Float
|
||||
-> Ptr GLushort
|
||||
-> Ptr GLushort
|
||||
-> [ShapeObj]
|
||||
-> VS.Stream IO ShapeObj
|
||||
-> IO (Int,Int,Int)
|
||||
pokeShape ptr iptr ieptr = VS.foldM (pokeShapeObj ptr iptr ieptr) (0,0,0) . VS.fromList
|
||||
pokeShape ptr iptr ieptr = VS.foldM (pokeShapeObj ptr iptr ieptr) (0,0,0)
|
||||
|
||||
pokeShapeObj
|
||||
:: Ptr Float
|
||||
|
||||
Reference in New Issue
Block a user