pub struct GpuManager { /* private fields */ }Expand description
GPU manager
Implementations§
Source§impl GpuManager
impl GpuManager
pub fn new() -> Self
Sourcepub fn init(&self) -> Result<(), KernelError>
pub fn init(&self) -> Result<(), KernelError>
Initialize GPU subsystem
Sourcepub fn flush_framebuffer(&self)
pub fn flush_framebuffer(&self)
Flush the primary GPU framebuffer to the display.
If a VirtIO GPU is available, this triggers a transfer_to_host_2d followed by resource_flush to present the framebuffer contents.