Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data Allocated (s :: Store) a Source #
Allocated | |
|
Instances
Show (Allocated s a) Source # | |
HasVertexBuffers (Allocated store a) Source # | |
Defined in Resource.Model type VertexBuffersOf (Allocated store a) Source # getVertexBuffers :: Allocated store a -> [Buffer] Source # getInstanceCount :: Allocated store a -> Word32 Source # | |
type VertexBuffersOf (Allocated store a) Source # | |
Defined in Resource.Model |
allocateCoherent :: (MonadResource m, Storable a, HasVulkan context) => context -> BufferUsageFlagBits -> ("initial size" ::: Int) -> Vector a -> m (ReleaseKey, Allocated 'Coherent a) Source #
createCoherent :: forall a context io. (Storable a, HasVulkan context, MonadUnliftIO io) => context -> BufferUsageFlagBits -> ("initial size" ::: Int) -> Vector a -> io (Allocated 'Coherent a) Source #
createStaged :: forall a context io. (Storable a, HasVulkan context, MonadUnliftIO io) => context -> Queues CommandPool -> BufferUsageFlagBits -> Int -> Vector a -> io (Allocated 'Staged a) Source #
destroyAll :: (MonadUnliftIO io, HasVulkan context, Foldable t) => context -> t (Allocated s a) -> io () Source #
updateCoherent :: (Storable a, MonadUnliftIO io) => Vector a -> Allocated 'Coherent a -> io (Allocated 'Coherent a) Source #
updateCoherentResize_ :: (Storable a, HasVulkan context, MonadUnliftIO io) => context -> Allocated 'Coherent a -> Vector a -> io (Allocated 'Coherent a) Source #
copyBuffer_ :: (MonadUnliftIO io, HasVulkan context) => context -> Queues CommandPool -> ("dstBuffer" ::: Buffer) -> ("srcBuffer" ::: Buffer) -> DeviceSize -> io () Source #