News for hackers. Stuff that matters.
Re:RISC-V OS using Rust: Graphics by Koshkin on Monday August 03, 2020 @04:04PM (#24042678)
Using virtio to demonstrate how set a pixel looks unjustifiably complicated. Queues, requests, responses!.. By contrast, using the framebuffer in Linux is a breeze. (Doing this in DOS was easier still.)
Re:RISC-V OS using Rust: Graphics by pavehawk2007 on Monday August 03, 2020 @04:29PM (#24042977)
I'm writing this from the OS's perspective. Linux abstracts this away, but we have to do it to get the same abstraction. You can see under the user space portion how simple it is to grab a framebuffer, which is then mapped into user space. Then we have full access to RGBA values.