Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CommandEncoder = CommandEncoder {}
- createCommandEncoder :: MonadIO m => Device -> Text -> m CommandEncoder
- commandEncoderFinish :: MonadIO m => CommandEncoder -> Text -> m CommandBuffer
Types
data CommandEncoder Source #
Handle to an encoder for a series of GPU operations.
A command encoder can record render passes, compute passes, and transfer operations between driver-managed resources like buffers and textures.
Instances
Eq CommandEncoder Source # | |
Defined in WGPU.Internal.CommandEncoder (==) :: CommandEncoder -> CommandEncoder -> Bool # (/=) :: CommandEncoder -> CommandEncoder -> Bool # | |
Show CommandEncoder Source # | |
Defined in WGPU.Internal.CommandEncoder showsPrec :: Int -> CommandEncoder -> ShowS # show :: CommandEncoder -> String # showList :: [CommandEncoder] -> ShowS # | |
ToRaw CommandEncoder WGPUCommandEncoder Source # | |
Defined in WGPU.Internal.CommandEncoder raw :: CommandEncoder -> ContT r IO WGPUCommandEncoder Source # |
Functions
:: MonadIO m | |
=> Device | Device for which to create the command encoder. |
-> Text | Debug label for the command encoder. |
-> m CommandEncoder | IO action that returns the command encoder. |
Create an empty command encoder.
:: MonadIO m | |
=> CommandEncoder | Command encoder to finish. |
-> Text | Debugging label for the command buffer. |
-> m CommandBuffer | IO action which returns the command buffer. |
Finish encoding commands, returning a command buffer.