| Crates.io | skia-rs-gpu |
| lib.rs | skia-rs-gpu |
| version | 0.2.0 |
| created_at | 2026-01-02 20:50:26.236713+00 |
| updated_at | 2026-01-03 18:46:51.395963+00 |
| description | GPU backends for skia-rs |
| homepage | https://github.com/pegasusheavy/skia-rs |
| repository | https://github.com/pegasusheavy/skia-rs |
| max_upload_size | |
| id | 2019176 |
| size | 353,548 |
GPU backends for skia-rs, a pure Rust implementation of the Skia 2D graphics library.
| Feature | Default | Description |
|---|---|---|
wgpu-backend |
✅ | wgpu cross-platform backend |
vulkan |
❌ | Native Vulkan backend |
opengl |
❌ | OpenGL/OpenGL ES backend |
use skia_rs_gpu::{WgpuContext, WgpuSurface};
// Create a GPU context
let context = WgpuContext::new()?;
// Create a GPU-backed surface
let surface = WgpuSurface::new(&context, 800, 600)?;
// Draw on the canvas (same API as CPU)
let canvas = surface.canvas();
canvas.clear(Color::WHITE);
canvas.draw_rect(&rect, &paint);
// Present to screen
surface.present();
⚠️ GPU backends are currently in development. The wgpu backend is functional for basic operations.
MIT OR Apache-2.0
See the main repository for more information.