Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
data Vertex pos attrs Source #
Instances
(HasVkFormat pos, HasVkFormat attrs) => HasVertexInputBindings (Vertex pos attrs :: Type) Source # | |
Defined in Resource.Model vertexInputBindings :: [VertexInputBinding] Source # | |
Foldable (Vertex pos) Source # | |
Defined in Resource.Model fold :: Monoid m => Vertex pos m -> m # foldMap :: Monoid m => (a -> m) -> Vertex pos a -> m # foldMap' :: Monoid m => (a -> m) -> Vertex pos a -> m # foldr :: (a -> b -> b) -> b -> Vertex pos a -> b # foldr' :: (a -> b -> b) -> b -> Vertex pos a -> b # foldl :: (b -> a -> b) -> b -> Vertex pos a -> b # foldl' :: (b -> a -> b) -> b -> Vertex pos a -> b # foldr1 :: (a -> a -> a) -> Vertex pos a -> a # foldl1 :: (a -> a -> a) -> Vertex pos a -> a # toList :: Vertex pos a -> [a] # null :: Vertex pos a -> Bool # length :: Vertex pos a -> Int # elem :: Eq a => a -> Vertex pos a -> Bool # maximum :: Ord a => Vertex pos a -> a # minimum :: Ord a => Vertex pos a -> a # | |
Traversable (Vertex pos) Source # | |
Functor (Vertex pos) Source # | |
(Show pos, Show attrs) => Show (Vertex pos attrs) Source # | |
(Eq pos, Eq attrs) => Eq (Vertex pos attrs) Source # | |
(Ord pos, Ord attrs) => Ord (Vertex pos attrs) Source # | |
Defined in Resource.Model compare :: Vertex pos attrs -> Vertex pos attrs -> Ordering # (<) :: Vertex pos attrs -> Vertex pos attrs -> Bool # (<=) :: Vertex pos attrs -> Vertex pos attrs -> Bool # (>) :: Vertex pos attrs -> Vertex pos attrs -> Bool # (>=) :: Vertex pos attrs -> Vertex pos attrs -> Bool # max :: Vertex pos attrs -> Vertex pos attrs -> Vertex pos attrs # min :: Vertex pos attrs -> Vertex pos attrs -> Vertex pos attrs # |
vertexAttrs :: (pos -> a -> b) -> [Vertex pos a] -> [Vertex pos b] Source #
vertexAttrsPos :: (pos -> a) -> [pos] -> [Vertex pos a] Source #
class HasVertexBuffers a where Source #
Nothing
type VertexBuffersOf a Source #
getVertexBuffers :: a -> [Buffer] Source #
default getVertexBuffers :: (Generic a, GHasVertexBuffers (Rep a)) => a -> [Buffer] Source #
getInstanceCount :: a -> Word32 Source #
default getInstanceCount :: (Generic a, GHasVertexBuffers (Rep a)) => a -> Word32 Source #
Instances
HasVertexBuffers () Source # | |
Defined in Resource.Model type VertexBuffersOf () Source # getVertexBuffers :: () -> [Buffer] Source # getInstanceCount :: () -> Word32 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 # |
genericGetVertexBuffers :: (Generic a, GHasVertexBuffers (Rep a)) => a -> [Buffer] Source #
genericGetInstanceCount :: (Generic a, GHasVertexBuffers (Rep a)) => a -> Word32 Source #
class GHasVertexBuffers f where Source #
gVertexBuffers :: forall a. f a -> [Buffer] Source #
gInstanceCount :: forall a. f a -> Word32 Source #
Instances
(GHasVertexBuffers l, GHasVertexBuffers r) => GHasVertexBuffers (l :*: r) Source # | |
Defined in Resource.Model gVertexBuffers :: (l :*: r) a -> [Buffer] Source # gInstanceCount :: (l :*: r) a -> Word32 Source # | |
HasVertexBuffers a => GHasVertexBuffers (K1 r a :: Type -> Type) Source # | |
Defined in Resource.Model gVertexBuffers :: K1 r a a0 -> [Buffer] Source # gInstanceCount :: K1 r a a0 -> Word32 Source # | |
GHasVertexBuffers f => GHasVertexBuffers (M1 c cb f) Source # | |
Defined in Resource.Model gVertexBuffers :: M1 c cb f a -> [Buffer] Source # gInstanceCount :: M1 c cb f a -> Word32 Source # |
data IndexRange Source #
Instances
createStagedL :: (MonadVulkan env m, Storable pos, Storable attrs) => Maybe Text -> Queues CommandPool -> [Vertex pos attrs] -> Maybe [Word32] -> m (Indexed 'Staged pos attrs) Source #
createStaged :: (MonadVulkan env m, Storable pos, Storable attrs) => Maybe Text -> Queues CommandPool -> Vector pos -> Vector attrs -> Vector Word32 -> m (Indexed 'Staged pos attrs) Source #
createCoherentEmpty :: (MonadVulkan env m, Storable pos, Storable attrs) => Maybe Text -> Int -> m (Indexed 'Coherent pos attrs) Source #
registerIndexed_ :: (MonadVulkan env m, MonadResource m) => Indexed storage pos attrs -> m () Source #
destroyIndexed :: MonadVulkan env m => Indexed storage pos attrs -> m () Source #