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
WgpuContext
by callingnew()
with a device and expected texture format. - Before rendering, the user creates a
RenderContext
by callingprepare()
on theWgpuContext
with aDevice
and aQueue
.prepare()
returns the context, which is expected to be written to. - Finally, by calling
render
on theWgpuContext
, the user renders all of the material that was written to theRenderContext
using thepiet
API.
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.