keid-core-0.1.1.1: Core parts of Keid engine.
Safe HaskellNone
LanguageHaskell2010

Resource.Image

Documentation

data AllocatedImage Source #

Constructors

AllocatedImage 

Fields

Instances

Instances details
Show AllocatedImage Source # 
Instance details

Defined in Resource.Image

createColorResource :: (MonadIO io, HasVulkan ctx, HasSwapchain ctx) => ctx -> Extent2D -> io AllocatedImage Source #

createDepthResource :: (MonadIO io, HasVulkan context, HasSwapchain context) => context -> Extent2D -> ("shadowmap layers" ::: Maybe Word32) -> io AllocatedImage Source #

destroyAllocatedImage :: (MonadIO io, HasVulkan context) => context -> AllocatedImage -> io () Source #

transitionImageLayout :: HasVulkan context => context -> Queues CommandPool -> Image -> ("mip levels" ::: Word32) -> ("layer count" ::: Word32) -> Format -> ("old" ::: ImageLayout) -> ("new" ::: ImageLayout) -> RIO env () Source #

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

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