- Notifications
You must be signed in to change notification settings - Fork1
Software-rendered surface for winit (WIP)
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHEMIT
LICENSE-MITNotificationsYou must be signed in to change notification settings
yvt/swsurface-rs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This crate provides a software-rendered surface forwinit
.
The goal of this crate is to provide a minimal drawing functionalityfor every platform supported bywinit
even if the drawing APIs that weusually assume are available, such as OpenGL¹, aren't available in thetarget environment. This crate is also useful as a fallback when they areavailable, but failed due to an unrecoverable error.
¹“Servo on Windows in VirtualBox gets 'NoAvailablePixelFormat'” servo/servo #9468
To this end, this crate is designed to panic only when preconditions are notmet or under very pathologic circumstances that would cause winit to panic.
- Partial update - The application can redraw a portion, but
swsurface
always sends entire the windowfor now - Support for platforms other than: macOS, Windows, X11, Wayland
- X11: Support for color depths other than 24
- X11: Transparency
- Multi-threaded rendering (
Send
-ableSurface
) - Color management - we'll try to stick to sRGB for now
License: MIT/Apache-2.0
About
Software-rendered surface for winit (WIP)
Topics
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHEMIT
LICENSE-MITStars
Watchers
Forks
Packages0
No packages published