Overview of windows-canvas
masterThe windows-canvas crate is a safe, fast 2D graphics library for Rust that wraps the DirectX graphics stack (Direct2D, Direct3D 11, DXGI, DirectWrite, and WIC).
Core workflow:
- Own a
GpuDevicewhich manages Direct3D and Direct2D devices. - Create a
SwapChainfrom the device to present frames. - Call
begin_drawto obtain aDrawingSession. - Use the
DrawingSessionto clear the surface, draw shapes, text, and bitmaps.