setup framebuffer with console

This commit is contained in:
2026-07-03 09:32:15 +01:00
parent ca3c3d131c
commit 21cc0c87e4
6 changed files with 415 additions and 16 deletions
+4 -4
View File
@@ -25,10 +25,10 @@ pub const PixelFormat = enum(u32) {
/// `pitch` bytes between the start of one row and the next (which may be larger
/// than `width * 4` due to hardware padding).
pub const Framebuffer = extern struct {
base: usize,
width: u32,
height: u32,
pitch: u32,
base: usize, // the memory address where pixel data starts
width: u32, // visible pixels per row (e.g. 1920)
height: u32, // visible rows (e.g. 1080)
pitch: u32, // bytes from the start of one row to the start of the next
format: PixelFormat,
};