keid-core-0.1.9.0: Core parts of Keid engine.
Safe HaskellSafe-Inferred
LanguageGHC2021

Resource.Image

Synopsis

Documentation

allocate :: (MonadVulkan env io, MonadResource io) => Maybe Text -> ImageAspectFlags -> ("image dimensions" ::: Extent3D) -> ("mip levels" ::: Word32) -> ("stored layers" ::: Word32) -> SampleCountFlagBits -> Format -> ImageUsageFlags -> io AllocatedImage Source #

allocateDst :: (MonadVulkan env m, MonadResource m) => Queues CommandPool -> Maybe Text -> ("image dimensions" ::: Extent3D) -> ("mip levels" ::: Word32) -> ("stored layers" ::: Word32) -> Format -> m DstImage Source #

Allocate an image and transition it into TRANSFER_DST_OPTIOMAL

copyBufferToDst :: (MonadVulkan env m, Integral deviceSize, Foldable t) => Queues CommandPool -> Buffer -> DstImage -> ("mip offsets" ::: t deviceSize) -> m AllocatedImage Source #

transitionLayout :: MonadVulkan env m => Queues CommandPool -> Image -> ("mip levels" ::: Word32) -> ("layer count" ::: Word32) -> Format -> ("old" ::: ImageLayout) -> ("new" ::: ImageLayout) -> m () Source #

copyBufferToImage :: (Foldable t, Integral deviceSize, MonadVulkan env m) => Queues CommandPool -> Buffer -> Image -> ("base extent" ::: Extent3D) -> ("mip offsets" ::: t deviceSize) -> ("layer count" ::: Word32) -> m () Source #

subresource :: ImageAspectFlags -> ("mip levels" ::: Word32) -> ("layer count" ::: Word32) -> ImageSubresourceRange Source #