Safe Haskell | None |
---|---|
Language | Haskell2010 |
WGPU.Internal.CommandEncoder
Description
Synopsis
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.
Constructors
CommandEncoder | |
Fields |
Instances
Eq CommandEncoder Source # | |
Defined in WGPU.Internal.CommandEncoder Methods (==) :: CommandEncoder -> CommandEncoder -> Bool # (/=) :: CommandEncoder -> CommandEncoder -> Bool # | |
Show CommandEncoder Source # | |
Defined in WGPU.Internal.CommandEncoder Methods showsPrec :: Int -> CommandEncoder -> ShowS # show :: CommandEncoder -> String # showList :: [CommandEncoder] -> ShowS # | |
ToRaw CommandEncoder WGPUCommandEncoder Source # | |
Defined in WGPU.Internal.CommandEncoder Methods raw :: CommandEncoder -> ContT c IO WGPUCommandEncoder Source # |
Functions
Arguments
:: Device | Device for which to create the command encoder. |
-> Text | Debug label for the command encoder. |
-> IO CommandEncoder | IO action that returns the command encoder. |
Create an empty command encoder.
Arguments
:: CommandEncoder | Command encoder to finish. |
-> Text | Debugging label for the command buffer. |
-> IO CommandBuffer | IO action which returns the command buffer. |
Finish encoding commands, returning a command buffer.