Joone Blog

Rust & DRM

Posted on May 24, 2018

I was surprised to find that there are many low-level graphics projects written in Rust, so I started looking into one of them: drm-rs. I then added an example for handling the page-flip event.

drm-rs is a subproject of Smithay, a Wayland compositor written in Rust. It allows Rust applications to access the Direct Rendering Manager (DRM), a subsystem of the Linux kernel. With it, we can paint directly into a frame buffer and render it on the display using the DRM APIs.