Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- triangle_ :: MonadUnliftIO m => CommandBuffer -> Bound dsl () () m ()
- triangles_ :: MonadUnliftIO m => CommandBuffer -> Word32 -> Bound dsl () () m ()
- quads :: MonadUnliftIO m => CommandBuffer -> Allocated stage instances -> Bound dsl () instances m ()
- indexed :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos attrs -> instances -> Bound dsl attrs (VertexBuffersOf instances) m ()
- indexedRanges :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos attrs -> instances -> [IndexRange] -> Bound dsl attrs (VertexBuffersOf instances) m ()
- indexedParts :: (MonadUnliftIO m, HasVertexBuffers instances, Foldable t) => Bool -> CommandBuffer -> Indexed storage pos attrs -> instances -> Int -> t IndexRange -> Bound dsl attrs (VertexBuffersOf instances) m ()
- indexedPos :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos unusedAttrs -> instances -> Bound dsl ignoreAttrs (VertexBuffersOf instances) m ()
- indexedPosRanges :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos unusedAttrs -> instances -> [IndexRange] -> Bound dsl ignoreAttrs (VertexBuffersOf instances) m ()
- unsafeIndexedRanges :: (MonadUnliftIO io, HasVertexBuffers instances, Foldable t) => Bool -> CommandBuffer -> Indexed storage pos attrs -> instances -> t IndexRange -> io ()
- unsafeIndexedParts :: (MonadUnliftIO io, HasVertexBuffers instances, Foldable t) => Bool -> CommandBuffer -> Indexed storage pos attrs -> instances -> Int -> t IndexRange -> io ()
Documentation
triangle_ :: MonadUnliftIO m => CommandBuffer -> Bound dsl () () m () Source #
Single triangle, binding nothing.
triangles_ :: MonadUnliftIO m => CommandBuffer -> Word32 -> Bound dsl () () m () Source #
Multiple shader-driven triangles without bindings.
quads :: MonadUnliftIO m => CommandBuffer -> Allocated stage instances -> Bound dsl () instances m () Source #
Instanced quads.
indexed :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos attrs -> instances -> Bound dsl attrs (VertexBuffersOf instances) m () Source #
Draw whole-model instances.
indexedRanges :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos attrs -> instances -> [IndexRange] -> Bound dsl attrs (VertexBuffersOf instances) m () Source #
Draw subrange of each instance.
E.g. chunks of the same material drawn in different places.
indexedParts :: (MonadUnliftIO m, HasVertexBuffers instances, Foldable t) => Bool -> CommandBuffer -> Indexed storage pos attrs -> instances -> Int -> t IndexRange -> Bound dsl attrs (VertexBuffersOf instances) m () Source #
Draw ranges and instances zipped.
E.g. range materials stored in instances.
indexedPos :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos unusedAttrs -> instances -> Bound dsl ignoreAttrs (VertexBuffersOf instances) m () Source #
Draw whole-model instances, ignoring attributes.
indexedPosRanges :: (MonadUnliftIO m, HasVertexBuffers instances) => CommandBuffer -> Indexed storage pos unusedAttrs -> instances -> [IndexRange] -> Bound dsl ignoreAttrs (VertexBuffersOf instances) m () Source #
Draw subrange of each instances, ignoring attributes.
unsafeIndexedRanges :: (MonadUnliftIO io, HasVertexBuffers instances, Foldable t) => Bool -> CommandBuffer -> Indexed storage pos attrs -> instances -> t IndexRange -> io () Source #
Common unchecked part for pos/attrs
unsafeIndexedParts :: (MonadUnliftIO io, HasVertexBuffers instances, Foldable t) => Bool -> CommandBuffer -> Indexed storage pos attrs -> instances -> Int -> t IndexRange -> io () Source #
Instance/range zipped