Expand description
A GPU-accelerated 2D graphics backend for piet that uses the wgpu crate.
This crate follows the wgpu middleware pattern, but in a somewhat unique way.
- The user creates the
WgpuContextby callingnew()with a device and expected texture format. - Before rendering, the user creates a
RenderContextby callingprepare()on theWgpuContextwith aDeviceand aQueue.prepare()returns the context, which is expected to be written to. - Finally, by calling
renderon theWgpuContext, the user renders all of the material that was written to theRenderContextusing thepietAPI.
Re-exports§
Structs§
- Brush
- The brush type.
- Image
- The image type.
- Render
Context - The whole point.
- Text
- The text engine type.
- Text
Layout - The text layout type.
- Text
Layout Builder - The text layout builder type.
- Wgpu
Context - A wrapper around internal cached state.