 by the OpenCL implementation on the host.
 
 -}
-clEnqueueWriteImage :: Integral a => CLCommandQueue -- ^ Refers to the
-                                                    -- command-queue in which
-                                                    -- the write command will be
-                                                    -- queued. command_queue and
-                                                    -- image must be created
-                                                    -- with the same OpenCL
-                                                    -- contex
+clEnqueueWriteImage :: Integral a 
+                       => CLCommandQueue -- ^ Refers to the command-queue in
+                                         -- which the write command will be
+                                         -- queued. command_queue and image must
+                                         -- be created with the same OpenCL
+                                         -- contex
                        -> CLMem -- ^ Refers to a valid 2D or 3D image object.
                        -> Bool -- ^ Indicates if the write operation is blocking
                                -- or non-blocking.

  withArray (fmap fromIntegral [regx,regy,regz]) $ \preg -> 
  clEnqueue (raw_clEnqueueWriteImage cq mem (fromBool check) pori preg (fromIntegral rp) (fromIntegral sp) dat) xs
                       
-- -----------------------------------------------------------------------------
{-| Enqueues a command to execute a kernel on a device. Each work-item is
uniquely identified by a global identifier. The global ID, which can be read

by the OpenCL implementation on the host.

-}
clEnqueueReadImage :: Integral a 
                      => CLCommandQueue -- ^ Refers to the command-queue in
                                        -- which the read command will be
                                        -- queued. command_queue and image must
                                        -- be created with the same OpenCL
                                        -- contex
                      -> CLMem -- ^ Refers to a valid 2D or 3D image object.
                      -> Bool -- ^ Indicates if the read operations are blocking
                              -- or non-blocking.
