wgpu-hs-0.4.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

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.

Functions

createCommandEncoder Source #

Arguments

:: 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.

commandEncoderFinish Source #

Arguments

:: 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.